Hi,

We ran another test, using noble to test the discovery between the devices and 
it worked fine.
This is the source file: 
https://github.com/sandeepmistry/noble/blob/master/examples/peripheral-explorer.js
 
<https://github.com/sandeepmistry/noble/blob/master/examples/peripheral-explorer.js>
Here is the output:
# node index.js C7:6A:A9:0B:DD:5F
peripheral with ID c76aa90bdd5f found
  Local Name        = OIC-DEVICE
  Service Data      = 
  Service UUIDs     = ade3d529c7844f63a987eb69f70ee816

services and characteristics:
1800 (Generic Access)
  2a00 (Device Name)
    properties  read, writeWithoutResponse, write
    value       4f49432d444556494345 | 'OIC-DEVICE'
  2a01 (Appearance)
    properties  read
    value       0000 | ''
  2a04 (Peripheral Preferred Connection Parameters)
    properties  read
    value       0600120000000a00 | '
'
1801 (Generic Attribute)
  2a05 (Service Changed)
    properties  read, indicate
    value       00000000 | ''
ade3d529c7844f63a987eb69f70ee816
  ad7b334f46374b8690b69d787f03d218
    properties  writeWithoutResponse
  e9241982458042c4883195048216b256
    properties  notify
180a (Device Information)
  2a27 (Hardware Revision String)
    properties  read
    value       410002030000000000 | 'A'

Does anyone have a clue of what can be happening to make the discover process 
in iotivity not work?

> On Jun 29, 2016, at 4:49 PM, Hudo Assen?o <hudo.assenco at gmail.com> wrote:
> 
> Hi,
> 
> We have an Intel Edison board with iotivity 1.1.0 installed and one arduino 
> due with the ReadBear BLE Shield running the sample code provided in the 
> iotivity package.
> 
> We got the Edison to connect with the arduino board but the multicast 
> discovery process does not seem to work.
> 
> As you can see in the line below the Edison finds the arduino but it fails to 
> get the GATT services for some reason
> 12:50.958 INFO: BLE_CLIENT: GATT services not yet discovered on LE 
> peripheral: C7:6A:A9:0B:DD:5F
> 
> Does anyone have experience with this setup or with BLE that can help us?
> 
> Thanks,
> Hudo.
> 
> Code running in edison: 
> https://github.com/hudovisk/iotivity-sample/blob/master/client.c 
> <https://github.com/hudovisk/iotivity-sample/blob/master/client.c>
> 
> The client code in Edison is cross compiled in a VM running Ubuntu. Here is 
> the compile script we use:
> 
> $CC client.c -std=c99 -g2 -DTB_LOG -Wall -pthread \
> -DLE_ADAPTER -DROUTING_EP \
> -I $IOTIVITY_HOME/resource/c_common/oic_string/include \
> -I $IOTIVITY_HOME/resource/csdk/stack/include/ \
> -I $IOTIVITY_HOME/resource/c_common/ \
> -I $IOTIVITY_HOME/resource/csdk/logger/include/ \
> -I $IOTIVITY_HOME/extlibs/tinycbor/tinycbor/src/ \
> -I $IOTIVITY_HOME/extlibs/cjson \
> -I $IOTIVITY_HOME/resource/oc_logger/include \
> -I $IOTIVITY_HOME/resource/csdk/connectivity/lib/libcoap-4.1.1 \
> -L $IOTIVITY_HOME/out/yocto/i586/debug/ \
> -Wl,-rpath $IOTIVITY_HOME/out/yocto/i586/debug/ \
> -lm -loc -loc_logger -loctbstack -locsrm -lconnectivity_abstraction -lcoap 
> -lpthread -llogger -lrt -o gateway
> 
> here is the log from edison:
> 
> 12:50.808 INFO: OIC_RI_STACK: Entering OCInit
> 12:50.808 DEBUG: OIC_CA_CONN_MGR: IoTivity version is v1.1.0
> 12:50.808 DEBUG: OIC_CA_CONN_MGR: CAInitialize
> 12:50.808 DEBUG: OIC_CA_INF_CTR: Set Receiver handle callback
> 12:50.808 DEBUG: OIC_CA_INF_CTR: Set network handle callback
> 12:50.808 DEBUG: OIC_CA_INF_CTR: Set error handle callback
> 12:50.808 DEBUG: UTHREADPOOL: IN
> 12:50.808 DEBUG: UTHREADPOOL: OUT
> 12:50.808 DEBUG: OIC_CA_QING: thread initialize..
> 12:50.808 DEBUG: UTHREADPOOL: IN
> 12:50.808 DEBUG: UTHREADPOOL: OUT
> 12:50.808 DEBUG: OIC_CA_QING: thread initialize..
> 12:50.808 DEBUG: OIC_CA_RETRANS: thread initialize
> 12:50.808 DEBUG: OIC_CA_BWT: CAInitializeBlockWiseTransfer
> 12:50.808 DEBUG: UTHREADPOOL: IN
> 12:50.808 DEBUG: OIC_CA_QING: message handler main thread start..
> 12:50.808 DEBUG: OIC_CA_QING: wait..
> 12:50.808 DEBUG: UTHREADPOOL: OUT
> 12:50.808 DEBUG: OIC_CA_INF_CTR: initialize adapters..
> 12:50.808 DEBUG: OIC_CA_RETRANS: retransmission main thread start
> 12:50.808 DEBUG: OIC_CA_IP_ADAP: IN
> 12:50.808 DEBUG: OIC_CA_RETRANS: wait..there is no retransmission data.
> 12:50.808 DEBUG: OIC_CA_INF_CTR: 1 type adapter, register complete!
> 12:50.808 INFO: OIC_CA_IP_ADAP: OUT IntializeIP is Success
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: IN
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: IN - CAInitLEAdapterMutex
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: IN
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: IN
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: IN
> 12:50.808 ERROR: OIC_CA_LE_ADAP: CALEConnectionStateChangedCb failed!
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.808 DEBUG: OIC_CA_INF_CTR: 2 type adapter, register complete!
> 12:50.808 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.808 DEBUG: OIC_CA_CONN_MGR: Selected network : 1
> 12:50.808 DEBUG: OIC_CA_NW_CONFIG: Create network list
> 12:50.808 DEBUG: OIC_CA_NW_CONFIG: Add network type(IP)
> 12:50.808 DEBUG: OIC_CA_INF_CTR: Start the adapter of CAConnectivityType[1]
> 12:50.808 DEBUG: OIC_CA_QING: thread initialize..
> 12:50.808 DEBUG: UTHREADPOOL: IN
> 12:50.808 DEBUG: UTHREADPOOL: OUT
> 12:50.808 DEBUG: OIC_CA_QING: message handler main thread start..
> 12:50.808 DEBUG: OIC_CA_QING: wait..
> 12:50.818 INFO: OIC_CA_IP_SERVER: IPv6 unicast port: 53612
> 12:50.818 INFO: OIC_CA_IP_SERVER: IPv4 unicast port: 43206
> 12:50.818 DEBUG: OIC_CA_IP_SERVER: socket summary: u6=3, u6s=4, u4=7, u4s=8, 
> m6=5, m6s=6, m4=9, m4s=10
> 12:50.818 DEBUG: OIC_CA_IP_SERVER: port summary: u6 port=53612, u6s 
> port=53154, u4 port=43206, u4s port=53202, m6 port=5683,m6s port=5684, m4 
> port=5683, m4s port=5684
> 12:50.818 DEBUG: OIC_CA_IP_MONITOR: Got ifaddrs
> 12:50.818 DEBUG: OIC_CA_IP_MONITOR: Added interface: wlan0 (2)
> 12:50.818 DEBUG: OIC_CA_IP_MONITOR: Added interface: usb0 (2)
> 12:50.818 DEBUG: OIC_CA_IP_SERVER: IP network interfaces found: 2
> 12:50.818 DEBUG: OIC_CA_IP_SERVER: IPv4 network interface: wlan0
> 12:50.818 DEBUG: UTHREADPOOL: IN
> 12:50.818 DEBUG: UTHREADPOOL: OUT
> 12:50.818 DEBUG: OIC_CA_IP_SERVER: CAReceiveHandler thread started 
> successfully.
> 12:50.818 DEBUG: OIC_CA_CONN_MGR: CAAddNetworkType(CA_IP_ADAPTER) function 
> returns result: 0
> 12:50.818 DEBUG: OIC_CA_CONN_MGR: Selected network : 4
> 12:50.818 DEBUG: OIC_CA_NW_CONFIG: Add network type(EDR) - Not Supported
> 12:50.818 DEBUG: OIC_CA_CONN_MGR: CAAddNetworkType(CA_RFCOMM_ADAPTER) 
> function returns result : 12
> 12:50.818 DEBUG: OIC_CA_CONN_MGR: Selected network : 2
> 12:50.818 DEBUG: OIC_CA_NW_CONFIG: Add network type(LE)
> 12:50.818 DEBUG: OIC_CA_INF_CTR: Start the adapter of CAConnectivityType[2]
> 12:50.818 DEBUG: OIC_CA_LE_ADAP: CAStartLE
> 12:50.818 DEBUG: BLE_INTERFACE: CAStartLEAdapter
> 12:50.818 DEBUG: UTHREADPOOL: IN
> 12:50.818 DEBUG: UTHREADPOOL: OUT
> 12:50.888 DEBUG: OIC_CA_CONN_MGR: CAAddNetworkType(CA_GATT_ADAPTER) function 
> returns result : 0
> 12:50.888 DEBUG: OIC_CA_CONN_MGR: Selected network : 32
> 12:50.888 DEBUG: OIC_CA_NW_CONFIG: Add network type(NFC) - Not Supported
> 12:50.888 DEBUG: OIC_CA_CONN_MGR: CAAddNetworkType(CA_ADAPTER_NFC) function 
> returns result : 12
> 12:50.888 DEBUG: OIC_CA_CONN_MGR: CARegisterHandler
> 12:50.888 DEBUG: OIC_CA_CONN_MGR: CAStartDiscoveryServer
> 12:50.888 DEBUG: OIC_CA_IP_MONITOR: Got ifaddrs
> 12:50.888 DEBUG: OIC_CA_IP_MONITOR: Added interface: wlan0 (2)
> 12:50.888 DEBUG: OIC_CA_IP_MONITOR: Added interface: usb0 (2)
> 12:50.888 DEBUG: OIC_CA_IP_SERVER: IP network interfaces found: 2
> 12:50.888 DEBUG: OIC_CA_IP_SERVER: IPv4 network interface: wlan0
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: IN - CAStartLEDiscoveryServer
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: IN
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: IN - CAInitLEClientSenderQueue
> 12:50.888 DEBUG: OIC_CA_QING: thread initialize..
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: OUT - CAInitLEClientSenderQueue
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: IN - CAInitLEReceiverQueue
> 12:50.888 DEBUG: OIC_CA_QING: thread initialize..
> 12:50.888 DEBUG: UTHREADPOOL: IN
> 12:50.888 DEBUG: UTHREADPOOL: OUT
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.888 DEBUG: OIC_CA_LE_ADAP: Before CAStartLEGattClient
> 12:50.888 DEBUG: OIC_CA_QING: message handler main thread start..
> 12:50.888 DEBUG: OIC_CA_QING: wait..
> 12:50.958 INFO: BLE_CLIENT: GATT services not yet discovered on LE 
> peripheral: C7:6A:A9:0B:DD:5F
> 
> 12:50.958 DEBUG: UTHREADPOOL: IN
> 12:50.958 DEBUG: UTHREADPOOL: OUT
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.958 INFO: OIC_RI_STACK: Client mode: CAStartDiscoveryServer
> 12:50.958 DEBUG: OIC_CA_QING: message handler main thread start..
> 12:50.958 DEBUG: OIC_CA_QING: wait..
> 12:50.958 ERROR: SRM-AMSMGR: FreeCARequestInfo: Can't free memory. Received 
> NULL requestInfo
> 12:50.958 INFO: OIC_RI_STACK: Entering OCDoResource
> 12:50.958 DEBUG: OIC_CA_CONN_MGR: CAGenerateToken
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: token len:8, token:
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 INFO: OIC_RI_CLIENTCB: Adding client callback with token
> 12:50.958 INFO: OIC_RI_CLIENTCB: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 INFO: OIC_RI_CLIENTCB: Added Callback for uri : /oic/res
> 12:50.958 DEBUG: OIC_RM_UTIL: IN
> 12:50.958 DEBUG: OIC_RM_UTIL: IN
> 12:50.958 ERROR: OIC_RM_UTIL: Invalid input:options
> 12:50.958 INFO: OIC_RM_UTIL: Route option is not present
> 12:50.958 ERROR: OIC_RM: RM not initialized
> 12:50.958 DEBUG: OIC_RM: RM not initialized
> 12:50.958 DEBUG: OIC_RM_RAP: IN
> 12:50.958 DEBUG: OIC_RM_RAP: createoption dlen 0 slen [0]
> 12:50.958 DEBUG: OIC_RM_RAP: Source and destination is not present
> 12:50.958 DEBUG: OIC_RM_RAP: OptValue NOR Message Type
> 12:50.958 INFO: OIC_RM_RAP: Option Length is 1
> 12:50.958 DEBUG: OIC_RM_RAP: OUT
> 12:50.958 DEBUG: OIC_RM_UTIL: OUT
> 12:50.958 DEBUG: OIC_CA_CONN_MGR: CASendRequest
> 12:50.958 DEBUG: OIC_CA_CONN_MGR: CASendMessageMultipleAdapter
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAPrepareSendData IN
> 12:50.958 DEBUG: OIC_CA_BWT: multicast message can't be sent to the block
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: normal msg will be sent
> 12:50.958 DEBUG: UQUEUE: Queue Count : 1
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAPrepareSendData IN
> 12:50.958 DEBUG: OIC_CA_QING: wake up..
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: Multicast message
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: requestInfo is available..
> 12:50.958 DEBUG: UQUEUE: Queue Count : 1
> Discovery initialised
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: url : coap://[::]//oic/res 
> <coap://[::]//oic/res>
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: parse Head Opt: 1
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: Head opt ID: 65524
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: Head opt data: ?
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: Head opt length: 1
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: transport type: 0, payload size: 0
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: msgID is 0
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: gen msg id=9760
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: messageId in pdu is 9760, 9760
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: token info token length: 8, token :
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 DEBUG: OIC_CA_BWT: IN-AddBlockOption
> 12:50.958 DEBUG: OIC_CA_BWT: BlockID is 
> 12:50.958 DEBUG: OIC_CA_BWT: EA A5 6E AE 3D B6 53 F4 00 00 
> 12:50.958 DEBUG: OIC_CA_BWT: IN-GetBlockOptionType
> 12:50.958 DEBUG: OIC_CA_BWT: OUT-GetBlockOptionType
> 12:50.958 DEBUG: OIC_CA_BWT: no BLOCK option
> 12:50.958 DEBUG: OIC_CA_BWT: [oic] opt will be added.
> 12:50.958 DEBUG: OIC_CA_BWT: [12] pdu length
> 12:50.958 DEBUG: OIC_CA_BWT: [res] opt will be added.
> 12:50.958 DEBUG: OIC_CA_BWT: [16] pdu length
> 12:50.958 DEBUG: OIC_CA_BWT: [<] opt will be added.
> 12:50.958 DEBUG: OIC_CA_BWT: [20] pdu length
> 12:50.958 DEBUG: OIC_CA_BWT: [?] opt will be added.
> 12:50.958 DEBUG: OIC_CA_BWT: [22] pdu length
> 12:50.958 DEBUG: OIC_CA_BWT: [26] pdu length after option
> 12:50.958 INFO: OIC_CA_BWT: not Blockwise Transfer
> 12:50.958 DEBUG: OIC_CA_BWT: OUT-AddBlockOption
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: PDU Maker - payload : (null)
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: PDU Maker - type : 1
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: PDU Maker - code : 1
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: PDU Maker - token :
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: pdu to send :
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: 58 01 20 26 EA A5 6E AE 3D B6 53 F4 B3 6F 
> 69 63 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: 03 72 65 73 61 3C E1 FE D6 C0 
> 12:50.958 DEBUG: UQUEUE: Queue Count : 1
> 12:50.958 DEBUG: OIC_CA_QING: wake up..
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData IN
> 12:50.958 DEBUG: OIC_CA_IP_ADAP: Send Multicast Data is called
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData OUT
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: Multicast message
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: requestInfo is available..
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: url : coap://[::]//oic/res 
> <coap://[::]//oic/res>
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: parse Head Opt: 1
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: Head opt ID: 65524
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: Head opt data: ?
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: Head opt length: 1
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: curOptNumber[11], prevOptNumber[11], 
> optValueLen[3], optLength[4], msgLength[4]
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: curOptNumber[11], prevOptNumber[11], 
> optValueLen[3], optLength[4], msgLength[8]
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: curOptNumber[17], prevOptNumber[17], 
> optValueLen[1], optLength[2], msgLength[10]
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: curOptNumber[65524], prevOptNumber[65524], 
> optValueLen[1], optLength[4], msgLength[14]
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: transport type: 2, payload size: 0
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: token info token length: 8, token :
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [oic] opt will be added.
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [11] pdu length
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [res] opt will be added.
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [15] pdu length
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [<] opt will be added.
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [19] pdu length
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [?] opt will be added.
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [21] pdu length
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: [25] pdu length after option
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: PDU Maker - payload : (null)
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: pdu header data :
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: D8 01 01 EA A5 6E AE 3D B6 53 F4 B3 6F 69 
> 63 03 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: 72 65 73 61 3C E1 FE D6 C0 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: pdu to send :
> 12:50.958 DEBUG: OIC_CA_IP_MONITOR: Got ifaddrs
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: D8 01 01 EA A5 6E AE 3D B6 53 F4 B3 6F 69 
> 63 03 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: 72 65 73 61 3C E1 FE D6 C0 
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: IN - CASendLEMulticastData
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: g_adapterType: 3
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: IN
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: Data Sending to LE layer [25]
> 12:50.958 ERROR: CA: parameter is null
> 12:50.958 DEBUG: OIC_CA_IP_MONITOR: Added interface: wlan0 (2)
> 12:50.958 DEBUG: UQUEUE: Queue Count : 1
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: OUT
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: OUT - CASendLEMulticastData
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData IN
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData OUT
> 12:50.958 DEBUG: OIC_CA_QING: wait..
> 12:50.958 DEBUG: OIC_CA_IP_MONITOR: Added interface: usb0 (2)
> 12:50.958 DEBUG: OIC_CA_QING: wake up..
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: IN - CALEClientSendDataThread
> 12:50.958 DEBUG: OIC_CA_IP_SERVER: IN
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: Sending Multicast Data
> 12:50.958 INFO: OIC_CA_IP_SERVER: multicast ipv4 sendTo is successful: 26 
> bytes
> 12:50.958 DEBUG: OIC_CA_QING: wait..
> 12:50.958 ERROR: OIC_CA_LE_ADAP: Update characteristics (all) failed, result 
> [255]
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: CALEErrorHandler IN
> 12:50.958 DEBUG: OIC_CA_INF_CTR: received error from adapter in 
> interfacecontroller
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAErrorHandler IN
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: pdu parse-transport type : 2
> 12:50.958 DEBUG: OIC_CA_IP_ADAP: Address: 192.168.1.16, port:43206
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: pdu parse ret: 1
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: received pdu data :
> 12:50.958 INFO: OIC_CA_PRTCL_MSG: there is no version info in coap header
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAGenerateHandlerData IN
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: address : 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: 58 01 20 26 EA A5 6E AE 3D B6 53 F4 B3 6F 
> 69 63 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: 03 72 65 73 61 3C E1 FE D6 C0 
> 1-Get request
> 2-Put request
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : oic
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: pdu parse-transport type : 0
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : res
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: pdu parse ret: 1
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : <
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: code = 1
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAGenerateHandlerData IN
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: option[17] has an unsupported format [60]
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: address : 192.168.1.16
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : ?
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: inside token length : 8
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : oic
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: URL length:8
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : res
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: error Info :
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : <
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: optionID: 65524
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: option[17] has an unsupported format [60]
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: list: ?
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: token:
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: COAP URI element : ?
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: inside token length : 8
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: msgID: 0
> 12:50.958 DEBUG: OIC_CA_PRTCL_MSG: URL length:8
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAGenerateHandlerData OUT
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: Request Info :
> 12:50.958 DEBUG: UQUEUE: Queue Count : 1
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: optionID: 65524
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAErrorHandler OUT
> 12:50.958 DEBUG: OIC_CA_LE_ADAP: CALEErrorHandler OUT
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: error callback error: 255
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: list: ?
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: token:
> 12:50.958 DEBUG: OIC_CA_QING: wait..
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: EA A5 6E AE 3D B6 53 F4 
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: msgID: 9760
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CAGenerateHandlerData OUT
> 12:50.958 DEBUG: OIC_CA_BWT: CAReceiveBlockWiseData
> 12:50.958 DEBUG: OIC_CA_BWT: BlockID is 
> 12:50.958 DEBUG: OIC_CA_BWT: EA A5 6E AE 3D B6 53 F4 A8 C6 
> 12:50.958 DEBUG: OIC_CA_BWT: it's normal pdu
> 12:50.958 ERROR: OIC_CA_MSG_HANDLE: this message does not have block option
> 12:50.958 DEBUG: UQUEUE: Queue Count : 1
> 12:50.958 INFO: OIC_RI_STACK: Enter HandleCAErrorResponse
> 12:50.958 INFO: OIC_RI_STACK: Exit HandleCAErrorResponse
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData IN
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData OUT
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: request callback : 1
> 12:50.958 INFO: OIC_RI_STACK: Enter HandleCARequests
> 12:50.958 ERROR: OIC_RM: RM not initialized
> 12:50.958 DEBUG: OIC_RM_UTIL: IN
> 12:50.958 DEBUG: OIC_RM_UTIL: IN
> 12:50.958 DEBUG: OIC_RM_UTIL: Request- optionID: 65524
> 12:50.958 INFO: OIC_RM_UTIL: Found Option at 0
> 12:50.958 DEBUG: OIC_RM_UTIL: OUT
> 12:50.958 DEBUG: OIC_RM_UTIL: OUT
> 12:50.958 DEBUG: OIC_RI_STACK: Enter OCHandleRequests
> 12:50.958 INFO: OIC_RI_STACK: Exit HandleCARequests
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData IN
> 12:50.958 DEBUG: OIC_CA_MSG_HANDLE: CADestroyData OUT
> 
> here is the log from arduino:
> 
> DEBUG: ArduinoServeUG: OIC_CA_INF_CTR: 187: Set Receiver handle calandle 
> callback
> DEBUG: OIC_CA_INF_CTR: 201: Set error handle callback
> DEBUG: OIC_CA_RETRANS: 328: thread initialize
> DEBUG: OIC_CA_INF_CTR: 151: initialize adapters..
> DEBUG: OIC_CA_LE_ADAP: 1728: IN
> DEBUG: OIC_CA_LE_ADAP: 1306: IN - CAInitLEAdapterMutex
> DEBUG: OIC_CA_LE_ADAP: 1394: OUT
> DEBUG: LENW: 55: IN
> DEBUG: LENW: 56: OUT
> DEBUG: LENW: 68: IN
> DEBUG: LENW: 69: OUT
> DEBUG: LEC: 30: IN
> DEBUG: LEC: 31: OUT
> DEBUG: LEC: 65: IN
> DEBUG: LEC: 66: OUT
> DEBUG: LEC: 35: IN
> DEBUG: LEC: 36: OUT
> DEBUG: LES: 169: IN
> DEBUG: LES: 170: OUT
> DEBUG: LES: 250: Initialize GATT Server
> DEBUG: OIC_CA_LE_ADAP: 2555: IN
> DEBIN
> DEBUG: LES: 214: OUT
> DEBUG: OIC_CA_LE_ADAP:LENW: 120: OUT
> DEBUG: OIC_CA_LE_ADAP: 2191: OUT
> DEBUG: OIC_CA_LE_ADAP: 1796: OUT
> DEBUG: OIC_C_CA_NW_CONFIG: 74: Add network type(IP) - Not Supported
> DEBUG: OIC_CA_NW_CONFIG: 90: Add network type(EDR) - Not Supported
> DEBUG: OIC_CA_NW_CONFIG: 110: Add network type(LE)
> DEBUG: OIC_CA_LE_ADAP: 1803: CAStartLE
> DEBUG: OIC_CA_NW_CONFIG: 147: Add network type(NFC) - Not Supported
> IC_CA_CONN_MGR: 138: CARegisterHandler
> DEBUG: OUT
> DEBUG: OIC_CA_LE_ADAP: 1628: Before CAStartLEGattServer
> DEBUG: LES: 219: IN
> DEBUG: LES: 154: IN
> DEBUG: LES: 159: LEName Set
> DEBUG: LES: 163: OUT
> Evt Device Started: Setup
> DEBUG: LES: 147: NoData
> Evt Device Started: Standby
> Advertising started
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> LEAddress :
> c7:6a:a9:0b:dd:5f
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 14N
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: hread start
> DEBUG: OIC_CA_RETRANS: 306: retranA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_RETRANS: 306: retransmission main t: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_RANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LEn thread start
> DEBUG: OIC_CA_RETRANS: 306: retrDEBUG: OI
> DEBUG: OIC_CA_RETRANS: 306: retransmission mainDEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: ArduinoServer: 249: OCServer is starting... filho da mae
> DEBUG: ArduinoServer: 259: Initializing Stack
> INFO: OIC_RI_STACK: 1977: Entering OCInit
> DEBUG: OIC_CA_CONN_MGR: 65: CAInitialize
> DEBUG: OIC_CA_INF_CTR: 187: Set Receiver handle callback
> DEBUG: OIC_CA_INF_CTR: 194: Set network handle callback
> DEBUG: OIC_CA_INF_CTR: 201: Set error handle callback
> DEBUG: OIC_CA_RETRANS: 328: thread initialize
> DEBUG: OIC_CA_INF_CTR: 151: initialize adapters..
> DEBUG: OIC_CA_LE_ADAP: 1728: IN
> DEBUG: OIC_CA_LE_ADAP: 1306: IN - CAInitLEAdapterMutex
> DEBUG: OIC_CA_LE_ADAP: 1394: OUT
> DEBUG: LENW: 55: IN
> DEBUG: LENW: 56: OUT
> DEBUG: LENW: 68: IN
> DEBUG: LENW: 69: OUT
> DEBUG: LEC: 30: IN
> DEBUG: LEC: 31: OUT
> DEBUG: LEC: 65: IN
> DEBUG: LEC: 66: OUT
> DEBUG: LEC: 35: IN
> DEBUG: LEC: 36: OUT
> DEBUG: LES: 169: IN
> DEBUG: LES: 170: OUT
> DEBUG: LES: 250: Initialize GATT Server
> DEBUG: OIC_CA_LE_ADAP: 2555: IN
> DEBUG: OIC_CA_LE_ADAP: 2561: OUT
> DEBUG: LES: 212: IN
> DEBUG: LES: 214: OUT
> DEBUG: OIC_CA_LE_ADAP: 2566: IN
> _CA_LE_ADAP: 2162: IN
> DEBUG: LENW: 116: IN
> DEBUG: LENW: 120: O: 42: OUT
> DEBUG: LES: 175: IN
> DEBUG: LES: 176: OUT
> DEBUG: OIC_CA_LE_ADAP: 2162: IN
> DEBUG: LENW: 116: IN
> DEBUG: LENW: 120: OUT
> DEBUG: OIC_CA_LE_ADAP: 2191: OUT
> DEBUG: OIC_CA_LE_ADAP: 1796: OUT
> DEBUG: OIC_CA_NW_CONFIG: 60: Create network list
> DEBUG: OIC_CA_NW_CONFIG: 74: Add network type(IP) - Not Supported
> DEBUG: OIC_CA_NW_CONFIG: 90: Add network type(EDR) - Not Supported
> DEBUG: OIC_CA_NW_CONFIG: 110: Add network type(LE)
> DEBUG: OIC_CA_LE_ADAP: 1803: CAStartLE
> DEBUG: OIC_CA_NW_CONFIG: 147: Add network type(NFC) - Not Supported
> DEBUG: SRM: 275: SRMRegisterHandler !!
> DEBUG: OIC_CA_CONN_MGR: 138: CARegisterHandler
> DEBUG: OIC_CA_CONN_MGR: 101: CAStartListeningServer
> DEBUG: OIC_CA_LE_ADAP: 1877: IN - CAStartLEListeningServer
> DEBUG: LENW: 89: IN
> DEBUG: LENW: 90: OUT
> DEBUG: OIC_CA_LE_ADAP: 1628: Before CAStartLEGattServer
> DEBUG: LES: 219: IN
> DEBUG: LES: 154: IN
> DEBUG: LES: 159: LEName Set
> DEBUG: LES: 163: OUT
> Evt Device Started: Setup
> DEBUG: LES: 147: NoData
> Evt Device Started: Standby
> Advertising started
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> LEAddress :
> c7:6a:a9:0b:dd:5f
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 147: NoData
> DEBUG: LES: 236: OUT
> DEBUG: OIC_CA_LE_ADAP: 1917: OUT
> INFO: OIC_RI_STACK: 2027: Server mode: CAStartListeningServer
> INFO: OIC_RI_STACK: 3076: Entering OCCreateResource
> INFO: OIC_RI_OBSERVE: 107: Entering SendObserverNotification
> INFO: OIC_RI_OBSERVE: 225: Resource has no observers
> INFO: OIC_RI_STACK: 3076: Entering OCCreateResource
> INFO: OIC_RI_STACK: 3076: Entering OCCreateResource
> DEBUG: ArduinoServer: 266: OCStack initialized with sucess
> DEBUG: ArduinoServer: 270: Creating Resource
> DEBUG: ArduinoServer: 298: Inside create light resource
> INFO: OIC_RI_STACK: 3076: Entering OCCreateResource
> DEBUG: ArduinoServer: 306: Saiu
> O resultado foi: 0
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> Evt Connected
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> Evt Pipe Status
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> Evt Pipe Status
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> DEBUG: OIC_CA_LE_ADAP: 1979: IN
> DEBUG: LES: 147: NoData
> DEBUG: OIC_CA_LE_ADAP: 1983: OUT
> DEBUG: OIC_CA_RETRANS: 239: retransmission main thread start
> DEBUG: OIC_CA_RETRANS: 306: retransmission main thread end
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160630/82216232/attachment.html>

Reply via email to