Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-17 Thread Andrew Brownsword
Yeah, coming at this cold the debug info isn’t especially useful. For me it’s moot now though — I just ordered a second enet2 box and that will give me up to 44 sensors via their nice, simple, compact and fast http query format. Since my software already handles this quite well, owfs is no

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-17 Thread Johan Ström
(cc back to list) I've never used this ENET2 master, so I don't really know what to expect from the communication, so hard to say what's happning.. Hopefully someone else on the list have used it and might shed some light on it. One thing which would be useful to add to owfs debug output is

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-17 Thread Johan Ström
On 17/11/17 16:10, Andrew Brownsword wrote: Decided to try owcapi through owserver with my application (I had opted against owserver because it seems quite flakey at startup when the system reboots), just to see how it works.  Unfortunately it appears to discover even fewer of the sensors than

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-17 Thread Andrew Brownsword
Decided to try owcapi through owserver with my application (I had opted against owserver because it seems quite flakey at startup when the system reboots), just to see how it works. Unfortunately it appears to discover even fewer of the sensors than the OW-SERVER-ENET2’s built-in code (varies

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-16 Thread Andrew Brownsword
Further follow up on this issue — the COM_write_once failure seems spurious as it only happens while stepping in the debugger. The later failure, however, happens debugging or not. The select() call in tcp_read() is always failing with an invalid argument, which looks like the file_descriptor

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-10 Thread Andrew Brownsword
With the LibStart() call inserted (or using OW_init without the program name as a first argument), I can now step into the connection process. Unfortunately it fails in COM_write_once during a write() call. It is trying to write 50 bytes, and the write of the first pipe causes a SIGPIPE

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-10 Thread Andrew Brownsword
I noticed that OW_init_args() doesn’t appear to call LibStart(NULL), while OW_init() does. Is this by design? By inserting the LibStart(NULL) call things proceed much further, and although it is still having issues communicating with my enet device, at least now it is trying! > On Nov 10,

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-10 Thread Andrew Brownsword
Thanks Justin and Jan, your replies help enormously. I can now step into the libowcapi code, at least, and therefore can make forward progress. Might I suggest that the libowcapi man page(s) be supplemented to contain this information as well? I couldn’t find it. The first thing I

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-08 Thread Justin Brewer
Sorry for the multiple replies. I thought my messages weren't going out, but really there's just a 1h+ delay... On 11/08/2017 06:37 PM, Justin Brewer wrote: ...snip... -- Check out the vibrant tech community on one of

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-08 Thread Justin Brewer
On Wed, Nov 08, 2017 at 01:51:49PM -0800, Andrew Brownsword wrote: > Nothing but crickets — is anyone out there? > > I’ve been poking at the code to try and figure out how to enable my debugger > to step into the libowcapi/libow code, but the make process is obscure enough > that some advice

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-08 Thread Justin Brewer
I have been working with libowcapi recently, and have seen similair symptoms. There's a race condition in libow that, if it doesn't outright crash, causes problems with directory listings. I have a patch for this issue here:

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-08 Thread Jan Kandziora
Am 08.11.2017 um 22:51 schrieb Andrew Brownsword: > Nothing but crickets — is anyone out there? > > I’ve been poking at the code to try and figure out how to enable my > debugger to step into the libowcapi/libow code, but the make process > is obscure enough that some advice would be welcome... >

Re: [Owfs-developers] owserver and owcapi behave differently with —enet device

2017-11-08 Thread Andrew Brownsword
Nothing but crickets — is anyone out there? I’ve been poking at the code to try and figure out how to enable my debugger to step into the libowcapi/libow code, but the make process is obscure enough that some advice would be welcome... Sent from my iPhone > On Oct 31, 2017, at 3:11 PM,

[Owfs-developers] owserver and owcapi behave differently with —enet device

2017-10-31 Thread Andrew Brownsword
Hello, I have an EDS ETH-OWSERVER v2, and I am trying to talk to it using the owcapi library. The init with arts function returns success but when I try to OW_get, I don’t see any buses or sensors (just the meta directories). If I run owserver, it sees the enet device and it’s 3 buses and 22