How to add uart function to light control client demo at nrf5_SDK_for_Mesh_v0.9.2-Alpha

ccchengjinwang gravatar image

asked 2017-10-12 10:17:27 +0100

I've run an mesh example of light control with three 52832DK board.There are some question. [1]Now i want to add uart function to the example,then i can send msg without buttons.please gave me some advice about how coexistence with other Nordic SDKs. [2]In the Header file "simple_on_off_common.h",there is a message format for the simple onoff set message:simple_on_off_msg_set_t.The struct have only two byte,on_off and tid.if i want send more msg from client to client, can i add other parameter into this struct.if yes,then how many byte can add.

edit retag flag offensive close delete report spam

1 answer

Sort by ยป oldest newest most voted
hungbui gravatar image

answered 2017-10-12 15:08:36 +0100

Hi Enzo,

You may want to import the uart driver in the nRF5 SDK into the Mesh SDK.

There could be some collision in the header that you might need to fix.

Another option is to use the peripheral directly, for example using this simple_uart

You are free to modify the struct. The maximum payload size for unfragmented packet (single packet) is 11 byte payload. Larger payload will be send as fragmented packets and the max payload size is TRANSPORT_SAR_PACKET_MAX_SIZE = 384 bytes.

edit flag offensive delete publish link more


aha,thank you so much!

Enzo ( 2017-10-12 15:14:23 +0100 )editconvert to answer

Btw, we are going to release new mesh SDK today, uses same softdevice as in SDK v14

Hung Bui ( 2017-10-12 15:19:01 +0100 )editconvert to answer

omg,perfect! didn't expect it to be released so soon.

Enzo ( 2017-10-12 15:23:58 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower


Asked: 2017-10-12 10:17:27 +0100

Seen: 67 times

Last updated: okt. 12