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 II

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?

11 REPLIES 11
Julian E.
ST Employee

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.

 

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.

 

 

 

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.

Hello.Julian, thank you for your reply. I will upload the log file.

Hello @hashimoto_m,

 

There is no error in the logs. 

Can you please export your nanoedge ai project and a screenshot of the data you send via serial in tera term?

JulianE_0-1732265794971.png

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.

Hello Julian
Thank you for your reply.
I will upload the screenshots and export data.

Hello @hashimoto_m ,

 

It is pretty strange, but we are investigating it.

Are you able to log data in the "Signal step" using serial?

Are you sure you are sending signals buffer by buffer via serial, not continuously?

 

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.

Hello Julian
Thank you for your reply.

Does "Signal step" mean communication for each single piece of data?
The result is the same error whether it's a single data or every two axes.
For USB control, I've added USB_DEVICE to Pinout&Configuration in XXX.ioc and am calling the CDC_Transmit_FS function in usbd_cdc_if.c to perform serial communication.
Is this a problem?

Hello @hashimoto_m,

 

The "Signal step" is the part in NanoEdge where you add your dataset (after the project settings).

In there you can add .csv or .txt but you can also import data via serial. So, my question is: Do you also get an issue here (knowing if it works help us identify where the issue comes from).

 

The data that you send via serial, should look like something like this:

X1,Y1,X2,Y2....X253,Y256\n

X1,Y1,X2,Y2....X253,Y256\n

....

You need to send the data buffer per buffer, not continuously:

X1,Y1,X2,Y2....Xinfinite,Xinfinite

 

We have a github repository with example datalogging code, you may take a look:;

stm32ai-nanoedge-datalogger/Drivers at main · stm32-hotspot/stm32ai-nanoedge-datalogger · GitHub

 

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.