recognize 3G dongle

Just about everything about Red Pitaya
Post Reply
thomasliuchang
Posts: 31
Joined: Mon Apr 18, 2016 12:30 pm

recognize 3G dongle

Post by thomasliuchang » Fri Dec 02, 2016 10:01 am

Dear All,

I am trying to make the RedPitaya connect to the internet using a 3G dongle. I tried this dongle on the Raspberry Pi before, and it works. But it does not work on the RedPitaya.

What I do is briefly described as follows:
There are some solutions for Raspberry Pi, which I found them may be helpful for implementing the 3G dongle on the Redpitaya.
https://www.thefanclub.co.za/how-to/how ... and-wvdial
http://raspberry-at-home.com/installing-3g-modem/

I firstly installed the ppp, usb-modeswitch and usb-modeswitch-data, which maybe used for the USB to Ethernet connectActually, the ideas are similar. After plug the 3G dongle in the USB port, both the RedPitaya and Raspberry Pi will regard it as a storage device. Then, we use the usb-modeswitch function http://www.draisberghof.de/usb_modeswitch/
Now, the Raspberry Pi can surf the internet, but the Raspberry cannot.

I found that RedPitaya has successfully switch the usb mode using

Code: Select all

lsusb
before the mode switch,

Code: Select all

Bus 001 Device 002: ID 0af0:8700 Option
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
after the model switch,

Code: Select all

Bus 001 Device 003: ID 0af0:8701 Option
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
For this 3G dongle (Option, https://wiki.debian.org/Modem/3G)
TargetVendor=0x0af0
TargetProduct=0x8700 switched to 0x8701 after usb-modeswitch (This is same for both the RedPitaya and Raspberry Pi).

I further check logfiles of the USB port using

Code: Select all

dmesg
For the Raspberry pi, the logfile is

Code: Select all

[  325.230519] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
[  325.332242] usb 1-1.2: New USB device found, idVendor=0af0, idProduct=8700
[  325.332266] usb 1-1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[  325.332279] usb 1-1.2: Product: Globetrotter HSUPA Modem
[  325.332292] usb 1-1.2: Manufacturer: Option N.V.
[  325.332304] usb 1-1.2: SerialNumber: Serial Number
[  325.334805] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  325.337082] scsi host2: usb-storage 1-1.2:1.0
[  328.577928] usb 1-1.2: USB disconnect, device number 7
[  328.850506] usb 1-1.2: new high-speed USB device number 8 using dwc_otg
[  328.951918] usb 1-1.2: New USB device found, idVendor=0af0, idProduct=8701
[  328.951928] usb 1-1.2: New USB device strings: Mfr=4, Product=3, SerialNumber=5
[  328.951935] usb 1-1.2: Product: Globetrotter HSUPA Modem
[  328.951941] usb 1-1.2: Manufacturer: Option N.V.
[  328.951948] usb 1-1.2: SerialNumber: Serial Number
[  328.953541] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  328.953732] scsi host3: usb-storage 1-1.2:1.0
[  328.956010] cdc_ether 1-1.2:1.1 eth1: register 'cdc_ether' at usb-3f980000.usb-1.2, CDC Ethernet Device, 00:a0:c6:00:00:00
[  329.954411] scsi 3:0:0:0: Direct-Access     SD       HSUPA Modem           PQ: 0 ANSI: 2
[  329.955147] sd 3:0:0:0: Attached scsi generic sg0 type 0
[  329.963150] sd 3:0:0:0: [sda] Attached SCSI removable disk
For RedPitaya, the logfile is

Code: Select all

[   41.725612] usb 1-1: new high-speed USB device number 2 using zynq-ehci
[   41.880372] usb-storage 1-1:1.0: USB Mass Storage device detected
[   41.887677] scsi host0: usb-storage 1-1:1.0
[   42.886695] scsi 0:0:0:0: CD-ROM            ZCOption HSUPA Modem           PQ: 0 ANSI: 2
[   42.894408] scsi 0:0:0:0: Attached scsi generic sg0 type 5
[   42.899868] scsi 0:0:0:1: Direct-Access     SD       HSUPA Modem           PQ: 0 ANSI: 2
[   42.913359] sd 0:0:0:1: Attached scsi generic sg1 type 0
[   42.920035] sd 0:0:0:1: [sda] Attached SCSI removable disk
[ 1364.984940] usb 1-1: USB disconnect, device number 2
[ 1365.375458] usb 1-1: new high-speed USB device number 3 using zynq-ehci
[ 1365.530351] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1365.535437] scsi host1: usb-storage 1-1:1.0
[ 1366.536620] scsi 1:0:0:0: Direct-Access     SD       HSUPA Modem           PQ: 0 ANSI: 2
[ 1366.544640] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 1366.552970] sd 1:0:0:0: [sda] Attached SCSI removable disk
It seem that the difference is

Code: Select all

cdc_ether 1-1.2:1.1 eth1: register 'cdc_ether' at usb-3f980000.usb-1.2, CDC Ethernet Device, 00:a0:c6:00:00:00
I check this on the web and find it is a driver for usb to network device http://www.linux-usb.org/usbnet/ and provided by linux kernel. However, I am not sure whether this is the reason that the 3G dongle cannot work on the RedPitaya.

Do you know how to solve the problem? Thank you very much!

Cheers,
Chang

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 25 guests