Hi !
I’m currently doing test on the module BG600L-M3 in hope to integrate it in my project. However, I can’t communicate with my microcontroller with UART.
Here’s my situation :
My module is on ( I know that by having 1.5V on PWRKEY and 1.8V on VDD_EXT).
The status pin is high approximately 90% of the time and low otherwise. This case isn’t describe in the data sheet, so it may indicate a problem I’m not familiar with.
Since the module is on, the part communication should work but I have no response to my AT commands (it doesn’t even repeat the command).
I’m using Arduino for this project, I don’t believe there is a problem with the code since I have use it with other sim module. But I’m a beginner so mistakes can happen
#include "wiring_private.h" // pinPeripheral() function
int PWRKEY = 12;
//PA15 PIN 16 D12
int PONTRIG = 7;
//PA7 PIN 8 D7
Uart SerialMain(&sercom1, 15, 11, SERCOM_RX_PAD_3, UART_TX_PAD_2);
//RX PA19 PIN 20 D15
//TX PA18 PIN 19 D11
//Uart SerialGNSS(&sercom1, 14, 16, SERCOM_RX_PAD_1, UART_TX_PAD_0);
//RX PA23 PIN 22 D14
//TX PA22 PIN 21 D16
void SERCOM1_Handler()
{
SerialMain.IrqHandler();
}
/*void SERCOM3_Handler()
{
SerialGNSS.IrqHandler();
}*/
void setup() {
Serial.begin(115200);
SerialMain.begin(115200, SERIAL_8N1);
pinPeripheral(11, PIO_SERCOM);
pinPeripheral(15, PIO_SERCOM);
//SerialGNSS.begin(115200);
//pinPeripheral(14, PIO_SERCOM);
//pinPeripheral(16, PIO_SERCOM);
pinMode(PWRKEY, OUTPUT);
digitalWrite(PWRKEY, LOW);
delay(5000);
digitalWrite(PWRKEY, HIGH);
delay(750);
digitalWrite(PWRKEY, LOW);
delay(5000);
}
void loop() {
while (Serial.available()) {
delay(1);
SerialMain.write(Serial.read());
}
while (SerialMain.available()) {
Serial.write(SerialMain.read());
}
}
If you could help, that would be very nice
Thanks in advance !