Thanks alexfish. I appreciate the hand.
This is after rebooting the box w/out the modem in. Inserting the modem, and then running the scripts below.
$ uname -a
Linux lab0 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/LinuxTesting the code-snippet in the post:$ ls -al /dev/serial/by-id
total 0
drwxr-xr-x 2 root root 80 2011-01-14 13:10 .
drwxr-xr-x 4 root root 80 2011-01-14 13:10 ..
lrwxrwxrwx 1 root root 13 2011-01-14 13:10 usb-HUA_WEI_Huawei_Mobile-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 2011-01-14 13:10 usb-HUA_WEI_Huawei_Mobile-if01-port0 -> ../../ttyUSB1
$ sudo ./script-snippet.sh
CTS 1 DSR 1 RING 0 DCD 0
Testing the attached code-snippet:
$ sudo ./attached_snippet.sh
Return is : <\r\nOK\r\n>
missing "
while executing
"puts "Matched $nMatches of $nTries"
(file "./test2.sh" line 172)
Also, after upgrading usb-modeswitch to the latest version (usb-modeswitch-1.1.6 andusb-modeswitch-data-20101222), i'm now getting the following identification by the system. This differs what the version that came with Lucid came up with.
$ lsusb
....
Bus 001 Device 006: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem
....
Bookmarks