Hi Paul, Do you know if the external sensor support is working? I am trying to get it to work but I get this when I try to list the contents of the directory for an external sensor, or when I try to read the contents of one of the default properties:
$ ls -l /owfs2/front_greenlawn/ ls: cannot access /owfs2/front_greenlawn/family: No such file or directory ls: cannot access /owfs2/front_greenlawn/temperature: No such file or directory ls: cannot access /owfs2/front_greenlawn/type: No such file or directory total 0 d????????? ? ? ? ? ? family d????????? ? ? ? ? ? temperature d????????? ? ? ? ? ? type $ cat /owfs2/front_greenlawn/type cat: /owfs2/front_greenlawn/type: No such file or directory My configuration file: -------------------------------------- external # SCRIPT: <property>, <family>, <type>, <length>, <persistance>, [<read func>], [<write func>], [<property data>], [<extra>] SCRIPT: temperature, rtd_family, t, 1, v, /tmp/rtd_read.pl, , , # SENSOR: <unique name>, <family>, [<description>], [<data>] SENSOR: front_greenlawn, rtd_family, "Front GreenLawn Centurion", "/dev/ttyUSB0" -------------------------------------- Debug output from owserver is below. Is there anything else I should be doing to get this to work? I've read http://owfs.org/index.php?page=external-sensor-design and I'm wondering what I might be missing, or what the status of this code is. Cheers, Eloy Paris.- ------------------------------------------- Debug output from owserver: DEBUG: ow_tcp_read.c:(64) attempt 24 bytes Time: 10.000000 seconds DEBUG: ow_tcp_read.c:(114) read: 24 - 0 = 24 DEBUG: from_client.c:(67) FromClient payload=17 size=0 type=6 sg=0x104 offset=0 DEBUG: from_client.c:(75) FromClient (no servermessage) payload=17 size=0 type=6 controlflags=0x104 offset=0 DEBUG: ow_tcp_read.c:(64) attempt 17 bytes Time: 10.000000 seconds DEBUG: ow_tcp_read.c:(114) read: 17 - 0 = 17 DEBUG: handler.c:(73) Persistence requested DEBUG: handler.c:(153) START handler /front_greenlawn CALL: data.c:(104) DataHandler: parse path=/front_greenlawn DEBUG: ow_parseobject.c:(164) /front_greenlawn CALL: ow_parsename.c:(98) path=[/front_greenlawn] CALL: data.c:(132) Presence message for /front_greenlawn DEBUG: ow_parsename.c:(62) /front_greenlawn DEBUG: data.c:(194) DataHandler: FS_ParsedName_destroy done DEBUG: data.c:(208) DataHandler: cm.ret=0 DEBUG: to_client.c:(67) payload=8 size=0, ret=0, sg=0x104 offset=0 DEBUG: data.c:(227) Finished with client request DEBUG: handler.c:(132) OWSERVER tcp connection persistence -- reusing connection now. DEBUG: ow_tcp_read.c:(64) attempt 24 bytes Time: 10.000000 seconds DEBUG: ow_tcp_read.c:(114) read: 24 - 24 = 0 DEBUG: handler.c:(135) OWSERVER handler done DEBUG: ow_net_server.c:(238) Normal exit. DEBUG: ow_tcp_read.c:(64) attempt 24 bytes Time: 10.000000 seconds DEBUG: ow_tcp_read.c:(114) read: 24 - 0 = 24 DEBUG: from_client.c:(67) FromClient payload=17 size=0 type=4 sg=0x104 offset=0 DEBUG: from_client.c:(75) FromClient (no servermessage) payload=17 size=0 type=4 controlflags=0x104 offset=0 DEBUG: ow_tcp_read.c:(64) attempt 17 bytes Time: 10.000000 seconds DEBUG: ow_tcp_read.c:(114) read: 17 - 0 = 17 DEBUG: handler.c:(73) Persistence requested DEBUG: handler.c:(153) START handler /front_greenlawn CALL: data.c:(104) DataHandler: parse path=/front_greenlawn DEBUG: ow_parseobject.c:(164) /front_greenlawn CALL: ow_parsename.c:(98) path=[/front_greenlawn] CALL: data.c:(160) Directory message (one at a time) CALL: dir.c:(74) DirHandler: pn->path=/front_greenlawn DEBUG: dir.c:(79) OWSERVER SpecifiedBus=0 path=/front_greenlawn DEBUG: ow_dir.c:(76) path=/front_greenlawn CALL: ow_dir.c:(100) path=/front_greenlawn CALL: ow_parsename.c:(98) path=[/front_greenlawn/family] DEBUG: dir.c:(57) owserver Calling dir=/front_greenlawn/family DEBUG: to_client.c:(67) payload=24 size=23, ret=0, sg=0x104 offset=0 DEBUG: ow_parsename.c:(62) /front_greenlawn/family CALL: ow_parsename.c:(98) path=[/front_greenlawn/temperature] DEBUG: dir.c:(57) owserver Calling dir=/front_greenlawn/temperature DEBUG: to_client.c:(67) payload=29 size=28, ret=0, sg=0x104 offset=0 DEBUG: ow_parsename.c:(62) /front_greenlawn/temperature CALL: ow_parsename.c:(98) path=[/front_greenlawn/type] DEBUG: dir.c:(57) owserver Calling dir=/front_greenlawn/type DEBUG: to_client.c:(67) payload=22 size=21, ret=0, sg=0x104 offset=0 DEBUG: ow_parsename.c:(62) /front_greenlawn/type DEBUG: ow_dir.c:(195) ret=0 DEBUG: ow_parsename.c:(62) /front_greenlawn DEBUG: data.c:(194) DataHandler: FS_ParsedName_destroy done DEBUG: data.c:(208) DataHandler: cm.ret=0 DEBUG: to_client.c:(67) payload=0 size=0, ret=0, sg=0x104 offset=0 DEBUG: data.c:(227) Finished with client request DEBUG: handler.c:(132) OWSERVER tcp connection persistence -- reusing connection now. DEBUG: ow_tcp_read.c:(64) attempt 24 bytes Time: 10.000000 seconds DEBUG: ow_tcp_read.c:(114) read: 24 - 24 = 0 DEBUG: handler.c:(135) OWSERVER handler done DEBUG: ow_net_server.c:(238) Normal exit. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
