Basic icon

Basic

Basic device for custom TCP, UDP, Serial devices.

Basic

bOS Basic driver was created for integration of custom TCP, UDP, Serial devices.

Tutorial videos

In bOS, users have multiple connection types available. Serial, TCP, UDP and TCP server. Connection settings must be set accordingly, setting correct COM port must be set if the connection is serial, correct IP and port if the connection is TCP, etc.

In case received data must be parsed, parsing settings need to be set according the format of received data: text (regex), json or xml. Changing the encoding (ASCII, UTF7,8,32 depending on the input data).

Picture 1: Basic node

Example of Basic driver functionalities with a TCP connection type and basic Json line command sending and parsing certain values out of that command. Correct IP’s and parsing must of course be set before. To add the Json text in add a Command device under Basic node.

In this Command device, we must of course set the type correctly (in this case Text) and add the Json text into Text Data. For hex command we can also use the new line command, for this example we leave it blank. If we want to display certain part of this Json command we need to parse it out. On the receiving device (in this case is our TcpServer. We want to display “Hello World” text out of the whole command. Before the text we see Json string command, we can use this string command to parse the “Hello World” text out. So in our receiving device we add String node in. Set Parser type to Json and under Token Name add “string”. This should give us the correct answer back from the device, which in this case is “Hello World”.

Picture 2: Basic string value

Picture 3: Basic Json command

This website uses cookies

We use cookies to personalize content, use live chat, provide social media features and to analyze our traffic. We also share information about your use of our site with analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.