I use a Huawei E1550 with "Turbopup" Kernel 2.6.25.16. There are 2 files: dev/usb/ttyUSB0 and dev/usb/ttyUSB1Feedback request
If it has switched to modem mode, look in /dev to see how many ttyUSB[n] ports you have, then try the above test on each port. Let me know if this method finds the correct port for you!
When modem is connected and running:-
modem-stats -c ATZ /dev/usb/ttyUSB0
Returns a blank line
modem-stats -c ATZ /dev/usb/ttyUSB1
Pauses
modem-stats -c ATZ /dev/usb/ttyUSB2
Returns a can't open error message, not surprising since file /dev/usb/ttyUSB2 doen't exist I suppose.
When I disconected the modem (close pppd) [NB my script also rmmods usbserial and option - I find my modem wont reconnect properly if I dont do this]
Code: Select all
modem-stats -c ATZ /dev/usb/ttyUSB0
modem-stats: Can't open /dev/usb/ttyUSB0 for reading and writing
Code: Select all
/usr/sbin/usb_modeswitch -W -v 0x12d1 -p 0x1446 -V 0x12d1 -P 0x1001 -M '55534243123456780000000000000011060000000000000000000000000000'
modprobe usbserial vendor=0x12d1 product=0x1446
modprobe option
A
OK
Once I run pppd the modem-stats -c ATZ command no longer responds, as before. I agree that it appears the modem has to be modeswitched and usbserial and option modules loaded in order for the modem-stats -c ATZ command to work.