nguyenbahuong / smslib

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

receiving "no response from device error" while trying to use Huawei E303 GSM Modem #539

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
I am running into problems when trying to start the service at my GSM Modem. 
Would you please be so kind as to please throw some light into what might be 
going wrong? Details follow:

1) GSM Modem is Huawei E303S - 65. It is connected via a USB port and I am 
using IPModemGateway to access it, since once connected is seen as a connected 
network.
2) I get the error message "TimeoutException: No response from device."
3) Program code is attached. By monitoring the exact command where the error is 
thrown, is on the following command: 
    Service.getInstance.startService()
4) I am also attaching the Program output
5) I have tried with and without the "-Dsmslib.serial.polling" option, same 
error appears.
6) As far as I can tell, I have included all the recommended libraries 
suggested in the Installations Instructions.

If possible, share with me some suggestions please.

Jesus Lozano

Original issue reported on code.google.com by chuyloza...@gmail.com on 10 Apr 2015 at 4:44

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,

Do not worry about this, solved without using SMSLib at all.  Since the GSM 
Modem I tried to communicate with has an IP Address, it is better to follow 
this approach:
1) Capture all the traffic that generates between your laptop and the GSM modem 
in a file with tcpdump.
2) Study the traffic with Wireshark.  Specially focus in the POST message that 
the laptop generates when you manually send an SMS.
3) Replicate that POST message within your Program, with your own parameters 
(content, date, etc.)

That is it!  No need to use smslib when you are communicating with a GSM modem 
with an IP address.

Take care,

Jesus Lozano

Original comment by chuyloza...@gmail.com on 14 Apr 2015 at 4:35