OpenWrt Forum Archive

Topic: Virtual USB , USB over TCP/IP ?

The content of this topic has been archived on 6 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

i'm projecting to connect a weather station davis vantage pro2 data collector with USB thru an Asus WL-HDD to connect remotely to the USB port.

Do you have any hints what packages i will need ?

Thank you, Peter.

i don't exactly know the device you're trying to connect but ... i have a hunch that the device uses a usb-serial module. it's just a hint-hunch tongue...
you still have to screen your serial communication and maybe simulate a serial port over the client part...

There is also a package called ser2net which I have used to connect to the serial port through TCP.  What can be done with screen? I only recall using screen for having multiple shells running in a telnet session (like you get multiple desktops on *nixes but for shells).

Hello All, sorry for my poor English..

@Peterm:  I'm working in a projects seems like your, but the router is comtrend 536 + openwrt.
via convert serial/usb and module pl2303.ko
I compile vproweather for MIPS and seen work fine,but have one problem: "bad Device ttyUSB0",I 'm working now try to solve this problem.
In the author page http://www.joejaworski.com/weather/  you have remserial that convert virtual serial port - tcp/ip.

root@OpenWrt:/tmp# /etc/vproweather
vproweather v0.6 18-OCT-2004 written by Joe Jaworski
See http://www.joejaworski.com/weather/ for latest version and info
Usage: vproweather [Options] Device
Options:
-x, --get-realtime    Get real time weather data.
-l, --get-highlow     Get Highs/Lows data.
-g, --get-graph       Get graph data.
.......
.......


root@OpenWrt:/tmp# /etc/vproweather --get-realtime /dev/ttyUSB0 > rtdata.txt
vproweather: Problem configuring serial device, check device name.: Invalid argument

I install picocom on the same system and comunicate ok with weather station on this serial port .

root@OpenWrt:/tmp# picocom -b 19200 /dev/ttyUSB0
picocom v1.4

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 19200
parity is      : none
databits are   : 8
escape is      : C-a
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : ascii_xfr -s -v -l10
receive_cmd is : rz -vv

Terminal ready

OK
BARDATA

BAR 31457
ELEVATION 1493
DEW POINT 68
VIRTUAL TEMP 83
C 49
R 1052
BARCAL 0
GAIN 0
OFFSET 27

I install open2300 on the same system with weather station lacrosse ws2300 and works all fine..

root@OpenWrt:~# /etc/fetch2300
Date 1970-Jan-01
Time 00:47:19
Ti 26.7
Timin 2.8
Timax 27.2
TTimin 09:30
DTimin 2009-01-10
TTimax 13:57
DTimax 2009-07-04
To 34.4
Tomin -8.9
Tomax 38.4
TTomin 09:02
DTomin 2009-01-10
TTomax 16:38
DTomax 2009-06-11
DP 2.3
DPmin -11.5
DPmax 16.8
TDPmin 16:05
DDPmin 2008-12-25
TDPmax 11:52
DDPmax 2008-10-12
RHi 39
RHimin 25
RHimax 84
TRHimin 13:36
DRHimin 2009-06-28
TRHimax 12:50
DRHimax 2008-10-11
RHo 14
RHomin 11
RHomax 98
TRHomin 15:37
DRHomin 2009-06-28
TRHomax 09:25
DRHomax 2008-10-27
WS 0.0
DIRtext SSW
DIR0 202.5
DIR1 202.5
DIR2 270.0
DIR3 180.0
DIR4 202.5
DIR5 180.0
WC 34.4
WCmin -9.3
WCmax 38.4
TWCmin 07:04
DWCmin 2009-03-05
TWCmax 16:38
DWCmax 2009-06-11
WSmin 0.0

Best regards
Roberto

The discussion might have continued from here.