Hi,
I am using DA14850 custome board for my project. I am working on sps_device project.
I have some questions for ble:
1. I am able to send data from serial terminal to DSPS Android App. Here I am typing some random data from keyboard and I see whole data displayed in DSPS app. Unfortunatly Im unable to do opposite. I would like to send data from app to serial terminal. I see there is an option to send the data in App. When I enter some data in send console of dsps app and click send I dont see any data at serial termianl. Is this possible?.
2. When the ble is in ARCH_SLEEP_OFF mode I am able to see whole data in the app. When The ble is in ARCH_EXT_SLEEP_ON mode I am only able to see partial data on DSPS. Im thinking that to have full data transfer ble should always in ARCH_SLEEP_OFF mode only. How can we put the ble in ARCH_EXT_SLEEP_ON mode intially and then when we try to send the data how can we switch ble to ARCH_SLEEP_OFF mode automatically?. To save the power consumption.
3. I have measured the power consumption of ble while data transfering to DSPS in ARCH_SLEEP_OFF mode and it is 0.48mA. In Sleep mode it is 0.16mA( When I try to send some data consumption raising up tp 0.25mA and only partial data appeared on app. Is anyone done this measurements and what are the values?. Thank you.
Hi Gandhi,
Thanks, PM_Dialog
Dear PM_Dialog,
As soon as you are able to send data from the serial monitor to the DSPS mobile application, this means that the firmware and your setup is working correctly, so you should be able to do the opposite. However, can you please provide me more inputs on this and try to describe how you send data from the mobile app to the serial terminal? Which terminal are you using? Did you enable the local echo? Some screenshots might be very helpful
It is working. The issue is when I send the data in ASCII format it is not working. Intially I should send the data in hex format and then switch to ASCII then it is working. It looks strange.
If you are using the extended sleep mode, you should use hardware flow control. Otherwise the chip will be unable to wake up. Could you please indicate if you have hardware flow control?
Yes I am using the extended sleep mode. To use the hardware flow control I should connect the hardware pins of CTS and RTS right?. I dont have these pins available in my present debugger.
我将使用硬件流控制时n I use JTAG. Now I used software flow control. I just undef the hardware flow control and define the software flow conrol in user_peripg_setup.h file. And in the teraterm serial termianl in setup in Serial port in flow control I switched Xon/Xoff.
do you have code snippet to implement software flow control?.
When I try to send the data from BLE to serial termianl I managed to send the whole data to serial terminal when ble is in sleep mode.
I measured the current consumption: during the sleep mode it is 0.1mA, when I connect the dsps app it is 0.35mA and during the data transfer it is 0.38mA. Here I sued to send some words and numericals at the rate of every 200ms. I see full data displayed in the serial terminal. Does it mean when I connect the app is it awake from sleep mode?.
Consumption of power is same for both soft and hard flow controls?.
May I use deepsleep and then wake it up?.
谢谢你回答我的问题。
Hi Gandi,
Since you are using extended sleep mode, you should have the CTS/RTS pins connected. Otherwise you will be unable to wake up.
Thanks, PM_Dialog