espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.76k stars 743 forks source link

Bangle.js 2 ZigBee support #2402

Closed tinxx closed 1 year ago

tinxx commented 1 year ago

Are there plans to make use of nRF52840's ZigBee support?

The chip should be capable of ZigBee as well as Thread and Matter.[1] Is it theoretically possible with Bangle.js 2 or are there restrictions, e.g., due to antenna design?

If possible, where would one start implementing it?

Thanks--

1) nrf52840-soc-v3.0.pdf

thyttan commented 1 year ago

Hi!

Mentioned here on the forum: https://forum.espruino.com/conversations/380585/

tinxx commented 1 year ago

Hi, just to clarify: This ticket is about ZigBee, not Matter. The forum thread is about Matter, not ZigBee. :)

gfwilliams commented 1 year ago

Hi - there aren't any plans to add it. As I understand it ZigBee uses the same 2.4Ghz frequency range as Bluetooth so the hardware should work fine as-is.

To get started, you'll likely need this SDK: https://www.nordicsemi.com/Products/Development-software/nrf5-sdk-for-thread-and-zigbee

There's a newer SDK based on Zephyr but if you intend to run the Bangle.js firmware on top that's probably not going to work as Espruino's bluetooth is build on Nordic's original, non-zephyr API.

Then, because you'll be messing around with firmware a lot you want to buy an nRF52840DK board and wire up the Bangle's USB charge cable as follows: http://www.espruino.com/Bangle.js2+Technical#swd

... and try out some examples - maybe first on the DK board and then see about getting them running with Espruino.

But I'll close this issue for now as it's not really a bug per se - if you've got questions it's best to ask on the forum as having a bunch of questions in the issue tracker makes it really hard to see what we should be working on

tinxx commented 1 year ago

Fair, thanks for the info, much appreciated!

thyttan commented 1 year ago

Hi, just to clarify: This ticket is about ZigBee, not Matter. The forum thread is about Matter, not ZigBee. :)

Yes, but ZigBee is mentioned by @fanoush in this comment on the thread: https://forum.espruino.com/conversations/380585/#16725086

fanoush commented 1 year ago

Hi, just to clarify: This ticket is about ZigBee, not Matter. The forum thread is about Matter, not ZigBee. :)

The SDK provided by Nordic is for both ZigBee and Matter - "nRF5 SDK for Thread and Zigbee v3.2.0" As that specific version is based on SDK15 just as Espruino for Bangle2 there is some chance to get it working. Anyway, use that forum thread (or another) if you try it. Getting Zigbee working with that will be useful for Thread too.

EDIT: oh sorry, you mentioned Matter, not Thread! Well, at least Zigbee is relevant :-) EDIT2: oh, already forgot that Matter works over Thread, so that's why both are mentioned in the forum and why Thread SDK is relevant for Matter