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?
Solved! Go to Solution.
2024-11-27 08:44 PM
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?
2024-11-28 12:28 AM
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
2024-12-02 12:01 AM
2024-12-02 02:36 AM
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
2024-12-03 11:56 PM
Hi Julian
Thank you for your reply.
I now understand why it didn't work.
Thank you for your help.
Thank you