Xuanminh
(xuanminh)
November 27, 2023, 5:16am
1
Hi guys,
Currently I have a problem with UART1. I want to use UART1 to use AT commands, besides that I have added some of my ATC commands. I encountered the following error:
For UART2. With this code I can use both AT command and ATC command. The results I got were as expected
For UART1. Also with the above code, when I use the ATC command, the results are not as expected
Here is the code that I declare to be able to use AT command mode for UART1
Thank you for your help !
beegee
(Bernd Giesecke)
November 27, 2023, 8:22am
2
To use ATC commands over UART1, you have to change your code for the ATC commands.
Using UART2 means you are returning your values with (just an example! )
Serial.printf("%s=%ld", cmd, g_send_repeat_time / 1000);
To send the results over UART1 you have to change the code to
Serial1.printf("%s=%ld", cmd, g_send_repeat_time / 1000);
1 Like
Xuanminh
(xuanminh)
November 27, 2023, 8:30am
3
beegee:
To use ATC commands over UART1, you have to change your code for the ATC commands.
Using UART2 means you are returning your values with (just an example! )
My bad, I forgot about this. Thanks for your help
beegee
(Bernd Giesecke)
November 27, 2023, 8:34am
4
Don’t worry, I run into the same problem with sending ATC results over BLE
system
(system)
Closed
December 7, 2023, 8:35am
5
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.