beegee-tokyo / RUI3-Arduino-Library

RAKWireless library for communication over UART with RUI3 based WisDuo modules.
MIT License
0 stars 1 forks source link

how can we use that library #2

Closed fixajteknik closed 1 month ago

fixajteknik commented 1 month ago

my circuit diagram is an esp32 s3 connected Serial1 to rak3172 wisduo board of Serial1. I can send data over UART each others . But I couldn't get your library to work in this setup. what should be prepair first?

  1. which code should be in rak3172
  2. your this https://github.com/beegee-tokyo/RUI3-Arduino-Library/blob/main/examples/RUI3-AT-OTAA/RUI3-AT-OTAA.ino I am testing, I thing it should be installed in esp32 s3
  3. connection diagram?

my circuit image

online this line changed volatile bool breakout_flag = true; OUTPUT:

10:41:23.116 -> Starting loop-through - exit with 'ESC' key
10:41:23.116 -> ===========================================
10:41:23.116 -> 
10:41:23.116 -> Clear Serial1 RX buffer.
10:41:28.130 -> ===========================================
10:41:28.130 -> Convert byte array to ASCII array
10:41:28.130 -> Result: 000102030405060708090A0B0C0D0E0F
10:41:28.130 -> ===========================================
10:41:28.130 -> Convert ASCII array to byte array
10:41:28.130 -> Result: {00,01,02,03,04,05,06,07,08,09,0A,0B,0C,0D,0E,0F,}
10:41:28.130 -> ===========================================
10:41:28.130 -> Get version
10:41:34.149 -> Response: NO_RESPONSE
10:41:56.251 -> Try to set work mode.
10:42:07.322 -> set work_mode failed, please reset module.
beegee-tokyo commented 1 month ago

On the RAK31723 Evaluation Board, AT commands work only over the USB (== UART2). If you need UART1 (ATTENTION UART1 does not work in low power mode) you have to explicit enable it with Serial1.begin(115200, RAK_AT_MODE);

fixajteknik commented 1 month ago

can you show me a simple example such as at+ver=?. how can I get version of rak module with in code. thanks

fixajteknik commented 1 month ago

yes I understand thanks. esp32 should send the at commands over the serial1