The Android device is failing to find resource even with SECURED=0, The Arduino logs are showing as below: It looks like there is some serious problem with createResource in Arduino and its failing to create the resource. We googled the error but as per Vimala commenting the second call being made to the findResources in SimpleClient.java should have worked but even this is not working. : OIC_RI_STACK: 4474: Generate UUID for Server Instance failed! : OIC_RI_STACK: 4494: Generate UUID String for Server Instance failed!
We have also raised a JIRA ticket as mentioned below, but it?s still not working. Please help us resolve this issue. https://jira.iotivity.org/browse/IOT-1217 Thanks -Rangaraju From: Prakash Ks [mailto:[email protected]] Sent: Tuesday, August 23, 2016 6:08 AM To: Devaraju, Rangaraju <rangaraju.devaraju at accenture.com> Subject: RE: [dev] Communication problem between Arduino and android via BLE. Yes you have to specify explicitly.. On Aug 23, 2016 12:27 AM, <rangaraju.devaraju at accenture.com<mailto:rangaraju.devaraju at accenture.com>> wrote: Thanks for the response. Is the SECURED=0 default for both the Android and Arduino 0 (DTLS disabled) (default) https://wiki.iotivity.org/android_build_instructions<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.iotivity.org_android-5Fbuild-5Finstructions&d=DQMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=7tMYnbONFLykRciNgwFIf75AXAw25ZLCc6RZRcjDEK4&m=heNGxFO9EZ75ZltGxPI81DdTfVHUs0fo5PoJtY3-95s&s=pXBTUW4Rok_UQaArWLgTZeNYAxnMOjdF2hCvwYHdzRM&e=> Thanks -Rangaraju From: Prakash Ks [mailto:pakkya1234 at gmail.com<mailto:[email protected]>] Sent: Monday, August 22, 2016 4:44 PM To: Devaraju, Rangaraju <rangaraju.devaraju at accenture.com<mailto:rangaraju.devaraju at accenture.com>> Subject: Re: [dev] Communication problem between Arduino and android via BLE. Try compiling with SECURED=0 option for both.. Thanks! Prakash On Aug 19, 2016 9:03 PM, <rangaraju.devaraju at accenture.com<mailto:rangaraju.devaraju at accenture.com>> wrote: Hi Vimala, We have followed the steps mentioned in https://wiki.iotivity.org/build_iotivity_project_for_arduino<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.iotivity.org_build-5Fiotivity-5Fproject-5Ffor-5Farduino&d=DQMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=31gx29iaur_x4U9CqbTNW8tzQPBu8EukiYRFQN1aC68&m=AtNbAco1O0zyV5eGFRV_tCW2sw_iz7fCSdjJbR2E7m4&s=uKZqb9oflcInPQsEaggTA2A8hgJxAC9msS782vmeQGw&e=> and we have been successful in uploading the project to Arduino. we are using Arduino ATMega 2560, RedBear BLE Shield V2.1 and we will send the logs. Android version 5.0, 5.1 As for the android part https://wiki.iotivity.org/android_build_instructions<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.iotivity.org_android-5Fbuild-5Finstructions&d=DQMGaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=31gx29iaur_x4U9CqbTNW8tzQPBu8EukiYRFQN1aC68&m=AtNbAco1O0zyV5eGFRV_tCW2sw_iz7fCSdjJbR2E7m4&s=zN7cMnSoNodDJ2IsUDPTEUsxAxBLw7FWBvmdYTGpoTk&e=> ,we have generated the apk (SimpleClient). When we start SimpleClient, the app is not detecting the Arduino server but the Arduino server is discoverable outside the SimpleClient app through usual Bluetooth search. Also to add here, when we tried the communication between SimpleClient and SimpleServer android apps, interaction only happened when they were paired previously. Are there any changes that we have to make in iotivity examples? Awaiting you response. https://lists.linuxfoundation.org/pipermail/iotivity-dev/2016-January/003339.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.linuxfoundation.org_pipermail_iotivity-2Ddev_2016-2DJanuary_003339.html&d=DQMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=7tMYnbONFLykRciNgwFIf75AXAw25ZLCc6RZRcjDEK4&m=xlu1FBDXiV9IiKrRS_eWg6jybDICnQqtyQXtq8AX6z8&s=anzuCpCgkTVYiY4U_STCyWOmezAI_UHY39wNFVNXYPc&e=> ic/rd: ArduinoServer: 249: OCServer is starting... Evt Device Started: Setup Evt Device Started: Standby Advertising started LEAddress : c3:58:0f:41:6e:f4 Evt Connected Evt Pipe Status Evt link connection interval changed Evt Pipe Status Evt link connection interval changed Pipe Number: 3 Pipe Number: 3 -------------------------------------------------------------- Everytime we request for pairing from Android device Arduino rejects it. Thanks -Rangaraju ________________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. ______________________________________________________________________________________ www.accenture.com<http://www.accenture.com> _______________________________________________ iotivity-dev mailing list iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org> https://lists.iotivity.org/mailman/listinfo/iotivity-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.iotivity.org_mailman_listinfo_iotivity-2Ddev&d=DQMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=7tMYnbONFLykRciNgwFIf75AXAw25ZLCc6RZRcjDEK4&m=xlu1FBDXiV9IiKrRS_eWg6jybDICnQqtyQXtq8AX6z8&s=u9fiNfgfvNZUYylf03fKVu2eD0dK2IGZMPWl0F1QgnU&e=> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160823/3ba7508c/attachment.html>
