Open JNORTBF opened 1 year ago
@JNORTBF There is an extra step you need to take when setting up your DSF configuration that I can't currently find documented anywhere. When you are creating your configuration, you need to add the Default Buffer Converter
as a component. This converter knows how to convert the standard data types between doubles and whatever you have configured in the string buffer.
You can then specify the byte order for each Transfer when this component is added.
Everything else in your configuration looks correct and I can verify the data is being correctly passed as shown below. I'll try to get documentation up for this shortly.
Problem I am trying to send data that is not double to the Custom Device. I configured a DSF thread for receiving with the following configurations in the channel:
According to the documentation I left the engine type as dbl and changed the string data type to U32 and U8 as I am sending these two data types bundled in a cluster. UDP network address and port configurations are the same as when I tested it with sending doubles only. The problem is now, I am not receiving the numbers in Veristand on the channels in the Screen properly - when sending U32 and U8. Sending Doubles works without any issues. When I send Booleans I receive a very small number 1.2E-253 ... Sending Doubles works without any issues.
Expected behavior I would expect to send a cluster with one control U32 and one Control U8 to the DSF in Veristand and the right values show up on the Indicators in the Veristand screen, as they do when I am sending double values. The same I hope to get sending also other datatypes like Booleans.
Troubleshooting steps I've taken. I already tried different combinations of datatypes and debugged the messages with the dataviewer. I added the screenshot of the behavior and what I have seen with the configuration at the top. I also tried to send it with enabled as well as disabled conversion in for the transfer group. I also tried different string offsets, but then even the data-viewer didn't get the sent data. Engine Buffer in Data-viewer shows always 0 for both channels
Additional context Using Veristand 2023Q1 with 23.0.0 release of DSF. Thanks in advance for your help! I would really like to know if I have configured something wrong or there is another issue. PS.: Greetings from a former colleague @AndreasStark, I am currently working with him and we're trying to use this nice CD with all its capabilities :)