This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do i "Read" the data package sent to the host side using Gazelle?

Hi,

I got a problem with sending data via gazele protocols, i'm using example library gzll_ack_payload_ host and device, can somebody explain me how this code works?

i see code is using a bsp button to send data but i dont know how to read or show data in serial.

  • Hi,

    Is the question how you can log data over UART in addition to send it via Gazelle? If so, you can use NRF_LOG or other UART log implementation (for instance as done in the UART example) and log the data at the same time as you a Gazell API function to transmit it. If this does not answer the question, then please elaborate. 

  • hy, thanks for response. so my problem is how to see the data sending via gazelle. my case is

    1. i already can connect gzll_ack_payload between two nrf51822.

    2. but how i can send data and read data send from nrf51822 receiver. what is the function for sending like string or byte and how to read the data from receiver.

    3. for logging data already done like i can see "Gazell ACK payload example. Host mode." from host and "Gazell ACK payload example. Device mode.", and then that's it, nothing happen i can't see data receive or send.

    4. because i want to create keyboard with nrf51822 via gazelle comunication, but i know the first basic is gazele comunication (Send and Receive every button keyboard) and how to read the sending and receive data to convert to QMK suport data.

    if you want to help me, can i comunicate with you personally?, i stand 3 month with this problem and no solution untill todaySob

  • Hi,

    hansparson013 said:
    1. i already can connect gzll_ack_payload between two nrf51822.

    That is good. This example has most of what you ask for.

    hansparson013 said:
    2. but how i can send data and read data send from nrf51822 receiver. what is the function for sending like string or byte and how to read the data from receiver.

    The example demonstrates sending and receiving data, but instead of printing data to the terminal it uses buttons and LEDs (so you control LEDs on of one nRF by button on the other, and vise versa). Please see the example documentation.

    If you want, you can replace this data by something other than a button press, and print the data instead of setting LEDs depending on it. in that case, referring to the device in SDK 12.3 (examples\proprietary_rf\gzll\gzll_ack_payload\device\main.c) change the input parameters to nrf_gzll_add_packet_to_tx_fifo() to contain the data you want to send, and set the length to the length of the data and not hardcoded to 1 as it is now (value of TX_PAYLOAD_LENGTH). And on the receiving end handle the data as data and do not just set the LED based on the first byte. And do similar changes for communication the other way.

    hansparson013 said:
    3. for logging data already done like i can see "Gazell ACK payload example. Host mode." from host and "Gazell ACK payload example. Device mode.", and then that's it, nothing happen i can't see data receive or send.

    Perhaps it is better if you show your changes, explain how you tested and debugged, and what you expect would happen relative to what actually happened?

    hansparson013 said:
    4. because i want to create keyboard with nrf51822 via gazelle comunication, but i know the first basic is gazele comunication (Send and Receive every button keyboard) and how to read the sending and receive data to convert to QMK suport data.

    I agree it makes sense to understand the basics first. But then I think you would be best of starting with the unmodified example and test that. As you then see, it does actually exchange data. Then gradually modify it, changing the data to something other than a single byte representing a button state. 

    hansparson013 said:
    if you want to help me, can i comunicate with you personally?, i stand 3 month with this problem and no solution untill today

    I think it is most productive to continue here. The example needs small adjustments to do what you want, and if you can explain in detail what you have doen and how you have tested etc, and try to do small steps as I suggested, I expect you will make rapid progress.

Related