Forums - send message by broadcasting

2 posts / 0 new
Last post
send message by broadcasting
chodoohyun
Join Date: 6 Jun 16
Posts: 10
Posted: Sat, 2016-06-11 05:09

 

HI  i,m working with csr1010

i had a problem as in sending broadcasting message each node

pleae look at blow

---------------------------------------------------------------------------------------------

 CsreshSetMessageTTL(CSR_MESH_MESSAGE_CONTROL , 2);

 

buff[0] = 0x10;

buff[1] = 0x02;

buff[2] = 0x01;

buff[3] = g_dimming_level_1 ; 

buff[4] = g_dimming_time;

buff[5] =g_mode;

 

StreamSendDataBlock(0x0000,&buff[0],6);

 

 

CsrMeshSetMessageTTL(CSR_MESH_MESSAGE_CONTROL , 1);

 

TimerCreate(800,NULL ,NULL ) ;

 

buff[0] = 0x10;

buff[1] = 0x02;

buff[2] = 0x01;

buff[3] = g_dimming_level_2; 

buff[4] = g_dimming_time;

buff[5] =g_mode;

 

StreamSendDataBlock(0x0000,&buff[0],6);

 

 

CsrMeshSetMessageTTL(CSR_MESH_MESSAGE_CONTROL , 0);

 

-----------------------------------------------------------------------------------------------------

 

have there anything wrong with this code??  i was faced with two problems .

 

first. after association with two device.  if transmit message is well like that 'Device_1 -> Device_2'  but  'Device_2 -> Device_1'  Not 

 

likewise if 'Device_2 -> Device_1' is well but not  'Device_1 -> Device_2'      that happens often.

 

second. some time good behavior for a period of time while the message sending stops both after some time. 

 
 
help me please!

 

 

  

 

 

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Tue, 2016-06-14 22:00
When 2 devices connected, as peripheral and central profile. You can use broadcasting profile. Use the messages in peripheral. There is so many demo application you can run and learn from. See for example the x:\CSR_uEnergy_SDK-2.5.0.20\apps\hr_sensor
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.