Hallo  
  
I have managed to make OWFS work with several DS18B20 sensors on a  
PC but the idea is that this task to be taken over by a fox board. I  
was using the FOX port of OWFS and have the following problems:  
  
1. I cannot get it to compile to FUSE part. Not important as I only  
want the owserver program.  
  
2. I have connected directly to the FOX board a DS2480B chip. This  
is 5V interface. I use ttyS2 on the fox for comms.  
  
By only selecting OWFS, and LIBUSB this at least compile with no  
errors. After flashing the fox, when I run owserver with  
-d /dev/ttyS2 -p 3333, the program gives me a SegFault. What is  
funny is that it tells me the /dev/ttyS2 is not a character device,  
but the mode for ttyS2 is crw-rw-rw, which is a character. A small  
test program confirmed it. What is funny, is that when I print the  
st_mode in owserver, the mode is in hex 21b60000 and not 21b6 as  
expected. This means it high and low 16 bit words is swapped ?!.  
The code then exits here but the output code is never shown, as if 
the stack is corrupted. 
  
Did anyone manage to make the DS2480Bwork with a fox ? Any special  
wiring to watch out for ? (And no, it is not a 12V RS232 but 5V).  
Simply fox RX->DS2480B TX and Fox TX->DS2480B RX has been connected, 
just 3 wires. 
 
Here is the output of the programs running: 
 
[EMAIL PROTECTED] /tmp]123#  owserver --error_level=9 
--error_print=2 --foreground -p 3002 -d /dev/ttyS2 
DEFAULT: Not a "character" device /dev/ttyS2   21b60000 
Segmentation fault 
 
[EMAIL PROTECTED] /tmp]123# ./t /dev/ttyS2 ; ls -l /dev/ttyS2 
rc for /dev/ttyS2 = 0 
st_mode for /dev/ttyS2 = 20666 
crw-rw-rw-    1 root     tty        4,  66 Jan 14  2007 /dev/ttyS2 
 
 
I am at the end of my wits here, as I cannot see why this happening. 
 
Any ideas what to try next ? 
 
Jos 
 

Reply via email to