Send mesh network data to clound via Raspberry pi Gateway

Hi Team,

I am working on NRF52832 based on the BLE mesh protocol

here I am using the Light_switch example of SDK - nrf5sdkformeshv500src 

Here I am trying on transmit a bool data from Light_switch - Client to Light_switch - Server  which ran successfully

Now my need is i want to upload all received data  in Light_switch - server  to the Cloud with raspberry pi Gateway

How to collect the data from several Light_switch - Server  in the mesh network and send it to the raspberry pi gateway


kindly guide me, Thanks in Advance

Best Regards,
Venkatraaman J S.
Parents Reply Children
  • Hi 
    I have  well experience in python and raspberry pi

    pi@raspberrypi:~/nrf5sdkformeshv500src/scripts/interactive_pyaci $ dmesg | grep tty

    [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=954c2cb3-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
    [ 0.000402] printk: console [tty1] enabled
    [ 2.914593] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 114, base_baud = 0) is a PL011 rev2
    [ 2.917214] printk: console [ttyS0] disabled
    [ 2.917339] 3f215040.serial: ttyS0 at MMIO 0x3f215040 (irq = 86, base_baud = 50000000) is a 16550
    [ 2.917602] printk: console [ttyS0] enabled
    [ 5.356207] systemd[1]: Created slice system-getty.slice.
    [ 5.359099] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [ 18.942839] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
    pi@raspberrypi:~/nrf5sdkformeshv500src/scripts/interactive_pyaci $ sudo python interactive_pyaci.py -d /dev/ttyACM0

    To control your device, use d[x], where x is the device index.
    Devices are indexed based on the order of the COM ports specified by the -d option.
    The first device, d[0], can also be accessed using device.

    Type d[x]. and hit tab to see the available methods.

    Python 3.9.2 (default, Mar 12 2021, 04:06:34)
    Type 'copyright', 'credits' or 'license' for more information
    IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help.

    In [1]:

    I am stucking here only,

    as before I asked  "how to communicate between RPi and nRF52 via UART ?"
    I had opened the terminal 
    Here my question is  how to receive data from the nordic board
    NOTE:
    connection:
    I had connected the nordic board with raspberry via USB

    Best regards,

    Venkatraaman J S

Related