Difference between revisions of "Component: MIAC GSM (MIAC: Addon Modules)"
From Flowcode Help
Jump to navigationJump to searchLine 57: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 63: | Line 65: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===GSM_SetStart=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 81: | Line 84: | ||
+ | ===GSM_CheckNetworkStatus=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 94: | Line 98: | ||
+ | ===GSM_SendScript=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 112: | Line 117: | ||
+ | ===GSM_SendTextMessage=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 135: | Line 141: | ||
+ | ===GSM_SendCommand=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 158: | Line 165: | ||
+ | ===GSM_GetCharCount=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 171: | Line 179: | ||
+ | ===GSM_CheckForIncoming=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 184: | Line 193: | ||
+ | ===MIAC_Module_SetData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 232: | Line 242: | ||
+ | ===MIAC_Module_Init=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 250: | Line 261: | ||
+ | ===GSM_HangUpCall=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 263: | Line 275: | ||
+ | ===MIAC_Module_GetData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 281: | Line 294: | ||
+ | ===GSM_SetReset=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 299: | Line 313: | ||
+ | ===GSM_DialNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 317: | Line 332: | ||
+ | ===GSM_StringReceive=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 330: | Line 346: | ||
+ | ===MIAC_Module_Message=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 353: | Line 370: | ||
+ | ===MIAC_Module_WR=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 391: | Line 409: | ||
+ | ===LED_Control=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 409: | Line 428: | ||
+ | ===GSM_AnswerIncomingCall=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 422: | Line 442: | ||
+ | ===GSM_SetRTS=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 440: | Line 461: | ||
+ | ===MIAC_Module_PushData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 458: | Line 480: | ||
+ | ===GSM_Initialize=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 471: | Line 494: | ||
+ | ===GSM_SendCharacter=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 489: | Line 513: | ||
+ | ===GSM_ReadString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 507: | Line 532: | ||
+ | ===DigitalOutput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 530: | Line 556: | ||
+ | ===GSM_GetTextString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 548: | Line 575: | ||
+ | ===MIAC_Module_GetAck=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 576: | Line 604: | ||
+ | ===GSM_GetStatus=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 589: | Line 618: | ||
+ | ===AnalogInput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 607: | Line 637: | ||
+ | ===GSM_GetTextNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 625: | Line 656: | ||
+ | ===DigitalInput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 643: | Line 675: | ||
+ | ===GSM_GetCharacter=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:53, 3 February 2023
Author | |
Version | 1.0 |
Category | MIAC: Addon Modules |
Contents
- 1 MIAC GSM component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 GSM_SetStart
- 5.2 GSM_CheckNetworkStatus
- 5.3 GSM_SendScript
- 5.4 GSM_SendTextMessage
- 5.5 GSM_SendCommand
- 5.6 GSM_GetCharCount
- 5.7 GSM_CheckForIncoming
- 5.8 MIAC_Module_SetData
- 5.9 MIAC_Module_Init
- 5.10 GSM_HangUpCall
- 5.11 MIAC_Module_GetData
- 5.12 GSM_SetReset
- 5.13 GSM_DialNumber
- 5.14 GSM_StringReceive
- 5.15 MIAC_Module_Message
- 5.16 MIAC_Module_WR
- 5.17 LED_Control
- 5.18 GSM_AnswerIncomingCall
- 5.19 GSM_SetRTS
- 5.20 MIAC_Module_PushData
- 5.21 GSM_Initialize
- 5.22 GSM_SendCharacter
- 5.23 GSM_ReadString
- 5.24 DigitalOutput
- 5.25 GSM_GetTextString
- 5.26 MIAC_Module_GetAck
- 5.27 GSM_GetStatus
- 5.28 AnalogInput
- 5.29 GSM_GetTextNumber
- 5.30 DigitalInput
- 5.31 GSM_GetCharacter
- 6 Property reference
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
GSM_SetStart
![]() |
GSM_SetStart |
Sets the state of the GSM module Start pin. (Low level GSM interface) | |
![]() |
State |
![]() |
Return |
GSM_CheckNetworkStatus
![]() |
GSM_CheckNetworkStatus |
Returns the state of the GSM network. 0 = Not connected, 1 = connected, 255 = no reply from GSM. | |
![]() |
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_SendCommand
![]() |
GSM_SendCommand |
Sends a command string to the GSM module. 0 = Command sent ok, 255 = No Reply | |
![]() |
Command |
![]() |
SendCR |
![]() |
Return |
GSM_GetCharCount
![]() |
GSM_GetCharCount |
Returns the number of characters waiting to be read from the receive buffer. (Low level GSM interface) | |
![]() |
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 |
MIAC_Module_SetData
![]() |
MIAC_Module_SetData |
![]() |
Count |
![]() |
D0 |
![]() |
D1 |
![]() |
D2 |
![]() |
D3 |
![]() |
D4 |
![]() |
D5 |
![]() |
Return |
MIAC_Module_Init
![]() |
MIAC_Module_Init |
![]() |
CAN_ID |
![]() |
Return |
GSM_HangUpCall
![]() |
GSM_HangUpCall |
Ends a voice based call. Returns 0 for success and 255 for failure. | |
![]() |
Return |
MIAC_Module_GetData
![]() |
MIAC_Module_GetData |
![]() |
Index |
![]() |
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_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_StringReceive
![]() |
GSM_StringReceive |
Attempts to receive a string from the GSM modem. Returns 1 if successful, 0 on timeout | |
![]() |
Return |
MIAC_Module_Message
![]() |
MIAC_Module_Message |
![]() |
CAN_ID |
![]() |
CMD_ID |
![]() |
Return |
MIAC_Module_WR
![]() |
MIAC_Module_WR |
![]() |
CAN_ID |
![]() |
CMD_ID |
[[File:]] - | Count |
[[File:]] - | Start |
[[File:]] - | More |
![]() |
Return |
LED_Control
![]() |
LED_Control |
Sets the indicator LED On (State=1) or Off (State=0) | |
![]() |
State |
![]() |
Return |
GSM_AnswerIncomingCall
![]() |
GSM_AnswerIncomingCall |
Answers the phone for an incoming type call. Returns 0 for success and 255 for failure. | |
![]() |
Return |
GSM_SetRTS
![]() |
GSM_SetRTS |
Sets the state of the GSM module RTS pin. (Low level GSM interface) | |
![]() |
State |
![]() |
Return |
MIAC_Module_PushData
![]() |
MIAC_Module_PushData |
![]() |
Data |
![]() |
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_SendCharacter
![]() |
GSM_SendCharacter |
Sends the byte character to the GSM module. (Low level GSM interface) | |
![]() |
Byte |
![]() |
Return |
GSM_ReadString
![]() |
GSM_ReadString |
Copies the data from the data string array to a local string variable | |
![]() |
NumBytes |
![]() |
Return |
DigitalOutput
![]() |
DigitalOutput |
Set a Terminal Output to High (Value=1) or Low (Value=0) | |
![]() |
Terminal |
![]() |
Value |
![]() |
Return |
GSM_GetTextString
![]() |
GSM_GetTextString |
Collects the text message data from an incoming text message. | |
![]() |
NumBytes |
![]() |
Return |
MIAC_Module_GetAck
![]() |
MIAC_Module_GetAck |
![]() |
CAN_ID |
![]() |
CMD_ID |
![]() |
TimeOut |
![]() |
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 |
AnalogInput
![]() |
AnalogInput |
Read the ADC value of a Terminal Returns 12 bit ADC reading | |
![]() |
Terminal |
Terminal number to be read | |
![]() |
Return |
GSM_GetTextNumber
![]() |
GSM_GetTextNumber |
Collects the sender's phone number from an incoming text message. | |
![]() |
NumBytes |
![]() |
Return |
DigitalInput
![]() |
DigitalInput |
Read the value of a terminal | |
![]() |
Terminal |
![]() |
Return |
GSM_GetCharacter
![]() |
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 |