serial-port

the fastest serial port communication possible in C#?

我怕爱的太早我们不能终老 提交于 2020-08-23 17:13:54
问题 I am new at this forum and I do not have many experiences with programming in C#. I have build simple Windows application in C# to communicate with some electronic board that my friend gave it to me. He has defined serial port baud rate in microcontroller at 38400. I want to send and receive bytes via serial port as fast as possible. With existing serialport tool in C# I was able only to read bytes but still not fast enough even with eventhandler in its own thread. My buffer[4096] was full in

How to get data from I2C device BH1750 over USB-I2C module in Python3?

大兔子大兔子 提交于 2020-07-30 12:36:03
问题 I am Linux user and I have those devices: USB-I2C convertor: https://www.robot-electronics.co.uk/htm/usb_i2c_tech.htm GY-30 I2C module: https://5.imimg.com/data5/TY/AK/MY-1833510/gy-30-bh1750-intensity-digital-light-sensor-module.pdf And GY-30 is with BH1750 Ambient light sensor: https://www.mylms.cz/wp-content/uploads/2017/07/bh1750-datasheet.pdf I need to read Luxs from BH1750 over virtual serial port in Python3, but I am not sure how to do it. I ended with something like this: import