nguyenbahuong / smslib

Automatically exported from code.google.com/p/smslib
0 stars 0 forks source link

SMSLib ---how to get com port no in linux to which airtel 3g stick is connected #513

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 15d9:0a4c Trust International B.V. 
Bus 003 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 12d1:1436 Huawei Technologies Co., Ltd. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

i am using  airtel 3g stick from which i can access internet

i need to use port no in my project ....plz help me to find port no 

private static String port = " "; //Modem Port.
private static int bitRate = 115200; //this is also optional. leave as it is.
private static String modemName = "ZTE"; //this is optional.
private static String modemPin = "0000"; //Pin code if any have assigned to the 
modem.
private static String SMSC = ""; //Message Center Number ex. Mobitel

Original issue reported on code.google.com by ntn.deve...@gmail.com on 9 Oct 2012 at 12:18

GoogleCodeExporter commented 9 years ago
I can't answer this...

There must be some device that's mapped to your modem. Something like a 
ttyUSBxx or ttySxx. Check your syslog for possible info.

Original comment by admin@smslib.org on 13 Oct 2012 at 10:03