Difference between revisions of "Component: GSM (EB066, Generic AT) (Wireless)"
From Flowcode Help
Jump to navigationJump to search| Line 20: | Line 20: | ||
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| Line 28: | Line 30: | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
Revision as of 14:41, 16 January 2023
| 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 | 









