Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to open serial port #33

Open
broyuken opened this issue Jun 5, 2024 · 2 comments
Open

Failed to open serial port #33

broyuken opened this issue Jun 5, 2024 · 2 comments

Comments

@broyuken
Copy link

broyuken commented Jun 5, 2024

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
Copy link

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

@broyuken
Copy link
Author

broyuken commented Jun 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants