Component: MIAC GSM (MIAC: Addon Modules): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 75: | Line 75: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AnalogInput''' | ||
|- | |- | ||
| colspan="2" | Read the ADC value of a Terminal Returns 12 bit ADC reading | | colspan="2" | Read the ADC value of a Terminal Returns 12 bit ADC reading | ||
| Line 94: | Line 94: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DigitalInput''' | ||
|- | |- | ||
| colspan="2" | Read the value of a terminal | | colspan="2" | Read the value of a terminal | ||
| Line 113: | Line 113: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DigitalOutput''' | ||
|- | |- | ||
| colspan="2" | Set a Terminal Output to High (Value=1) or Low (Value=0) | | colspan="2" | Set a Terminal Output to High (Value=1) or Low (Value=0) | ||
| Line 137: | Line 137: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_AnswerIncomingCall''' | ||
|- | |- | ||
| colspan="2" | Answers the phone for an incoming type call. Returns 0 for success and 255 for failure. | | colspan="2" | Answers the phone for an incoming type call. Returns 0 for success and 255 for failure. | ||
| Line 151: | Line 151: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_CheckForIncoming''' | ||
|- | |- | ||
| colspan="2" | Checks to see if any incoming phone call or SMS message. 0 = Nothing, 1 = Text Received, 2 = Phone Ringing | | colspan="2" | Checks to see if any incoming phone call or SMS message. 0 = Nothing, 1 = Text Received, 2 = Phone Ringing | ||
| Line 165: | Line 165: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_CheckNetworkStatus''' | ||
|- | |- | ||
| colspan="2" | Returns the state of the GSM network. 0 = Not connected, 1 = connected, 255 = no reply from GSM. | | colspan="2" | Returns the state of the GSM network. 0 = Not connected, 1 = connected, 255 = no reply from GSM. | ||
| Line 179: | Line 179: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_DialNumber''' | ||
|- | |- | ||
| colspan="2" | Performs a standard voice call by dialling the number specified. Returns 0 for call in progress and 255 for no response. | | colspan="2" | Performs a standard voice call by dialling the number specified. Returns 0 for call in progress and 255 for no response. | ||
| Line 198: | Line 198: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_GetCharCount''' | ||
|- | |- | ||
| colspan="2" | Returns the number of characters waiting to be read from the receive buffer. (Low level GSM interface) | | colspan="2" | Returns the number of characters waiting to be read from the receive buffer. (Low level GSM interface) | ||
| Line 212: | Line 212: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_GetCharacter''' | ||
|- | |- | ||
| colspan="2" | Returns the next character waiting to be read from the receive buffer. (Low level GSM interface) | | colspan="2" | Returns the next character waiting to be read from the receive buffer. (Low level GSM interface) | ||
| Line 226: | Line 226: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_GetStatus''' | ||
|- | |- | ||
| colspan="2" | Returns status bits from the GSM module. Bit 6 = CTS, Bit 12 = STATUS (LED), Bit 13 = RING (Low level GSM interface) | | colspan="2" | Returns status bits from the GSM module. Bit 6 = CTS, Bit 12 = STATUS (LED), Bit 13 = RING (Low level GSM interface) | ||
| Line 240: | Line 240: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_GetTextNumber''' | ||
|- | |- | ||
| colspan="2" | Collects the sender's phone number from an incoming text message. | | colspan="2" | Collects the sender's phone number from an incoming text message. | ||
| Line 259: | Line 259: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_GetTextString''' | ||
|- | |- | ||
| colspan="2" | Collects the text message data from an incoming text message. | | colspan="2" | Collects the text message data from an incoming text message. | ||
| Line 278: | Line 278: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_HangUpCall''' | ||
|- | |- | ||
| colspan="2" | Ends a voice based call. Returns 0 for success and 255 for failure. | | colspan="2" | Ends a voice based call. Returns 0 for success and 255 for failure. | ||
| Line 292: | Line 292: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_Initialize''' | ||
|- | |- | ||
| colspan="2" | Resets and restarts the GSM module Sets up the GSM module. Returns 0 for OK, 255 for no reply and 254 for command fail. | | colspan="2" | Resets and restarts the GSM module Sets up the GSM module. Returns 0 for OK, 255 for no reply and 254 for command fail. | ||
| Line 306: | Line 306: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_ReadString''' | ||
|- | |- | ||
| colspan="2" | Copies the data from the data string array to a local string variable | | colspan="2" | Copies the data from the data string array to a local string variable | ||
| Line 325: | Line 325: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SendCharacter''' | ||
|- | |- | ||
| colspan="2" | Sends the byte character to the GSM module. (Low level GSM interface) | | colspan="2" | Sends the byte character to the GSM module. (Low level GSM interface) | ||
| Line 344: | Line 344: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SendCommand''' | ||
|- | |- | ||
| colspan="2" | Sends a command string to the GSM module. 0 = Command sent ok, 255 = No Reply | | colspan="2" | Sends a command string to the GSM module. 0 = Command sent ok, 255 = No Reply | ||
| Line 368: | Line 368: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SendScript''' | ||
|- | |- | ||
| colspan="2" | Send an AT command script. Returns 0 for fail, 1 for success and 255 for unrecognised script idx. | | colspan="2" | Send an AT command script. Returns 0 for fail, 1 for success and 255 for unrecognised script idx. | ||
| Line 387: | Line 387: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SendTextMessage''' | ||
|- | |- | ||
| colspan="2" | Sends the text message data specified to the number specified using the SMS protocol. Returns 0 for success and 255 for failure. | | colspan="2" | Sends the text message data specified to the number specified using the SMS protocol. Returns 0 for success and 255 for failure. | ||
| Line 411: | Line 411: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SetRTS''' | ||
|- | |- | ||
| colspan="2" | Sets the state of the GSM module RTS pin. (Low level GSM interface) | | colspan="2" | Sets the state of the GSM module RTS pin. (Low level GSM interface) | ||
| Line 430: | Line 430: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SetReset''' | ||
|- | |- | ||
| colspan="2" | Sets the state of the GSM module Reset pin. State = 0 will hold the module in the reset state (Low level GSM interface) | | colspan="2" | Sets the state of the GSM module Reset pin. State = 0 will hold the module in the reset state (Low level GSM interface) | ||
| Line 449: | Line 449: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_SetStart''' | ||
|- | |- | ||
| colspan="2" | Sets the state of the GSM module Start pin. (Low level GSM interface) | | colspan="2" | Sets the state of the GSM module Start pin. (Low level GSM interface) | ||
| Line 468: | Line 468: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GSM_StringReceive''' | ||
|- | |- | ||
| colspan="2" | Attempts to receive a string from the GSM modem. Returns 1 if successful, 0 on timeout | | colspan="2" | Attempts to receive a string from the GSM modem. Returns 1 if successful, 0 on timeout | ||
| Line 482: | Line 482: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''LED_Control''' | ||
|- | |- | ||
| colspan="2" | Sets the indicator LED On (State=1) or Off (State=0) | | colspan="2" | Sets the indicator LED On (State=1) or Off (State=0) | ||
| Line 501: | Line 501: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_GetAck''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 530: | Line 530: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_GetData''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 549: | Line 549: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_Init''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 568: | Line 568: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_Message''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 592: | Line 592: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_PushData''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 611: | Line 611: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_SetData''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 660: | Line 660: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''MIAC_Module_WR''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 700: | Line 700: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:23, 13 July 2026
| Author | |
| Version | 1.0 |
| Category | MIAC: Addon Modules |
MIAC GSM component
GSM Addon for MIAC System.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ma_gsm.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ma_gsm.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AnalogInput
| AnalogInput | |
| Read the ADC value of a Terminal Returns 12 bit ADC reading | |
| Terminal | |
| Terminal number to be read | |
| Return | |
DigitalInput
| DigitalInput | |
| Read the value of a terminal | |
| Terminal | |
| Return | |
DigitalOutput
| DigitalOutput | |
| Set a Terminal Output to High (Value=1) or Low (Value=0) | |
| Terminal | |
| Value | |
| Return | |
GSM_AnswerIncomingCall
| GSM_AnswerIncomingCall | |
| Answers the phone for an incoming type call. Returns 0 for success and 255 for failure. | |
| Return | |
GSM_CheckForIncoming
| GSM_CheckForIncoming | |
| Checks to see if any incoming phone call or SMS message. 0 = Nothing, 1 = Text Received, 2 = Phone Ringing | |
| Return | |
GSM_CheckNetworkStatus
| GSM_CheckNetworkStatus | |
| Returns the state of the GSM network. 0 = Not connected, 1 = connected, 255 = no reply from GSM. | |
| Return | |
GSM_DialNumber
| 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_GetCharCount
| GSM_GetCharCount | |
| Returns the number of characters waiting to be read from the receive buffer. (Low level GSM interface) | |
| Return | |
GSM_GetCharacter
| GSM_GetCharacter | |
| Returns the next character waiting to be read from the receive buffer. (Low level GSM interface) | |
| Return | |
GSM_GetStatus
| GSM_GetStatus | |
| Returns status bits from the GSM module. Bit 6 = CTS, Bit 12 = STATUS (LED), Bit 13 = RING (Low level GSM interface) | |
| Return | |
GSM_GetTextNumber
| GSM_GetTextNumber | |
| Collects the sender's phone number from an incoming text message. | |
| NumBytes | |
| Return | |
GSM_GetTextString
| GSM_GetTextString | |
| Collects the text message data from an incoming text message. | |
| NumBytes | |
| Return | |
GSM_HangUpCall
| GSM_HangUpCall | |
| Ends a voice based call. Returns 0 for success and 255 for failure. | |
| Return | |
GSM_Initialize
| 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_ReadString
| GSM_ReadString | |
| Copies the data from the data string array to a local string variable | |
| NumBytes | |
| Return | |
GSM_SendCharacter
| GSM_SendCharacter | |
| Sends the byte character to the GSM module. (Low level GSM interface) | |
| Byte | |
| Return | |
GSM_SendCommand
| GSM_SendCommand | |
| Sends a command string to the GSM module. 0 = Command sent ok, 255 = No Reply | |
| Command | |
| SendCR | |
| Return | |
GSM_SendScript
| GSM_SendScript | |
| Send an AT command script. Returns 0 for fail, 1 for success and 255 for unrecognised script idx. | |
| idx | |
| Return | |
GSM_SendTextMessage
| 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_SetRTS
| GSM_SetRTS | |
| Sets the state of the GSM module RTS pin. (Low level GSM interface) | |
| State | |
| Return | |
GSM_SetReset
| 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_SetStart
| GSM_SetStart | |
| Sets the state of the GSM module Start pin. (Low level GSM interface) | |
| State | |
| Return | |
GSM_StringReceive
| GSM_StringReceive | |
| Attempts to receive a string from the GSM modem. Returns 1 if successful, 0 on timeout | |
| Return | |
LED_Control
| LED_Control | |
| Sets the indicator LED On (State=1) or Off (State=0) | |
| State | |
| Return | |
MIAC_Module_GetAck
| MIAC_Module_GetAck | |
| CAN_ID | |
| CMD_ID | |
| TimeOut | |
| Return | |
MIAC_Module_GetData
| MIAC_Module_GetData | |
| Index | |
| Return | |
MIAC_Module_Init
| MIAC_Module_Init | |
| CAN_ID | |
| Return | |
MIAC_Module_Message
| MIAC_Module_Message | |
| CAN_ID | |
| CMD_ID | |
| Return | |
MIAC_Module_PushData
| MIAC_Module_PushData | |
| Data | |
| Return | |
MIAC_Module_SetData
| MIAC_Module_SetData | |
| Count | |
| D0 | |
| D1 | |
| D2 | |
| D3 | |
| D4 | |
| D5 | |
| Return | |
MIAC_Module_WR
| MIAC_Module_WR | |
| CAN_ID | |
| CMD_ID | |
| [[File:]] - | Count |
| [[File:]] - | Start |
| [[File:]] - | More |
| 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 | |