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

Change LED‘s for SanmuLink CC2538 Board #6

Open
Titanius opened this issue May 17, 2020 · 8 comments
Open

Change LED‘s for SanmuLink CC2538 Board #6

Titanius opened this issue May 17, 2020 · 8 comments

Comments

@Titanius
Copy link

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

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

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

Titanius commented Jun 5, 2020

@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

  • Push K1 Button connected to PC00 = Log Output in Zigbee2Mqtt

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! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  • Push K2 Button connected to PC1 = nothing happens

  • Push Reset Button = Device Reboot

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

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

Titanius commented Sep 25, 2020

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

Aniol83 commented Mar 24, 2021

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

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

Aniol83 commented Mar 24, 2021

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.

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

4 participants