Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot receive other datatypes than double using UDP Plugin #75

Open
JNORTBF opened this issue Jun 2, 2023 · 1 comment
Open

Cannot receive other datatypes than double using UDP Plugin #75

JNORTBF opened this issue Jun 2, 2023 · 1 comment

Comments

@JNORTBF
Copy link

JNORTBF commented Jun 2, 2023

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:

image
image

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

image

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 :)

@buckd
Copy link
Collaborator

buckd commented Jun 20, 2023

@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.

image

You can then specify the byte order for each Transfer when this component is added.

image

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.

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants