Skip to content

Add virtual port#2

Merged
wlkh merged 1 commit intowaterlinked:masterfrom
alexisgaziello:patch-1
Sep 3, 2018
Merged

Add virtual port#2
wlkh merged 1 commit intowaterlinked:masterfrom
alexisgaziello:patch-1

Conversation

@alexisgaziello
Copy link
Copy Markdown
Contributor

@alexisgaziello alexisgaziello commented Aug 23, 2018

The python script actually only calls an app called socat. I could not find another way to do this.
I also added some options I have in my script.
Feel free to modify, add or eliminate anything.

If you decide to add this code, it would be interesting to test it in other OS. I could only try it in Ubuntu 16.04.
Also in requirements or README a line like this one should be added:
$ sudo apt-get update && sudo apt-get install socat

The python script actually only calls an app called socat. I could not find another way to do this.
I also added some options I have in my script.
Feel free to modify, add or eliminate anything.
@wlkh
Copy link
Copy Markdown
Contributor

wlkh commented Sep 3, 2018

Thanks Alexis,

Not sure I fully understand why two serial ports are needed, care to explain?
Do you open this in Qgis by connecting to /dev/ttyS9?

@alexisgaziello
Copy link
Copy Markdown
Contributor Author

Hello Kristian,
You need two virtual ports because you create some sort of link between them. Everything you write on one port appears in the other and viceversa. In this case we read information from ttyS9 that has been written through ttyS8.

@wlkh wlkh merged commit 9000b97 into waterlinked:master Sep 3, 2018
@alexisgaziello alexisgaziello deleted the patch-1 branch September 4, 2018 14:29
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

Successfully merging this pull request may close these issues.

2 participants