Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work on serial to ethernet converter #356

wants to merge 18 commits into
base: master


Copy link

commented Feb 16, 2018

This is a work in progress branch for Conpot's serial to ethernet coverter (possibly #22 and #353) . This would allow users to add actual serial devices running serial protocols such as Modbus RTU to conpot.
One can attach any serial device, conpot would be able to understand the contents if a decoder is available, else would give out raw packed hex.
I have been able to successfully test it against modbuspoll and Simply Modbus TCP Client. For the RTU slave device, I used my arduino uno. (Use Modbus RTU over TCP/IP)

If you need a Modbus RTU slave device to test, you may use this

Sample Mobus Poll command to test the above RTU.

./modpoll -m enc -p 6500 -t1 -r 10001 -c 1

What is missing?

  • Proper Logging. (It can log complete requests and reponses. Just not a pair of request/response. Thanks to async I/O)
  • Authentication (I wasn't sure how this works for a real device; I think this could be linked with telnet)
  • Proper intergration with conpot (To run it currently, go conpot/emulators/serial and run I am sure that there is an easy fix to this.)
  • Support for RFC2217. So no RPC execution. 馃槶
  • Comments, documentation and unit tests.
  • Benchmarking for I/O

I'll keep adding more to this branch for the above mentioned points.


This comment has been minimized.

Copy link
Collaborator Author

commented Feb 16, 2018

Apologies about the code quality in advance. Like I said, this branch is WIP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can鈥檛 perform that action at this time.