2 Replies Latest reply on Aug 13, 2019 2:52 AM by LeLi_3670906

    CYW20719 to receive file from OPP server or SPP server?

    LeLi_3670906

      Hi all,

       

      I want to use 20719 to receive audio file as A2DP source file,base on watch demo,should I port opp server or spp to achieve?

       

       

      Thanks,

      Leo

        • 1. Re: CYW20719 to receive file from OPP server or SPP server?
          SheetalJ_96

          Hi Leo,

           

          Using SPP, you will be able to transfer data serially, while OPP will help you transfer data objects. We have support for both SPP and Obex profiles, you can choose as per your convenience & requirement.

          Please note that we do not have any example or demo code available for your use case.

          • 2. Re: CYW20719 to receive file from OPP server or SPP server?
            LeLi_3670906

            Hi Sheetal,

             

            My host mcu is ST which act as client control,I just want to receive audio file from phone.

            In wiced 6.4,I have found hci_opp_server demo and test result is ok.

            But I ported OPP server to Watch demo,when I test send file from phone to 20719,some error as below:

             

            APP START

            [Rx]Bluetooth management callback event: 0x15

            BTM_LOCAL_IDENTITY_KEYS_REQUEST_EVT

            Bluetooth management callback event: 0x00

             

            hci_control_write_eir 23976c

            EIR :09 57 61 74 63 68

            [Rx]03 03 05 11 00 44

            obx_sr_alloc_cb num sess: 1[0]: 0x1obx_open_port rxmtu:985, cbmtu:985obx_open_port rxmtu:985, port_handle:2, port.handle:0x1OBEX_StartServer target len:0, authenticate:0 handle:0x1wiced_bt_create_pool 2453d8

            maxLinks:0 maxChannels:0 maxpsm:0 rfcom max links2, rfcom max ports:2

             

            [Rx]cmd_opcode 0x08

            cmd_opcode 0x09

            Set the pairing allowed to 1

            cmd_opcode 0x05

            Updated Addr Resolution DB:8113

            NVRAM write: 138 dev: [94 65 2d 25 98 5a ]

             

            [Rx]Bluetooth management callback event: 0x09

            Bluetooth management callback event: 0x08

            BTM_PAIRING_IO_CAPABILITIES_BR_EDR_REQUEST_EVT bda 94 65 2d 25 98 5a

             

             

            [Rx]Bluetooth management callback event: 0x04

            BTM_USER_CONFIRMATION_REQUEST_EVT

             

             

            [Rx]Bluetooth management callback event: 0x0b

            pairing complete evt: 94 65 2d 25 98 5a  as 5a 98 25 2d 65 94  status 0

            Bluetooth management callback event: 0x12

            BTM_PAIRED_DEVICE_LINK_KEYS_UPDATE_EVT

            find 94 65 2d

            [Rx]25 98 5a  94 65 2d 25 98 5a  len:6

            Updated Addr Resolution DB:8113

            NVRAM write:id:16 bytes:138 dev: [94 65 2d 25 98 5a ]

             

             

            [Rx]Bluetooth management callback event: 0x0c

            BTM_ENCRYPTION_STATUS_EVT

            Encryption Status:(94 65 2d 25 98 5a ) res:0

            Power mgmt status event: bd ( 94 65 2d 25 98 5a  ) status:1 hci_sta

            [Rx]tus:0

             

             

            [Rx]obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x20000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_port_handle_2cb port_handle:2 obx_

            [Rx]handle:0x1p_pcb port_handle:2obx_rfc_mgmt_cback(port_status: 0, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_start_timer val:60, p_tle:0x227fa4obx

            [Rx]_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x20000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_

            [Rx]handle:2obx_rfc_cback (code: 0x20000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_c

            [Rx]back (code: 0x20000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_port_handle_2cb port_handle:2 obx_handle

            [Rx]:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x20000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_port_handle_2cb port_handle:2 ob

            [Rx]x_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x1, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_read_data port_handle:2OBEX_HandleToMtu handle: 0x1, rx:40, mtu:985OBEX_HdrInit: checking req_size 1024, pkt_size:1024, max:1024, offset:31OBEX_HdrInit: req_siz

            [Rx]e 1024, pkt_size = 1024, gki_size 1056, buf_size 985buf size: 985, ls:952ask_len: 1, got_len:1obx_verify_request opcode 0x80: final:1ask_len: 2, got_len:2ask_len: 9, got_len:9got a packet. opcode:0x80obx_sr_proc_pkt 0x23a264 srm:0x0 sess_st:0 req_code:

            [Rx]0x0, sm_evt:0 ssn:0srmp:0x0obx_read_srm srm:0x0After process SRM header p_scb->srm=0x0, p_scb->srmp=0x0rsp_code:0x20, sm_evt:0For Server SHandle 0x1, State: NOT_CONN, Event: CONN_R/0 srm:0x0 ssn:0possible new state = CONN_I/NOT_CONN/1obx_sa_connect_indo

            [Rx]bx_verify_target rsp: 20, id:0, code:80OPS Connect: peer mtu 0x03d9

            OBEX_HandleToMtu handle: 0x0, rx:0, mtu:255OBEX_HdrInit: checking req_size 255, pkt_size:286, max:1024, offset:31OBEX_HdrInit: req_size 255, pkt_size = 286, gki_size 1056, buf_size 255buf size: 255

            [Rx], ls:222For Server SHandle 0x1, State: CONN_I, Event: CONN_C/8 srm:0x0 ssn:0possible new state = CONN/CONN_I/3obx_sa_snd_rsp sess_st:0, event:9obx_stop_timer p_tle:0x227fa4obx_start_timer val:60, p_tle:0x227fa4new state = CONN (action

            [Rx])result state = CONN ssn:0result state = CONN ssn:0obx_add_port handle:0x1num_sess:1 scn:3[0] id:0x2, state:4[0] port_handle:2obx_read_data port_handle:2OBEX_HandleToMtu handle: 0x1, rx:40, mtu:985OBEX_HdrInit: checking req_size 1024, pkt_size:1024, max:1024

            [Rx], offset:31OBEX_HdrInit: req_size 1024, pkt_size = 1024, gki_size 1056, buf_size 985buf size: 985, ls:952ask_len: 1, got_len:0obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x20000, port_handle: 2)obx_sr_pro

            [Rx]c_evt handle: 0x1, port_handle:2

            [Rx]obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x1, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_read_data port_handle:2ask_len: 1, got_len:

            [Rx]1obx_verify_request opcode 0x2: final:0ask_len: 2, got_len:2ask_len: 982, got_len:982got a packet. opcode:0x2obx_sr_proc_pkt 0x239e38 srm:0x0 sess_st:0 req_code:0x2, sm_evt:3 ssn:0srmp:0x0Connection ID: 0x0/0x0 state:4Put request type: 0obx_read_s

            [Rx]rm srm:0x0After process SRM header p_scb->srm=0x0, p_scb->srmp=0x0rsp_code:0x20, sm_evt:3For Server SHandle 0x1, State: CONN, Event: PUT_R/3 srm:0x0 ssn:0possible new state = PUT_I/CONN/4OBEX_CheckNext: remain: 0 len:985OPS Access Request...Name

            [Rx][I Like You_Liv Dawson.mp3], Oper [1], Type [audio/mpeg]

            ACCESS [I Like You_Liv Dawson.mp3]:25 [audio/mpeg]10

            result state = PUT_I ssn:0obx_read_data port_handle:2OBEX_HandleToMtu handle: 0x1, rx:40, mtu:985OBEX_HdrInit: checking req_size 1024, pkt_size:1024, ma

            [Rx]x:1024, offset:31OBEX_HdrInit: req_size 1024, pkt_size = 1024, gki_size 1056, buf_size 985buf size: 985, ls:952ask_len: 1, got_len:0cmd_opcode 0x2001

            hci_control_transport_tx_cplt_cback 23db64

            OBEX_HandleToMtu handle: 0x0, rx:0, mtu:255

            [Rx]OBEX_HdrInit: checking req_size 255, pkt_size:286, max:1024, offset:31OBEX_HdrInit: req_size 255, pkt_size = 286, gki_size 1056, buf_size 255buf size: 255, ls:222For Server SHandle 0x1, State: PUT_I, Event: PUT_C/11 srm:0x0 ssn:0possible new s

            [Rx]tate = PUT/PUT_I/9obx_sa_snd_rsp sess_st:0, event:12obx_stop_timer p_tle:0x227fa4obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x10000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2obx_start_timer v

            [Rx]al:60, p_tle:0x227fa4new state = PUT (action)result state = PUT ssn:0

            [Rx]obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb port_handle:2obx_rfc_cback (code: 0x1, port_handle: 2)obx_sr_proc_evt handle: 0x

            [Rx]1, port_handle:2obx_read_data port_handle:2ask_len: 1, got_len:1obx_verify_request opcode 0x2: final:0ask_len: 2, got_len:2ask_len: 908, got_len:908got a packet. opcode:0x2obx_sr_proc_pkt 0x23a264 srm:0x0 sess_st:0 req_code:0x2, sm_evt:3 ssn:0srmp:0x0Connection ID: 0x0/0x0 state:11Put request type: 0obx_read_srm srm:0x0After p

            [Rx]rocess SRM header p_scb->srm=0x0, p_scb->srmp=0x0rsp_code:0x20, sm_evt:3For Server SHandle 0x1, State: PUT, Event: PUT_R/3 srm:0x0 ssn:0possible new state = PUT_I/PUT/11 hci_control_transport_tx_cplt_cback 23db64

            result state = PUT_I ssn:0obx_read_data port_

            [Rx]handle:2OBEX_HandleToMtu handle: 0x1, rx:40, mtu:985OBEX_HdrInit: checking req_size 1024, pkt_size:1024, max:1024, offset:31OBEX_HdrInit: req_size 1024, pkt_size = 1024, gki_size 1056, buf_size 985buf size: 985, ls:952ask_len: 1, got_len:0OBEX_Han

            [Rx]dleToMtu handle: 0x0, rx:0, mtu:255OBEX_HdrInit: checking req_size 255, pkt_size:286, max:1024, offset:31OBEX_HdrInit: req_size 255, pkt_size = 286, gki_size 1056, buf_size 255buf size: 255, ls:222For Server SHandle 0x1, State: PUT_I, Event: PUT_C

            [Rx]/11 srm:0x0 ssn:0possible new state = PUT/PUT_I/9obx_sa_snd_rsp sess_st:0, event:12obx_stop_timer p_tle:0x227fa4obx_start_timer val:60, p_tle:0x227fa4new state = PUT (action)result state = PUT ssn:0obx_port_handle_2cb port_handle:2 obx_handle:0x1p_pcb p

            [Rx]ort_handle:2obx_rfc_cback (code: 0x20000, port_handle: 2)obx_sr_proc_evt handle: 0x1, port_handle:2

            [Rx]Bluetooth management callback event: 0x02

            Power mgmt status event: bd ( 94 65 2d 25 98 5a  ) status:2 hci_status:0

            [Rx]For Server SHandle 0x1, State: PUT, Event: TIMEOUT/19 srm:0x0 ssn:0Ignore event 19 in state 11

             

            Meanwhile it's always 0% in my phone as below:

             

            Could you please help me to check it ?

             

             

            Thanks,

            Leo