Skip to main content
Associate II
November 21, 2024
Solved

An error occurs in [Serial emulator] in the [Validation] tab of NANOEDGE AI STUDIO

  • November 21, 2024
  • 2 replies
  • 3156 views

When I select the library in the [Validation] tab of NANOEDGE AI STUDIO and run [Serial emulator], I get the error message "No data are being received. Please ensure the correct COM port is selected."
However, I am able to obtain data if I select the same COM port using TeraTerm (terminal emulator).
Incidentally, the same error occurs whether the baud rate is 9600 or 115200.
The board I am using is B-L475E-IOT01A2.
Does anyone have any information on the cause of this?

Best answer by Julian E.

Hello @hashimoto_m,

 

So, there are only 158 values in the files that you sent me. 

In the project that you shared you used 512 values per lines.

 

I think that your issue is that you are logging all your data as a single, infinite line. 

What to need to do is to add a "return line" at the end of each of your 512 buffers before importing them.

Something like:

while(1){
 for (i = 0; i < YOUR_BUFFER_SIZE; i++) {
 printf("%d", i);
 } 
 printf("\n);
}

 

The code above is just to make you understand what I mean, but in your case, you are logging 256 times 2 out of the 3-axis accelerometer, so you need to adapt it.

 

I attached an example of a correctly formatted file.

Julian

2 replies

Julian E.
Technical Moderator
November 21, 2024

Hello @hashimoto_m,

try to close every app that may use the COM port and retry.

 

Can you share the logs please?

You can find them here:

JulianE_0-1732194510324.png

 

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Visitor II
November 21, 2024

 

NanoEdge AI Studio may sometimes fail to release and reconnect to the COM port. You can close and reopen NanoEdge AI Studio. Then reconnect the B-L475E-IOT01A2.

 

 

 

Julian E.
Technical Moderator
November 21, 2024

Hello @liaifat85,

Thanks for the comment, it is interesting to know.

For your information, everything related to serial is being redone for the next update.

Do not hesitate to tell us if you see strange behavior like that in this current version or in the next ones

 

Have a good day

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Julian E.
Julian E.Best answer
Technical Moderator
December 2, 2024

Hello @hashimoto_m,

 

So, there are only 158 values in the files that you sent me. 

In the project that you shared you used 512 values per lines.

 

I think that your issue is that you are logging all your data as a single, infinite line. 

What to need to do is to add a "return line" at the end of each of your 512 buffers before importing them.

Something like:

while(1){
 for (i = 0; i < YOUR_BUFFER_SIZE; i++) {
 printf("%d", i);
 } 
 printf("\n);
}

 

The code above is just to make you understand what I mean, but in your case, you are logging 256 times 2 out of the 3-axis accelerometer, so you need to adapt it.

 

I attached an example of a correctly formatted file.

Julian

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Associate II
December 4, 2024

Hi Julian

Thank you for your reply.
I now understand why it didn't work.
Thank you for your help.

Thank you