Monday 12 November 2012

First Test Log with active SIM CARD.

Today manage to pop in someone's simcard into the TP-Link MA180. Can't use the one I have since they are of MicroSim form factor.


With the valid SIM card, do a quick TEXT SMS send and receive, the test log from PIC24FJ256 is as below. So far I could send and receive SMS using TPLINK MA180 on PIC24FJ256.

Below is the link on this demo software compiled for the starter kit.

https://xp-dev.com/svn/MyJowen/USBGSM/PIC24FJ_StarterKit/USBGSM.hex

The starter kit is modified to connect to PC using UART interface on Pin49-TX (RP24) and Pin33-RX(RP16). Serial Setting is 8Bit, No parity, 1 stop bit, 115200 baud rate.

Success!!! I wonder if I could get the network interface to work to send data through internet using data plan.

3G USB Application Initialize
No USB Device Connected
Unsupported Device DevID = 0000 ProductID = 12DA
Switching to 3G Modem on DevID = 2357 ProductID = 0200
Detaching Device
Unsupported Device DevID = 00FA ProductID = 1396
TPLink MA180 Connected
atz
OK
at+cpin="0123"
ERROR
at+cmgl="ALL"
ERROR
at+cmgf=1
OK
at+cmee=1
OK
at+cmgl="ALL"
+CMGL: 0,"REC READ","10010",,"12/02/29,16:21:39+32"
5C0A656C76845BA26237FF0C60A8672C6B214E0A7F516D4191CF0030002E00340039004D0042FF0C60A85957991051856D4191CF5DF24F7F7528003700300033002E00310038004D0042FF0C52694F596D4191CF0032003300360038002E00380032004D00423002
+CMGL: 1,"REC READ","10010",,"12/03/01,10:24:21+32"
6E2999A863D0793AFF0C622A6B620030003267080032003965E5FF0C60A85F5367085957991051856D4191CF5DF24F7F7528003100360039002E00300034004D0042FF0C52694F596D4191CF0032003300360038002E00380032004D00423002767B5F558054901A7F514E0A84254E1A5385007700770077002E00310030003000310030002E
+CMGL: 2,"REC READ","10010",,"12/03/01,10:24:21+32"
0063006F006DFF0C67E58BE230014EA48D3930015145503C300165B94FBF53C85B9E60E00021

OK
at+cpms="SM"
+CPMS: 0,50,3,23,3,23

OK
at+cmgl="ALL"
OK
at+cpms=?
+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")

OK
at+cpms="SM","SM","SM"
+CPMS: 0,50,0,50,0,50

OK
at+cmgl="ALL"
OK
at+cmgl="ALL"
+CMGL: 0,"REC UNREAD","+6016xxxxxx",,"12/11/12,21:33:09+32"
Test again  
<- First Message Received
OK
at+cmgl="ALL"
+CMGL: 0,"REC READ","+6016xxxx",,"12/11/12,21:33:09+32"
Test again
<- Second Message Received
OK
at+cmgl="ALL"
+CMGL: 0,"REC READ","+6016xxx6",,"12/11/12,21:33:09+32"
Test again
+CMGL: 1,"REC UNREAD","+60163xxxx6",,"12/11/12,21:34:04+32"
Test one more time

OK
at+csmp=17,167,0,16
OK
at+cmgs="+601xxxxxx"
> This is my test to your reply
<- Try to send a SMS 
+CMGS: 30
OK <- Send Successfully!!!
No USB Device Connected

5 comments:

  1. could you share the Code in C or any High level language? I'm also trying to get the network interface to send data through internet using the modem.

    ReplyDelete
  2. My testing source code is as follows:-

    http://xp-dev.com/svn/MyJowen/USBGSM/
    Using Microchip MPLAB to compile the code.

    Lastly...No guarantee, please use it for your reference only.

    ReplyDelete
  3. host can't get device desciptor size. why??

    ReplyDelete
  4. I am interested in this code as well, but the code link is inoperable.

    ReplyDelete