Hello Mark,

I did not forget about you :-)
It is early Saturday morning here ;-)

When I start owfs without the LinkUSB plugged in I also get no feedback 
and there is no daemon started, so I suspect this is the problem - or 
one of them:-)

On 06/15/2013 05:36 AM, Mark Phillips wrote:
> Martin,
>
> I would be interested in hearing about any details you find on your 
> home system this weekend, especially in regard to FTDI drivers.  I am 
> still having the same problem with owfs on my RPi.  I still don't know 
> what's causing the problem, but for various reasons I am starting to 
> suspect that it has to do with the drivers.
check the syslog, when plugging in the LinkUSB either directly into one 
of the two USB ports of the raspi or inta a USB-hub that is connected to 
the raspi (that's what I have here).
For that give the command
     sudo tail -f /var/log/syslog

It will keep the terminal open and print whatever enters the syslog 
file, so you don't have to constantly read.
I am connected over ssh to the raspi, so I just open different sessions, 
for different commands. I would suggest you also open multiple terminals 
and leave e.g. syslog tailing active for now.

So, when I plug in the LinkUSB I get the following syslog entry:

------------------------

Jun 15 08:57:45 razmataz kernel: [  123.288409] usb 1-1.3.7: new 
full-speed USB device number 8 using dwc_otg
Jun 15 08:57:45 razmataz kernel: [  123.396540] usb 1-1.3.7: New USB 
device found, idVendor=0403, idProduct=6001
Jun 15 08:57:45 razmataz kernel: [  123.396571] usb 1-1.3.7: New USB 
device strings: Mfr=1, Product=2, SerialNumber=3
Jun 15 08:57:45 razmataz kernel: [  123.396588] usb 1-1.3.7: Product: 
FT232R USB UART
Jun 15 08:57:45 razmataz kernel: [  123.396601] usb 1-1.3.7: 
Manufacturer: FTDI
Jun 15 08:57:45 razmataz kernel: [  123.396614] usb 1-1.3.7: 
SerialNumber: A800bXHr
Jun 15 08:57:45 razmataz kernel: [  123.414099] ftdi_sio 1-1.3.7:1.0: 
FTDI USB Serial Device converter detected
Jun 15 08:57:45 razmataz kernel: [  123.414314] usb 1-1.3.7: Detected 
FT232RL
Jun 15 08:57:45 razmataz kernel: [  123.414336] usb 1-1.3.7: Number of 
endpoints 2
Jun 15 08:57:45 razmataz kernel: [  123.414351] usb 1-1.3.7: Endpoint 1 
MaxPacketSize 64
Jun 15 08:57:45 razmataz kernel: [  123.414365] usb 1-1.3.7: Endpoint 2 
MaxPacketSize 64
Jun 15 08:57:45 razmataz kernel: [  123.414379] usb 1-1.3.7: Setting 
MaxPacketSize 64
Jun 15 08:57:45 razmataz kernel: [  123.415414] usb 1-1.3.7: FTDI USB 
Serial Device converter now attached to ttyUSB0

-------------------------------------

Is your output the same?
IF NO, then this is the problem, or one of them :-) in that case try

IF YES:

In the last line it says "... now attached to ttyUSB0" it could say 
something else like ttyUSB1 or so. In fact under some circumstances 
reconnecting did increase that number - but I am not sure if this was 
happening on the raspi.

Now check, that your LinkUSB - that is actually the FTDI USB to serial 
chip - is alive and kickin':

     sudo cat /dev/ttyUSB0

should come back with many lines:

     LinkUSB V1.4

then Ctrl-C the command to stop the connection


>
> Actually, it seems to me that I am having (at least) two distinct 
> problems.
>
> The first problem is that owserver exits immediately upon being 
> started.  I suspect that this has to do with driver issues because it 
> works correctly when I change my /etc/owfs.conf file to use fake 
> devices --- it's only when owfs.conf is configured to use USB that it 
> crashes.
If the above all worked then you might start owfs without owfs.conf for now:

     owfs -d /dev/ttyUSB0 -m /mnt/1wire --error_level=2 --foreground

the directory /mnt/1wire I created before with my local users privileges 
like so (there is no reason to start owfs with sudo):

     ls -al /mnt/
....
drwxr-xr-x  2 mnm  mnm  4096 Jan  6 13:18 1wire
.....

If you got that far, everything should work now! :-)

Martin


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to