I don't know whether I am in the appropriate category or not!
I am using a connectportx4 as a coordinator to collect power consumption data of different devices using pikkerton zbs-110V2. I get the data from zbs to connectport. I want to send these data to my laptop continuously to process it. Can anyone tell me whether its possible to send data to pc from connectport (and other way around too)?
I tried usb serial communication using usb-serial adapter.
code in connectport:
(I am not quite sure what is the port no in connectport! I don't know how to get port no. I tried com/0, com/1--nothing works)
serfd = os.open( '/com/1', os.O_RDWR | os.O_NONBLOCK)
print "serial opened"
erg = 'hello over serial'
count = os.write( serfd, erg)
print "data send over serial"
code in laptop:
ser = serial.Serial(port='COM1',baudrate=9600,timeout=4,parity=serial.PARITY_NONE,stopbits=serial.STOPBITS_ONE,bytesize=serial.EIGHTBITS)
s = ser.read()