openshwprojects / BK7231GUIFlashTool

Easy to use, GUI, BK7231T/BK7231N flash tool and GPIO config extractor for beginners. Dedicated for Windows platform, but works on Linux with Mono. This tool can automatically download latest firmware (on user request) and then do a full BK backup and then write new flash cycle. This tool replaces old bkWriter 1.60 and hid_download_py.
234 stars 24 forks source link

Failed to open serial port #33

Open broyuken opened 5 months ago

broyuken commented 5 months ago

Hello,

I'm fairly sure I'm doing this correctly but I am unable to open the serial connection to flash a CB3S with OBK. I am using this USB to TTL module https://www.aliexpress.us/item/3256805987170518.html

and wired up the 4 ports to VCC, GND, and flipped RX and TX. I have also verified that the device is getting power, both with a multimeter, and the fact that it shows up as online in the SmartLife app. IMG_0761 IMG_0760

However I am getting the following error from the flasher whenever I try to do anything.

Starting flash new (no backup)!
Now is: Wednesday, June 5, 2024 10:43:24.
Flasher mode: BK7231N
Going to open port: COM4.
Serial port open exception: System.IO.IOException: A device attached to the system is not functioning.

   at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
   at System.IO.Ports.SerialStream.InitializeDCB(Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Boolean discardNull)
   at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
   at System.IO.Ports.SerialPort.Open()
   at BK7231Flasher.BK7231Flasher.openPort() in E:\GitHub\BK7231GUIFlashTool\BK7231Flasher\BK7231Flasher.cs:line 95
Failed to open serial port!

The COM port does show up in Windows so it doesn't appear to be a driver issue. image

Anyone have an idea what could be the issue here?

joyanes97 commented 5 months ago

Good morning @broyuken , I have encountered the same problem, were you able to solve it?

broyuken commented 5 months ago

No, I’m hoping someone can chime in and help me troubleshoot.