Hi,
I may have been too quick in claiming success. Although I was able to
somehow reset my offsite owserver at the time, the procedure did not
work the next time.
So probably something I did, but did not make a note of, was of importance.
I have tested some more communicating with my LinkUSB using screen:
screen /dev/ttyUSB0
or with baud rate specified
screen /dev/ttyUSB0 19200
etc.
My LinkUSB identifies itself as
LinkUSB V1.5
I find that sending a break
C-a C-b
does not normally reset the device to baud rate 9600.
I have also tested long breaks
C-a :
break 50
etc, which still does not work.
I find however, that if I first set the LinkUSB to "sniffer mode":
\\
a break given by
C-a C-b
will always reset the device.
I observe that if I use screen to change the LinkUSB baud rate to 19200,
38400 or 57600, owserver will not be able to communicate.
So I attempted to change the ow_link.c code a little
case ct_serial:
pin->baud = B9600 ;
pin->flow = flow_first ;
RETURN_GOOD_IF_GOOD( LINK_detect_serial(in) ) ;
pin->baud = B19200 ;
LEVEL_DEBUG("Second attempt at serial LINK
setup");
pin->flow = flow_second ;
RETURN_GOOD_IF_GOOD( LINK_detect_serial(in) ) ;
pin->baud = B38400 ;
LEVEL_DEBUG("Third attempt at serial LINK setup");
pin->flow = flow_first ;
RETURN_GOOD_IF_GOOD( LINK_detect_serial(in) ) ;
pin->baud = B57600 ;
LEVEL_DEBUG("Fourth attempt at serial LINK setup");
pin->flow = flow_second ;
RETURN_GOOD_IF_GOOD( LINK_detect_serial(in) ) ;
break ;
owserver then seems to start properly also when LinkUSB has been left at
19200,38400, 57600.
Is this an acceptable way to do it, or do I ruin something?
By the way, I have tested both --device = /dev/ttyUSB0 and
--link=/dev/ttyUSB0
One more thing. I seem to be unable to turn on error logging for the
owfs that comes with Ubuntu 12.04 and with Rasbian. Is error logging
disabled in the pre-builds?
Arne Raaen
On 14.12.2013 20:27, Arne Raaen wrote:
> Thank you!
>
> Your suggestion solved it:
>
> sudo bash
> echo auto > /sys/bus/usb/devices/4-1/power/control
>
> did reset the LinkUSB, and owserver is running nicely again.
>
>
> (sudo echo auto > /sys/bus/usb/devices/4-1/power/control did not work,
> is that to be expected?)
>
> Arne
>
>
>
> On 14.12.2013 15:14, Jan Kandziora wrote:
>> Am 14.12.2013 09:05, schrieb Arne Raaen:
>>> Hi,
>>> I run Ubuntu 12.04, with the Ubuntu version of owfs, 2.8p13
>>>
>>> lsmod does not show ehci etc. I guess this means usb is not complied
>>> as modules in ubuntu??
>>>
>> Check with
>>
>> $ zgrep </proc/config.gz USB_.HCI_HCD
>>
>>
>>> Is there an equivalent to rmmod, modprobe in that case?
>>>
>> No.
>>
>>
>>> I have had no success with e.g.
>>>
>>> sudo echo suspend > /sys/bus/usb/devices/4-1/power/level
>>>
>>> The system says "no access".
>>>
>>> Do I do it the wrong way?
>>>
>> I found this has changed a while ago. See this:
>>
>> http://www.mjmwired.net/kernel/Documentation/usb/power-management.txt#125
>>
>>
>>> Can the explanation for the problem be that after an unplanned shutdown
>>> the baudrate is at a non-default value, and owserver is unable to figure
>>> that out?
>>>
>> Paul has to chime in to debug this, I guess.
>>
>>
>> Kind regards
>>
>> Jan
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Owfs-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers