question

15451811 avatar image
0 Votes"
15451811 asked ·

Unable to receive more data from UART High Level App and to calculate size of data in ISU ports

How can I receive more data instead of only 12 bytes? I also want to know if there is any way to calculate the length of data present in the ISU ports? I have been trying to receive the data from click boards using RTApp and transfer it to shared buffer and then by using High-Level App to display the data in Visual Studio. But I haven't made any progress. I was not able to transfer data to the buffer without knowing the length of the data in the ISU port. I got an error when I used the "sizeof" function. Is there any possible way to do it. Please guide me with what I have to do next... Thank you

azure-sphereazure-rtos
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @NishithVPoojary-0251 Welcome to Microsoft Q&A Platform and thanks for your query. Community SME's on this topic or our team will review your scenario and circle back at the possible earliest time.

1 Vote 1 ·
matsujirushi avatar image
1 Vote"
matsujirushi answered ·

Hi @NishithVPoojary-0251 ,
UART is byte stream interface.
If you want to split it into specific lengths, you have to implement the code.

Sample code is here.
The received data is stored in the ReceiveBuffer, and meaningful chunks of data are passed to the MessageReceivedHandler.

https://github.com/matsujirushi/uart-to-azureiot/blob/master/app/uart-to-azureiot-hlapp/main.c#L254

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered ·

Hello @NishithVPoojary-0251
Just checking in if you have had a chance to see the previous response.
Please enable your preferred alert types on your Profile's Settings to get instant notifications on this thread's discussions. Here is how to subscribe to a notification.

In addition to the info shared by Matsujirushi, please also have a look at the below document.

Azure Sphere – UART - Code Samples | Microsoft Docs

UART documentation here provides info on how to update the baud rate. Can you check if the customer has tried these and if so, their outcomes?

Please comment below if you need further help in this matter.

If a response is helpful, please click "Accept Answer" and upvote it.


· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sorry for not replying. I am was working on other stuff and was also stuck with an SDK error. I will check it as soon as possible and will reply. Thanks for the notification link.
78059-image.png


1 Vote 1 ·
image.png (15.3 KiB)

Hello, Please let us know if you face any issue with your profile or account on this forum.

1 Vote 1 ·
15451811 avatar image 15451811 SatishBoddu-MSFT ·

I have created a separate issue for " VS Code CMake ToolChain Error for Azure Sphere #274" in "https://github.com/MicrosoftDocs/azure-sphere-issues/issues/274"

0 Votes 0 ·