1 Reply Latest reply on Mar 25, 2020 1:30 AM by ChunleiL_51

    EZ-Serial: Read out RSSI value

    user_1536336

      We are using CYBT-333047 module with EZ-Serial communication interface.

      The gap_query_rssi (/QSS BLE) and the bt_query_rssi (/BTQSS BT-Classic) commands are not working for me.

      1. /QSS always returns 0, even if there is an active BLE connection
      2. /BTQSS always returns error (E=020D), even if there is an active BT-Classic connection

       

      Please reproduce this issues and let me knwo, if they can be fixed!

       

      Best Reagrds!

        • 1. Re: EZ-Serial: Read out RSSI value
          ChunleiL_51

          Hi,

           

          1)

          The /QSS command requires the correct conn_handle passed as argument. For example, after I established a BLE connection, the board gave me the following event:

          @E,0035,C,C=01,A=679F8528F7D3,T=00,I=0028,L=0000,O=02BC,B=00

          From the result I knew that the current conn_handle is 01 (inferred from the field "C=01"). So in order to get the RSSI using /QSS, I should send the following command:

          /QSS,C=01

          And then I get the following response:

          @R,000F,/QSS,0000,R=D1

          It tells me the RSSI is D1.

          If I send the following command:

          /QSS, C=00

          Or just the following command:

          /QSS

          I will get the following response:

          @R,000F,/QSS,0502,R=00

          And the field "0502" stands for EZS_ERR_GAP_CONNECTION_REQUIRED, which tells me I didn't specify the correct conn_handle.

           

          2)

          /BTQSS always require the argument macaddr. For example, you should send commands like below:

          /BTQSS,A=123456789AB

          Then you get the correct results like:

          @R,0011,/BTQSS,0502,R=C5

          And in your case, you got the following error:

          @E,000B,ERR,E=0203

          The field "0203" here indicates EZS_ERR_PROTOCOL_MISSING_REQUIRED_ARGUMENT. So remember to add the correct arguments to the commands.

           

          For more details, refer to the user guide below:

          https://www.cypress.com/file/455966/download

           

          <<<<<<<<<<<<<>>>>>>>>>>>>>

          Sincere regards from C. L.

          <<<<<<<<<<<<<>>>>>>>>>>>>>

          2 of 2 people found this helpful