msp implement help
Posted: Wed Mar 20, 2013 12:57 am
I want to implement multiwii serial protocol by pyserial
import pyserial
import struct
ser = serial.Serial('/dev/ttyUSB0', 115200)
str = struct.pack('!cccBBB', 'M', '$', '<', 0, 100, 155) # simple MSP_IDENT
print ser.write(str)
print ser.read(3)
above program hang in ser.read.....can you help me?
import pyserial
import struct
ser = serial.Serial('/dev/ttyUSB0', 115200)
str = struct.pack('!cccBBB', 'M', '$', '<', 0, 100, 155) # simple MSP_IDENT
print ser.write(str)
print ser.read(3)
above program hang in ser.read.....can you help me?