DA14585 - BLE Central and Peripheral Error in code testing

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
shah.jayd
Offline
Last seen: 1 year 10 months ago
Joined: 2020-10-04 20:56
DA14585 - BLE Central and Peripheral Error in code testing

Hi all,

I am working on DA14585 Basic Kit.
For the application I am building I would be needing to implement both Central and Peripheral appication on DA14585 (individually).

Before I implement that, I want to implement BLE Central on one kit and BLE peripheral on another and test the working. I will make some modification to those code for the custom profile (I have tested custom profile with peripheral and smartphone on other end).

Note: SDK version: 6.0.14.114 & DA14585 Basic Kit

I found from one discussion ( https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/central-sample-app ) that Active Scanner and BLE Security project can be helpful.

I sarted with the scanner example.
First it had issues with python script that got resolved with : https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/python-link-script-trouble

Then as I was following through it, I found certain issues: sdk_boot, sdk_arch and sdk_driver. (pdf attached) --> I can manually change the path to one available in sdk but that doesn't really solve the problem as it is primarilly incompatible.
Also, in UART, it cannot recognize

uart2_init(UART_BAUDRATE_1152, UART_FRAC_BAUDRATE_115K2, UART_CHARFORMAT_8);

So, please point me towards the right example that is compatible with my SDK version or kindly help me with the work around solution for this incompatibilty.

Thanks

Device: 
PM_Dialog
Offline
Last seen: 6 months 3 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi shah.jayd,

Hi shah.jayd,

Thanks for your question. The “Active Scanner” was based on SDK6.0.10 – please see the Readme file. Sop, can you please try it with SDk6.0.10? I’ll escalate it internally to check if we plan to update it for SDK6.0.14.

Since you are planning to implement both Central and Peripheral appication on DA14585 (individually), I would recommend also checking the DSPS example.

The DSPS emulates a serial cable communication. It provides a simple substitute for RS-232 connections, including the familiar software flow control logic via Bluetooth low energy. The SPS software distribution includes the application and profile source codes and supports GAP Central/Peripheral roles.

https://www.dialog-semiconductor.com/products/dialog-serial-port-service-dsps

Thanks, PM_Dialog

shah.jayd
Offline
Last seen: 1 year 10 months ago
Joined: 2020-10-04 20:56
Hi PM_Dialog,

Hi PM_Dialog,

Thanks for replying.

I did realize that earlier about the SDK version.
I then also tried with 6.0.10. Here the project compiled properly, but it doesn't work as required.
I am not able to read things on terminal screen. I have cross checked baudrate, port-pin etc.

Same port-pin works with blinky program, but when I use with Active Scanner, Proximity Reporter-Monitor Pair, or ble_central_implementation projects, it (UART Terminal printing) doesn't.

DSPS looks complex to me at this stage. I am really looking for a very simple project to start with.

-Thanks
JD

PM_Dialog
Offline
Last seen: 6 months 3 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi shah.jayd,

Hi shah.jayd,

Glad that you are able to run it. Can you please check the jumper configuration on the Basic DK? Are the jumpers configured in UART position?

The CodeLes project can be also used…

The CodeLess allows you to quickly get started with wireless IoT applications with a set of AT Commands.  The CodeLess AT commands platform allows control over a local UART connected device as well as a remote device via BLE. You can create simple demos / applications / proof of concepts without any code development or build you own application on top!

https://www.dialog-semiconductor.com/products/smartbondtm-codeless-commands

Thanks, PM_Dialog