Hi there,
long story...
compiled owfs, owshell-progs, owhttpd under uclibc (0.9.28) _without_
usb-support; all is running perfect.
compiled the same _with_ libusb; owfs is working well, but not owshell
and owhttpd.
(compiling libusb under uclibc is somewhat difficult, for missing g++.
nevertheless hope it's fine.)
starting httpd is no problem, but next request kills the application,
and it's exactly the same with owserver.
here comes some debugging stuff (please forgive me):
router 3.4.0 # owhttpd --error_level=9 --error_print=2 --foreground -u
-p 8001
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=[]
usb_set_debug: Setting debugging level to 2 (on)
usb_os_init: Found USB VFS at /proc/bus/usb
usb_os_find_busses: Found 001
usb_os_find_busses: Skipping non bus directory devices
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
CONNECT: ow_ds9490.c:USB_next(548) Adapter found: 001/002
USB error: could not detach kernel driver from interface 0: No data
available
DEFAULT: ow_ds9490.c:DS9490_sub_open(482) Opened USB DS9490 adapter at
001/002.
DATA: ow_ds9490.c:DS9490_setup_adapter(410) done (ret=0)
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
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_SetSpeed(1284) set flexible speed
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_ds9490.c:DS9490_next_both(1000) Index 0
DEBUG: ow_ds9490.c:DS9490_directory(1074) Got 40 bytes from USB
search
DEBUG: ow_ds9490.c:DS9490_directory(1101) gulp. Adding element 0:10
DE F0 A8 01 08 00 E2
DEBUG: ow_ds9490.c:DS9490_directory(1101) gulp. Adding element 1:10
65 1B A9 01 08 00 38
DEBUG: ow_ds9490.c:DS9490_directory(1101) gulp. Adding element 2:1C
7F 6C F7 04 00 00 1B
DEBUG: ow_ds9490.c:DS9490_directory(1101) gulp. Adding element 3:3A
F6 E4 01 00 00 00 15
DEBUG: ow_ds9490.c:DS9490_directory(1101) gulp. Adding element 4:81
70 D4 2A 00 00 00 18
DEBUG: ow_ds9490.c:DS9490_next_both(1028) SN found: 10 DE F0 A8 01
08 00 E2
DEBUG: ow_search.c:BUS_next(84) return = 0 | 10 DE F0 A8 01 08 00
E2
DEBUG: ow_cache.c:Cache_Add_Device(355) 10 DE F0 A8 01 08 00 E2
bus=0
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 10 DE F0 A8
01 08 00 E2 pointer=(nil) index=-1 size=4
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
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_ds9490.c:DS9490_next_both(1000) Index 1
DEBUG: ow_ds9490.c:DS9490_next_both(1028) SN found: 10 65 1B A9 01
08 00 38
DEBUG: ow_search.c:BUS_next(84) return = 0 | 10 65 1B A9 01 08 00
38
DEBUG: ow_cache.c:Cache_Add_Device(355) 10 65 1B A9 01 08 00 38
bus=0
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 10 65 1B A9
01 08 00 38 pointer=(nil) index=-1 size=4
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
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_ds9490.c:DS9490_next_both(1000) Index 2
DEBUG: ow_ds9490.c:DS9490_next_both(1028) SN found: 1C 7F 6C F7 04
00 00 1B
DEBUG: ow_search.c:BUS_next(84) return = 0 | 1C 7F 6C F7 04 00 00
1B
DEBUG: ow_cache.c:Cache_Add_Device(355) 1C 7F 6C F7 04 00 00 1B
bus=0
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 1C 7F 6C F7
04 00 00 1B pointer=(nil) index=-1 size=4
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
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_ds9490.c:DS9490_next_both(1000) Index 3
DEBUG: ow_ds9490.c:DS9490_next_both(1028) SN found: 3A F6 E4 01 00
00 00 15
DEBUG: ow_search.c:BUS_next(84) return = 0 | 3A F6 E4 01 00 00 00
15
DEBUG: ow_cache.c:Cache_Add_Device(355) 3A F6 E4 01 00 00 00 15
bus=0
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 3A F6 E4 01
00 00 00 15 pointer=(nil) index=-1 size=4
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
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_ds9490.c:DS9490_next_both(1000) Index 4
DEBUG: ow_ds9490.c:DS9490_next_both(1028) SN found: 81 70 D4 2A 00
00 00 18
DEBUG: ow_search.c:BUS_next(84) return = 0 | 81 70 D4 2A 00 00 00
18
DEBUG: ow_cache.c:Cache_Add_Device(355) 81 70 D4 2A 00 00 00 18
bus=0
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 81 70 D4 2A
00 00 00 18 pointer=(nil) index=-1 size=4
CONNECT: ow_ds9490.c:DS9490_detect_found(361) Good DS1421 tag found
for 001/002
DEFAULT: ow_ds9490.c:DS9490_detect_found(368) Set DS9490 001/002
unique id to 81 70 D4 2A 00 00 00 18
DEBUG: ow_net_server.c:ServerProcess(320) Wait for output device 0
to setup.
DEBUG: ow_net_server.c:ServerProcess(323) Output device 0 setup
done.
DEBUG: ow_net_server.c:ServerProcessOut(252) 0
DEBUG: ow_zero.c:OW_Announce(150) end
DEBUG: ow_net_server.c:ServerProcessOut(272) Output device 8001
setup is done. index=0
DEBUG: ow_net_server.c:ServerProcessAccept(189) 8001[0] try lock 0
DEBUG: ow_net_server.c:ServerProcessAccept(195) 8001[0] locked 0
---here my machine stops---
a ---browser click at 10.651BA9010800--- shows:
[... delt some boring stuff ... and left some ...]
--- OneWireQuery done
DEBUG: ow_read.c:adjust_file_size(360) file_length=12 offset=0
size=12
DEBUG: ow_cache.c:Cache_Get(662) 10 65 1B A9 01 08 00 38 size=8
IsUncachedDir=0
DEBUG: ow_cache.c:Cache_Get_Common(919) Get from cache sn 10 65 1B
A9 01 08 00 38 pointer=0xb7ef30bc index=0 size=8
DEBUG: ow_cache.c:Cache_Get_Common(956) value not found in cache
DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device)
path=/10.651BA9010800/trim SN=10 65 1B A9 01 08 00 38 last path=00 00
00 00 00 00 00 00
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(83) select = 0
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(107) readin = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device)
path=/10.651BA9010800/trim SN=10 65 1B A9 01 08 00 38 last path=00 00
00 00 00 00 00 00
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(83) select = 0
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(107) readin = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DEBUG: ow_cache.c:Cache_Add(274) 10 65 1B A9 01 08 00 38 size=8
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 10 65 1B A9
01 08 00 38 pointer=0xb7ef30bc index=0 size=8
DEBUG: ow_read.c:FS_r_given_bus(234) FS_r_local return=0
Byte buffer Fowq_output_offset_and_size, length=12
--000: 20 20 20 20 20 20 20 35 36 31 38 37
< 56187>
DEBUG: ow_read.c:FS_r_given_bus(244) return 12
DEBUG: ow_read.c:FS_read_distribute(206) /10.651BA9010800/trim
return 12
DEBUG: ow_read.c:FS_read_postparse(97) /10.651BA9010800/trim return
12
DEBUG: ow_parseobject.c:FS_OWQ_destroy_not_pn(123)
/10.651BA9010800/trim
CALL: ow_parsename.c:FS_ParsedName_anywhere(109)
path=[/10.651BA9010800/trimblanket]
DEBUG: ow_cache.c:Cache_Get_Device(743) 10 65 1B A9 01 08 00 38
DEBUG: ow_cache.c:Cache_Get_Common(919) Get from cache sn 10 65 1B
A9 01 08 00 38 pointer=(nil) index=-1 size=4
DEBUG: ow_cache.c:Cache_Get_Common(931) value found in cache
DEBUG: ow_read.c:FS_read_postparse(78) /10.651BA9010800/trimblanket
DEBUG: ow_read.c:FS_read_distribute(184)
/10.651BA9010800/trimblanket
DEBUG: ow_read.c:FS_r_given_bus(217) start
OWQ OneWireQuery structure of /10.651BA9010800/trimblanket
OneWireQuery size=1 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=1
--000: 00
<.>
OneWireQuery I=0 U=0 F=0 Y=0 D=Thu Jan 1 00:00:00 1970
--- OneWireQuery done
DEBUG: ow_read.c:adjust_file_size(360) file_length=1 offset=0 size=1
DEBUG: ow_cache.c:Cache_Get(662) 10 65 1B A9 01 08 00 38 size=8
IsUncachedDir=0
DEBUG: ow_cache.c:Cache_Get_Common(919) Get from cache sn 10 65 1B
A9 01 08 00 38 pointer=0xb7ef30e0 index=0 size=8
DEBUG: ow_cache.c:Cache_Get_Common(956) value not found in cache
DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device)
path=/10.651BA9010800/trimblanket SN=10 65 1B A9 01 08 00 38 last
path=00 00 00 00 00 00 00 00
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(83) select = 0
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(107) readin = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device)
path=/10.651BA9010800/trimblanket SN=10 65 1B A9 01 08 00 38 last
path=00 00 00 00 00 00 00 00
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(83) select = 0
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(107) readin = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DEBUG: ow_cache.c:Cache_Add(274) 10 65 1B A9 01 08 00 38 size=8
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 10 65 1B A9
01 08 00 38 pointer=0xb7ef30e0 index=0 size=8
DEBUG: ow_read.c:FS_r_given_bus(234) FS_r_local return=0
DEBUG: ow_read.c:FS_r_given_bus(244) return 1
DEBUG: ow_read.c:FS_read_distribute(206)
/10.651BA9010800/trimblanket return 1
DEBUG: ow_read.c:FS_read_postparse(97) /10.651BA9010800/trimblanket
return 1
DEBUG: ow_parseobject.c:FS_OWQ_destroy_not_pn(123)
/10.651BA9010800/trimblanket
CALL: ow_parsename.c:FS_ParsedName_anywhere(109)
path=[/10.651BA9010800/trimvalid]
DEBUG: ow_cache.c:Cache_Get_Device(743) 10 65 1B A9 01 08 00 38
DEBUG: ow_cache.c:Cache_Get_Common(919) Get from cache sn 10 65 1B
A9 01 08 00 38 pointer=(nil) index=-1 size=4
DEBUG: ow_cache.c:Cache_Get_Common(931) value found in cache
DEBUG: ow_read.c:FS_read_postparse(78) /10.651BA9010800/trimvalid
DEBUG: ow_read.c:FS_read_distribute(184) /10.651BA9010800/trimvalid
DEBUG: ow_read.c:FS_r_given_bus(217) start
OWQ OneWireQuery structure of /10.651BA9010800/trimvalid
OneWireQuery size=1 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=1
--000: 00
<.>
OneWireQuery I=0 U=0 F=0 Y=0 D=Thu Jan 1 00:00:00 1970
--- OneWireQuery done
DEBUG: ow_read.c:adjust_file_size(360) file_length=1 offset=0 size=1
DEBUG: ow_cache.c:Cache_Get(662) 10 65 1B A9 01 08 00 38 size=8
IsUncachedDir=0
DEBUG: ow_cache.c:Cache_Get_Common(919) Get from cache sn 10 65 1B
A9 01 08 00 38 pointer=0xb7ef3104 index=0 size=8
DEBUG: ow_cache.c:Cache_Get_Common(956) value not found in cache
DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device)
path=/10.651BA9010800/trimvalid SN=10 65 1B A9 01 08 00 38 last
path=00 00 00 00 00 00 00 00
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(83) select = 0
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(107) readin = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DEBUG: ow_select.c:BUS_select(71) Selecting a path (and device)
path=/10.651BA9010800/trimvalid SN=10 65 1B A9 01 08 00 38 last
path=00 00 00 00 00 00 00 00
DATA: ow_ds9490.c:DS9490_reset(855) start
DATA: ow_ds9490.c:DS9490_reset(909) ok
DEBUG: ow_transaction.c:BUS_transaction_single(83) select = 0
DEBUG: ow_transaction.c:BUS_transaction_single(98) send = 0
DEBUG: ow_transaction.c:BUS_transaction_single(107) readin = 0
DEBUG: ow_transaction.c:BUS_transaction_single(167) end = 0
DEBUG: ow_cache.c:Cache_Add(274) 10 65 1B A9 01 08 00 38 size=8
DEBUG: ow_cache.c:Cache_Add_Common(449) Add to cache sn 10 65 1B A9
01 08 00 38 pointer=0xb7ef3104 index=0 size=8
DEBUG: ow_read.c:FS_r_given_bus(234) FS_r_local return=0
DEBUG: ow_read.c:FS_r_given_bus(244) return 1
DEBUG: ow_read.c:FS_read_distribute(206) /10.651BA9010800/trimvalid
return 1
DEBUG: ow_read.c:FS_read_postparse(97) /10.651BA9010800/trimvalid
return 1
DEBUG: ow_parseobject.c:FS_OWQ_destroy_not_pn(123)
/10.651BA9010800/trimvalid
CALL: ow_parsename.c:FS_ParsedName_anywhere(109)
path=[/10.651BA9010800/type]
DEBUG: ow_cache.c:Cache_Get_Device(743) 10 65 1B A9 01 08 00 38
DEBUG: ow_cache.c:Cache_Get_Common(919) Get from cache sn 10 65 1B
A9 01 08 00 38 pointer=(nil) index=-1 size=4
DEBUG: ow_cache.c:Cache_Get_Common(931) value found in cache
DEBUG: ow_read.c:FS_read_postparse(78) /10.651BA9010800/type
DEBUG: ow_read.c:FS_read_distribute(184) /10.651BA9010800/type
DEBUG: ow_read.c:FS_r_given_bus(217) start
OWQ OneWireQuery structure of /10.651BA9010800/type
OneWireQuery size=32 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=32
--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
<................................>
OneWireQuery I=0 U=0 F=0 Y=0 D=Thu Jan 1 00:00:00 1970
--- OneWireQuery done
DEBUG: ow_read.c:adjust_file_size(360) file_length=32 offset=0
size=32
Byte buffer Fowq_output_offset_and_size, length=7
--000: 44 53 31 38 53 32 30
<DS18S20>
DEBUG: ow_read.c:FS_r_given_bus(234) FS_r_local return=0
OWQ OneWireQuery structure of /10.651BA9010800/type
OneWireQuery size=32 offset=0, extension=0
Byte buffer OneWireQuery buffer, length=32
--000: 44 53 31 38 53 32 30 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
<DS18S20.........................>
OneWireQuery I=7 U=7 F=3.45846E-323 Y=7 D=Thu Jan 1 00:00:07 1970
--- OneWireQuery done
DEBUG: ow_read.c:FS_r_given_bus(244) return 7
DEBUG: ow_read.c:FS_read_distribute(206) /10.651BA9010800/type
return 7
DEBUG: ow_read.c:FS_read_postparse(97) /10.651BA9010800/type return
7
DEBUG: ow_parseobject.c:FS_OWQ_destroy_not_pn(123)
/10.651BA9010800/type
DEBUG: ow_dir.c:FS_dir_both(169) ret=0
DEBUG: ow_parsename.c:FS_ParsedName_destroy(64) /10.651BA9010800
DEBUG: ow_net_server.c:ServerProcessHandler(165) Normal exit.
router 3.4.0 #
same start as above and after machine stop a ---ctrl-c----- shows:
DEBUG: ow_net_server.c:ServerProcess(345) break signo=0
DEBUG: ow_net_server.c:ServerProcess(353)
ow_net_server.c:ServerProcess() shutdown initiated
DEBUG: ow_net_server.c:ServerProcess(357) Shutting down 0 of 1
thread 1026
DEBUG: ow_net_server.c:ServerProcess(371) pthread_kill (0 of 1)
tid=1026 signo=15 rc=0 [Success]
DEBUG: ow_net_server.c:ServerProcess(377)
ow_net_server.c:ServerProcess() all threads cancelled
DEBUG: ow_net_server.c:ServerProcess(381) join 1026
DEBUG: ow_net_server.c:ServerProcessAccept(200)
shutdown_in_progress 8001[0] accept 0
DEBUG: ow_net_server.c:ServerProcessAcceptUnlock(177) unlock 1026
DEBUG: ow_net_server.c:ServerProcessAcceptUnlock(179) unlock 1026
done
DEBUG: ow_net_server.c:ServerProcessAccept(216) 8001[0] unlock 0
DEBUG: ow_net_server.c:ServerProcessAccept(220) 8001[0]
shutdown_in_progress 0 return
DEBUG: ow_net_server.c:ServerProcessOut(281) 0 CLOSING (8001)
DEBUG: ow_net_server.c:ServerProcessOut(283) Normal exit.
router 3.4.0 #
anybody out there, who can give me a hint?
TIA'n cheers
Karl M.
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers