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

Working with NUS example from ble peripheral and UART example from peripheral using sdk 15.3

Hi,

I am using the nrf52832 dk for my project.

I am using the RX characteristic of the NUS example to send data from the phone to the dk.

In the same code i am also trying to communicate with the sim808 module (which operates on uart protocols). I have disabled the TX characteristic of the NUS example. The code gives no errors while building but all the commands that i give   to communicate with the sim808 module are not being received by the sim808 module.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2014 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

i have inserted my entire main code above.

the sim808_init function is used to communicate with the sim 808 module...but none of the commands that i pass to the module is being received.

why is this happening?