This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF mesh Serialisation Library / driver(includes.h) for host side

I am implemeting serialisation using nRF52 as BLE PHY + STM32 micro as host with UART in between them.

I can see there is example for searilastion under "nrf5_SDK_for_Mesh_v5.0.0_src\examples\serial\src", this is sufficient for nRF52 device which would host softDevice.

My question is where is codec library(mesh api call driver) for host(STM32) side ?

If library exist then is there any example for it ?

Parents Reply Children
  • Hi

    Just to be more specific I have created some raw UART packet processer code block on host microcontroller, see below

    #include "serial_cmd.h"
    #include "serial_evt.h"
    #include "serial_packet.h"
    /*
    * @brief  	Processes next UART transaction pending in pipe
    * @param  	None
    * @retval	None
    */
    void BLE_Mesh_CheckEvent(void)
    {
    	if(!BLE_Mesh_GetPacket())
    		return;
    
    	serial_packet_t * p_evt = (serial_packet_t *)Mesh_RspEvt;
    
    	switch(p_evt->opcode)
    	{
    	case SERIAL_OPCODE_EVT_DEVICE_STARTED:
    		break;
    
    	case SERIAL_OPCODE_EVT_CMD_RSP:
    		break;
    
    
    	default:
    		break;
    	}
    }

    In IDE of host microcontroller(STM32 in this case) I have included 3 files "serial_cmd.h","serial_evt.h" & "serial_packet.h" which are copied from "nrf5_SDK_for_Mesh_v5.0.0_src\mesh\serial\include" directory of nRF52 Mesh stack.

    I'm expecting such library(much more comprehensive) that is independent of microcontroller and simply send/receives data over UART to remote nRF52 device.

Related