UsbSerial/integration
Felipe Herranz 2f4a4de99c changed sync tests 2019-07-05 22:44:45 +02:00
..
README.md release of integration tests 2019-03-03 18:01:46 +01:00
integration.py added colors in integration.py 2019-03-09 21:13:42 +01:00
integration_sync.py changed sync tests 2019-07-05 22:44:45 +02:00
send_packet.py release of integration tests 2019-03-03 18:01:46 +01:00
send_packet.sh added send_packet script 2019-03-03 22:04:15 +01:00
validate_serial_tx.py release of integration tests 2019-03-03 18:01:46 +01:00

README.md

UsbSerial Integration Tests

For the purpose of helping people contributing to UsbSerial a little set of integration tests have been added. It consists in two parts.

  • Python script integration.py that sends a series packets (1kb, 2kb, 8kb, 64kb and 128kb) and validates that those packets are received back correctly.
  • Integration Android app that implements UsbSerial and just receives and sends back the packets sent by the python script.

Requirements

  • Windows/OSX/Linux with Python 3 installed
  • PySerial
  • Android phone with Android 3.1 and with USB OTG capabilities

Steps

Let's say we want to test UsbSerial transmitting at 115200 bauds and our PC port is /dev/ttyUSB0

Other Scripts

  • send_packet.py (python send_packet.py /dev/ttyUSB0 1024 115200)
  • validate_serial_tx.py (python validate_serial_tx.py /dev/ttyUSB0 1024 115200)