Re: [Owfs-developers] More on Hanging Problems

2005-07-07 Thread Jan Kandziora
Hallo Christian Magnusson, am Donnerstag, 7. Juli 2005 00:17 schriebst du: Could you try a couple of things... Does your adapter reconnect if you unplug it manually and then insert it again? If you look in owfs/modules/owlib/src/c/ow_ds9490.c, then find following comment on row 437 or

Re: [Owfs-developers] More on Hanging Problems

2005-07-07 Thread Christian Magnusson
Can you try this command after you have the problem... ls -l /proc/`pidof owserver`/fd/ total 5 lrwx-- 1 root root 64 Jul 7 10:54 0 - /dev/pts/13 lrwx-- 1 root root 64 Jul 7 10:54 1 - /dev/pts/13 lrwx-- 1 root root 64 Jul 7 10:54 2 - /dev/pts/13 lrwx-- 1 root root 64 Jul

Re: [Owfs-developers] More on Hanging Problems

2005-07-06 Thread Jan Kandziora
Am Donnerstag, 30. Juni 2005 15:41 schrieb Christian Magnusson: Have you succeeded to use the latest cvs-version yet? Just wondering... Now I had the time to test a bit. I have to say: unfortunately not. $ /opt/owfs/bin/owserver -u1 -p19160 --foreground --error_level=9

RE: [Owfs-developers] More on Hanging Problems

2005-07-03 Thread Christian Magnusson
, July 01, 2005 5:26 AM To: owfs-developers@lists.sourceforge.net Cc: Paul Alfille; [EMAIL PROTECTED] Subject: Re: [Owfs-developers] More on Hanging Problems I have done some testing with it, and have managed to reconnect the adapter even if it's unplugged manually. It's perhaps

Re: [Owfs-developers] More on Hanging Problems

2005-07-01 Thread Jan Kandziora
Am Donnerstag, 30. Juni 2005 21:56 schrieb Christian Magnusson: You are right... The kernel thinks the usb adapter is physically removed and then inserted again and get a new device number. This problem is very fatal and question is if such thing should be handled by owfs. Hm. owserver does

Re: [Owfs-developers] More on Hanging Problems

2005-07-01 Thread Christian Magnusson
I have done some testing with it, and have managed to reconnect the adapter even if it's unplugged manually. It's perhaps not a very nice solution, but it works at least. Right now it detects the 1-wire adapters as usual at startup. At the first 1-wire scan, the serial number of the ds1420 chip

RE: [Owfs-developers] More on Hanging Problems

2005-07-01 Thread Alfille, Paul H.,M.D.
: [Owfs-developers] More on Hanging Problems I have done some testing with it, and have managed to reconnect the adapter even if it's unplugged manually. It's perhaps not a very nice solution, but it works at least. Right now it detects the 1-wire adapters as usual at startup. At the first 1-wire

Re: [Owfs-developers] More on Hanging Problems

2005-06-30 Thread Christian Magnusson
Have you succeeded to use the latest cvs-version yet? Just wondering... /Christian On Tue, 2005-06-28 at 16:21 +0200, Jan Kandziora wrote: Am Dienstag, 28. Juni 2005 13:54 schrieb Christian Magnusson: When I removed one iButton and really tried to simulate bad connection by moving it

Re: [Owfs-developers] More on Hanging Problems

2005-06-30 Thread Jan Kandziora
Am Montag, 27. Juni 2005 13:17 schrieb Christian Magnusson: Try the latest cvs again... I have fixed a missing usb_release_interface() and some other statistics from those errors. /Christian Sorry for the delay. I had my business partners here, which messed up things a lot. I've done some

Re: [Owfs-developers] More on Hanging Problems

2005-06-30 Thread Christian Magnusson
You are right... The kernel thinks the usb adapter is physically removed and then inserted again and get a new device number. This problem is very fatal and question is if such thing should be handled by owfs. It could of course be added to detect a new 1-wire adapter if it disappears, but

RE: [Owfs-developers] More on Hanging Problems

2005-06-29 Thread Christian Magnusson
PROTECTED] Behalf Of Christian Magnusson Sent: Tuesday, June 28, 2005 7:54 AM To: owfs-developers@lists.sourceforge.net Subject: RE: [Owfs-developers] More on Hanging Problems I feel pretty comfortable with the USB reconnection now. I started owhttpd and made a loop reading some files from

RE: [Owfs-developers] More on Hanging Problems

2005-06-28 Thread Christian Magnusson
] Behalf Of Christian Magnusson Sent: Monday, June 27, 2005 7:18 AM To: owfs-developers@lists.sourceforge.net Cc: [EMAIL PROTECTED] Subject: Re: [Owfs-developers] More on Hanging Problems Try the latest cvs again... I have fixed a missing usb_release_interface() and some other

RE: [Owfs-developers] More on Hanging Problems

2005-06-28 Thread Alfille, Paul H.,M.D.
Of Christian Magnusson Sent: Tuesday, June 28, 2005 7:54 AM To: owfs-developers@lists.sourceforge.net Subject: RE: [Owfs-developers] More on Hanging Problems I feel pretty comfortable with the USB reconnection now. I started owhttpd and made a loop reading some files from an iButton. owhttpd -p

RE: [Owfs-developers] More on Hanging Problems

2005-06-27 Thread Christian Magnusson
great that Jan has a setup where he can consistently trigger the errors. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christian Magnusson Sent: Sunday, June 26, 2005 4:31 PM To: owfs-developers Subject: Re: [Owfs-developers] More

RE: [Owfs-developers] More on Hanging Problems

2005-06-27 Thread Alfille, Paul H.,M.D.
, 2005 5:35 AM To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] More on Hanging Problems Am Montag, 27. Juni 2005 05:26 schrieb Gregg C Levine: Hello from Gregg C Levine Paul, explain this phrase in better detail please: In any case, it's great that Jan has a setup where he

RE: [Owfs-developers] More on Hanging Problems

2005-06-27 Thread Alfille, Paul H.,M.D.
Sent: Monday, June 27, 2005 6:20 AM To: owfs-developers@lists.sourceforge.net Subject: RE: [Owfs-developers] More on Hanging Problems I noticed there were a missing usb_release_interface() before trying to reconnect. That was probably why it didn't work as you wanted. It could never claim

RE: [Owfs-developers] More on Hanging Problems

2005-06-27 Thread Alfille, Paul H.,M.D.
] [mailto:[EMAIL PROTECTED] Behalf Of Christian Magnusson Sent: Monday, June 27, 2005 7:18 AM To: owfs-developers@lists.sourceforge.net Cc: [EMAIL PROTECTED] Subject: Re: [Owfs-developers] More on Hanging Problems Try the latest cvs again... I have fixed a missing usb_release_interface() and some

RE: [Owfs-developers] More on Hanging Problems

2005-06-27 Thread Christian Magnusson
offer some feedback on this. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Christian Magnusson Sent: Monday, June 27, 2005 7:18 AM To: owfs-developers@lists.sourceforge.net Cc: [EMAIL PROTECTED] Subject: Re: [Owfs-developers] More on Hanging

Re: [Owfs-developers] More on Hanging Problems

2005-06-25 Thread Jan Kandziora
Am Samstag, 25. Juni 2005 05:50 schrieb Paul Alfille: Your logs show mainly BUS_select_low_errors increasing. And DS... errors. But I think that's just a summary, am I right? Unfortunately there are 5 places in file ow_bus.c function BUS_select_low where that variable is incremented. I've

Re: [Owfs-developers] More on Hanging Problems

2005-06-25 Thread Paul Alfille
On Saturday 25 June 2005 04:32 am, Jan Kandziora wrote: Am Samstag, 25. Juni 2005 05:50 schrieb Paul Alfille: Your logs show mainly BUS_select_low_errors increasing. And DS... errors. But I think that's just a summary, am I right? Probably. Unfortunately there are 5 places in file ow_bus.c

Re: [Owfs-developers] More on Hanging Problems

2005-06-25 Thread Paul Alfille
On Saturday 25 June 2005 04:32 am, Jan Kandziora wrote: Am Samstag, 25. Juni 2005 05:50 schrieb Paul Alfille: Your logs show mainly BUS_select_low_errors increasing. And DS... errors. But I think that's just a summary, am I right? Unfortunately there are 5 places in file ow_bus.c function

Re: [Owfs-developers] More on Hanging Problems

2005-06-24 Thread Jan Kandziora
Am Dienstag, 21. Juni 2005 13:18 schrieb Alfille, Paul H.,M.D.: DS2480_reset_errors DS9097_reset_errors DS9490_reset_errors (and perhaps if DS2480_read_timeout is large I think...) if(DS2480_reset_errors || DS9097_reset_errors || DS9490_reset_errors) { COM_close(in); usleep(10);

Re: [Owfs-developers] More on Hanging Problems

2005-06-24 Thread Paul Alfille
Your logs show mainly BUS_select_low_errors increasing. Unfortunately there are 5 places in file ow_bus.c function BUS_select_low where that variable is incremented. I've added some (temporary) printf's to run the program in foreground and flip the garbalizer. Can you pull from the latest CVS

Re: [Owfs-developers] More on Hanging Problems

2005-06-21 Thread Jan Kandziora
Am Dienstag, 21. Juni 2005 04:46 schrieb Paul Alfille: On Monday 20 June 2005 04:38 pm, Jan Kandziora wrote: Dear Paul, I've investigated further on the problem I described last week (in the thread owtcl and writing data). It seems to be related to EMC: Nearly every time I switch on a

Re: [Owfs-developers] More on Hanging Problems

2005-06-21 Thread Jan Kandziora
Am Dienstag, 21. Juni 2005 08:43 schrieb Christian Magnusson: I have actually also noticed some of those problems too... I have one of my LCD-displays in my office very close to the lamp-switch, and sometimes owserver has hanged at the same time as I entered the room and switched on the lamp

RE: [Owfs-developers] More on Hanging Problems

2005-06-21 Thread Alfille, Paul H.,M.D.
DS2480_reset_errors DS9097_reset_errors DS9490_reset_errors (and perhaps if DS2480_read_timeout is large I think...) if(DS2480_reset_errors || DS9097_reset_errors || DS9490_reset_errors) { COM_close(in); usleep(10); COM_open(in); if ( DS2480_detect(in) ) { if ( DS9097_detect(in)

RE: [Owfs-developers] More on Hanging Problems

2005-06-21 Thread Alfille, Paul H.,M.D.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jan Kandziora Sent: Tuesday, June 21, 2005 4:12 AM To: owfs-developers@lists.sourceforge.net Subject: Re: [Owfs-developers] More on Hanging Problems Am Dienstag, 21. Juni 2005 04:46 schrieb Paul Alfille

Re: [Owfs-developers] More on Hanging Problems

2005-06-20 Thread Paul Alfille
On Monday 20 June 2005 04:38 pm, Jan Kandziora wrote: Dear Paul, I've investigated further on the problem I described last week (in the thread owtcl and writing data). It seems to be related to EMC: Nearly every time I switch on a large 240/24V AC transformer I need for my project, I get a