Multi sensor data in one BLE service

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multi sensor data in one BLE service

ソリューションへジャンプ
2,358件の閲覧回数
Jangra
Contributor II
How could i send multi sensor data in one BLE service for example temp, pressure, humidity ....??? MCU - MKW38
0 件の賞賛
返信
1 解決策
2,346件の閲覧回数
nxf56274
NXP Employee
NXP Employee

Hi,

You can create multiple profile. Use different to send differnet data. Refer this link. Custom profile.

Or send the different data sequentially using one service. The program uses timer to send the data. So first time ,you send the temperature. Second time, you send the other data.

Or you can combine these data. For example, you can define a 32 bit variable. The high 16 bit uses for temperature, and the low 16 bit use for humidity. Then send this 32 bit variable. You will get two different data.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,347件の閲覧回数
nxf56274
NXP Employee
NXP Employee

Hi,

You can create multiple profile. Use different to send differnet data. Refer this link. Custom profile.

Or send the different data sequentially using one service. The program uses timer to send the data. So first time ,you send the temperature. Second time, you send the other data.

Or you can combine these data. For example, you can define a 32 bit variable. The high 16 bit uses for temperature, and the low 16 bit use for humidity. Then send this 32 bit variable. You will get two different data.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
2,338件の閲覧回数
Jangra
Contributor II

Hi,

Thank you for your response.

 I have used  one service with multi characteristics for multi sensor data, so is it good way to do like this ???

0 件の賞賛
返信
2,321件の閲覧回数
nxf56274
NXP Employee
NXP Employee

Hi,

Sure. multiple characteristics. I forget mentioning it. 

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 days after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

2,316件の閲覧回数
Jangra
Contributor II

Thank you .

0 件の賞賛
返信