Re: dlm for UDP networking protocol [message #54253] |
Thu, 31 May 2007 14:08 |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
Thanks for the suggestion, Jo.
This is interesting but I don't think this would work as the
instrumentation protocol riding on top of the UDP connections is pretty
complicated. It's not a simple send command and then listen for a
response interaction. I have to keep channels open.
Guess I am off to fire up Visual Studio... I'm planning to start with
Randall Frank's TCP/IP dlm and build on that. I haven't looked at the
source but I'm hoping extending it will be relatively easy. One can hope...
-Rick
Jo Klein wrote:
> Hi Rick,
> Have you thought about using netcat? You could SPAWN a pipe to
> communicate with your equipment. This would get the commands to it, but
> with UDP, you will probably need a separately SPAWN'ed nc process with
> -l -u options to receive responses. Try something like
> SPAWN,'nc -u <host> <port>',UNIT=unit
> Then use WRITEU to send your commands, see online help. Don't forget to
> CLOSE and FREE_LUN your unit.
> Maybe you can play a bit with nc on the unix command line to see if you
> can make it talk to your equipment.
> Hope this helps,
> Jo
|
|
|
Re: dlm for UDP networking protocol [message #54255 is a reply to message #54253] |
Thu, 31 May 2007 11:35  |
Jo Klein
Messages: 54 Registered: January 2006
|
Member |
|
|
Hi Rick,
Have you thought about using netcat? You could SPAWN a pipe to
communicate with your equipment. This would get the commands to it, but
with UDP, you will probably need a separately SPAWN'ed nc process with
-l -u options to receive responses. Try something like
SPAWN,'nc -u <host> <port>',UNIT=unit
Then use WRITEU to send your commands, see online help. Don't forget to
CLOSE and FREE_LUN your unit.
Maybe you can play a bit with nc on the unix command line to see if you
can make it talk to your equipment.
Hope this helps,
Jo
|
|
|