hum, try owhttpd and webbrowser to check if it's a fuse problem or not
2012/2/6 Kassai Istvan <k...@zhnet.hu <mailto:k...@zhnet.hu>>
Hi,
After you resolved this problem, I dicided to move this
thermometer to a routerboard. I thought it won't be hard, but it
was a mistake.
I've installed an openwrt to a routerbord rb433ah, and prepared
for owfs. (Installed the packages needed like fuse, owfs etc)
I've disabled of course the serial terminal access by comment-out
the /bin/ash line in the inittab:
root@OpenWrt:~# cat /etc/inittab
::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
#ttyS0::askfirst:/bin/ash --login
After it , seemed to be working, but not really. In the mountpoint
directory appeared some other owfs related subdirs, but not the
sensor related "3B.xxxxxx.." directory.
When I was running owfs with --debug, that showed this:
************
/root@OpenWrt:~# owfs --passive=/dev/ttyS0 -m /mnt/1w/ --8bit --debug
CONNECT: owfs.c:main(100) fuse mount point: /mnt/1w/
CONNECT: ow_avahi_link.c:OW_Load_avahi_library(72) No Avahi
support. Library libavahi-client couldn't be loaded
CONNECT: ow_dnssd.c:OW_Load_dnssd_library(136) Zeroconf/Bonjour is
disabled since dnssd library isn't found
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[]
DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C
100C (for simulated adapters)
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000
seconds
DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 0 OWFS
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 1 /mnt/1w/
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 2 -o
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 3 direct_io
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 4 -f
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 5 -d
DEBUG: owfs.c:main(125) fuse_mnt_opt=[(null)]
DEBUG: owfs.c:main(127) fuse_open_opt=[(null)]
FUSE library version: 2.8.5
nullpath_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.16
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.12
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
unique: 1, success, outsize: 40
************/
Then I've installed every avahi* packages, and this debug list
haven't changed. I made a soft-link (libavahi-client.so) to the
libavahi-client.so.3.2.9 (even though I don't think this avahi lib
loading failure correlated to this error) and the debug list
became to :
***********
/root@OpenWrt:~# owfs --passive=/dev/ttyS0 -m /mnt/1w/ --8bit --debug
CONNECT: owfs.c:main(100) fuse mount point: /mnt/1w/
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(75) Avahi support:
libavahi-client loaded successfully
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(77) Avahi library
function found: avahi_client_errno
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(78) Avahi library
function found: avahi_client_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(79) Avahi library
function found: avahi_client_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(80) Avahi library
function found: avahi_client_get_domain_name
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(81) Avahi library
function found: avahi_entry_group_add_service
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(82) Avahi library
function found: avahi_entry_group_commit
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(83) Avahi library
function found: avahi_entry_group_is_empty
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(84) Avahi library
function found: avahi_entry_group_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(85) Avahi library
function found: avahi_entry_group_reset
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(87) Avahi library
function found: avahi_service_resolver_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(88) Avahi library
function found: avahi_service_resolver_new
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(89) Avahi library
function found: avahi_service_browser_free
DEBUG: ow_avahi_link.c:OW_Load_avahi_library(90) Avahi library
function found: avahi_service_browser_new
CONNECT: ow_avahi_link.c:OW_Load_avahi_library(99) No Avahi
support. Library libavahi-common couldn't be loaded.
CONNECT: ow_dnssd.c:OW_Load_dnssd_library(136) Zeroconf/Bonjour is
disabled since dnssd library isn't found
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[]
DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C
100C (for simulated adapters)
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000
seconds
DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 0 OWFS
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 1 /mnt/1w/
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 2 -o
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 3 direct_io
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 4 -f
DEBUG: fuse_line.c:Fuse_add(82) Added FUSE option 5 -d
DEBUG: owfs.c:main(125) fuse_mnt_opt=[(null)]
DEBUG: owfs.c:main(127) fuse_open_opt=[(null)]
FUSE library version: 2.8.5
nullpath_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.16
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.12
flags=0x00000011
max_readahead=0x00020000
max_write=0x00020000
unique: 1, success, outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56
getattr /
CALL: ow_fstat.c:FS_fstat(22) path=/
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /
unique: 2, success, outsize: 120
/
***********
And when I want to list the mountpoint directory further lines
appearing in the debug:
**************
/unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56
getattr /
CALL: ow_fstat.c:FS_fstat(22) path=/
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /
unique: 2, success, outsize: 120
unique: 3, opcode: ACCESS (34), nodeid: 1, insize: 48
unique: 3, error: -89 (Function not implemented), outsize: 16
unique: 4, opcode: OPENDIR (27), nodeid: 1, insize: 48
unique: 4, success, outsize: 32
unique: 5, opcode: READDIR (28), nodeid: 1, insize: 80
getdir[0]
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) 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(98) path=/
DEBUG: ow_cache.c:Cache_Get_Dir(868) Looking for directory 00 00
00 00 00 00 00 00
DEBUG: ow_cache.c:Cache_Get_Common_Dir(881) Get from cache sn 00
00 00 00 00 00 00 00 pointer=0x2b924378 extension=0
DEBUG: ow_cache.c:Cache_Get_Common_Dir(910) 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(66) 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(79) Continuing root branch
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000
seconds
DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
DEBUG: ow_bus_data.c:BUS_sendback_data_bitbang(120) Splitting
byte 0 of 1 = F0
DEBUG: ow_tcp_read.c:tcp_read(64) attempt 8 bytes Time: 5.000000
seconds
DEBUG: ow_tcp_read.c:tcp_read(114) read: 8 - 0 = 8
DEBUG: ow_bus_data.c:BUS_sendback_data_bitbang(141)
Consolidating byte 0 of 1 = F0
DEBUG: ow_cache.c:Cache_Add_Dir(473) Won't cache empty directory
DEBUG: ow_cache.c:Cache_Del_Common(1375) Delete from cache sn 00
00 00 00 00 00 00 00 in=0x2b924378 index=0
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/bus.0]
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /bus.0
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/uncached]
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /uncached
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/settings]
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /settings
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/system]
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /system
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/statistics]
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /statistics
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/structure]
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /structure
DEBUG: ow_dir.c:FS_dir_both(193) ret=0
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /
unique: 5, success, outsize: 288
unique: 6, opcode: LOOKUP (1), nodeid: 1, insize: 46
LOOKUP /bus.0
getattr /bus.0
CALL: ow_fstat.c:FS_fstat(22) path=/bus.0
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/bus.0]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/bus.0
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /bus.0
NODEID: 2
unique: 6, success, outsize: 144
unique: 7, opcode: LOOKUP (1), nodeid: 1, insize: 49
LOOKUP /uncached
getattr /uncached
CALL: ow_fstat.c:FS_fstat(22) path=/uncached
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/uncached]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/uncached
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /uncached
NODEID: 3
unique: 7, success, outsize: 144
unique: 8, opcode: LOOKUP (1), nodeid: 1, insize: 49
LOOKUP /settings
getattr /settings
CALL: ow_fstat.c:FS_fstat(22) path=/settings
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/settings]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/settings
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /settings
NODEID: 4
unique: 8, success, outsize: 144
unique: 9, opcode: LOOKUP (1), nodeid: 1, insize: 47
LOOKUP /system
getattr /system
CALL: ow_fstat.c:FS_fstat(22) path=/system
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/system]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/system
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /system
NODEID: 5
unique: 9, success, outsize: 144
unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 51
LOOKUP /statistics
getattr /statistics
CALL: ow_fstat.c:FS_fstat(22) path=/statistics
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/statistics]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/statistics
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /statistics
NODEID: 6
unique: 10, success, outsize: 144
unique: 11, opcode: LOOKUP (1), nodeid: 1, insize: 50
LOOKUP /structure
getattr /structure
CALL: ow_fstat.c:FS_fstat(22) path=/structure
CALL: ow_parsename.c:FS_ParsedName_anywhere(95) path=[/structure]
CALL: ow_fstat.c:FS_fstat_postparse(39) ATTRIBUTES path=/structure
DEBUG: ow_parsename.c:FS_ParsedName_destroy(59) /structure
NODEID: 7
unique: 11, success, outsize: 144
unique: 12, opcode: READDIR (28), nodeid: 1, insize: 80
unique: 12, success, outsize: 16
unique: 13, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
unique: 13, success, outsize: 16
^C DEBUG: ow_exit.c:ow_exit(18) Exit code = 0
/**************
So in the mountpoint only the next subdirs are:
root@OpenWrt:/mnt/1w# ls -la
drwxr-xr-x 1 root root 8 Feb 6 18:29 .
drwxr-xr-x 1 root root 2048 Feb 5 13:51 ..
drwxr-xr-x 1 root root 8 Feb 6 18:29 bus.0
drwxr-xr-x 1 root root 8 Feb 6 18:29 settings
drwxr-xr-x 1 root root 8 Feb 6 18:29 statistics
drwxr-xr-x 1 root root 32 Feb 6 18:29 structure
drwxr-xr-x 1 root root 8 Feb 6 18:29 system
drwxr-xr-x 1 root root 8 Feb 6 18:29 uncached
Has got an idea for anybody why it happens?
Thanks a lot!
kako
Thanks Paul!
This way it's OK, works well!
Taks again
bye
2012-02-06 04:34 keltezéssel, Paul Alfille írta:
The timeouts changed to accomodate handshaking on some embedded devices.
Try:
/opt/owfs/bin/owfs --passive=/dev/ttyS0 -m /mnt/1w --debug --8bit
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft
developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
<mailto:Owfs-developers@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/owfs-developers
--
Roberto Spadim
Spadim Technology / SPAEmpresarial
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers