Jump to content

Component: MIAC Bluetooth (MIAC: Addon Modules): Difference between revisions

From Flowcode Help
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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothCount'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_SetData'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothSendString'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_Init'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_GetData'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_Message'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_WR'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothChangeBaud'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothSetPin'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''LED_Control'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_PushData'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothSetName'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''DigitalOutput'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothRead'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_GetAck'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothInitialize'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''AnalogInput'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''BluetoothSend'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialize'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''DigitalInput'''
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''  
| 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''  
| 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 
- BYTE Return


MIAC_Module_SetData
 
- BYTE Count
 
- BYTE D0
 
- BYTE D1
 
- BYTE D2
 
- BYTE D3
 
- BYTE D4
 
- BYTE D5
 
- VOID Return


BluetoothSendString
send string to Bluetooth module 
- STRING Str
 
- VOID Return


MIAC_Module_Init
 
- UINT CAN_ID
 
- VOID Return


MIAC_Module_GetData
 
- BYTE Index
 
- BYTE Return


MIAC_Module_Message
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- BYTE Return


MIAC_Module_WR
 
- UINT CAN_ID
 
- UINT CMD_ID
 
[[File:]] - Count
 
[[File:]] - Start
 
[[File:]] - More
 
- VOID Return


BluetoothChangeBaud
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)  
- BYTE Baud
New baud rate. 1=1200, 4=9600, 6=38400, 8=115200 
- VOID Return


BluetoothSetPin
Changes the pincode to a new value. The passcode is four digits, e.g. 1234 (Applies to HC-06 module only) 
- STRING Pincode
New four digit pincode 
- BYTE Return


LED_Control
Sets the indicator LED On (State=1) or Off (State=0) 
- BYTE State
 
- VOID Return


MIAC_Module_PushData
 
- BYTE Data
 
- VOID Return


BluetoothSetName
Changes the module Name to a new value. (Applies to HC-06 module only)  
- STRING Name
New four digit passcode 
- BYTE Return


DigitalOutput
Set a Terminal Output to High (Value=1) or Low (Value=0) 
- BYTE Terminal
 
- BYTE Value
 
- BYTE Return


BluetoothRead
Read one character from the Bluetooth module receive buffer. Returns 0 if nothing in the receive buffer 
- BYTE Return


MIAC_Module_GetAck
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- UINT TimeOut
 
- BYTE Return


BluetoothInitialize
Initializes the Bluetooth module (enables buffered receive mode) 
- VOID Return


AnalogInput
Read the ADC value of a Terminal Returns 12 bit ADC reading 
- BYTE Terminal
Terminal number to be read 
- UINT Return


BluetoothSend
Sends a character to the Bluetooth module 
- BYTE Character
Character (Byte) to send 
- VOID Return


Initialize
Forces a software reset on the module and enables buffered receive. 
- VOID Return


DigitalInput
Read the value of a terminal  
- BYTE Terminal
 
- BYTE Return



Property reference

Properties
Module Type
 
Module Address
 
Baud Rate
 
Connections
Simulations