This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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 send midi data over ble uart

hi, i am using ble_uart example in which i am sending 3 byte of midi data (90 1e 45 0a .E.) i am getting (.E.) when i converts this ascii value to hex value i get (2e 45 2e) which is not same as the data i am sending.

i have no idea what should i do to get same data.

thanks!!

Parents
  • Your question makes little sense. You say you're sending 3 bytes and then put 7 bytes of data in the parentheses in the question. Then you say you are receiving ".E." which according to the question is the last 3 bytes of the data you say you are sending and since 2E 45 2E is ASCII for ".E." then it appears you are getting back exactly what you send out.

    If you want 90 1E 45 then send out 90 1E 45 instead of grabbing the screen printout which converts the control characters to "." for human readability and sending that.

Reply
  • Your question makes little sense. You say you're sending 3 bytes and then put 7 bytes of data in the parentheses in the question. Then you say you are receiving ".E." which according to the question is the last 3 bytes of the data you say you are sending and since 2E 45 2E is ASCII for ".E." then it appears you are getting back exactly what you send out.

    If you want 90 1E 45 then send out 90 1E 45 instead of grabbing the screen printout which converts the control characters to "." for human readability and sending that.

Children
No Data
Related