Difference between revisions of "Component: GSM (EB066, Generic AT) (Wireless)"
From Flowcode Help
Jump to navigationJump to search| Line 15: | Line 15: | ||
| Low level routines for controlling a standard AT GSM / GPRS interface Also available in the form of the EB066 GSM E-block. | Low level routines for controlling a standard AT GSM / GPRS interface Also available in the form of the EB066 GSM E-block. | ||
| − | ==Component  | + | ==Component Source Code== | 
| − | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_GSM.fcfx FC_Comp_Source_GSM.fcfx] | |
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 26: | Line 28: | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
| Line 313: | Line 317: | ||
| | colspan="2" | ASCII based AT command data stored in ROM and used when sending script 1  | | colspan="2" | ASCII based AT command data stored in ROM and used when sending script 1  | ||
| |- | |- | ||
| − | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | 
| − | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections | 
| |- | |- | ||
| |- | |- | ||
| Line 347: | Line 351: | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | 
| − | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation | 
| |- | |- | ||
| |- | |- | ||
Revision as of 17:47, 9 November 2022
| Author | Matrix Ltd. | 
| Version | 2.0 | 
| Category | Wireless | 
Contents
GSM (EB066, Generic AT) component
Low level routines for controlling a standard AT GSM / GPRS interface Also available in the form of the EB066 GSM E-block.
Component Source Code
Please click here for the component source code: FC_Comp_Source_GSM.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|   | DialNumber | 
| Performs a standard voice call by dialling the number specified. Returns 0 for call in progress and 255 for no response. | |
|  - STRING | Number | 
|  - BYTE | Return | 
|   | GetTextString | 
| Collects the text message data from an incoming text message. | |
|  - BYTE | NumBytes | 
|  - STRING | Return | 
|   | SendString | 
| Sends a string to the GSM module. | |
|  - STRING | Text | 
|  - VOID | Return | 
|   | SendScript | 
| Send an AT command script. Returns 0 for fail, 1 for success and 255 for unrecognised script idx. | |
|  - BYTE | idx | 
|  - BYTE | Return | 
|   | SendCommand | 
| Sends a command string to the GSM module. 0 = Command sent ok, 255 = No Reply | |
|  - STRING | Command | 
|  - BYTE | SendCR | 
|  - BYTE | Return | 
|   | AnswerIncomingCall | 
| Answers the phone for an incoming type call. Returns 0 for success and 255 for failure. | |
|  - BYTE | Return | 
|   | GetTextNumber | 
| Collects the sender's phone number from an incoming text message. | |
|  - BYTE | NumBytes | 
|  - STRING | Return | 
|   | HangUpCall | 
| Ends a voice based call. Returns 0 for success and 255 for failure. | |
|  - BYTE | Return | 
|   | ReadString | 
| Copies the data from the data string array to a local string variable | |
|  - BYTE | NumBytes | 
|  - STRING | Return | 
|   | SendTextMessage | 
| Sends the text message data specified to the number specified using the SMS protocol. Returns 0 for success and 255 for failure. | |
|  - STRING | Number | 
|  - STRING | Message | 
|  - BYTE | Return | 
|   | StringReceive | 
| Attempts to receive a string from the GSM modem. | |
|  - BYTE | Return | 
|   | DeleteAllMessages | 
| Removes all pending text messages from the GSM module. Returns 0 for success and 255 for fail. | |
|  - BYTE | Return | 
|   | CheckNetworkStatus | 
| Returns the state of the GSM network. 0 = Not connected, 1 = connected, 255 = no reply from GSM. | |
|  - BYTE | Return | 
|   | CheckForIncoming | 
| Checks to see if any incoming phone call or SMS message. 0 = Nothing, 1 = Text Received, 2 = Phone Ringing | |
|  - BYTE | Return | 
|   | Initialise | 
| Sets up the GSM module. Returns 0 for OK, 255 for no reply and 254 for command fail. | |
|  - BYTE | Return | 









