Jump to content

Component: SRF (WirelessThings) (SRF) (Wireless): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 15: Line 15:
The SRF is designed for wireless transmission and reception of serial data in an easy to use surface mounted module. It has an on-board balun and chip antenna, which can be detached for applications where an external antenna is required.
The SRF is designed for wireless transmission and reception of serial data in an easy to use surface mounted module. It has an on-board balun and chip antenna, which can be detached for applications where an external antenna is required.


==Component Pack==
==Component Source Code==


COMMSB
Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_SRF_Component_v2.fcfx FC_Comp_Source_SRF_Component_v2.fcfx]


==Detailed description==
==Detailed description==




Line 32: Line 34:


==Examples==
==Examples==




Line 183: Line 187:
| colspan="2" | Serial comms data rate specified in bits per second. 
| colspan="2" | Serial comms data rate specified in bits per second. 
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
|-
|-
|-
|-
Line 207: Line 211:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
|-
|-
|-
|-

Revision as of 17:50, 9 November 2022

Author MatrixTSL
Version 1.0
Category Wireless


SRF (WirelessThings) component

The SRF is designed for wireless transmission and reception of serial data in an easy to use surface mounted module. It has an on-board balun and chip antenna, which can be detached for applications where an external antenna is required.

Component Source Code

Please click here for the component source code: FC_Comp_Source_SRF_Component_v2.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

SendString
Send a string of data using the SRF Module 
- STRING Data
 
- VOID Return


Wake
Wake the SRF module. Includes a 10ms delay to allow radio to wake. 
- VOID Return


SendChar
 
- INT Char
 
- VOID Return


Sleep
Sets the SRF module to sleep mode. (Includes a 10mS delay to allow any data to finish sending) 
- VOID Return


SRFInitialise
Initialise the SRF Module. Activate device through 'enable' pin, and wake device to ensure it is not sleeping. 
- VOID Return


ReceiveString
Send a string of data using the SRF Module 
- BYTE Timeout
 
- BYTE NumBytes
 
- STRING Return


ReceiveChar
 
- BYTE Timeout
 
- INT Return



Property reference

Properties
Sleep Mode (ATSM)
Defines which sleep mode will be used when calling the Sleep component macro. 
Baud Rate
Serial comms data rate specified in bits per second. 
Connections
Channel
Onboard UART peripheral to use to perform serial commands. Software mode available but not recommended for receive applications unless combined with a pin interrupt. 
TX
Serial data transmit pin, output from the target microcontroller and should be connected to the RX pin of the module. 
RX
Serial data receive pin, input to the target microcontroller and should be connected to the TX pin of the module. 
Sleep
 
Simulation
Scope Traces
Selects if the scope traces are automatically generated or not 
Console Data
Selects if the console data is automatically generated or not 
Data Source
Simulation data source used to allow the component to connect to COM port hardware or the the data API components. 
COM Port
Lists all the current available COM port hardware on your PC.