Hi,
I have a teensy 4.1 board that I need to communicate to a Pc. I have used c# and python to communicate with the teensy, but in both cases the max speed is 12Mbit/s.
I have also tried to send data to pc with this script https://github.com/PaulStoffregen/USB-Serial-Print-Speed-Test/blob/master/usb_serial_print_speed.ino, and I am able to get about 1M/lines.
Python code.
Print
--- 1.09497308731 seconds ---
--- 1.09484314919 seconds ---
So 1.500.000 *8 = 12.000.000 bits/s.
Also, I have test other pcs with the same results, linux and windows.
Thanks
I have a teensy 4.1 board that I need to communicate to a Pc. I have used c# and python to communicate with the teensy, but in both cases the max speed is 12Mbit/s.
I have also tried to send data to pc with this script https://github.com/PaulStoffregen/USB-Serial-Print-Speed-Test/blob/master/usb_serial_print_speed.ino, and I am able to get about 1M/lines.
Python code.
Code:
# Importing Libraries
import serial
import time
import subprocess
import shlex
arduino = serial.Serial(port='/dev/ttyACM1', baudrate=4000000, timeout=.1)
while True:
values = bytearray([0] * 1500000)
start_time = time.time()
arduino.write(values)
print("--- %s seconds ---" % (time.time() - start_time))
--- 1.09497308731 seconds ---
--- 1.09484314919 seconds ---
So 1.500.000 *8 = 12.000.000 bits/s.
Also, I have test other pcs with the same results, linux and windows.
Thanks