![]() ![]() In VirtualBox->Machine->Settings->Ports page, I chose to enable a port, and chose "Raw File" as the Port Mode. Thus, I needed a way to send data from the guest as well as receive data on the guest. ![]() More on WITS and Pason here and here.įor development, I chose to use a Windows 10 VM managed by VirtualBox. ![]() The WITS protocol level 0 is ASCII data, and specifically I needed to adhere to the Pason implementation. The final application needed to run on a Windows computer and needed to be able to send and receive data to an oil rig computer network using the WITS level 0 protocol and a Serial Port connection. After a good bit of Googling I was able to piece together a solution that works pretty well using my OSX computer as a host with a Windows 10 Virtual Machine (VM) guest managed by VirtualBox. My laptop doesn't have a serial port, and honestly sometimes I have a hard time remembering what a serial port looks like, yet I needed a way to test the send/receive functionality of my program. Contribute to swinton/Virtual-Serial-Ports development by creating an account on GitHub. The communication with the oil rig network needed to happen over a serial port. Creating virtual serial ports using socat. The socat command would look like: socat -d -d pty,raw,echo1 pty,raw,echo0 And it creates two ports on the system, e.g. We recently built a small application for a geology contractor who works on active oil rigs and needed a way for his gas detection equipment to communicate with the oil rig network. 5 I can create two linked virtual serial ports on a Linux system with socat, and pretend one end is a serial device, and the other one is some code that uses the device. Date Thu 15 June 2017 By Tobey Carman Tags programming ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |