1e8d7
![]() |
|
|
|
|
|||||||
| Peripheral Hardware Stuff that plugs in via USB, FireWire, eSATA, PS/2, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello!
I am installing a 3g modem. Once logged as root and I give the command # tail /var/log/messagesI got the follwoing set of messages: Code:
Mar 31 14:34:05 Vega@acottag kernel: Root mount waiting for: usbus1 Mar 31 14:34:05 Vega@acottag last message repeated 2 times Mar 31 14:34:05 Vega@acottag kernel: uhub1: 8 ports with 8 removable, self powered Mar 31 14:34:05 Vega@acottag kernel: Trying to mount root from ufs:/dev/ad0s1a Mar 31 14:35:20 Vega@acottag login: ROOT LOGIN (root) ON ttyv0 Mar 31 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Mar 31 14:35:27 Vega@acottag kernel: ugen0.2: <AnyDATA Corporation> at usbus0 Mar 31 14:35:27 Vega@acottag kernel: ubsa0: <Data Interface> on usbus0 How may get to know if the modem is installed? Thanks in advance. * This thread is started as part of a project for documention on Cellular Modem installation and Configuration; please see http://forums.freebsd.org/showthread.php?t=12801 |
|
#2
|
|||
|
|||
|
Here go the steps to make in order to check if the modem is working with the computer.
Step 1 - Identify new device node name when plugging modem usb cable. --------------------------------------------------------------------- Type tail /var/log/messages at shell prompt:Vega@acottag# tail /var/log/messagesCode:
Mar 31 14:34:05 Vega@acottag kernel: Root mount waiting for: usbus1 Mar 31 14:34:05 Vega@acottag last message repeated 2 times Mar 31 14:34:05 Vega@acottag kernel: uhub1: 8 ports with 8 removable, self powered Mar 31 14:34:05 Vega@acottag kernel: Trying to mount root from ufs:/dev/ad0s1a Mar 31 14:35:20 Vega@acottag login: ROOT LOGIN (root) ON ttyv0 Mar 31 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Mar 31 14:35:27 Vega@acottag kernel: ugen0.2: <AnyDATA Corporation> at usbus0 Mar 31 14:35:27 Vega@acottag kernel: ubsa0: <Data Interface> on usbus0 Vega@acottag# Code:
Mar 31 14:35:27 Vega@acottag kernel: ugen0.2: <AnyDATA Corporation> at usbus0 ----------------------------------------------------- Step 2.1 - Start ppp. --------------------- Type ppp at shell prompt:Vega@acottag# pppCode:
Loading /lib/libalias_cuseeme.so Loading /lib/libalias_irc.so Loading /lib/libalias_nbt.so Loading /lib/libalias_pptp.so Loading /lib/libalias_smedia.so Working in interactive mode Using interface: tun0 ppp ON Vega@acottag> ppp command prompt returns.Step 2.2 - Set ppp device. -------------------------- Type set device /dev/ugen0.2 at ppp command line: ppp ON Vega@acottag> set device /dev/ugen0.2Code:
ppp ON Vega@acottag> ppp command prompt returns.Step 2.3 - Set device speed. ---------------------------- Type set speed 115200 at ppp command line: ppp ON Vega@acottag> set speed 115200Code:
ppp ON Vega@acottag> ppp command prompt returns.Step 2.4 - Enter terminal mode in ppp. -------------------------------------- Type command term:Vega@acottag# ppp ON Vega@acottag> termCode:
warning deflink: Entering terminal mode on /dev/ugen0.2 type ’~?’ for help ppp ON Vega@acottag> ppp command prompt returns.Step 2.5 - Issue comand AT to modem. ------------------------------------ Type command at: ppp ON Vega@acottag> atCode:
Warning at: command: Invalid command Warning at: Failed 1 ppp ON Vega@acottag> Code:
Mar 31 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Please help. Thanks in advance. |
|
#3
|
|||
|
|||
|
Back when I used a 56k modem,
in one TTY the ppp.conf would be in the background working while... Code:
atz atdt dial 1310..... (sometimes name, password after that...) change the ppp prompt to ppP pPP PPP (1...2...3...) or vice versa, if all three CAPITALIZED then the connetion PPP was established and one could change to another ttys and have an internet connection. I always set set log local Phase Chat Connect LCP IPCP CCP CBCP tun command (all on one line) in ppp.conf so progress/error messages were onscreen pre-PPP rather than in a log file. (note that TUN maybe has changed since then to something else) ... Maybe part of the information above might help. OTOH I searched far and wide for cellular modem howto's and went with another equal-cost solution.. Last edited by jb_fvwm2; April 1st, 2010 at 20:51. |
| The Following User Says Thank You to jb_fvwm2 For This Useful Post: | ||
acottag (April 28th, 2010) | ||
|
#4
|
|||
|
|||
|
Disconnect your modem from the USB port and then run:
Code:
kldload u3g kldload usba Code:
ls -l /dev/ttyU* |
|
#5
|
|||
|
|||
|
Following the sugested procedure.
Code:
kldload u3g kldload usba 1.1 Driver u3g: Code:
Vega@acottag# kldload u3g module_register: module uhub/u3g already exists! Module uhub/u3g failed to register: 17 kldload: cant't load u3g: File exists Code:
Vega@acottag# kldload ubsa module_register: module uhub/ubsa already exists! Module uhub/ubsa failed to register: 17 kldload: cant't load ubsa: File exists Code:
(...) # USB Serial devices device u3g # USB-based 3G modems (Option, Huawei, Sierra) device uark # Technologies ARK3116 based serial adapters device ubsa # Belkin F5U103 and compatible serial adapters device uftdi # For FTDI usb serial adapters device uipaq # Some WinCE based devices device uplcom # Prolific PL-2303 serial adapters device uslcom # SI Labs CP2101/CP2102 serial adapters device uvisor # Visor and Palm devices device uvscom # USB serial support for DDI pocket's PHS (...) tail /var/log/messages:Code:
Vega@acottag# tail /var/log/messages: Mar 31 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Mar 31 14:35:27 Vega@acottag kernel: ugen0.2: <AnyDATA Corporation> at usbus0 Mar 31 14:35:27 Vega@acottag kernel: ubsa0: <Data Interface> on usbus0 3. List /dev/tty* devices: Quote:
Code:
Vega@acottag# ls -ld /dev/tty* crw------- 1 root wheel 0, 86 Apr 2 20:21 /dev/ttyU0 crw------- 1 root wheel 0, 87 Apr 2 20:21 /dev/ttyU0.init crw------- 1 root wheel 0, 88 Apr 2 20:21 /dev/ttyU0.lock crw------- 1 root wheel 0, 39 Apr 2 20:21 /dev/ttyv0 crw------- 1 root wheel 0, 40 Apr 2 20:21 /dev/ttyv1 crw------- 1 root wheel 0, 41 Apr 2 20:21 /dev/ttyv2 crw------- 1 root wheel 0, 42 Apr 2 20:21 /dev/ttyv3 crw------- 1 root wheel 0, 43 Apr 2 20:21 /dev/ttyv4 crw------- 1 root wheel 0, 44 Apr 2 20:21 /dev/ttyv5 crw------- 1 root wheel 0, 45 Apr 2 20:21 /dev/ttyv6 crw------- 1 root wheel 0, 46 Apr 2 20:21 /dev/ttyv7 crw------- 1 root wheel 0, 47 Apr 2 20:21 /dev/ttyv8 crw------- 1 root wheel 0, 48 Apr 2 20:21 /dev/ttyv9 crw------- 1 root wheel 0, 49 Apr 2 20:21 /dev/ttyva crw------- 1 root wheel 0, 50 Apr 2 20:21 /dev/ttyvb crw------- 1 root wheel 0, 51 Apr 2 20:21 /dev/ttyvc crw------- 1 root wheel 0, 52 Apr 2 20:21 /dev/ttyvd crw------- 1 root wheel 0, 53 Apr 2 20:21 /dev/ttyve crw------- 1 root wheel 0, 54 Apr 2 20:21 /dev/ttyvf Vega@acottag# 4. Define the device and speed in /etc/ppp/ppp.conf as follows. Quote:
Code:
(...) set device /dev/ttyU0 set speed 115200 (...) 5.1 Start ppp: Code:
Vega@acottag# ppp Loading /lib/libalias_cuseeme.so Loading /lib/libalias_irc.so Loading /lib/libalias_nbt.so Loading /lib/libalias_pptp.so Loading /lib/libalias_smedia.so Working in interactive mode Using interface: tun0 ppp ON Vega@acottag.net> Code:
ppp ON Vega@acottag.net> term deflink: Entering terminal mode on /dev/ttyU0 Type '~?' fo help ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) (...) ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) Please help. :-p Last edited by DutchDaemon; April 7th, 2010 at 23:45. |
|
#6
|
|||
|
|||
|
Hello!
Does anyone knows where may I find documentation / publications with information regarding device configuration, in order to follow and understand article http://people.freebsd.org/~n_hibma/u3g.html)? Thanks in advance. |
|
#7
|
|||
|
|||
|
I've used episodically AnyData ADU-500A on FreeBSD 8.0
Code:
kldload ubsa Code:
ubsa_load="YES" Code:
fetch http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.1.tar.bz2 fetch http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.setup tar -xvf usb-modeswitch-1.1.1.tar.bz2 cd usb_modeswitch-1.1.1 && make clean && make cp usb_modeswitch.conf /etc/usb_modeswitch.setup Locate info for your modem model in downloaded database usb_modeswitch.setup and copy and paste that portion to /etc/usb_modeswitch.setup Run once or twice compiled usb_modeswitch watch it output and take a look to system console or dmesg (/var/log/messages) output for changes on usb devices until you get in /dev cuaU0.0 cuaU0.1 ... ttyU0.0 ttyU0.1 ... and supplimental files. Then you can perform tests manually directly on port: Code:
cu -s 115200 -l cuaU0.0 ATZ OK After that you can configure userland PPP /etc/ppp/ppp.conf accordingly to your provider requirements: Code:
default:
set log Phase Chat LCP IPCP CCP tun command
disable pred1 deflate deflate24 protocomp acfcomp shortseq vj
deny pred1 deflate deflate24 protocomp acfcomp shortseq vj
set speed 115200
gprs_3g_provider:
set login
set device /dev/cuaU0.0
set phone \#777
set dial "ABORT BUSY ABORT NO\\sCARRIER \
TIMEOUT 5 \
\"\" ATE1 \
OK-AT-OK ATQ0V1X4 \
OK \\dATDT\\T \
TIMEOUT 40 \
CONNECT"
set phone \#777
set authname IF_ANY
set authkey IF_ANY
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
Code:
ppp -ddial gprs_3g_provider It works, tested many times. Last edited by varda; April 17th, 2010 at 14:28. Reason: Fix syntax mistakes |
| The Following User Says Thank You to varda For This Useful Post: | ||
acottag (April 28th, 2010) | ||
|
#8
|
|||
|
|||
|
It is good to have that posted howto... I searched hours and
hours for something similar. (Using another freebsd + wifi solution now...)... ... Just posting because I can add a bit to it ... if you add "local" to the "set log" line, messages are easier to watch, onscreen rather than in a file. ... and I seem to recall once it is working, it more immediately notifies one of something amiss as well as the (maybe) reason(s). Last edited by jb_fvwm2; April 17th, 2010 at 05:11. |
| The Following User Says Thank You to jb_fvwm2 For This Useful Post: | ||
acottag (April 28th, 2010) | ||
|
#9
|
|||
|
|||
|
Hello!
Following the suggested procedure by varda. 1. Check if module ubsa is loaded. Code:
vega# pwd /root vega# kldload ubsa module_register: module uhub/ubsa already exists! Module uhub/ubsa failed to register: 17 kldload: cant't load ubsa: File exists 2. Fetch, extract and make usb_switch. Code:
#vega fetch http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-1.1.1.tar.bz2 #vega fetch http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.setup #vega tar -xvf usb-modeswitch-1.1.1.tar.bz2 #vega cd usb_modeswitch-1.1.1 && make clean && make 3. Modify usb_modeswitch.setup to AnyData product configuration. 3.1 Check present directory. Code:
vega# pwd /root/usb_modeswitch-1.1.1 Resulting usb_modeswitch.setup: Code:
# Modified: acottag - 2010-04-21: configuration for AnyData modems # # usb_modeswitch.setup # # # # Last modified: 2010-03-16 # # Configuration collection for usb_modeswitch, a mode switching tool for # controlling flip flop (multiple mode) USB devices # # Detailed instructions and a friendly forum on the homepage: # http://www.draisberghof.de/usb_modeswitch # # You may want to check for a newer version of this file at: # http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.setup CheckSuccess=2 ######################################################## # AnyDATA ADU-500A, ADU-510A, ADU-510L, ADU-520A # # This ID gets an "Option" treatment by newer kernels. # Use module option "option_zero_cd=2" with usb-storage. # A kernel patch to fix the problem is pending # # Contributor: Vladimir Poluektov, Gabriel Smolar DefaultVendor= 0x05c6 DefaultProduct= 0x1000 TargetVendor= 0x16d5 TargetProduct= 0x6502 # only for reference and 0.x versions # MessageEndpoint=0x08 MessageContent="5553424312345678000000000000061b000000020000000000000000000000" Code:
vega# cp usb_modeswitch.conf /etc/usb_modeswitch.setup Code:
vega# ./usb_modeswitch Looking for target devices... No devices in target or class found Looking for default devices... No devices in target or class found. Nothing to do. Bye. tail /var/log/messages?Code:
vega# tail /var/log/messages (...) Apr 21 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Apr 21 14:35:27 Vega@acottag kernel: ugen0.2: <AnyDATA Corporation> at usbus0 Apr 21 14:35:27 Vega@acottag kernel: ubsa0: <Data Interface> on usbus0 |
|
#10
|
|||
|
|||
|
Take a look for the difference between configuration file
Code:
TargetVendor= 0x16d5 TargetProduct= 0x6502 Code:
Apr 21 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Code:
TargetProduct= 0x6501 |
| The Following User Says Thank You to varda For This Useful Post: | ||
acottag (April 28th, 2010) | ||
|
#11
|
|||
|
|||
|
Also I've forget to say that usb_modeswitch required if your modem seen as flash or CD drive with Windows/MacOS drivers at the first time. So this program switch it to modem mode. May be this's not you case. In config file
Code:
DefaultVendor= 0x05c6 DefaultProduct= 0x1000 Code:
TargetVendor= 0x16d5 TargetProduct= 0x6502 Code:
cu -s 115200 -l cuaU0 ATZ Code:
grep 0x6501 /src/sys/dev/usb/usbdevs product ANYDATA ADU_E100X 0x6501 CDMA 2000 1xRTT/EV-DO USB Modem |
| The Following User Says Thank You to varda For This Useful Post: | ||
acottag (April 28th, 2010) | ||
|
#12
|
||||
|
||||
|
Good day.
Just to keep ideas organized. 1. Quote:
2. Quote:
The output Code:
vega# pwd vega# /root/usb-modeswitch-1.1.1 vega# ./usb_modeswitch Looking for target devices ... Found devices in terget mode or class(1) Looking for default devices... No devices in default mode or class found. Nothing to do. Bye. Code:
# Modified: acottag - 2010-04-28: configuration for AnyData modems # # usb_modeswitch.setup # # # # Last modified: 2010-03-16 # # Configuration collection for usb_modeswitch, a mode switching tool for # controlling flip flop (multiple mode) USB devices # # Detailed instructions and a friendly forum on the homepage: # http://www.draisberghof.de/usb_modeswitch # # You may want to check for a newer version of this file at: # http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.setup ;CheckSuccess=2 ######################################################## # AnyDATA ADU-500A, ADU-510A, ADU-510L, ADU-520A # # This ID gets an "Option" treatment by newer kernels. # Use module option "option_zero_cd=2" with usb-storage. # A kernel patch to fix the problem is pending # # Contributor: Vladimir Poluektov, Gabriel Smolar DefaultVendor= 0x05c6 DefaultProduct= 0x1000 TargetVendor= 0x16d5 TargetProduct= 0x6501 # only for reference and 0.x versions # MessageEndpoint=0x08 MessageContent="5553424312345678000000000000061b000000020000000000000000000000" Code:
product ANYDATA ADU_E100X 0x6501 CDMA 2000 1xRTT/EV-DO USB Modem 3. Quote:
Code:
vega# ls /dev/cuaU0* /dev/cuaU0 /dev/cuaU0.init /dev/cuaU0.lock Quote:
Code:
vega# tail /var/log/messages Apr 28 14:35:27 Vega@acottag root: Unknown USB device: vendor 0x16d5 product 0x6501 bus uhub0 Apr 28 14:35:27 Vega@acottag kernel: ugen0.2: <AnyDATA Corporation> at usbus0 Apr 28 14:35:27 Vega@acottag kernel: ubsa0: <Data Interface> on usbus0 Code:
root# cu -s 115200 -l cuaU0 Code:
ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) Code:
ubsa_cfg_request:369: device request failed, err=USB_ERR_STALLED (ignored) Should I try FreeBSD version 7.3 to check if the same error occurs? Please help. Thanks in advance. Last edited by acottag; April 28th, 2010 at 14:56. |
|
#13
|
|||
|
|||
|
It seems that you don't need usb_modeswitch since you stick not appeared as flash or CD drive after inserting. Please try with loaded ubsa only. Try with u3g only. Try on fresh installed OS. Try on another machine. Try with another modem...
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Document on Wireless Modem Installation and Configuration | acottag | Feedback | 6 | April 13th, 2010 22:34 |
| PROBLEMS Setting up Wireless with DWLg510 wireless card and driver MRV8K51 | emiliec15 | Networking | 18 | April 3rd, 2010 13:07 |
| Motorola Modem | Fferylt | Peripheral Hardware | 0 | December 12th, 2009 07:42 |
| Modem | Ugluk911 | Peripheral Hardware | 4 | April 24th, 2009 19:56 |
| ZTE modem | M_GABBANI | Peripheral Hardware | 0 | November 18th, 2008 14:38 |