Data Frame and Rate in GSM Modem with PLC

In our Earlier Posts we have discussed about the SMS Sending through GSM Modem and the most used AT Commands in GSM Modem while interfacing it with PLC. Today we will see one of important task i.e how we can set the String that is received and sent by GSM Modem. We will discuss about this in detail and also see that how can we know the existing Frame and how can we change it.

How to See Character Frame/Data Rate in GSM Modem Communication with PLC First of all let us see that how can we see the Data Rate at which our GSM Modem Communicating. For this we have to write the AT Command in the AT Command Window.
AT+IPR? - This command will give the current Data Rate at which our GSM Modem is Communicating. Now if we want to change the Data Rate then we can issue an AT command for the same and the data rate will be changed.
AT+IPR= - This AT Command will change the Data Rate to the New one specified in this Command and OK response will come from Modem Side.
But we have to make a note here that the Data Rate are Manufacturer Specific , so we have to keep in mind the Higher Limit while Setting the Data Rate.

How to See/Change Data Frame in GSM Modem Communication with PLC :-
If we want to know that what Data frame our GSM Modem accepts and sends i.e Data Bits Stop Bits and Parity then we can easily know that by an AT Command.
AT+ICF? - This AT Command we have to issue to the GSM Modem. The response from Modem will be like - +ICF: [,]. There is specific Number for each format and parity defined in GSM Modem. You can see the Below table for this.
FORMAT---------------------MEANING
1------------------------------- 8 Data 2 Stop
2------------------------------- 8 Data 1 Parity 1 Stop
3------------------------------- 8 Data 1 Stop
4------------------------------- 7 Data 2 Stop
5------------------------------- 7 Data 1 Parity 1 Stop
6------------------------------- 7 Data 1 Stop

For Parity Refer Below Table :-
FORMAT---------------------MEANING
0-------------------------------- Odd
1------------------------------- Even
2-------------------------------Mark
3------------------------------ Space

So from the Response of the GSM Modem you can get to know that which DATA frame it is using currently. Also if you want to change the current data frame then , we can do it easily by this AT Command.
AT+ICF=[[,]]
For example if we issue an AT command AT=[<1>[,<0>]] then the DATA Frame will be 8,2,Odd i.e 8 Data Bits , 2 Stop Bits and Odd Parity.

So we today learnt about the Data Rate and Data Frame in GSM Modem while Interfacing it with PLC. We will discuss in further articles more about the GSM Modem Communication with PLC , till then you can subscribe to get all latest Updates.
If you face any problem feel free to write in comment section.
Subscribe to Automation-Talk by Email.

Advertisements :-

0 comments:

Post a Comment

Get New Updates

Enter your email address:

Delivered by FeedBurner

Receive all updates via Facebook. Just Click the Like Button Below