ttyUSB0 is not created

embsys123
Dear Trouble shooters,

I am using 3g modem (MTS data card), modules related to USB-Serial in the
kernel were also built.
The problem is though device is detected, but ttyUSB0 is not created.

debug message.

root@phyCORE-AM335x:/ [  284.964416] usb 1-1: new full-speed USB device
number 3 using musb-hdrc
[  285.105438] usb 1-1: New USB device found, idVendor=19d2, idProduct=fff5
[  285.112304] usb 1-1: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[  285.119628] usb 1-1: Product: USB Storage
[  285.123718] usb 1-1: Manufacturer: ZTE, Incorporated
[  285.128814] usb 1-1: SerialNumber: 000000000002

root@phyCORE-AM335x:/ ls /dev/tty
tty    tty14  tty20  tty27  tty33  tty4   tty46  tty52  tty59  tty8   ttyO5
tty0   tty15  tty21  tty28  tty34  tty40  tty47  tty53  tty6   tty9
tty1   tty16  tty22  tty29  tty35  tty41  tty48  tty54  tty60  ttyO0
tty10  tty17  tty23  tty3   tty36  tty42  tty49  tty55  tty61  ttyO1
tty11  tty18  tty24  tty30  tty37  tty43  tty5   tty56  tty62  ttyO2
tty12  tty19  tty25  tty31  tty38  tty44  tty50  tty57  tty63  ttyO3
tty13  tty2   tty26  tty32  tty39  tty45  tty51  tty58  tty7   ttyO4
root@phyCORE-AM335x:/ lsmod
Module                  Size  Used by
driver                  2438  0 
root@phyCORE-AM335x:/ 




Thank you in advance.

With Regards.
Always Embedded.

davef
Do you need to look into the udev rules?  I would suggest, as an example
49-teensy.rules  I use that for a board which thinks it is a USB modem.
(Adafruit ATmega32U4)

Are you not getting good support from PhyTech on this platform?

Juergen Beisert
Hard to answer, because you are not using a FriendlyARM board...
From your logs: no driver feels responsible for your USB device. That's why
you do not get a device node.

embsys123
Thank you for going through my query. It is happening same with friendly
arm board.

can I be helped by any one of you for the solution.

With Regards.
Always Embedded.

embsys123
Dear All,

ttyUSB0 is created well with usb to serial converter (prolific tech) and
able to access it. But when I am using MTS usb modem (data card, ZTE make),
/dev/ttyUSB0 is created but unable to access the device.

With Regards.
Always Embedded.

Titus Breidung
Your USB modem seems to have an additional Storage device (SD-Card or
similar).

For many modems of these type it is necessary to disable the storage to be
recognized as an modem. For the AT commands to disable the storage device
see the documentation of the command set of your model.

For my Huawai E160 it was further needed to enable an appropriate USB to
serial driver (Qualcomm USB to serial converter in my case).

For finding out which device you need just run "lsusb -v" on the command
line after connecting the modem to your system.

Additionally i activated "USB-Modems" and "PPP" in the kernel.

Good luck!

davef
Are you running udev on this target?

What udev rules do you have?

How did you manage to get the device to be recognised as ttyUSB0?

Titus Breidung
My answer was created before reading your last posting. 

I think disabling the storage will solve your problem now!

davef
Maybe, I am barking up the wrong tree here.  My "USB-modem" appeared as
ttyACM0 and required some messing around with the udev rules.

Perhaps, this is not even relevant to your situation.

Good luck

Juergen Beisert
I would guess a device which tells us it is a:

 [  285.119628] usb 1-1: Product: USB Storage

will not have a ttyUSB device node.

Titus Breidung
You are right, Juergen. But as far as i remember i could not access the
modem with Hayes commands as long as i have enabled storage. But maybe i'm
wrong.

embsys123
Dear All,

at the end /dev/ttyUSB0 is created, but while accessing wid minicom it
gives as,

[  147.724487] pl2303 ttyUSB0: pl2303_open - failed submitting interrupt
urb, error -22
microcom: can't open '/dev/ttyUSB0': Protocol error

any comments & solutions are most welcome.

With Regards,
Always Embedded.

Titus Breidung
How was the port configured in minicom?

Try it with 115200Baud, 8N1, Xon/Xoff: off, RTS/CTS: off

embsys123
yes configured with same parameters. but the result is the same.

Titus Breidung
Another hint: My Huawei Stick is creating 3 serial ports. One is for
sending and receiving AT commands. one for sending USSD commands and one
for receiving system messages and receiving answers on USSD commands.

Test the behavior with ttyUSB1 and ttyUSB2 too.

On the command 'at' you should at least get the answer OK on one of them.

embsys123
Dear Sir,

Thank you for considering.

But only one port is created ie ttyUSB0. Neither ttyUSB1 nor ttyUSB2 is
created. I found multiple ports are created on my host system
Ubuntu-3.5.0-23 generic.

I am using ZTE make of USB data card. It has provided the drivers sources 
for 2.6.32 linux, but I need the drivers sources of 3.2.

hope to get the response from you.

Thank you once again.

With Regards,
Always Embedded.

Titus Breidung
Did you enable USB-modems in kernel configuration before compiling the
kernel?

glob
i am also using phytec wega am 335x board and facing same isssue.
ttyUSB is not creating 

[ 1291.795013] usb 1-1: new high-speed USB device number 6 using musb-hdrc
[ 1291.936187] usb 1-1: New USB device found, idVendor=2001, idProduct=a403
[ 1291.943084] usb 1-1: New USB device strings: Mfr=2, Product=3,
SerialNumber=4
[ 1291.950469] usb 1-1: Product: DWP-157
[ 1291.954223] usb 1-1: Manufacturer: DWP-157     
[ 1291.958892] usb 1-1: SerialNumber: 535946506202110
[ 1291.970367] scsi4 : usb-storage 1-1:1.0
[ 1292.790100] usb 1-1: USB disconnect, device number 6
[ 1293.694976] usb 1-1: new high-speed USB device number 7 using musb-hdrc
[ 1293.835815] usb 1-1: New USB device found, idVendor=2001, idProduct=7d0c
[ 1293.842712] usb 1-1: New USB device strings: Mfr=9, Product=10,
SerialNumber=0
[ 1293.850189] usb 1-1: Product: DWP-157
[ 1293.853942] usb 1-1: Manufacturer: DWP-157     
[ 1293.885833] scsi5 : usb-storage 1-1:1.6
[ 1294.886322] scsi 5:0:0:0: Direct-Access     HSPA_USB SCSI CD-ROM      
622 PQ: 0 ANSI: 0 CCS
[ 1294.926116] sd 5:0:0:0: [sda] Test WP failed, assume Write Enabled
[ 1294.932983] sd 5:0:0:0: [sda] Asking for cache data failed
[ 1294.938659] sd 5:0:0:0: [sda] Assuming drive cache: write through
[ 1294.955566] sd 5:0:0:0: [sda] Attached SCSI removable disk