Giter VIP home page Giter VIP logo

cc2538-znp-coordinator-firmware's Introduction

CC2538ZNP

Here is experimental coordinator firmware for CC2538+CC2592 modules. To be used with zigbee2mqtt, ioBroker and the rest.

Make use of native USB interface on C2538.

For programming, you will need J-link and I bellow included pinout for that for typical 20-pin interface. You can use native segger application ("J-Flash" or "J-Flash lite") for flashing or you can flash from IAR. Alternatively, if you don't have j-link, you can flash via any Raspberry Pi by using OpenOCD. Once you do it - write little instruction how and I will add it here :)

This is minimal required schematics to use CC2538 (pinout for module I use):

alt text

Be aware, that if you supply voltage from you USB-UART adapter, this might be not enough, as most of them can not deliver enough to supply CC2538+CC2592.

Power regulator circuit (surrounded by dashed line) can be replaced by cheap simple 5v->3.3V LDO module. There are plenty of them around, just look for "AMS1117-3.3 LDO 800MA" (for example here) . CC2538 module of my choice can be purchased on aliexpress here

If you choose another CC2538 module, then you need to figure out pinout yourself. Practically, there are two most common modules, the one I used (which has PCB antenna and IPX connector for external one) and another one which has only IPX. IMPORTANT: Pinout of those modules is different.

Be aware that there is no use for USB-UART adapter, as USB is native. Trying to avoid soldering 3 resistors and 2 capacitors by connecting to the USB-UART will not work ). It is native USB. It is not UART. It is not CC2530 :)

In order to improve lattency, in zigbee2mqtt you can(and have to!) reduce delay in the queue. In configuration.yaml (at least in dev branch, and should be available in release from some version), there is a new section with new parameter:

 queue:
   delay: 5

Default delay between commands in zigbee2mqtt is 250ms. Which makes it 1 second to turn on 5 lamps. With CC2538 I am able to achieve the same over 20ms.

Here is also information about a bit more settled schematics, PCB layout and BOM for USB stick with this module. (Courtesy of Jager, who made it) It is in Russian, but BOM and gerber files are international :) PCB is spceicifally designed to allow flexibility. You can solder USB-A and use as stick, or can solder micro-USB and use on cable. You also have freedom to use or not external antenae. If you don't want it, do not solder connector. But keep in mind, if you use external antena, you will need to resolder one resistor on module (shown there on picture with arrow).

Keep in mind, while LEDs are in the design of schematics, current firmware doesn't use them, I am focused at the moment on principal task of getting it very right. LEDs will come as bonus (still usefull though). There is also instruction how to flash with J-Link. It is in Russian also, but it mostly set of self-explanatory screenshoots, and almost no text :)

cc2538-znp-coordinator-firmware's People

Contributors

antst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cc2538-znp-coordinator-firmware's Issues

Network limits of CC2538

I'm aware of real limit of CC2538 for number of routers and end devices that can be connected.
I'm acutally using a CC2531 based coordinator but I have reached the 40 routers limit using a source routing firmware so I'm looking for an hardware upgrade and take in consideration CC2538 one.
I didn't find limits for this chip (I suppose it depends of ram quantity too).

So do you know how much connected devices (router and end devices) can be managed with a CC2538 ?

And do your firmware is a source routed firmware ?

No network route (205) after znp restart

Doing a restart of the znp (by rebooting the computer or by disconnecting USB) leads to No network route (205) errors and no reception of messages. Devices need to be re-paired then. I have the feeling that could be related to the backup-restore (https://github.com/Koenkk/zigbee-herdsman/blob/0ee149fb31dfbd3003abbb6287b8027c57b56e25/src/adapter/z-stack/adapter/backup.ts#L207) and the soft-reset at the end of the restore process.
I can also reproduce this by issuing a soft-reset command.
If I restart the herdsman only (without reboot) this does not happen - as far as I understand that right then there is no backup-restore and no soft-reset - that's why I think it could have something to do with this. I'm using the latest zigbee-herdsman and the hardware mentioned here: Koenkk/zigbee2mqtt#1568 (comment). Test Setup includes a Philips LWB010 Bulb and the Philips RWL021 "Hue Dimmer Switch".

Is there something I can do to track this down? Can you give me advice on how to debug that or which information I could deliver that would be useful to find out whats going wrong? I also got a sniffer in case that helps.

Compare with CC2530

If CC2530 with source routing function can connect 5 EPs directly, What about CC2538?
Do I need re-join all devices after I change my original cc2530 with source routing?
How many EPs can connect to CC2538 with current firmware?
Does current firmware support source routing?

Thank you for your work.
Wish to get your reply

подключение по uart

Здравствуйте.
На сколько я понимаю в прошивке общение идет через usb, можете ли сделать прошивку с выводом на uart?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.