Closed rvt closed 2 years ago
It looks like this script (cc2538-bsl) worked correctly. If it was able to erase and flash, your bootloader worked fine, and then verified, so your firmware should also be flashed on the chip correctly. If you can do that a second time, your bootloader also wasnt locked in the process, so all good there.
I'm not sure why zigbee2mqtt can't open the serial port, your best bet would be to check here https://github.com/Koenkk/zigbee2mqtt
You can try opening a serial port with screen /dev/tty.usbserial-A601EFER 115200
(looks like most firmwares are usually 115200 and sometimes 57600) Do look up first how to exit a screen
session though.
I like opening serial sessions in a terminal with this command python3 -m serial.tools.miniterm --filter=direct /dev/tty.usbserial-A4013EFI 115200
which gives you all the nice colors and is a little easier than screen
.
But I'm not sure if the zigbee coordinator firmware would give you any actual readable ascii data when you open the serial port though.
Hey Jelmer,
thanks for the info... In this case I think I am writing it correctly then... and will head over to teh zigbee2mqtt community to understand why it keeps on showing the permission denied.
Actually, I think zigbee2mqtt is using the wrong port. Looks like you're flashing via this one: /dev/tty.usbserial-1460
but then you're trying to access this one via zigbee2mqtt /dev/ttyUSB0
, which might not even exist
Hey ,
I have been flashing it on my mac that was using /dev/tty.usbserial-1460
... But I am running zigbee2mqtt on a odroid (arm) system running Debian that shoudl be using /dev/ttyUSB0
You can see that in dmesg where it says : cp210x converter now attached to ttyUSB0
Hey All,
I am using the Sonoff Zigbee2 dongles and writing it like this:
Note 1: I might have run it once without the --bootloader-sonoff-usb... Note 2: I can always correctly write it
But when I try to use it with zigbee2mqtt it keeps on failing with
Error: Error while opening serialport 'Error: Error: Permission denied, cannot open /dev/ttyUSB0'
Note1: My zigbee2mqtt user is in the dialout group Note2: For experimentation, I also start zigbee2mqtt as a root userls -ial /dev/ttyUSB0 27434295 crw-rw---- 1 root dialout 188, 0 Feb 20 15:27 /dev/ttyUSB0
dmesg shows:questions: 1) Is there a way for mee to connect directly to ttyUSB0, for example with the screen command to see if it's alive? I tried several options, but so far I could not get de baudrate right.. Soe weird characters (which usually indicate wrong baudate...) 2) Did I brick it without a bootloader? If so, how do I tests that?
I am kinda in a loss understanding if my device is bricked or that it's something else, for example zigbee2mqtt not understand
/dev/ttyUSB0
somehow