Menu

#19 New HB Sensors

v1.0_(example)
open
nobody
None
1
2015-05-11
2014-10-10
Anonymous
No

It seems my USB adapter causes OWFS to crash randomly. It seems to work for a while and then cause a crash.


OWFS[2625]: DEFAULT: ow_ds9490.c:(250) Unclear what <> means in USB specification, will use first adapter.
OWFS[2625]: DEFAULT: ow_usb_msg.c:(295) Opened USB DS9490 bus master at 1:7.
OWFS[2625]: DEFAULT: ow_usb_cycle.c:(191) Set DS9490 1:7 unique id to 81 47 D5 30 00 00 00 9E


I also am trying out the new barometer and the pressure does not seem to be reading properly. Many of the identifiers below show -1 or something similar.


/EF.CB4C20150000/barometer/: altitude,config,location,polling_available,polling_frequency,pressure,pressure_altitude,reboot,reset,temperature
/EF.CB4C20150000/family: EF
/EF.CB4C20150000/locator: FFFFFFFFFFFFFFFF
/EF.CB4C20150000/type: HobbyBoards_EF
/EF.CB4C20150000/crc8: 5D
/EF.CB4C20150000/version: 1.0
/EF.CB4C20150000/r_id: 000015204CCB
/EF.CB4C20150000/address: EFCB4C201500005D
/EF.CB4C20150000/r_address: 5D000015204CCBEF
/EF.CB4C20150000/type_number: 6
/EF.CB4C20150000/r_locator: FFFFFFFFFFFFFFFF
/EF.CB4C20150000/id: CB4C20150000


Related

Support Requests (dead): #19

Discussion

  • Anonymous

    Anonymous - 2014-10-10

    Sorry this is 2.9p7

     
  • Paul Alfille

    Paul Alfille - 2014-10-11

    Let me test and find the problem. The crash may be due to a new aggressive mutext testing that was put in.

     
    • Paul Alfille

      Paul Alfille - 2014-10-11

      The problem with owfs is a newly discovered (and fixed) bug. It'll be part
      of 2.9p8 soon.

      One of the patches incorporated caused an (intentional) crash if a mutex
      was freed twice. It did discover a longstanding bug in owfs (filesystem)
      but was a little rude to push out in a release.

      As for the Hobbybaords barometer, I supported it from the datasheet, not
      the actual device, so feedback would be very welcome.

      In the snippet of debug output you show, the locator and r_locator results
      is expected.
      I'm confused by:
      /EF.CB4C20150000/barometer/: altitude,config,location,
      polling_available,polling_frequency,pressure,pressure_altitude,reboot,reset,
      temperature

      That should be a subdirectory with data for those properties. Were the
      values all -1?

      Paul Alfille

      On Sat, Oct 11, 2014 at 8:11 AM, Paul Alfille alfille@users.sf.net wrote:

      Let me test and find the problem. The crash may be due to a new aggressive
      mutext testing that was put in.


      Status: open
      Group: v1.0_(example)
      Created: Fri Oct 10, 2014 08:07 PM UTC by Anonymous
      Last Updated: Fri Oct 10, 2014 08:07 PM UTC
      Owner: nobody

      It seems my USB adapter causes OWFS to crash randomly. It seems to work
      for a while and then cause a crash.


      OWFS[2625]: DEFAULT: ow_ds9490.c:(250) Unclear what <> means in USB
      specification, will use first adapter.
      OWFS[2625]: DEFAULT: ow_usb_msg.c:(295) Opened USB DS9490 bus master at
      1:7.
      OWFS[2625]: DEFAULT: ow_usb_cycle.c:(191) Set DS9490 1:7 unique id to 81
      47 D5 30 00 00 00 9E


      I also am trying out the new barometer and the pressure does not seem to
      be reading properly. Many of the identifiers below show -1 or something
      similar.


      /EF.CB4C20150000/barometer/:
      altitude,config,location,polling_available,polling_frequency,pressure,pressure_altitude,reboot,reset,temperature
      /EF.CB4C20150000/family: EF
      /EF.CB4C20150000/locator: FFFFFFFFFFFFFFFF
      /EF.CB4C20150000/type: HobbyBoards_EF
      /EF.CB4C20150000/crc8: 5D
      /EF.CB4C20150000/version: 1.0
      /EF.CB4C20150000/r_id: 000015204CCB
      /EF.CB4C20150000/address: EFCB4C201500005D
      /EF.CB4C20150000/r_address: 5D000015204CCBEF
      /EF.CB4C20150000/type_number: 6
      /EF.CB4C20150000/r_locator: FFFFFFFFFFFFFFFF
      /EF.CB4C20150000/id: CB4C20150000



      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/owfs/support-requests/19/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests (dead): #19

  • Anonymous

    Anonymous - 2014-10-13

    Paul,

    When I go in an cat /altitude for example I get back:

    i,000000,000001,rw,000012,v,

    I don't think this is what I should expect.

     
  • Paul Alfille

    Paul Alfille - 2014-10-14

    That looks like the "structure" directory entry -- is shows that altitude is an integer, scalar, read-write, volatile, etc.

    Are you sure you were reading /EF.1234123412344/barometer/altitude and not /structure/EF/barometer/altutude ? (or whatever your device number is?

    Thanks,

    Paul

     
  • Anonymous

    Anonymous - 2014-10-14

    Paul,

    owfs is really erratic, I can't reliably access the devices. I have to reboot to get the devices to show in the root of the mount point. Rebooted and logged into the new barometer and trying to list, it gives me the following error:

    root@silver:/mnt/1wire/EF.CB4C20150000# ls
    ls: reading directory .: File too large

    At the same time I can use Python to list the following:

    _usePath: /EF.CB4C20150000
    _type: HobbyBoards_EF
    _path: /EF.CB4C20150000
    _useCache: True
    /EF.CB4C20150000/barometer/: altitude,config,location,polling_available,polling_frequency,pressure,pressure_altitude,reboot,reset,temperature
    /EF.CB4C20150000/family: EF
    /EF.CB4C20150000/locator: FFFFFFFFFFFFFFFF
    /EF.CB4C20150000/type: HobbyBoards_EF
    /EF.CB4C20150000/crc8: 5D
    /EF.CB4C20150000/version: 1.0
    /EF.CB4C20150000/r_id: 000015204CCB
    /EF.CB4C20150000/address: EFCB4C201500005D
    /EF.CB4C20150000/r_address: 5D000015204CCBEF
    /EF.CB4C20150000/type_number: 6
    /EF.CB4C20150000/r_locator: FFFFFFFFFFFFFFFF
    /EF.CB4C20150000/id: CB4C20150000


    As I write this and go back to the mount point all I have is the following:

    root@silver:/mnt/1wire# ls
    bus.0 settings statistics structure system uncached

    All I see in the logs is the USB issue (which you commented above), does this have anything to do with this issue?

    Oct 13 23:48:28 silver OWFS[2206]: DEFAULT: ow_reconnect.c:(70) Failed to reconnect DS9490 bus master!

     
  • Anonymous

    Anonymous - 2014-10-15

    I have been messing with this sensor more and realize that owfs process frequently can't access the /barometer directory:


    silver:/mnt/1wire/EF.CB4C20150000# ls
    address alias crc8 family id locator r_address r_id r_locator type type_number version


    I can see it exists via owserver and python:


    /EF.CB4C20150000/barometer/: altitude,config,location,polling_available,polling_frequency,pressure,pressure_altitude,reboot,reset,temperature
    /EF.CB4C20150000/family: EF
    /EF.CB4C20150000/locator: FFFFFFFFFFFFFFFF
    /EF.CB4C20150000/type: HobbyBoards_EF
    /EF.CB4C20150000/crc8: 5D
    /EF.CB4C20150000/version: 1.0
    /EF.CB4C20150000/r_id: 000015204CCB
    /EF.CB4C20150000/address: EFCB4C201500005D
    /EF.CB4C20150000/r_address: 5D000015204CCBEF
    /EF.CB4C20150000/type_number: 6
    /EF.CB4C20150000/r_locator: FFFFFFFFFFFFFFFF
    /EF.CB4C20150000/id: CB4C20150000


    I did run debug on owfs and I am able to enter the barometer directory even though it does not show up in owfs.


    unique: 51, opcode: GETATTR (3), nodeid: 1, insize: 56, pid: 3447
    getattr /
    CALL: ow_fstat.c:(21) path=/
    CALL: ow_parsename.c:(102) path=[/]
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 begin
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 done
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 begin
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 done
    CALL: ow_fstat.c:(38) ATTRIBUTES path=/
    DEBUG: ow_fstat.c:(57) pthread_mutex_lock B6F1793C begin
    DEBUG: ow_fstat.c:(57) pthread_mutex_lock B6F1793C done
    DEBUG: ow_fstat.c:(59) pthread_mutex_unlock B6F1793C begin
    DEBUG: ow_fstat.c:(59) pthread_mutex_unlock B6F1793C done
    DEBUG: ow_parsename.c:(61) /
    unique: 51, success, outsize: 120
    unique: 52, opcode: LOOKUP (1), nodeid: 1, insize: 56, pid: 3447
    LOOKUP /EF.988020150000
    getattr /EF.988020150000
    CALL: ow_fstat.c:(21) path=/EF.988020150000
    CALL: ow_parsename.c:(102) path=[/EF.988020150000]
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 begin
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 done
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 begin
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 done
    DEBUG: ow_cache.c:(912) Looking for device EF 98 80 20 15 00 00 29
    DEBUG: ow_cache.c:(1070) Search in cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(1086) Value found in cache. Remaining life: 108 seconds.
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_presence.c:(76) Found device on bus 0
    CALL: ow_fstat.c:(38) ATTRIBUTES path=/EF.988020150000
    DEBUG: ow_fstat.c:(71) pthread_mutex_lock B6F1793C begin
    DEBUG: ow_fstat.c:(71) pthread_mutex_lock B6F1793C done
    DEBUG: ow_fstat.c:(73) pthread_mutex_unlock B6F1793C begin
    DEBUG: ow_fstat.c:(73) pthread_mutex_unlock B6F1793C done
    DEBUG: ow_parsename.c:(61) /EF.988020150000
    NODEID: 2
    unique: 52, success, outsize: 144
    unique: 53, opcode: LOOKUP (1), nodeid: 2, insize: 50, pid: 3447
    LOOKUP /EF.988020150000/barometer
    getattr /EF.988020150000/barometer
    CALL: ow_fstat.c:(21) path=/EF.988020150000/barometer
    CALL: ow_parsename.c:(102) path=[/EF.988020150000/barometer]
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 begin
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 done
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 begin
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 done
    DEBUG: ow_cache.c:(912) Looking for device EF 98 80 20 15 00 00 29
    DEBUG: ow_cache.c:(1070) Search in cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(1086) Value found in cache. Remaining life: 108 seconds.
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_presence.c:(76) Found device on bus 0
    CALL: ow_fstat.c:(38) ATTRIBUTES path=/EF.988020150000/barometer
    DEBUG: ow_fstat.c:(71) pthread_mutex_lock B6F1793C begin
    DEBUG: ow_fstat.c:(71) pthread_mutex_lock B6F1793C done
    DEBUG: ow_fstat.c:(73) pthread_mutex_unlock B6F1793C begin
    DEBUG: ow_fstat.c:(73) pthread_mutex_unlock B6F1793C done
    DEBUG: ow_parsename.c:(61) /EF.988020150000/barometer
    NODEID: 17
    unique: 53, success, outsize: 144


    When I cat altitude owfs responds with -1


    unique: 61, opcode: LOOKUP (1), nodeid: 17, insize: 49, pid: 3483
    LOOKUP /EF.988020150000/barometer/altitude
    getattr /EF.988020150000/barometer/altitude
    CALL: ow_fstat.c:(21) path=/EF.988020150000/barometer/altitude
    CALL: ow_parsename.c:(102) path=[/EF.988020150000/barometer/altitude]
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 begin
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 done
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 begin
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 done
    DEBUG: ow_cache.c:(912) Looking for device EF 98 80 20 15 00 00 29
    DEBUG: ow_cache.c:(1070) Search in cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(1102) Value found in cache, but expired by 41 seconds.
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C done
    DETAIL: ow_presence.c:(81) Checking presence of /EF.988020150000/barometer/altitude
    CALL: ow_server_message.c:(112) SERVER(0) path=/EF.988020150000/barometer/altitude
    DEBUG: ow_buslock.c:(54) pthread_mutex_lock 8632BC begin
    DEBUG: ow_buslock.c:(54) pthread_mutex_lock 8632BC done
    DEBUG: ow_buslock.c:(56) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_buslock.c:(56) pthread_mutex_lock B6F1790C done
    DEBUG: ow_buslock.c:(56) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_buslock.c:(56) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_buslock.c:(76) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_buslock.c:(76) pthread_mutex_lock B6F1790C done
    DEBUG: ow_buslock.c:(79) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_buslock.c:(79) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_buslock.c:(81) pthread_mutex_unlock 8632BC begin
    DEBUG: ow_buslock.c:(81) pthread_mutex_unlock 8632BC done
    DEBUG: ow_server_message.c:(743) version=0 payload=36 size=0 type=6 SG=10144 offset=0
    DEBUG: ow_tcp_read.c:(63) attempt 24 bytes Time: 2.000000 seconds
    DEBUG: ow_tcp_read.c:(113) read: 24 - 0 = 24
    DEBUG: ow_tcp_read.c:(63) attempt 8 bytes Time: 2.000000 seconds
    DEBUG: ow_tcp_read.c:(113) read: 8 - 0 = 8
    DEBUG: ow_presence.c:(269) Presence of EF 98 80 20 15 00 00 29 FOUND on bus localhost:4304
    DEBUG: ow_cache.c:(546) Adding device location EF 98 80 20 15 00 00 29 bus=0
    DEBUG: ow_cache.c:(635) Add to cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(667) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(667) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(670) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(670) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_cache.c:(336) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(336) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(336) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(336) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_cache.c:(546) Adding device location EF 98 80 20 15 00 00 29 bus=0
    DEBUG: ow_cache.c:(635) Add to cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(667) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(667) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(670) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(670) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_cache.c:(336) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(336) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(336) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(336) pthread_mutex_unlock B6F1790C done
    CALL: ow_fstat.c:(38) ATTRIBUTES path=/EF.988020150000/barometer/altitude
    DEBUG: ow_parsename.c:(61) /EF.988020150000/barometer/altitude
    NODEID: 18
    unique: 61, success, outsize: 144
    unique: 62, opcode: OPEN (14), nodeid: 18, insize: 48, pid: 3483
    open flags: 0x20000 /EF.988020150000/barometer/altitude
    CALL: owfs_callback.c:(127) OPEN path=/EF.988020150000/barometer/altitude
    open[0] flags: 0x20000 /EF.988020150000/barometer/altitude
    unique: 62, success, outsize: 32
    unique: 63, opcode: READ (15), nodeid: 18, insize: 80, pid: 3483
    read[0] 32768 bytes from 0 flags: 0x20000
    DEBUG: ow_parseobject.c:(163) /EF.988020150000/barometer/altitude
    CALL: ow_parsename.c:(102) path=[/EF.988020150000/barometer/altitude]
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 begin
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 done
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 begin
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 done
    DEBUG: ow_cache.c:(912) Looking for device EF 98 80 20 15 00 00 29
    DEBUG: ow_cache.c:(1070) Search in cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(1086) Value found in cache. Remaining life: 120 seconds.
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_presence.c:(76) Found device on bus 0
    DEBUG: ow_read.c:(77) /EF.988020150000/barometer/altitude
    DEBUG: ow_read.c:(78) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(78) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(81) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(81) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(84) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(84) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(84) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(84) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(197) /EF.988020150000/barometer/altitude
    DEBUG: ow_read.c:(198) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(198) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(201) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(201) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(231) About to read </EF.988020150000> extension=0 size=32768 offset=0
    DEBUG: ow_read.c:(235) pid=-1246219152 call ServerRead
    CALL: ow_server_message.c:(77) SERVER(0) path=/EF.988020150000/barometer/altitude
    DEBUG: ow_buslock.c:(54) pthread_mutex_lock 8632BC begin
    DEBUG: ow_buslock.c:(54) pthread_mutex_lock 8632BC done
    DEBUG: ow_buslock.c:(56) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_buslock.c:(56) pthread_mutex_lock B6F1790C done
    DEBUG: ow_buslock.c:(56) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_buslock.c:(56) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_buslock.c:(76) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_buslock.c:(76) pthread_mutex_lock B6F1790C done
    DEBUG: ow_buslock.c:(79) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_buslock.c:(79) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_buslock.c:(81) pthread_mutex_unlock 8632BC begin
    DEBUG: ow_buslock.c:(81) pthread_mutex_unlock 8632BC done
    DEBUG: ow_server_message.c:(743) version=0 payload=36 size=32768 type=2 SG=10144 offset=0
    DEBUG: ow_tcp_read.c:(63) attempt 24 bytes Time: 2.000000 seconds
    DEBUG: ow_tcp_read.c:(113) read: 24 - 0 = 24
    DEBUG: ow_tcp_read.c:(63) attempt 2 bytes Time: 2.000000 seconds
    DEBUG: ow_tcp_read.c:(113) read: 2 - 0 = 2
    DEBUG: ow_read.c:(239) back from server
    DEBUG: ow_read.c:(256) After read is performed (bytes or error 2)
    OWQ OneWireQuery structure of /EF.988020150000/barometer/altitude
    OneWireQuery size=32768 offset=0, extension=0
    Byte buffer OneWireQuery buffer, length=32768
    --000: 2D 31 D2 B6 30 A6 D2 B6 D8 52 87 00 D8 52 87 00
    --016: 04 00 00 00 04 00 00 00 72 5F 69 64 00 00 00 00
    --032: FF FF FF FF 00 00 00 00 50 01 00 00 00 00 00 00
    --048: 09 00 00 00 04 00 00 00 72 5F 6C 6F 63 61 74 6F
    --063: == abridged ==
    <-1..0....R...R..........r_id............P...............r_locato>
    Cleanup = 0002 OneWireQuery I=0 U=0 F=0 Y=0 D=Wed Dec 31 19:00:00 1969

    --- OneWireQuery done
    DEBUG: ow_read.c:(210) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(210) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(217) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(217) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(219) /EF.988020150000/barometer/altitude returns 2
    DEBUG: ow_read.c:(88) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(88) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(95) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(95) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(96) /EF.988020150000/barometer/altitude return 2
    DEBUG: ow_parsename.c:(61) /EF.988020150000/barometer/altitude
    read[0] 2 bytes from 0
    unique: 63, success, outsize: 18
    unique: 64, opcode: READ (15), nodeid: 18, insize: 80, pid: 3483
    read[0] 32768 bytes from 2 flags: 0x20000
    DEBUG: ow_parseobject.c:(163) /EF.988020150000/barometer/altitude
    CALL: ow_parsename.c:(102) path=[/EF.988020150000/barometer/altitude]
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 begin
    DEBUG: ow_parsename.c:(249) pthread_mutex_lock B6F17924 done
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 begin
    DEBUG: ow_parsename.c:(251) pthread_mutex_unlock B6F17924 done
    DEBUG: ow_cache.c:(912) Looking for device EF 98 80 20 15 00 00 29
    DEBUG: ow_cache.c:(1070) Search in cache sn EF 98 80 20 15 00 00 29 pointer=0xb6f178ac index=0 size=4
    DEBUG: ow_cache.c:(1086) Value found in cache. Remaining life: 120 seconds.
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_cache.c:(722) pthread_mutex_lock B6F1790C done
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_cache.c:(735) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_presence.c:(76) Found device on bus 0
    DEBUG: ow_read.c:(77) /EF.988020150000/barometer/altitude
    DEBUG: ow_read.c:(78) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(78) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(81) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(81) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(84) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(84) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(84) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(84) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(197) /EF.988020150000/barometer/altitude
    DEBUG: ow_read.c:(198) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(198) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(201) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(201) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(231) About to read </EF.988020150000> extension=0 size=32768 offset=2
    DEBUG: ow_read.c:(235) pid=-1263274896 call ServerRead
    CALL: ow_server_message.c:(77) SERVER(0) path=/EF.988020150000/barometer/altitude
    DEBUG: ow_buslock.c:(54) pthread_mutex_lock 8632BC begin
    DEBUG: ow_buslock.c:(54) pthread_mutex_lock 8632BC done
    DEBUG: ow_buslock.c:(56) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_buslock.c:(56) pthread_mutex_lock B6F1790C done
    DEBUG: ow_buslock.c:(56) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_buslock.c:(56) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_buslock.c:(76) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_buslock.c:(76) pthread_mutex_lock B6F1790C done
    DEBUG: ow_buslock.c:(79) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_buslock.c:(79) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_buslock.c:(81) pthread_mutex_unlock 8632BC begin
    DEBUG: ow_buslock.c:(81) pthread_mutex_unlock 8632BC done
    DEBUG: ow_server_message.c:(743) version=0 payload=36 size=32768 type=2 SG=10144 offset=2
    DEBUG: ow_tcp_read.c:(63) attempt 24 bytes Time: 2.000000 seconds
    DEBUG: ow_tcp_read.c:(113) read: 24 - 0 = 24
    DEBUG: ow_read.c:(239) back from server
    DEBUG: ow_read.c:(256) After read is performed (bytes or error 0)
    OWQ OneWireQuery structure of /EF.988020150000/barometer/altitude
    OneWireQuery size=32768 offset=2, extension=0
    Byte buffer OneWireQuery buffer, length=32768
    --000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    --016: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    --032: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    --048: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    --063: == abridged ==
    <................................................................>
    Cleanup = 0002 OneWireQuery I=0 U=0 F=0 Y=0 D=Wed Dec 31 19:00:00 1969

    --- OneWireQuery done
    DEBUG: ow_read.c:(210) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(210) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(217) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(217) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(219) /EF.988020150000/barometer/altitude returns 0
    DEBUG: ow_read.c:(88) pthread_mutex_lock B6F1790C begin
    DEBUG: ow_read.c:(88) pthread_mutex_lock B6F1790C done
    DEBUG: ow_read.c:(95) pthread_mutex_unlock B6F1790C begin
    DEBUG: ow_read.c:(95) pthread_mutex_unlock B6F1790C done
    DEBUG: ow_read.c:(96) /EF.988020150000/barometer/altitude return 0
    DEBUG: ow_parsename.c:(61) /EF.988020150000/barometer/altitude
    read[0] 0 bytes from 2
    unique: 64, success, outsize: 16
    unique: 65, opcode: RELEASE (18), nodeid: 18, insize: 64, pid: 0
    release[0] flags: 0x20000
    CALL: owfs_callback.c:(135) RELEASE path=/EF.988020150000/barometer/altitude
    unique: 65, success, outsize: 16
    ****

    Here is the results from each:

    altitude -1
    config 0
    location ?????????????????????
    polling_available 255
    polling_frequency 255
    pressure -2410
    pressure_altitude -1
    temperature 31.82

    The current pressure is 29.90 and its 71 so I don't see anything matching up.

     
  • David

    David - 2015-05-11

    Hi, I just wondered if there been any resolution on this new HB barometer with owfs/owserver?
    I have recently bought one of these barometers as the old one died.
    I am currently using OWW (written in C by Dr Simon Melhuish) on Ubuntu Server 14.10 but wish to try and get the weather station running with owserver and python.
    This is the output I seem to be getting with owhttpd:

    address EF307520150000A0
    alias
    crc8 A0
    family EF
    id 307520150000
    locator FFFFFFFFFFFFFFFF
    r_address A0000015207530EF
    r_id 000015207530
    r_locator FFFFFFFFFFFFFFFF
    type HobbyBoards_EF
    type_number 6
    version 01.0A


    Also I cannot seem to get any directory structure of the devices in /mnt/1wire either even though the owfs.conf file appears to be correct:-

    # Sample configuration file for the OWFS suite for Debian GNU/Linux.
    #
    #
    # This is the main OWFS configuration file. You should read the
    # owfs.conf(5) manual page in order to understand the options listed
    # here.
    
    ######################## SOURCES ########################
    #
    # With this setup, any client (but owserver) uses owserver on the
    # local machine...
    ! server: server = localhost:4304
    #
    # ...and owserver uses the real hardware, by default fake devices
    # This part must be changed on real installation
    # server: FAKE = DS18S20,DS2405
    #
    # USB device: DS9490
    #server: usb = all
    #
    # Serial port: DS9097
    server: device = /dev/ttyS0
    #
    # owserver tcp address
    server: server = 192.168.1.165:3131
    #
    # random simulated device
    #server: FAKE = DS18S20,DS2405
    #
    ######################### OWFS ##########################
    #
    mountpoint = /mnt/1wire
    allow_other
    #
    ####################### OWHTTPD #########################
    
    http: port = 2121
    
    ####################### OWFTPD ##########################
    
    ftp: port = 2120
    
    ####################### OWSERVER ########################
    
    server: port = localhost:4304
    

    I would be grateful for any assistance and if any assistance is required for this barometer, I will be happy to oblige,

    David

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.