Skip to content

Latest commit

 

History

History

integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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)