Component: MIAC GSM (MIAC: Addon Modules)
From Flowcode Help
Jump to navigationJump to search| Author | |
| Version | 1.0 |
| Category | MIAC: Addon Modules |
Contents
MIAC GSM component
GSM Addon for MIAC System.
Component Source Code
Please click here for the component source code: FC_Comp_Source_ma_gsm.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
| GSM_SetStart | |
| Sets the state of the GSM module Start pin. (Low level GSM interface) | |
| State | |
| Return | |
| GSM_CheckNetworkStatus | |
| Returns the state of the GSM network. 0 = Not connected, 1 = connected, 255 = no reply from GSM. | |
| Return | |
| GSM_SendScript | |
| Send an AT command script. Returns 0 for fail, 1 for success and 255 for unrecognised script idx. | |
| idx | |
| Return | |
| GSM_SendTextMessage | |
| Sends the text message data specified to the number specified using the SMS protocol. Returns 0 for success and 255 for failure. | |
| Number | |
| Message | |
| Return | |
| GSM_SendCommand | |
| Sends a command string to the GSM module. 0 = Command sent ok, 255 = No Reply | |
| Command | |
| SendCR | |
| Return | |
| GSM_GetCharCount | |
| Returns the number of characters waiting to be read from the receive buffer. (Low level GSM interface) | |
| Return | |
| GSM_CheckForIncoming | |
| Checks to see if any incoming phone call or SMS message. 0 = Nothing, 1 = Text Received, 2 = Phone Ringing | |
| Return | |
| MIAC_Module_SetData | |
| Count | |
| D0 | |
| D1 | |
| D2 | |
| D3 | |
| D4 | |
| D5 | |
| Return | |
| MIAC_Module_Init | |
| CAN_ID | |
| Return | |
| GSM_HangUpCall | |
| Ends a voice based call. Returns 0 for success and 255 for failure. | |
| Return | |
| MIAC_Module_GetData | |
| Index | |
| Return | |
| GSM_SetReset | |
| Sets the state of the GSM module Reset pin. State = 0 will hold the module in the reset state (Low level GSM interface) | |
| State | |
| Return | |
| GSM_DialNumber | |
| Performs a standard voice call by dialling the number specified. Returns 0 for call in progress and 255 for no response. | |
| Number | |
| Return | |
| GSM_StringReceive | |
| Attempts to receive a string from the GSM modem. Returns 1 if successful, 0 on timeout | |
| Return | |
| MIAC_Module_Message | |
| CAN_ID | |
| CMD_ID | |
| Return | |
| MIAC_Module_WR | |
| CAN_ID | |
| CMD_ID | |
| [[File:]] - | Count |
| [[File:]] - | Start |
| [[File:]] - | More |
| Return | |
| LED_Control | |
| Sets the indicator LED On (State=1) or Off (State=0) | |
| State | |
| Return | |
| GSM_AnswerIncomingCall | |
| Answers the phone for an incoming type call. Returns 0 for success and 255 for failure. | |
| Return | |
| GSM_SetRTS | |
| Sets the state of the GSM module RTS pin. (Low level GSM interface) | |
| State | |
| Return | |
| MIAC_Module_PushData | |
| Data | |
| Return | |
| GSM_Initialize | |
| Resets and restarts the GSM module Sets up the GSM module. Returns 0 for OK, 255 for no reply and 254 for command fail. | |
| Return | |
| GSM_SendCharacter | |
| Sends the byte character to the GSM module. (Low level GSM interface) | |
| Byte | |
| Return | |
| GSM_ReadString | |
| Copies the data from the data string array to a local string variable | |
| NumBytes | |
| Return | |
| DigitalOutput | |
| Set a Terminal Output to High (Value=1) or Low (Value=0) | |
| Terminal | |
| Value | |
| Return | |
| GSM_GetTextString | |
| Collects the text message data from an incoming text message. | |
| NumBytes | |
| Return | |
| MIAC_Module_GetAck | |
| CAN_ID | |
| CMD_ID | |
| TimeOut | |
| Return | |
| GSM_GetStatus | |
| Returns status bits from the GSM module. Bit 6 = CTS, Bit 12 = STATUS (LED), Bit 13 = RING (Low level GSM interface) | |
| Return | |
| AnalogInput | |
| Read the ADC value of a Terminal Returns 12 bit ADC reading | |
| Terminal | |
| Terminal number to be read | |
| Return | |
| GSM_GetTextNumber | |
| Collects the sender's phone number from an incoming text message. | |
| NumBytes | |
| Return | |
| DigitalInput | |
| Read the value of a terminal | |
| Terminal | |
| Return | |
| GSM_GetCharacter | |
| Returns the next character waiting to be read from the receive buffer. (Low level GSM interface) | |
| Return | |
Property reference
| Properties | |
| Module Type | |
| Module Address | |
| Script Count | |
| Maximum number of scripts to store in the device's ROM | |
| Script1 | |
| ASCII based AT command data stored in ROM and used when sending script 1 | |
| Expect Echo | |