This is my output when I start owfs and then list the files (from another 
terminal) in the 1wire directory

 # ./owfs --d /dev/ttyS1 --foreground --error_level=9 -m ../1wire
CONNECT: owfs.c:main(123) fuse mount point: ../1wire
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[]
   DEBUG: owlib.c:SetupTemperatureLimits(83) Globals temp limits 0C 100C 
(for simulated adapters)
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[]
 Byte buffer Attempt serial write:, length=1
--000: C1
   <.>
Byte buffer Attempt serial write:, length=1
--000: 71
   <q>
Byte buffer Attempt serial write:, length=1
--000: 0F
   <.>
Byte buffer Serial read:, length=1
--000: 00
   <.>
Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
Byte buffer Attempt serial write:, length=1
--000: 71
   <q>
Byte buffer Attempt serial write:, length=1
--000: 0F
   <.>
Byte buffer Serial read:, length=1
--000: 00
   <.>
Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
Byte buffer Attempt serial write:, length=1
--000: 45
   <E>
Byte buffer Serial read:, length=1
--000: 44
   <D>
Byte buffer Attempt serial write:, length=1
--000: 5B
   <[>
Byte buffer Serial read:, length=1
--000: 5A
   <Z>
Byte buffer Attempt serial write:, length=1
--000: 3F
   <?>
Byte buffer Serial read:, length=1
--000: 3E
   <>>
Byte buffer Attempt serial write:, length=1
--000: 29
   <)>
Byte buffer Serial read:, length=1
--000: 28
   <(>
Byte buffer Attempt serial write:, length=1
--000: 95
   <.>
Byte buffer Serial read:, length=1
--000: 97
   <.>
Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
  DEBUG: owfs.c:main(151) fuse_mnt_opt=[(null)]
   DEBUG: owfs.c:main(153) fuse_open_opt=[(null)]
 unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.10
flags=0x0000003b
max_readahead=0x00020000
   INIT: 7.8
   flags=0x00000001
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, error: 0 (Success), outsize: 40



unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56
   CALL: ow_fstat.c:FS_fstat(22) path=/
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 2, error: 0 (Success), outsize: 112
unique: 3, opcode: GETATTR (3), nodeid: 1, insize: 56
   CALL: ow_fstat.c:FS_fstat(22) path=/
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 3, error: 0 (Success), outsize: 112
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 56
   CALL: ow_fstat.c:FS_fstat(22) path=/
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 4, error: 0 (Success), outsize: 112
unique: 5, opcode: GETATTR (3), nodeid: 1, insize: 56
   CALL: ow_fstat.c:FS_fstat(22) path=/
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 5, error: 0 (Success), outsize: 112
unique: 6, opcode: ACCESS (34), nodeid: 1, insize: 48
ACCESS / 01
   unique: 6, error: -38 (Function not implemented), outsize: 16
unique: 7, opcode: OPENDIR (27), nodeid: 1, insize: 48
   unique: 7, error: 0 (Success), outsize: 32
unique: 8, opcode: GETATTR (3), nodeid: 1, insize: 56
   CALL: ow_fstat.c:FS_fstat(22) path=/
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 8, error: 0 (Success), outsize: 112
unique: 9, opcode: READDIR (28), nodeid: 1, insize: 80
   CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: owfs_callback.c:FS_getdir(175) GETDIR path=/
   DEBUG: ow_dir.c:FS_dir(63) path=/
    CALL: ow_dir.c:FS_dir_both(87) path=/
   DEBUG: ow_cache.c:Cache_Get_Dir(684) 00 00 00 00 00 00 00 00
   DEBUG: ow_cache.c:Cache_Get_Common_Dir(702) Get from cache sn 00 00 00 00 
00 00 00 00 pointer=0x70dd60 extension=0
   DEBUG: ow_cache.c:Cache_Get_Common_Dir(725) dir not found in cache
   DEBUG: ow_search.c:BUS_first(32) Start of directory path=/ device=00 00 
00 00 00 00 00 00
   DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device) path=/ 
SN=00 00 00 00 00 00 00 00 last path=00 00 00 00 00 00 00 00
   DEBUG: ow_select.c:BUS_select(78) Clearing root branch
 Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
Byte buffer Attempt serial write:, length=3
--000: E1 CC 66
   <..f>
Byte buffer Serial read:, length=2
--000: CC E6
   <..>
  DEBUG: ow_transaction.c:BUS_transaction_single(98) send = -5
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/bus.0]
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/uncached]
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/settings]
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/system]
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/statistics]
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/structure]
   DEBUG: ow_dir.c:FS_dir_both(169) ret=-5
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 9, error: 0 (Success), outsize: 288
unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 46
LOOKUP /bus.0
   CALL: ow_fstat.c:FS_fstat(22) path=/bus.0
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/bus.0]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/bus.0
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /bus.0
    NODEID: 2
   unique: 10, error: 0 (Success), outsize: 136
unique: 11, opcode: LOOKUP (1), nodeid: 1, insize: 49
LOOKUP /uncached
   CALL: ow_fstat.c:FS_fstat(22) path=/uncached
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/uncached]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/uncached
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /uncached
    NODEID: 3
   unique: 11, error: 0 (Success), outsize: 136
unique: 12, opcode: LOOKUP (1), nodeid: 1, insize: 49
LOOKUP /settings
   CALL: ow_fstat.c:FS_fstat(22) path=/settings
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/settings]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/settings
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /settings
    NODEID: 4
   unique: 12, error: 0 (Success), outsize: 136
unique: 13, opcode: LOOKUP (1), nodeid: 1, insize: 47
LOOKUP /system
   CALL: ow_fstat.c:FS_fstat(22) path=/system
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/system]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/system
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /system
    NODEID: 5
   unique: 13, error: 0 (Success), outsize: 136
unique: 14, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /statistics
   CALL: ow_fstat.c:FS_fstat(22) path=/statistics
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/statistics]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/statistics
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /statistics
    NODEID: 6
   unique: 14, error: 0 (Success), outsize: 136
unique: 15, opcode: LOOKUP (1), nodeid: 1, insize: 50
LOOKUP /structure
   CALL: ow_fstat.c:FS_fstat(22) path=/structure
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/structure]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/structure
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /structure
    NODEID: 7
   unique: 15, error: 0 (Success), outsize: 136
unique: 16, opcode: READDIR (28), nodeid: 1, insize: 80
   unique: 16, error: 0 (Success), outsize: 16
unique: 17, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
   unique: 17, error: 0 (Success), outsize: 16
unique: 18, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 18, error: 0 (Success), outsize: 96
unique: 19, opcode: GETATTR (3), nodeid: 1, insize: 56
   CALL: ow_fstat.c:FS_fstat(22) path=/
    CALL: ow_parsename.c:FS_ParsedName_anywhere(109) path=[/]
    CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
   DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /
    unique: 19, error: 0 (Success), outsize: 112
unique: 20, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 20, error: 0 (Success), outsize: 96



^C  DEBUG: owfs.c:ow_exit(31) owfs: ow_exit(0)
    CALL: ow_lib_close.c:LibClose(21) Starting Library cleanup
    CALL: ow_lib_stop.c:LibStop(24) Clear Cache
    CALL: ow_lib_stop.c:LibStop(27) Closing input devices
   DEBUG: ow_com.c:COM_close(80) COM_close: flush
   DEBUG: ow_com.c:COM_close(82) COM_close: restore
   DEBUG: ow_com.c:COM_close(86) COM_close: close
    CALL: ow_lib_stop.c:LibStop(29) Closing outout devices
    CALL: ow_lib_close.c:LibClose(56) Finished Library cleanup
#





"Paul Alfille" <[email protected]> wrote in message 
news:[email protected]...
Andrew, let me ask a few more questions to see if I truly understand
the problem.

My test of owfs --fake=10 --foreground --error_level=9 -m ../1wire
gives pretty much what you describe:

> Using --foreground and --error_level=9 I get:
> ........
> Byte buffer Serial read:, length=1
> --000: CD
> <.>
> DEBUG: owfs.c:main(151) fuse_mnt_opt=[(null)]
> DEBUG: owfs.c:main(153) fuse_open_opt=[(null)]
> unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
> INIT: 7.10
> flags=0x0000003b
> max_readahead=0x00020000
> INIT: 7.8
> flags=0x00000001
> max_readahead=0x00020000
> max_write=0x00020000
> unique: 1, error: 0 (Success), outsize: 40
>
Until I ask (in another xterm) for directory contents.

If I try the serial port I get:

> sudo /opt/owfs/bin/owfs -d /dev/ttyS0 -m 
> ../1wire --foreground --error_level=9
CONNECT: owfs.c:main(123) fuse mount point: ../1wire
   CALL: ow_parsename.c:FS_ParsedName_anywhere(115) path=[]
  DEBUG: owlib.c:SetupTemperatureLimits(83) Globals temp limits 0C
100C (for simulated adapters)
   CALL: ow_parsename.c:FS_ParsedName_anywhere(115) path=[]
Byte buffer Attempt serial write:, length=1
--000: C1
   <.>
Byte buffer Attempt serial write:, length=1
--000: 71
   <q>
Byte buffer Attempt serial write:, length=1
--000: 0F
   <.>
Byte buffer Serial read:, length=1
--000: 00
   <.>
Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
Byte buffer Attempt serial write:, length=1
--000: 71
   <q>
Byte buffer Attempt serial write:, length=1
--000: 0F
   <.>
Byte buffer Serial read:, length=1
--000: 00
   <.>
Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
Byte buffer Attempt serial write:, length=1
--000: 45
   <E>
Byte buffer Serial read:, length=1
--000: 44
   <D>
Byte buffer Attempt serial write:, length=1
--000: 5B
   <[>
Byte buffer Serial read:, length=1
--000: 5A
   <Z>
Byte buffer Attempt serial write:, length=1
--000: 3F
   <?>
Byte buffer Serial read:, length=1
--000: 3E
   <>>
Byte buffer Attempt serial write:, length=1
--000: 29
   <)>
Byte buffer Serial read:, length=1
--000: 28
   <(>
Byte buffer Attempt serial write:, length=1
--000: 95
   <.>
Byte buffer Serial read:, length=1
--000: 97
   <.>
Byte buffer Attempt serial write:, length=1
--000: C5
   <.>
Byte buffer Serial read:, length=1
--000: CD
   <.>
  DEBUG: owfs.c:main(151) fuse_mnt_opt=[(null)]
  DEBUG: owfs.c:main(153) fuse_open_opt=[(null)]
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.9
flags=0x0000000b
max_readahead=0x00020000
   INIT: 7.8
   flags=0x00000001
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, error: 0 (Success), outsize: 40

Then exiting gives:

^C  DEBUG: owfs.c:ow_exit(31) owfs: ow_exit(0)
   CALL: ow_lib_close.c:LibClose(21) Starting Library cleanup
   CALL: ow_lib_stop.c:LibStop(23) Clear Cache
   CALL: ow_lib_stop.c:LibStop(25) Closing input devices
  DEBUG: ow_com.c:COM_close(80) COM_close: flush
  DEBUG: ow_com.c:COM_close(82) COM_close: restore
  DEBUG: ow_com.c:COM_close(86) COM_close: close
   CALL: ow_lib_stop.c:LibStop(27) Closing outout devices
   CALL: ow_lib_close.c:LibClose(56) Finished Library cleanup

So at the very least, we should see the attempted serial dialog. Are
you invoking owfs with the same parameters that I list?

Paul Alfille

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects 



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to