Difference between revisions of "Bot test"

From Flowcode Help
Jump to navigationJump to search
Line 1: Line 1:
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"<br />
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
|-<br />
+
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]<br />
+
| width="10%" align="center" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' <br />
+
| width="90%" | '''Initialise'''
|-<br />
+
|-
|-<br />
+
| colspan="2" | Required to be used whenever the Bluetooth component is used in a program. Initialises the Bluetooth component ready for use.  
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]<br />
+
|-
| width="90%" | Command Buffer Size<br />
+
|-
|-<br />
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| colspan="2" | Maximum number of bytes that can be stored in the outgoing command buffer.&nbsp;<br />
+
| width="90%" | response_code
|-<br />
+
|-
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]<br />
+
| colspan="2" | 1:OK / 2:ERROR / 3:CONNECT / 4:NO CARRIER / 5:AUDIO / 6:PAIR / 7:RING
| width="90%" | Response Buffer Size<br />
+
|-
|-<br />
+
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE
| colspan="2" | Maximum number of bytes that can be stored in the incoming response buffer.&nbsp;<br />
+
| width="90%" | timeout
|-<br />
+
|-
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]<br />
+
| colspan="2" | The timeout value will need to set to allow sufficient time for the response to arrive.  
| width="90%" | Script Count<br />
+
|-
|-<br />
+
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -
| colspan="2" | Controls how many AT scripts are stored into non-volatile memory&nbsp;<br />
+
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-11-icon.png]]<br />
 
| width="90%" | Script 1<br />
 
|-<br />
 
| colspan="2" | Data to send for script 0, each command should be terminated with a carriage return&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]<br />
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections''' <br />
 
|-<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]<br />
 
| width="90%" | Channel<br />
 
|-<br />
 
| colspan="2" | UART Channel selector Software channels are bit banged using generic I/O pins but are not as reliable as hardware channels. Hardware channels use the selected peripheral on-board the target microcontroller.&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]<br />
 
| width="90%" | TX<br />
 
|-<br />
 
| colspan="2" | Pin to be used for Transmit data&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-5-icon.png]]<br />
 
| width="90%" | RX<br />
 
|-<br />
 
| colspan="2" | Pin to be used for Receive data&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]<br />
 
| width="90%" | Use Flow Control<br />
 
|-<br />
 
| colspan="2" | Flow Control (Handshake) enable or disable.    On: Two I/O pins are used to control the flow of data in and out of the device.    Off: Flow control is disabled.&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]<br />
 
| width="90%" | Baud Options<br />
 
|-<br />
 
| colspan="2" | Baud rate option selector&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]<br />
 
| width="90%" | Baud Rate<br />
 
|-<br />
 
| colspan="2" | &nbsp;<br />
 
|-<br />
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]<br />
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations''' <br />
 
|-<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]<br />
 
| width="90%" | Console Columns<br />
 
|-<br />
 
| colspan="2" | Number of characters that can be displayed on a single line of the console.&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]<br />
 
| width="90%" | Console Data<br />
 
|-<br />
 
| colspan="2" | Selects if the console data is automatically generated or not&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]<br />
 
| width="90%" | Scope Traces<br />
 
|-<br />
 
| colspan="2" | Selects if the scope traces are automatically added to the data recorder window or not.    Simulation - draws an approximation of the UART data onto the scope trace.    ICT - sets up the scope trace for incoming data and adds UART packet decoding at the correct BAUD.&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]<br />
 
| width="90%" | Data Source<br />
 
|-<br />
 
| colspan="2" | Simulation data source used to allow the component to connect to various remote devices    Nothing - Simulation data is ignored    COM port - Routes the communication data to and from a physical or virtual COM port      API - Routes the communication data via a data API component on the Panel.&nbsp;<br />
 
|-<br />
 
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]<br />
 
| width="90%" | API<br />
 
|-<br />
 
| colspan="2" | Selects whichAPI component to route the communication data via. Add API components to the panel before they will be available in this list. API components are available from the Comms component category.&nbsp;<br />
 
 
|}
 
|}

Revision as of 11:32, 17 August 2021

Fc9-comp-macro.png Initialise
Required to be used whenever the Bluetooth component is used in a program. Initialises the Bluetooth component ready for use.
Fc9-u8-icon.png - BYTE response_code
1:OK / 2:ERROR / 3:CONNECT / 4:NO CARRIER / 5:AUDIO / 6:PAIR / 7:RING
Fc9-u8-icon.png - BYTE timeout
The timeout value will need to set to allow sufficient time for the response to arrive.
[[File:]] - Return