🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Zigbee unit - examples and Micropython support

    SOFTWARE
    2
    2
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ExieE
      Exie
      last edited by

      Hi Folks,

      Just thought I'd try using UIFlow 2.0 with my Atom S3 before I go down the Arduino rabbit hole.
      https://docs.m5stack.com/en/unit/zigbee

      I noticed in the configuration panel on the left, it only had Pa.HUB, ENV, ENVII and ENVIII, not the Zigbee unit with the blue grove plug. So I might assume this unit is not supported in UIFlow 2 ?

      I tried using the UART and got as far as:

      from hardware import *
      
      uart0 = UART(0, baudrate=38400, bits=8, parity=None, stop=1, tx=2, rx=1)
      
      while True:
          if uart0.any():
              print("\nFound Data:", end="")
              print(str(uart0.readline()))
          else:
              print(".", end="")
          sleep(1000)
      

      But given how proprietary the CC2630 is, I expect that's as far as I'm going to get.

      I found these examples here in C:
      https://github.com/m5stack/M5Stack/tree/master/examples/Unit/Zigbee_CC2630

      .. which do not show how to pair sensor and read data from them. Has anyone got examples of how to do this with the UART interface ?

      1 Reply Last reply Reply Quote 0
      • A
        ameero95
        last edited by

        Hi @Exie, have you managed to talk to the Zigbee unit through UART or managed to comprehend the example code given by M5Stack?

        Regards,
        Ameer

        1 Reply Last reply Reply Quote 0
        • First post
          Last post