Component: MIAC Bluetooth (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 34: | Line 34: | ||
|- | |- | ||
| 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" | '''BluetoothCount''' | ||
|- | |- | ||
| colspan="2" | Returns the number of bytes waiting to be read from the receive buffer | | colspan="2" | Returns the number of bytes waiting to be read from the receive buffer | ||
| Line 47: | Line 47: | ||
|- | |- | ||
| 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 95: | Line 95: | ||
|- | |- | ||
| 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" | '''BluetoothSendString''' | ||
|- | |- | ||
| colspan="2" | send string to Bluetooth module | | colspan="2" | send string to Bluetooth module | ||
| 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" | '''MIAC_Module_Init''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 131: | Line 131: | ||
|- | |- | ||
| 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 149: | Line 149: | ||
|- | |- | ||
| 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 172: | Line 172: | ||
|- | |- | ||
| 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 210: | Line 210: | ||
|- | |- | ||
| 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" | '''BluetoothChangeBaud''' | ||
|- | |- | ||
| colspan="2" | Changes the Bluetooth communication baud rate: 1 = 1200, 2 = 2400, 3 = 4800, 4 = 9600, 5 =19200, 6 =38400, 7 = 57600, 8 = 115200 (Applies to HC-06 module only) | | colspan="2" | Changes the Bluetooth communication baud rate: 1 = 1200, 2 = 2400, 3 = 4800, 4 = 9600, 5 =19200, 6 =38400, 7 = 57600, 8 = 115200 (Applies to HC-06 module only) | ||
| Line 228: | Line 228: | ||
|- | |- | ||
| 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" | '''BluetoothSetPin''' | ||
|- | |- | ||
| colspan="2" | Changes the pincode to a new value. The passcode is four digits, e.g. 1234 (Applies to HC-06 module only) | | colspan="2" | Changes the pincode to a new value. The passcode is four digits, e.g. 1234 (Applies to HC-06 module only) | ||
| Line 246: | Line 246: | ||
|- | |- | ||
| 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 264: | Line 264: | ||
|- | |- | ||
| 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 282: | Line 282: | ||
|- | |- | ||
| 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" | '''BluetoothSetName''' | ||
|- | |- | ||
| colspan="2" | Changes the module Name to a new value. (Applies to HC-06 module only) | | colspan="2" | Changes the module Name to a new value. (Applies to HC-06 module only) | ||
| Line 300: | Line 300: | ||
|- | |- | ||
| 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 323: | Line 323: | ||
|- | |- | ||
| 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" | '''BluetoothRead''' | ||
|- | |- | ||
| colspan="2" | Read one character from the Bluetooth module receive buffer. Returns 0 if nothing in the receive buffer | | colspan="2" | Read one character from the Bluetooth module receive buffer. Returns 0 if nothing in the receive buffer | ||
| Line 336: | Line 336: | ||
|- | |- | ||
| 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 364: | Line 364: | ||
|- | |- | ||
| 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" | '''BluetoothInitialize''' | ||
|- | |- | ||
| colspan="2" | Initializes the Bluetooth module (enables buffered receive mode) | | colspan="2" | Initializes the Bluetooth module (enables buffered receive mode) | ||
| Line 377: | Line 377: | ||
|- | |- | ||
| 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 395: | Line 395: | ||
|- | |- | ||
| 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" | '''BluetoothSend''' | ||
|- | |- | ||
| colspan="2" | Sends a character to the Bluetooth module | | colspan="2" | Sends a character to the Bluetooth module | ||
| Line 413: | Line 413: | ||
|- | |- | ||
| 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" | '''Initialize''' | ||
|- | |- | ||
| colspan="2" | Forces a software reset on the module and enables buffered receive. | | colspan="2" | Forces a software reset on the module and enables buffered receive. | ||
| Line 426: | Line 426: | ||
|- | |- | ||
| 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 448: | Line 448: | ||
|- | |- | ||
| 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''' | ||
|- | |- | ||
|- | |- | ||
| Line 467: | Line 467: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Connections''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Simulations''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | |
| Version | 1.0 |
| Category | MIAC: Addon Modules |
MIAC Bluetooth component
Bluetooth Addon for MIAC System
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| BluetoothCount | |
| Returns the number of bytes waiting to be read from the receive buffer | |
| Return | |
| MIAC_Module_SetData | |
| Count | |
| D0 | |
| D1 | |
| D2 | |
| D3 | |
| D4 | |
| D5 | |
| Return | |
| BluetoothSendString | |
| send string to Bluetooth module | |
| Str | |
| Return | |
| MIAC_Module_Init | |
| CAN_ID | |
| Return | |
| MIAC_Module_GetData | |
| Index | |
| Return | |
| MIAC_Module_Message | |
| CAN_ID | |
| CMD_ID | |
| Return | |
| MIAC_Module_WR | |
| CAN_ID | |
| CMD_ID | |
| [[File:]] - | Count |
| [[File:]] - | Start |
| [[File:]] - | More |
| Return | |
| BluetoothSetPin | |
| Changes the pincode to a new value. The passcode is four digits, e.g. 1234 (Applies to HC-06 module only) | |
| Pincode | |
| New four digit pincode | |
| Return | |
| LED_Control | |
| Sets the indicator LED On (State=1) or Off (State=0) | |
| State | |
| Return | |
| MIAC_Module_PushData | |
| Data | |
| Return | |
| BluetoothSetName | |
| Changes the module Name to a new value. (Applies to HC-06 module only) | |
| Name | |
| New four digit passcode | |
| Return | |
| DigitalOutput | |
| Set a Terminal Output to High (Value=1) or Low (Value=0) | |
| Terminal | |
| Value | |
| Return | |
| BluetoothRead | |
| Read one character from the Bluetooth module receive buffer. Returns 0 if nothing in the receive buffer | |
| Return | |
| MIAC_Module_GetAck | |
| CAN_ID | |
| CMD_ID | |
| TimeOut | |
| Return | |
| BluetoothInitialize | |
| Initializes the Bluetooth module (enables buffered receive mode) | |
| Return | |
| AnalogInput | |
| Read the ADC value of a Terminal Returns 12 bit ADC reading | |
| Terminal | |
| Terminal number to be read | |
| Return | |
| BluetoothSend | |
| Sends a character to the Bluetooth module | |
| Character | |
| Character (Byte) to send | |
| Return | |
| Initialize | |
| Forces a software reset on the module and enables buffered receive. | |
| Return | |
| DigitalInput | |
| Read the value of a terminal | |
| Terminal | |
| Return | |
Property reference
| Properties | |
| Module Type | |
| Module Address | |
| Baud Rate | |
| Connections | |
| Simulations | |