BLE, 自定义数据的例子
Hi,Dialog,
请教一下,如果用户要自定义发送的数据,有例子程序吗?(包括手册)。
pxp_reporter, 和心率监控的例子 hrp_sensor, 貌似都遵从标准设备的定义,限定了数据发送的个数和格式。
另外,SDK里面,好像没有看到蓝牙串口的例子,有个 usb_cdc 的例子,不是通过 BLE 发送的。
看老外的帖子,这个 蓝牙串口的代码似乎没有开放?
能发一个 app 和 设备端 的代码例子给我吗?
谢谢
祝新年进步,万事如意
Hi,Dialog,
请教一下,如果用户要自定义发送的数据,有例子程序吗?(包括手册)。
pxp_reporter, 和心率监控的例子 hrp_sensor, 貌似都遵从标准设备的定义,限定了数据发送的个数和格式。
另外,SDK里面,好像没有看到蓝牙串口的例子,有个 usb_cdc 的例子,不是通过 BLE 发送的。
看老外的帖子,这个 蓝牙串口的代码似乎没有开放?
能发一个 app 和 设备端 的代码例子给我吗?
谢谢
祝新年进步,万事如意
Hi, Dialog
参考UM-B-044的说法,调用底层的硬件,最好通过 adapter 的方式进行,比如I2C总线,以这种方式调用:
ad_i2c_open
ad_i2c_bus_acquire(dev);
ad_i2c_write(...);
ad_i2c_transact(...);
ad_i2c_bus_release(dev);
ad_i2c_close
但是demo程序 peripherals_demo 的方法却是
hw_i2c_init
hw_i2c_write_byte(HW_I2C1, reg);
hw_i2c_write_buffer_sync
。。。
到底正确的应该怎样? 或者是两者都可以? 各自的优劣?
谢谢
新年好
研读过 SDK 的demo,没有一个完整的使用外部传感器的例子(数字接口,I2C,SPI,UART)以及如何在 BLE framework 环境下添加总线(含中断)的手册。
BLE有自己的规则(定时器、休眠、广播、配对。。。),扩展外设一定会增加额外的功率消耗,并且外设最好工作在中断传输模式下。
例子 Peripheral_demo 倒是列举了各种外设的使用,但没有加入 BLE 功能 -- 难道 BLE 和 外设扩展不能兼顾吗? 扩展外围sensor应该是一个基本的必须的工作啊。
例子 usb_CDC 也是一样,虚拟串口,但是没有BLE功能。
还有一些疑惑的是,外设需要通过 adapter 来执行吗? 相关的手册在哪?
最大限度降低功耗的方式还包括 DMA 的使用,将一批数据的采样放到后台去运行,这个貌似在 STM32 里很常见。。。
恳请提供一个 BLE 带I2C总线控制外设的例子 , 以及如何在 BLE 环境下扩展外设的操作指引。
谢谢
Hi, Dialog
I checked the peripherals demo project (..\DA1468x_SDK_BTLE_v_1.0.8.1050.1\projects\dk_apps\demos\peripherals_demo) and found that this is not a 'BLE' project - no RF trans/receive.
I know that the peripheral device with I2C or UART or SPI will cost more power, but usually you need to add a sensor with analog/digital interface.
Is there a good sample for that? in BLE mode and have the external sensor ? and the programming manual?
Hello,
Is it possible to send a request of update connection parameters if DA14861 is peripheral in ble communication ?
Witch api should I use ?
Thanks for your help,
Jérémy
Hi,
My dev board is DA14681-01A9.
I check the manual UM-B-047, 056, 066 to resovle the debug problem.
After build, there is a step to flash to target device -- by use of program_QSPI script. The console ask me to enter product_ID and virtual COM port.
But I can't find the virtual COM port in my computer (Windows 8.1 64 bit).
I remember the PC prompt me the JLink's driver is 32bit .... I ignored it.
What's wrong? How to check if the necessary driver has been installed corectly?
Hi Dialog,
I've set dg_configTESTMODE_MEASURE_SLEEP_CURRENT to 1 to measure sleep current. Measured current is always around 0,35mA, so that could be the idle current.
In system_init task sleep mode is set to extended sleep:
pm_set_sleep_mode(pm_mode_extended_sleep);
probl可能是什么em?
Thanks
Armin
Hi,
I've download the SDK of DA1468x which runs under SmartSnippets.
Is there a SDK of Keil version?
Can this SDK's source code be imigrated into Keil MDK? any sample project?
Thanks
James
Hi, Team
Is there one None OS version of SDK?
And suggestion manuals about this OS in SDK?
Best Regards
James
Hi, Team
I've build the demo project ble_adv (release QSPI)
And then I debug it ,there are many error information:
-------------------------------------------------------------------------------------------
SEGGER J-Link GDB Server V5.12f Command Line Version
JLinkARM.dll V5.12f (DLL compiled May 17 2016 16:03:35)