Hi,
thanks for sharing this software. It works pretty well.
Currently I am trying the network joystick feature.
Is there any documentaion about the TCP/UDP data structure?
I would like to send the X/Y positions via UDP telegramms.
Best regards
Juergen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As far as I understand (due to the need for knowledge of the TCP/UDP data structure), you want to write your program for managing NetJoy. If not, write.
It is not so simple to describe the whole structure of transmission-reception, due to the dependence on the settings.
The main composition of the transfer:
- device number;
- some settings;
- type of control (button, axis, ...);
- The new value of the control.
You can simply examine the transmitted packages for changes in axis values to quickly understand where the values are stored in the package. For simplicity, do not use a buffer (Data-Hold Time = 0).
Associated Code С# (only the necessary fragments):
thanks for showing me to handle the NetJoy. With your posting I should be able to do it.
But when analysing the code I was wondering if this is the best way for solving my task by using
Virtual Controller.
The main aim is to bring a CAN based industrial joystick or vehicle shiftconsole into Windows and
emulate it as a generic game pad like the xbox controllers. For the first evaluation I am using a CAN/Ethernet gateway. Or in other words, I would just like to be CAN independent here. At the moment is is pretty easy to send the hole process structure in a single UDP telegramm to windows.
Now I am dealing with the idea to try/use xbox-interface API and write a small UDP Client for windows to communicate with the gateway.
Thanks for your support
and best regards
Juergen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In your case (you do not need a user interface; I/O devices are known; there is a known way to transfer data; you are able to write a bit of your own code) the best option would be to use “vXbox API”. This way should provide a minimum consumption of computer resources to achieve your goal.
Hi,
thanks for sharing this software. It works pretty well.
Currently I am trying the network joystick feature.
Is there any documentaion about the TCP/UDP data structure?
I would like to send the X/Y positions via UDP telegramms.
Best regards
Juergen
As far as I understand (due to the need for knowledge of the TCP/UDP data structure), you want to write your program for managing NetJoy. If not, write.
It is not so simple to describe the whole structure of transmission-reception, due to the dependence on the settings.
The main composition of the transfer:
- device number;
- some settings;
- type of control (button, axis, ...);
- The new value of the control.
You can simply examine the transmitted packages for changes in axis values to quickly understand where the values are stored in the package. For simplicity, do not use a buffer (Data-Hold Time = 0).
Associated Code С# (only the necessary fragments):
Last edit: VIRTUAL 2020-01-07
Hi Virtual,
thanks for showing me to handle the NetJoy. With your posting I should be able to do it.
But when analysing the code I was wondering if this is the best way for solving my task by using
Virtual Controller.
The main aim is to bring a CAN based industrial joystick or vehicle shiftconsole into Windows and
emulate it as a generic game pad like the xbox controllers. For the first evaluation I am using a CAN/Ethernet gateway. Or in other words, I would just like to be CAN independent here. At the moment is is pretty easy to send the hole process structure in a single UDP telegramm to windows.
Now I am dealing with the idea to try/use xbox-interface API and write a small UDP Client for windows to communicate with the gateway.
Thanks for your support
and best regards
Juergen
In your case (you do not need a user interface; I/O devices are known; there is a known way to transfer data; you are able to write a bit of your own code) the best option would be to use “vXbox API”. This way should provide a minimum consumption of computer resources to achieve your goal.
https://github.com/shauleiz/ScpVBus/releases
https://github.com/shauleiz/vGen/releases