Skip to content

chon-group/dpkg-virtualport-driver

Repository files navigation

Chon Serial Port Emulator

It is a serial port emulator for communication between Multi-agent Systems and a Exogenous Environment in Simulated World.

Installation

  1. Install the dependencies. On your Debian-like Linux machine, run:
echo "deb [trusted=yes] http://packages.chon.group/ chonos main" | sudo tee /etc/apt/sources.list.d/chonos.list
sudo apt update
sudo apt install linux-headers-`uname -r`
sudo apt install chonos-serial-port-emulator

After the installation, by default, it will be instatiated on /dev 4 pairs of devices:

  • /dev/ttyEmulatedPort0 <---> /dev/ttyExogenous0
  • /dev/ttyEmulatedPort1 <---> /dev/ttyExogenous1
  • /dev/ttyEmulatedPort2 <---> /dev/ttyExogenous2
  • /dev/ttyEmulatedPort3 <---> /dev/ttyExogenous3

And so on. Writing on one device will make its content to be read on the other pair, and vice-versa

Example

In a terminal window, execute the command below to put the emulated port waiting for incoming data

Open another terminal window and run the below command. On the first terminal Window. It should appear the message.

Screenshot_20240117_201825

Copyright

Creative Commons License
It is licensed under a Creative Commons Attribution 4.0 International License. The licensor cannot revoke these freedoms as long as you follow the license terms:

  • Attribution — You must give appropriate credit like below:

FREITAS, Bruno Policarpo Toledo; LAZARIN, Nilson Mori; PANTOJA, Carlos Eduardo. Uma Proposta de Emulador de Portas Seriais para Sistemas Multiagentes Embarcados. In: WORKSHOP-SCHOOL ON AGENTS, ENVIRONMENTS, AND APPLICATIONS (WESAAC), 17. , 2023, Pelotas/RS. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2023 . p. 55-66. ISSN 2326-5434. URL: https://sol.sbc.org.br/index.php/wesaac/article/view/33437

Cite using Bibtex
@inproceedings{wesaac,
 author = {Bruno Freitas and Nilson Lazarin and Carlos Pantoja},
 title = {Uma Proposta de Emulador de Portas Seriais para Sistemas Multiagentes Embarcados},
 booktitle = {Proceedings of the 17th Workshop-School on Agents, Environments, and Applications},
 location = {Pelotas/RS},
 year = {2023},
 keywords = {},
 issn = {2326-5434},
 pages = {55--66},
 publisher = {SBC},
 address = {Porto Alegre, RS, Brasil},
 url = {https://sol.sbc.org.br/index.php/wesaac/article/view/33437}
}