Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to write directly one SMS to SIM card using MCU,such as stm32?

Status
Not open for further replies.

liyuannian

Newbie level 1
Joined
Feb 9, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
19
I am doing an experiment about driving my SIM card with stm32, I use its smartcard mode, and now I can read SMS from SIM card, when I write one SMS whose content is same to the one I read,but some bytes are not correct, the details see below:
-------------------------------------------------------------------------------------
The SMS I read from SIM card:

01 08 91 68 31 08 20 03 05 F0 24 0D 91 68 81 99 16 42 01 F6 90 00 00 00 00 00 00 00 00 1E 54 2F 75 28 98 84 5B 58 65 87 4E F6 00 3A 00 23 00 40 00 31 00 30 00 31 00 21 00 30 00 31 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
--------------------------------------------------------------------------------------
Write the SMS above-mentioned to SIM card, then read it again,the content is:

01 08 91 68 31 08 20 03 05 F0 24 0D 91 68 81 99 16 42 01 F6 90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3A 00 23 00 40 00 31 00 30 00 31 00 21 00 30 00 31 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

The difference between the first SMS and the second SMS is colored:

90 00 00 00 00 00 00 00 00 1E 54 2F 75 28 98 84 5B 58 65 87 4E F6 00 3A 00 23 00 40 00 31 00 30 00 31 00 21 00 30 00 31
90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3A 00 23 00 40 00 31 00 30 00 31 00 21 00 30 00 31
(the upper belongs to first SMS,the lower second)
meaning of bytes:
90: PID Identifier
00: TP-DCS
00 00 00 00 00 00 00: time stamp
1E: length(bytes) of SMS content
54 2F 75 28 98 84 5B 58 65 87 4E F6 00 3A 00 23 00 40 00 31 00 30 00 31 00 21 00 30 00 31: SMS content
I did many experiments about this, and every time I got same content, I dont know why.
If anyone knows that, please tell me, thank you all :).
 

@liyuannian,

What are you trying to do??? What you mean by writing one SMS directly to sim card using STM32???

The question is so absurd..Post it clearly and simple..
 

I don't think that the question is absurd, but I agree that it's most likely unclear for most forum members what the OP wants to achieve.

Normally a SIM card is accessed through the GSM modem, You can however connect the SIM card directly to a processor, using the specified protocol (as described in 3GPP TS 11.11 respectively ETSI TS 100 977). There are further specifications how SMS data should be stored.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top