beaglebone using USB 3G modem and webcam, problems

I have connected both a USB 3G modem and a USB webcam via a USB hub to a beaglebone that is running ubuntu.

Both devices work: I can connect to a 3G network using wvdial, and motion (http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome) works perfectly.

However when I have both devices connected simultaneously, after some time (ca 10-15min) I get a stream of error messages printed on the console:

[ 2401.130096] sr 1:0:0:0: rejecting I/O to offline device

These messages are rolling over the screen, a new one every 1/2 second or so.

I understand that /dev/sr0 is a CDROM that might be mounted (but it does not appear in /media) from the USB dongle, a ‘zero install’ device that appears as the modem and a CDROM storage device.

Does my conclusion that this error message is related to the /dev/sr0 make sense?

Anyways, I have searched for this behavior and error message extensively, but so far have not found a solution to fix it:

  • I have tried higher rated power supplies to power the beaglebone, the last one with 5V/30W specs.

  • I have connected the USB devices using a powered USB hub.

The repeated message might suggest that there is a demon process trying to access the CD to read and possibly write to it.

Given that the problem only occurs when both devices are connected and ‘motion’ is running, could it be that motion is the culprit? (I better ask that the guy who wrote ‘motion’)

Can anybody shed light on this problem?

Just to say, I think this error message seems to swamp the poor beaglebone’s memory or whatever else and it becomes unreactive.

Thanks

Martin

hello…
can you provide me information about …
How to connect the 3g usb modem on the Beagle board Xm with angstrom distribution.
I want to use this modem for data connection between BB-Xm boards.
I want to connect this modem through command line.
how can I…

than you.

Hi Nagu

I use ubuntu, not angstrom.

The following is not specific to BeagleBone or any other beagle boards, it is more general linux advice:

The software I use for connecting the 3G modem to the internet is ‘wvdial’ which I installed using aptitude (apt-get install wvdial).

I guess for angstrom you can try ‘opkg install wvdial’ - but I am not sure if wvdial exists in the angstrom world.

Anyways, if you manage to install wvdial, it’s usage is very straight forward, consult the documentation.
(If all is setup properly, all you do is run: sudo wvdial (ie. sudo wvdial vodafone))

But you need to find out the access point and username / password for your provider. This might involve digging on the providers website, for example I found the information for vodafone pay-as-you-go dongles on the support page for the product I use.
(wvdial makes a good guess and fills in most of the configuration, but some info has to be edited into the file /etc/wvdial/wvdial.conf)

Good luck

Martin

Update:

It is not the webcam that is trying to access the cdrom, I have seen the same error message when I have other USB devices connected (I had the 3G modem and a USB WLAN adapter connected.)

Martin

than you Martin for replay,
I am managed to install usb_mode switch and WVdial.
I am followed the procedure …

.—O—.

.-. o o

-----.-----.-----.| | .----…-----.-----.
__ | —'| ‘–.| .-’| | |

— || --‘| | | ’ | | | |
‘—’—’–‘–’–. |-----‘’----‘’–’ ‘-----’-‘-’-’
-’ |
‘—’

The Angstrom Distribution beagleboard ttyO2

Angstrom v2012.05 - Kernel 3.2.18

beagleboard login: root
Last login: Thu Jan 1 00:33:45 UTC 1970 from 192.168.0.5 on pts/0
root@beagleboard:~#
root@beagleboard:~#
root@beagleboard:~#
root@beagleboard:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0b05:1786 ASUSTek Computer, Inc.
Bus 001 Device 005: ID 19d2:2000 ONDA Communication S.p.A.
root@beagleboard:~# usb_modeswitch -c /etc/usb_modeswitch.d/19d2:2000

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
Found devices in default mode or class (1)
Accessing device 005 on[ 106.725646] usb 1-2.4: usbfs: process 302 (usb_modeswe
bus 001 …
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
OK, driver found (“dummy”)
OK, driver “dummy” detached

SCSI inquiry data (for identification)

thank you Martin for replay!!!

It was giving the error while using the wvdial…

I am managed to install usb_mode switch and WVdial.
I am followed the procedure …

.—O—.

.-. o o

-----.-----.-----.| | .----…-----.-----.
__ | —'| ‘–.| .-’| | |

— || --‘| | | ’ | | | |
‘—’—’–‘–’–. |-----‘’----‘’–’ ‘-----’-‘-’-’
-’ |
‘—’

The Angstrom Distribution beagleboard ttyO2

Angstrom v2012.05 - Kernel 3.2.18

beagleboard login: root
Last login: Thu Jan 1 00:33:45 UTC 1970 from 192.168.0.5 on pts/0
root@beagleboard:~#
root@beagleboard:~#
root@beagleboard:~#
root@beagleboard:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0b05:1786 ASUSTek Computer, Inc.
Bus 001 Device 005: ID 19d2:2000 ONDA Communication S.p.A.
root@beagleboard:~# usb_modeswitch -c /etc/usb_modeswitch.d/19d2:2000

Looking for target devices …
No devices in target mode or class found
Looking for default devices …
Found devices in default mode or class (1)
Accessing device 005 on[ 106.725646] usb 1-2.4: usbfs: process 302 (usb_modeswe
bus 001 …
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached …
Looking for active driver …
OK, driver found (“dummy”)
OK, driver “dummy” detached

SCSI inquiry data (for identification)

Hi Pablo

No, I was not able to fix this problem:

Just to recap: Using the 3G modem on it’s own seems fine, and using the camera on it’s own seems fine too.
The problem only occurs when both devices are connected, and I think it is the modem that is acting up.

I have not come round to try this, but I wanted to exchange the modem with a wifi adapter (there are a number of those you can make to work, I think if they are Realtek chips there is support in ubuntu for beaglebone) and use a portable wifi access point, like this one: Huawei E589 Mobile WiFi.

Let me know if you have success with this, good luck

Martin