0

how to connect nordic thingy 52 with ble central example ?

nikunj8086 gravatar image

asked 2017-11-17 13:59:15 +0100

i want to connect Nordic thingy to a nrf 52840 soc with ble central example.

all i want to get is thingy environment service and get temperature and humidity values on ble central device.

please, help me out how to do it.

edit retag flag offensive close delete report spam

Comments

2 answers

Sort by » oldest newest most voted
1
ovrebekk gravatar image

answered 2017-11-23 14:36:48 +0100

ToasTer86 gravatar image

updated 2017-11-23 18:07:19 +0100

I also added support for the Thingy UI service client in the multi link example, but I was too lazy to add support for the other services ;)

edit flag offensive delete publish link more
0
ovrebekk gravatar image

answered 2017-11-21 13:44:20 +0100

Hi

Unfortunately we don't have client code for the Thingy services for the nRF52 side. All the standard examples assume that the client will be a phone or a PC.

I will check with the team if we are planning to add nRF52 client support, and update my answer once I know more.

Best regards
Torbjørn

edit flag offensive delete publish link more

Comments

Hey nikunj8086 ,

I am doing a project right now with a nRF52840 and a Thingy 52, my nRF52840 will be the central as well. I am working on the LED button service example now.

If you check the BLE_service files, for example the "ble_lbs_c.c & .h " file you can change the UUID and get some button values from the Thingy52 at least.

Below is what I changed in the ble_lbs_c.h file when working with the LED_button_switch example.

/* OLD VALUES : changed for thingy52 
#define LBS_UUID_BASE        {0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, \
                              0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}
#define LBS_UUID_SERVICE     0x1523
#define LBS_UUID_BUTTON_CHAR 0x1524
#define LBS_UUID_LED_CHAR    0x1525 */

#define LBS_UUID_BASE        {0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}
#define LBS_UUID_SERVICE     0x0300
#define LBS_UUID_BUTTON_CHAR 0x0302
#define LBS_UUID_LED_CHAR    0x0301

this is regarding the " ble_app_multilink_central " example found in the SDK.

With these changes ...(more)

ToasTer86 ( 2017-11-21 14:23:16 +0100 )editconvert to answer

I was able to also write to the Thingy52 LEDS using the "Ble_app_multilink_central" if you need any help let me know.

ToasTer86 ( 2017-11-22 10:57:37 +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

Stats

Asked: 2017-11-17 13:59:15 +0100

Seen: 98 times

Last updated: nov. 21