2024-11-20 05:27 PM - last edited on 2024-11-26 10:16 AM by Tesla DeLorean
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?
2024-11-21 05:08 AM - edited 2024-11-21 05:51 AM
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:
Julian
2024-11-21 05:43 AM - edited 2024-11-21 05:44 AM
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.
2024-11-21 05:53 AM
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
2024-11-21 05:49 PM
2024-11-22 12:56 AM
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?
Thanks,
Julian
2024-11-25 06:28 PM
2024-11-26 08:30 AM
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
2024-11-26 10:14 PM
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?
2024-11-27 12:16 AM
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