rosvall / cc2531_oem_flasher

Hack to flash a stock Texas Instruments CC2531USB-RD dongle, no tools required
http://rosvall.github.io/
2 stars 2 forks source link

Usb device not found (bcdDevice 11.65) #2

Open hippelihiiri opened 3 months ago

hippelihiiri commented 3 months ago

I have plugged the device in. It shows with lsusb and with usb.core in other python script. But oem_flasher.py doesn't find device.

rosvall commented 3 months ago

I wonder if it's a different firmware version.

Please post the output of

lsusb -v -d 0x0451:0x16ae | grep bcdDevice
hippelihiiri commented 3 months ago

Hi

“Couldn't open device, some information will be missing

bcdDevice 11.65”

Panu

Lähettäjä: Andreas Rosvall @.> Lähetetty: tiistai 18. kesäkuuta 2024 12.20 Vastaanottaja: rosvall/cc2531_oem_flasher @.> Kopio: hippelihiiri @.>; Author @.> Aihe: Re: [rosvall/cc2531_oem_flasher] Usb device not found (Issue #2)

I wonder if it's a different firmware version.

Please post the output of

lsusb -v -d 0x0451:0x16ae | grep bcdDevice

— Reply to this email directly, view it on GitHub https://github.com/rosvall/cc2531_oem_flasher/issues/2#issuecomment-2175617319 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A44W6SC7YZLC3I7HBB2IN7DZH73UFAVCNFSM6AAAAABJOZGACGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZVGYYTOMZRHE . You are receiving this because you authored the thread.Message ID: @.***>

rosvall commented 3 months ago

Your cc2531 stick reports bcdDevice 0x1165, oem_flasher.py is looking for 0x8391, so that explains it.

I have no idea if oem_flasher.py works on your version - I've only tested it on devices with bcdDevice=0x8391. That's why it's looking for that specific bcdDevice.

If you have a cc2531 programmer of some sort, I'd like a copy of the firmware to test on.

You can remove the check in oem_flasher.py if you feel adventurous. Be warned that it might screw its firmware up, to the point where you'll need to flash it with a cc2531 programmer. But likely it'll either just fail or work.

diff --git a/oem_flasher.py b/oem_flasher.py
index 2a86865..35510fc 100755
--- a/oem_flasher.py
+++ b/oem_flasher.py
@@ -141 +141 @@ def find_oem_device():
-    dev = usb.core.find(idVendor=VID, idProduct=PID, bcdDevice=BCD)
+    dev = usb.core.find(idVendor=VID, idProduct=PID)
hippelihiiri commented 3 months ago

Hi

I allready tried that,It didn't work.

Panu

LähetettyOutlook for Androidhttps://aka.ms/AAb9ysg


From: Andreas Rosvall @.> Sent: Tuesday, June 18, 2024 1:36:41 PM To: rosvall/cc2531_oem_flasher @.> Cc: hippelihiiri @.>; Author @.> Subject: Re: [rosvall/cc2531_oem_flasher] Usb device not found (Issue #2)

Your cc2531 stick reports bcdDevice 0x1165, oem_flasher.py is looking for 0x8391, so that explains it.

I have no idea if oem_flasher.py works on your version - I've only tested it on devices with bcdDevice=0x8391. That's why it's looking for that specific bcdDevice.

If you have a cc2531 programmer of some sort, I'd like a copy of the firmware to test on.

You can remove the check in oem_flasher.py if you feel adventurous. Be warned that it might screw its firmware up, to the point where you'll need to flash it with a cc2531 programmer. But likely it'll either just fail or work.

diff --git a/oem_flasher.py b/oem_flasher.py index 2a86865..35510fc 100755 --- a/oem_flasher.py +++ b/oem_flasher.py @@ -141 +141 @@ def find_oem_device():

— Reply to this email directly, view it on GitHubhttps://github.com/rosvall/cc2531_oem_flasher/issues/2#issuecomment-2175777691, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A44W6SAZ422OD62Q3JKGHK3ZIAETTAVCNFSM6AAAAABJOZGACGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZVG43TONRZGE. You are receiving this because you authored the thread.Message ID: @.***>

rosvall commented 1 month ago

How do I get a copy of the firmware? Can you tell me where you got the dongle?

hippelihiiri commented 1 month ago

From aliexpress

Lähettäjä: Andreas Rosvall @.> Lähetetty: tiistai 20. elokuuta 2024 15.32 Vastaanottaja: rosvall/cc2531_oem_flasher @.> Kopio: hippelihiiri @.>; State change @.> Aihe: Re: [rosvall/cc2531_oem_flasher] Usb device not found (bcdDevice 11.65) (Issue #2)

How do I get a copy of the firmware? Can you tell me where you got the dongle?

— Reply to this email directly, view it on GitHub https://github.com/rosvall/cc2531_oem_flasher/issues/2#issuecomment-2298745353 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A44W6SAHFSPWG6OAKJARJXDZSMZMFAVCNFSM6AAAAABJOZGACGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG42DKMZVGM . You are receiving this because you modified the open/close state. https://github.com/notifications/beacon/A44W6SCBFOA3B2RGUH6VPFLZSMZMFA5CNFSM6AAAAABJOZGACGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUJAQJAS.gif Message ID: @.***>

rosvall commented 1 month ago

I've managed to add support for another firmware version, and I'd also like to support the one you have.

Can I have a link, please?

hippelihiiri commented 1 month ago

Sorry, this item is no longer available!

Lähettäjä: Andreas Rosvall @.> Lähetetty: lauantai 24. elokuuta 2024 20.16 Vastaanottaja: rosvall/cc2531_oem_flasher @.> Kopio: hippelihiiri @.>; State change @.> Aihe: Re: [rosvall/cc2531_oem_flasher] Usb device not found (bcdDevice 11.65) (Issue #2)

I've managed to add support for another firmware version, and I'd also like to support the one you have.

Can I have a link, please?

— Reply to this email directly, view it on GitHub https://github.com/rosvall/cc2531_oem_flasher/issues/2#issuecomment-2308460990 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A44W6SAQJVQ266QKP2OZM2DZTC5VFAVCNFSM6AAAAABJOZGACGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGQ3DAOJZGA . You are receiving this because you modified the open/close state. https://github.com/notifications/beacon/A44W6SBOPDUZPAOD75OMBD3ZTC5VFA5CNFSM6AAAAABJOZGACGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUJTBI34.gif Message ID: @. @.> >