Does anybody realise a Projekt to read with a PAN 1740 a one wire Bus and send the value via bluetooth?
Project in Detail.
I would like to read one 1wire Temperature sensor and send the value over bluetooth as fast as possible.
If there are any basics it would be nice.
Best Regards
Gert
Device:
Hi gert186,
You mean get the temperature from a sensor via the adc module and send it at the central via advertising or a using a notification via a propriety profile ? We dont have a reference design that does exactly this, but you can have a look at the peripheral profile (app_ble_peripheral) which sends a dummy value on the other side after connecting with a central and enabling the notifications on the adc 1 characteristic. Or you can check the beacon reference design in order to place data in the advertising string. Regarding reading adc values you can check the peripheral examples in the SDK and check how you can use the adc module.
Thanks MT_dialog
Thanks I will Check!
MT_DIALOG,
No That is not that what I want to. 1 wire is a standard like I2C but needs only one data line.https://en.wikipedia.org/wiki/1-Wire.
Does anyone realise such a library for 1 wire ?
Hi gert186,
There is no example that implement BLE activity and reading from a single bus interface sensor, but there is a driver available for the DHT11 Humidity and Temperature sensor in case this is the sensor you are trying to interface with. You will be able to find the driver in the \DA1458x_SDK\5.0.4\sdk\platform\driver\sensor. So you can use this driver along with the BLE examples that are provided in the SDK in order to read the sensor and send data on the connected device.
Thanks MT_dialog