DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the DQMH Network module for bidirectional communication

Solved!
Go to solution

My knowledge of network communication is limited, and perhaps I've also misunderstood the DQMH generic networking module (GenNet)

My impression based on the comments on this page is that this is for one way communication?


In my application I need communication both ways, as my UI on the host PC will send commands to the RTT program, but also receive data continuously from the RTT program for displaying. I'd prefer for this not to be using reply messages as I feel that would have me permanently querying.

 

So to have this two way comms do I just need to have two of the GenNet modules per MHL? That is, the Host MHL has a sender module and a receiver module, and the RTT has a sender module and a receiver module? 

 

Something like this? (excuse my poorly adapted diagram)

Shiv0921_0-1728661355612.png

 

Perhaps I've misunderstood and two way communication is possible as standard, if so apologies, and also I'm happy. 

-------------------
CLD
0 Kudos
Message 1 of 3
(165 Views)
Solution
Accepted by topic author Shiv0921

It makes me happy to read that you're giving GenNet a try - thanks for your feedback.

 

There are two ways to have bidirectional communication:

 

1. Use requests for sending commands from the host to the target, and using broadcasts to continuously send data back from the target to the host

 

2. Use two separate DQMH modules, where on talks from host to target and the other one talks from target to host

 

We usually go with the first of the two.

 

Edit: Here's a little documentation about using broadcasts with GenNet.




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (Developer Experience that makes you smile )


Message 2 of 3
(140 Views)

Excellent, thanks so much for the clarification and for the extra link, that's really helped me out! Much appreciated.

-------------------
CLD
Message 3 of 3
(102 Views)