Difference between revisions of "Using the Data Injector"

From Flowcode Help
Jump to navigationJump to search
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sidebar>Sidebar: Advanced Features</sidebar>
+
Some of the more common communications based components have an inbuilt option to use a data injector component to allow the external portion of the communications bus to be simulated. The data injectors are designed to replicate the functionality of a specific external interface without adding anything to the downloadable code sent to the embedded device. This allows you to fully test out your program in simulation before downloading your code to the black box which is the embedded device.
Some of the more common communications based components have an inbuilt option to use a data injector component to allow the external portion of the communications bus to be simulated. The data injectors are designed to replicate the functionality of a specific external interface.
+
 
 +
[[File:Injector.png|center]]
 +
 
  
 
The current data injectors packaged with Flowcode include.
 
The current data injectors packaged with Flowcode include.
:*Injector Base - An empty injector used to create placeholders in communications components which can then be replaced with an actual injector once the component is exported.
+
:*[[Component: ID cc936c18 5d20 42c4 b940 d3c7ea7ca802|Injector Base]] - An empty injector used to create placeholders in communications components which can then be replaced with an actual injector once the component is exported.
:*AT Injector - A simple AT command based injector which will wait for a carriage return and then echo back any data it received along with an OK response.
+
:*[[Component: ID 5a237757 52e5 414b b6e4 79c7b784c3ba|AT Injector]] - A simple AT command based injector which will wait for a carriage return and then echo back any data it received along with an OK response.
:*CAN Injector - A means of decoding CAN ID's by referring to an external CSV file containing data in the format ID,DecodeString\n.
+
:*[[Component: ID 299cb595 3e6f 4022 a728 b9df1434262c|CAN Injector]] - A means of decoding CAN ID's by referring to an external CSV file containing data in the format ID,DecodeString\n.
:*DS1307 Injector - A simple I2C device compromising of a real time clock based on the PC system time and a section of user memory which can be accessed.
+
:*[[Component: ID 8d670813-9a40-4891-accc-c1bf864b8217|DS1307 Injector]] - A simple I2C device compromising of a real time clock based on the PC system time and a section of user memory which can be accessed.
:*GPS Injector - A means of dynamically adding NMEA type GPS message data into a component.
+
:*[[Component: ID c6d16a4d a800 4636 98c5 70f7bde65654|GPS Injector]] - A means of dynamically adding NMEA type GPS message data into a component.
:*Vnet Injector - A means of passing communications to other Flowcode nodes or other devices using TCP-IP style network messages.
+
:*[[Component: ID 2ed54982 ef92 4509 a67c 7b3a72f91279|Human Interface Injector]] - A means of allowing direct data input and data queuing from a keyboard, similar to the v5 RS232/I2C component functionality.
 +
:*[[Component: ID b81ab4d7 be8f 4ddd b5dc 937bda03dc82|Vnet Injector]] - A means of passing communications to other Flowcode nodes or other devices using TCP-IP style network messages.
 +
 
 +
 
 +
The Vnet injector can be used to pass data between several instances of Flowcode running on a single machine or across a network.
 +
 
 +
[[File:InjectorVnet.png|center]]
 +
 
  
 
Custom injectors can be created to allow almost any external device to be simulated and tested.
 
Custom injectors can be created to allow almost any external device to be simulated and tested.
  
More details of how to do this are available from [http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=58&t=12727 here].
+
More details of how to do this are available from the user forums: [http://www.matrixmultimedia.com/mmforums/viewtopic.php?f=58&t=12727 Creating Custom Injectors].
 +
 
 +
 
 +
Video Instructions:
 +
 
 +
<div align="center">
 +
{{#ev:youtube|3zrIQ-8UQzU|640}}
 +
</div>

Latest revision as of 08:38, 2 July 2019

Some of the more common communications based components have an inbuilt option to use a data injector component to allow the external portion of the communications bus to be simulated. The data injectors are designed to replicate the functionality of a specific external interface without adding anything to the downloadable code sent to the embedded device. This allows you to fully test out your program in simulation before downloading your code to the black box which is the embedded device.

Injector.png


The current data injectors packaged with Flowcode include.

  • Injector Base - An empty injector used to create placeholders in communications components which can then be replaced with an actual injector once the component is exported.
  • AT Injector - A simple AT command based injector which will wait for a carriage return and then echo back any data it received along with an OK response.
  • CAN Injector - A means of decoding CAN ID's by referring to an external CSV file containing data in the format ID,DecodeString\n.
  • DS1307 Injector - A simple I2C device compromising of a real time clock based on the PC system time and a section of user memory which can be accessed.
  • GPS Injector - A means of dynamically adding NMEA type GPS message data into a component.
  • Human Interface Injector - A means of allowing direct data input and data queuing from a keyboard, similar to the v5 RS232/I2C component functionality.
  • Vnet Injector - A means of passing communications to other Flowcode nodes or other devices using TCP-IP style network messages.


The Vnet injector can be used to pass data between several instances of Flowcode running on a single machine or across a network.

InjectorVnet.png


Custom injectors can be created to allow almost any external device to be simulated and tested.

More details of how to do this are available from the user forums: Creating Custom Injectors.


Video Instructions:

{{#ev:youtube|3zrIQ-8UQzU|640}}