I would like to ask - what transfer speed expected in USB CDC driver for F103 device?
I've read, that for F4 it's around 1.1 mb/s.
I wrote simple python script:
Code: Select all
ser = serial.Serial('COM53', baudrate=2000000, timeout=1)
cnt_max = 1024*1024*10
t1 = time.time()
data = ser.read(4096)
if not data or len(data)==0:
cnt = cnt + len(data)
print 'Readed', cnt_max, 'bytes in ', time.time() - t1, 'sec'
and run it together with USB CDC F1xx example.
and got around 180 kb/s.
this is maximum or i doing something wrong?