Hi JP
"Can I try to do it over the Hyperterminal? How to do this? how do I send "The telegram has to be in (.....)"
You can use hyper to try to
connect to SMSC. Test if you can connect with your modem. Use 8N1.
But to use hyper to send a telegram in UCP format is not easy..
There is several operations available. Here is 3 examples:
Command 01: Call input operation
Command 02: Multiple address call input operation
Command 30: SMS message transfer operation
etc.
I have used command 01 and 30 in my PLC code.
Command 30 example :{STX}01/xxxxx/O/30/ phone-no. ///1////// message-coded /Checksum{ETX}
Short explanation:
{STX} = 02 Hex
01 = TRN Transfernumber 01-99
xxxxx = LEN Telegram lenght
O = 51 hex Operation (R = Result)
30 = Operation type 30 SMS message transfer operation
message-coded: Send each hex value of a char as a ASCII char. F.eks: "T" = 54hex -> Send "5" "4"
Checksum = Byte add. If checksum result= 3A hex then send "3" (33 hex) and "A" (41 hex)
Between the "/" there is other parameters if needed or wanted. You can identify yourself, ask for receipt, give the number to where the receipt should go (phone, modem or fax etc) etc, etc
There is some handy-work to make a PLC code out of this! In addition the PLC must handle the modem, make a call, send the message after connection, receive respons and hang up.
If you are going to test SMS and the SMSC without the PLC, use PC software like this instead:
http://www.freedownloadscenter.com/Network_and_Internet/Misc__Communications_Tools/FreeSMS_.html
http://www.freedownloadscenter.com/Network_and_Internet/Misc__Communications_Tools/Text2GSM.html
http://www.freedownloadscenter.com/Network_and_Internet/Misc__Communications_Tools/index5.html
You didn't answer my questions. How far have you reached?
- PC/PPI + Nullmodem-cable is DTE-DCE? If you don't use the nullmodem cable, can you connect the PC to the PLC with the PC/PPI?
- the init string AT&F0 .... etc is valid for the Boca modem. You received OK from modem?
- The SMSC number is a fixed-phone number and not the same number you use from a cell phone?
- SMSC is analog 1200-9600 8N1? ( have seen default baud 1200,2400 or 9600). The PPI config match this?
- Do the modem try to make a call? (you should hear the sound)
- Is there leds on the modem? Like RD/RX, SD/TX or CD? Do the RD or SD led flash?? (communication with PLC)
- If the modem makes a call, does it get a answer? (your hear the sound and the CD lamp should light.)
If the RD/SD leds doesn't flash when the PLC program should transmit: You have to check the PLC program and/or the PLC-Modem connection. (The modem doesnt receive anything from the PLC)
If you are not sure if the PLC is sending anything, then connect it to the PC instead. (Hyperterminal or other terminal software) If you are not sure about if it is DTE-DTE or DTE-DCE connection, then try both with and without the nullmodem cable.
regards
Karl Egil