reverieline / CC2538-CC2592-ZNP

Z-Stack 3.0.2 minimal coordinator building patch for CC2538-CC2592 module
MIT License
69 stars 30 forks source link

Change LED‘s for SanmuLink CC2538 Board #6

Open Titanius opened 4 years ago

Titanius commented 4 years ago

Hello, can you please make one Hex File with USB Support and change LED‘s from -> to PB1 -> PC7 PB2 -> PC6 PB3 -> PC5 PB4 -> PC4 for the Sanmulink SM14Z2538 6LoWPAN Dev Board

https://a.aliexpress.com/_BfhHNOaB

Many Thanks for your good work.

reverieline commented 4 years ago

Hi! Please, try this build: https://www.dropbox.com/s/8w7495nzca5hu71/ZNP.hex?dl=1

If everything works fine I'll add new LED layout to repository.

Titanius commented 4 years ago

Thank you for your fast processing. The Board is still already on the way since 28 Days. As soon as it has arrived I will test it directly. I did not expect such a quick processing. ;-)

Titanius commented 4 years ago

@reverieline Hi! The shipping from china took a little longer. I Flash the SanmuLink CC2538SF53 Board with your dropbox ZNP.hex File. First, Many Thanks for you gear work!

Result: Works in Zigbee2Mqtt = Firmware version is zStack30x

LED´s

LED´s currently working PC7 Blue LED = Power always on PC6 Green LED = see it only 1 sec after connect USB Cable or Press Reset Button PC5 Yellow LED = Blink if start - join new Device from Zigbee2Mqtt PC4 Red LED = Blink after a device Send a State

you could still change the LEDs assignment for the finished release and assign the colors to the functions if this would make sense

Buttons on Board

zigbee2mqtt:error 2020-06-05 13:18:17: Adapter disconnected, stopping zigbee2mqtt:info 2020-06-05 13:18:17: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'offline' zigbee2mqtt:info 2020-06-05 13:18:17: Disconnecting from MQTT server zigbee2mqtt:error 2020-06-05 13:18:17: Failed to stop zigbee npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zigbee2mqtt@1.13.1 start: node index.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zigbee2mqtt@1.13.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Would it be an idea, sensible and possible to use the K2 button for Join new device?

or generally use the K1 (PC00) and K2 (PC1) buttons for something?

Can you tell me what exactly the 4 LEDS indicate? especially PC6

liambrugaro commented 4 years ago

Hello @reverieline ! I have a problem with the firmware you shared (dropbox link), the linkquality is very low (0-55) with the internal antenna. Do you have an idea ? :) thanks

Titanius commented 4 years ago

Hello Everyone with a Sanmulink Board SM14Z2538PA1V1.0-20181030 or SM14Z2538PA1V2.0-20200510

The manufacturer has a bug on the board. With using USB he switched two 5V to 3.3V step-down voltage regulators one behind the other. TPS76933 -> AMS1117 3.3

The result with using USB Port = On 5V Side is only 3.3V and at 3.3V Side only 2.1V. To low for the Blue LED D1 and the CC2538 Module e.g. bad link quality So that the 5V and 3.3V on the Board can be used correct via USB and the CC2538 gets its 3.3V operating voltage, the following must be changed. See pictures

94233035-8639a480-ff07-11ea-8fd5-ac5023f514f2 94233050-8c2f8580-ff07-11ea-9a65-abeb5f3aff02 94233064-918cd000-ff07-11ea-9aa5-b5e105bd5d90

Aniol83 commented 3 years ago

Unfortunately, on this board the diode pins are designed differently, please help and explain how to compile each new batch "JH_2538_2592_ZNP_USB_20201010.patch" to match it to this board.

Titanius commented 3 years ago

Hello,

here the assignment of the Sanmulink PCB the best way is to create two files for each Board Version

SM14Z2538PA1V1.0-20181030

V1.0 PB1 change to PC7 (LED1) PB2 change to PC6 (LED2) PB3 change to PC5 (LED3) PB4 change to PC4 (LED4)

Push Button K1 on PC0 Push Button K2 on PC1

————————————

SM14Z2538PA1V2.0-20200510

V2.0 PB1 change to PC5 (LED1) PB2 change to PC4 (LED2) PB3 change to PC1 (LED3) PB4 change to PC0 (LED4)

Push Button K1 on PC7 Push Button K2 on PC6

Aniol83 commented 3 years ago

SM14Z2538PA1V3.0-20201017

V3.0 PB1 change to PC5 (LED1) PB2 change to PC4 (LED2) PB3 change to PC1 (LED3) PB4 change to PC0 (LED4)

Push Button K1 on PC7 Push Button K2 on PC6 ————————————

The problem is I don't know how to compile step by step. What programs do I need, what settings, what to click.