Solved

Vehicle Tracking System- Loss of SMS

Posted on 2004-10-16
3
331 Views
Last Modified: 2013-12-09
Dear Friends,
I have developed an apllication for Vehicle Tracking using Short Messaging service(SMS). I have installed a TC35i module with a computer as modem and the vehicle unit has also been developed around TC35i module with GPS along with it. the computer programming is in VB6.0
The problem I facing is that when I install my Vehicle unit in a vehicle I lose a number of SMS (for example if the vehicle unit sends 50 SMS to the modem, the modem receives only about 40 SMS and the rest are lost). However, if I install the vehicle unit in the same or adjacent room as the modem there is no loss of SMS.
Can somebody help???
0
Comment
Question by:jasneetdua
  • 2
3 Comments
 
LVL 13

Expert Comment

by:imarshad
ID: 12345346
There could be three reasons......

1) Your Unit is not sending all the messages..... Suppose your UNIT sends AT commands to the modem and the modem tries to send the message.....Maybe due to Low signal strength your message is not delivered....Are you checking this case ? Are you making sure that your message is send from the Unit ? Reading the OK after sending is very necessary....... Also you should check for Signal Strength before sending SMS.....If the Signal Strength is < 12 then most probably your SMS will not be send.......

2) Your GSM provider is chocking the messages.....Although the chances are very remote as you are receiving the messages from your UNIT in the Lab test....

3) Your SMS reading program might be missing some SMS......Again the chances of this happening is remote as your application works well when you are doing Lab Test......Still I will like to know what technique you are using to read SMS..... My preferred is AT+CMGL=4 (PDU Mode) and AT+CMGL="ALL" (Text Mode) and then deleting the SMS one by one......There is absolutely no chance of not reding an SMS in this way......

So I reckon your Unit is not making sure that the SMS is delivered or not......Just I want to know how you can say that the vehicle has send 50 SMS ????? Maybe it has send 40 SMS........


I hope this info is helpful........

Imran
0
 

Author Comment

by:jasneetdua
ID: 12356308
Dear Imran,
I will answer all your questions point by point

1)Your point regarding signal strength may hold true, because initially we were using antenna with 3db gain. now we are using an antenna with 6db gain and are able to receive complete data from the vehicle unit even when it is installed in a vehicle. With the 3 db gain antenna signal stenght (AT+CSQ) was arount 10 but with 6db antenna we are getting a signal strength of 30.

2) GSM provider is not choking the messages

3)we are already using the technique suggested by you. AT+CMGL=ALL (Text mode) and then delete the SMS one by one. The vehicle unit has a message ID which is incremented only when it gets response <+CMGS "mr" OK>. this message ID is sent with all the SMS and received and displayed at the computer.

One clarification that I would like at this point is that after receiving the response <+CMGS "mr" OK>, is there still a possibility of losing a SMS? Is there something else which has to be done/checked to ensure that no SMS is lost. Does the vehicle unit need to check for some other response also?

Thanks
0
 
LVL 13

Accepted Solution

by:
imarshad earned 500 total points
ID: 12367824
>>One clarification that I would like at this point is that after receiving the response <+CMGS "mr" OK>, is there still a possibility of losing a SMS? Is there something
>>else which has to be done/checked to ensure that no SMS is lost. Does the vehicle unit need to check for some other response also?

After receiving <+CMGS "mr" OK> you are almost sure that the message will be send.......Just a few things that might cause the message to not to be delivered....
The number in the AT+CMGS="xxxxxxxxxxx" might not be correct......If you send the SMS on a wrong number then you still will receive the same <+CMGS "mr" OK> message though the message is not delivered.....
I suggest you to check your Hardware code again and again..........I think there is some condition in it that is increasing the messageID even when the message is not send......
Imran
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Hopefully this article will help someone who's had the same issues I had. I have a Dell Wireless 1390 WLAN Mini-Card and Windows 7, and for the past couple of days I was beyond frustrated because my wireless laptop was not able to access the Inte…
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now