Re: [Owfs-developers] owfs "hanging" when accessing non-existing serial host adapter

2011-08-16 Thread Roberto Spadim
2011/8/16 Jan Kandziora > Am Dienstag, 16. August 2011, 14:11:49 schrieb Paul Alfille: > > Did you know that --usb=ALL and --i2c=ALL:ALL will do the scanning for > you? > > > Yes, but only in the back of my mind. That function isn't exactly what I > need. > I do this scanning once on application

Re: [Owfs-developers] errno in owcapi

2011-08-16 Thread Mark Richards
On 8/16/2011 19:17, ekgnkb3d wrote: Hi all, after some tests with the owcapi I found out, that for example the OW_get() returns -1 with an errno of "2" in the following cases: - invalid directory path, like "uncaxxched/" - wrong CRC in unique-id of the device - device is not reachable did I made

[Owfs-developers] errno in owcapi

2011-08-16 Thread ekgnkb3d
Hi all, after some tests with the owcapi I found out, that for example the OW_get() returns -1 with an errno of "2" in the following cases: - invalid directory path, like "uncaxxched/" - wrong CRC in unique-id of the device - device is not reachable did I made something wrong, or is there another

Re: [Owfs-developers] owfs "hanging" when accessing non-existing serial host adapter

2011-08-16 Thread Mark Richards
On 8/16/2011 17:42, Jan Kandziora wrote: If there was another possiblity to find out which host adapters are in use, I would find that useful, too. Something like "bus.2/interface/settings/serial/device" returning "ttyS0" or major/minor Maybe this will help: cat /mnt/1-wire/bus.0/bus.0/interfac

Re: [Owfs-developers] owfs "hanging" when accessing non-existing serial host adapter

2011-08-16 Thread Jan Kandziora
Am Dienstag, 16. August 2011, 14:11:49 schrieb Paul Alfille: > Did you know that --usb=ALL and --i2c=ALL:ALL will do the scanning for you? > Yes, but only in the back of my mind. That function isn't exactly what I need. I do this scanning once on application start. Then I have a list of host adap

Re: [Owfs-developers] owfs "hanging" when accessing non-existing serial host adapter

2011-08-16 Thread Roberto Spadim
humm this could be nice :) 2011/8/16 Paul Alfille : > Did you know that --usb=ALL and --i2c=ALL:ALL will do the scanning for you? > I think the serial hasn't actually hung, it's just a very long sequence > (minutes). The code certainly wasn't tuned for efficiently finding bad port, > but rather fi

Re: [Owfs-developers] owfs "hanging" when accessing non-existing serial host adapter

2011-08-16 Thread Paul Alfille
Did you know that --usb=ALL and --i2c=ALL:ALL will do the scanning for you? I think the serial hasn't actually hung, it's just a very long sequence (minutes). The code certainly wasn't tuned for efficiently finding bad port, but rather finding the right settings for configuration problems. So ther