Resol VBus/USB adapter connected to Rasberry PI

1,302 views
Skip to first unread message

Eric Bosch

unread,
Feb 17, 2014, 3:30:29 PM2/17/14
to resol...@googlegroups.com
I have connected my Resol VBus/USB adapter to the raspberry pi USB port (/dev/ttyACM0).

I am able to open this port with a Python script, but when I try to read from this port the pi does not receive anything. On a windows laptop it works fine and I can read the VBus packets with a Python script.

The other USB port (from the pi) is used for the Wifi dongle which is working fine.

What can be the problem here?

Hardy Griech

unread,
Feb 17, 2014, 4:45:30 PM2/17/14
to resol...@googlegroups.com
On 17.02.2014 21:30, Eric Bosch wrote:
:
> What can be the problem here?
:

Wrong setup of the port? For me the following is working:

/bin/stty -F /dev/ttyUSB0
1:0:bd:0:0:0:0:0:0:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0

Hardy


PS: fetch current setup with "stty -g -F /dev/ttyUSB0"

Erwann Penet

unread,
Feb 18, 2014, 2:01:24 AM2/18/14
to resol...@googlegroups.com
Hi,

If the USB adapter appears on ACM0, then it is probably using a wrong driver.

On my RPI, I have to issue the following commands to set it on the correct port:
  • rmmod -f cdc_acm
  • rmmod -f ftdi_sio
  • rmmod -f usbserial
  • modprobe usbserial vendor=0x1fef product=0x2018
  • modprobe ftdi_sio
After running these commands, the device appears on dev/ttyUSB0 and works fine.

Also, I am not sure why but I sometimes have to unplug and replug the USB device after a reboot...

Regards,
--
You received this message because you are subscribed to the Google Groups "Resol Vbus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resol-vbus+...@googlegroups.com.
To post to this group, send email to resol...@googlegroups.com.
Visit this group at http://groups.google.com/group/resol-vbus.
For more options, visit https://groups.google.com/groups/opt_out.

Hardy Griech

unread,
Feb 18, 2014, 3:37:35 AM2/18/14
to resol...@googlegroups.com
On 18.02.2014 08:01, Erwann Penet wrote:
:
> Also, I am not sure why but I sometimes have to unplug and replug the
> USB device after a reboot...
:

Cannot say anything about this, but here is my configuration:

root@qnap110:/etc# lsusb
Bus 001 Device 003: ID 0403:6001 Future Technology Devices
International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@qnap110:/etc# lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 4: Dev 3, If 0, Class=Vendor Specific Class,
Driver=ftdi_sio, 12M

My dmesg says:

[ 14.162147] usb 1-1.4: new full-speed USB device number 3 using
orion-ehci
[ 14.272412] usb 1-1.4: New USB device found, idVendor=0403,
idProduct=6001
[ 14.279398] usb 1-1.4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[ 14.286793] usb 1-1.4: Product: VBus\xffffffc2\xffffffae\xffffffae
to USB
[ 14.291279] usb 1-1.4: Manufacturer: RESOL
[ 14.295411] usb 1-1.4: SerialNumber: RSS3UGWQ
[ 14.411594] usbcore: registered new interface driver usbserial
[ 14.419784] usbcore: registered new interface driver usbserial_generic
[ 14.435220] usbserial: USB Serial support registered for generic
[ 14.481541] usbcore: registered new interface driver ftdi_sio
[ 14.488736] usbserial: USB Serial support registered for FTDI USB
Serial Device
[ 14.506937] ftdi_sio 1-1.4:1.0: FTDI USB Serial Device converter detected
[ 14.521372] usb 1-1.4: Detected FT232RL
[ 14.525281] usb 1-1.4: Number of endpoints 2
[ 14.529590] usb 1-1.4: Endpoint 1 MaxPacketSize 64
[ 14.534427] usb 1-1.4: Endpoint 2 MaxPacketSize 64
[ 14.539257] usb 1-1.4: Setting MaxPacketSize 64
[ 14.590824] usb 1-1.4: FTDI USB Serial Device converter now attached
to ttyUSB0

Check your dmesg in case of non-detection. Is the remainder of the USB
detection working reliably?

Hardy

Eric Bosch

unread,
Feb 18, 2014, 4:21:49 PM2/18/14
to resol...@googlegroups.com
Hi,

This works fine. Thanks for your help!!

Regards,
Eric


Op dinsdag 18 februari 2014 08:01:24 UTC+1 schreef FestivalsFrancais.com:
Reply all
Reply to author
Forward
0 new messages