cancel
Showing results for 
Search instead for 
Did you mean: 

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

hashimoto_m
Associate III

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?

14 REPLIES 14

Hello Julian
Thank you for your reply.

In NANOEDGE AI STUDIO, I tried to execute serial communication by clicking [ADD SIGNAL] in 2. Signals.No error occurs, but I cannot receive data.I have attached the log file from this time.By the way, I was able to receive data via serial communication using Putty.
Also,for the B-L475E-IOT01A2 that I am using, which board in the github repository that contains examples of data logging code should I refer to?

Hello @hashimoto_m ,

 

No datalogger example in the github has your accelerometer (LSM6DSL), but you can take a look at any example using an accelerometer. The idea here is for you to simply look at the logging function to make sure you kind of have the same format.

Can you send me the exported .csv from putty? Around 1 minute of logging.

 

Thanks

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.

Hi Julian
Thanks for your reply.

I will look into the data logger sample on github.

I also got about 1 minute of logs from pity using .

I hope you can check it out.

Julian E.
ST Employee

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.

Hi Julian

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

Thank you