Hi
how to configure rtc for nrf51dk and i want to update time from my phone then how to read the current time in device ?
Hi
how to configure rtc for nrf51dk and i want to update time from my phone then how to read the current time in device ?
Hi,
Hung is on vacation , and what do you mean by you got struck up in update_current_time_value_in_sd? Have you implemented the gatt server on phone with CTS service like Hung suggested?
Hi,
Hung is on vacation , and what do you mean by you got struck up in update_current_time_value_in_sd? Have you implemented the gatt server on phone with CTS service like Hung suggested?
You can see the CurrentTimeService in your phone. But your phone doing anything to it, it is just seeing it. In order for your phone to update the characteristic value with its current time, it needs to write to this attribute (for example every one sec)
In the example mentioned here MCP loads the central.bin in which the central side of the service is implemeted. Your device which is client does a read on the server characteristic and the server gives the current time with BLE_GATTC_EVT_READ_RSP
You phone is not sending the response for the read request done by your device, because it has not implemeted this service as a server. Unfortunately we do not have example and code for the server side of this.
so what should i do for making phone as server is there any option?? send that source code atleast ,how to make mcp in mobile can be loaded like mcp in windows
we dont have source code for something to act as MCP in phone, i guess that is what you should implement yourself. But master control panel should be available for download in Android and IOS. maybe you can use that.
my question is not about mcp by the way i have mcp already in my mobile . am asking about in system you suggested to load central.bin in which the central side of the service is implemented likewise is there anything to load into android supporting mcp app (like central.bin) to make phone as server so that client does a read on the server characteristic and the server gives the current time
MCP on PC uses nRF chip as media and the central.bin for MCP on PC is nordic BLE stack. On you phone, the MCP uses the phone bluetooth stack and is completely different from BLE stack. That is why we only provide the MCP app . That is why the MCP on phone has limited features. My answer was also not related to just MCP, i am talking about the features that it provides on PC version (which needs central.bin and nordic chips), and in phone you do not have nordic chips and hence limited features that are implemented using phone bluetooth API