<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[New GSM module test]]></title><description><![CDATA[<p dir="auto">I just got the new GSM module (M6315). I can burn the EasyLoader successfully. After reboot, it shows a BLANK screen. If I burnt the GSM sample code from Arduino IDE to the M5stack,  it shows a BLANK screen also. Is there anything I can try or have I missed anything?</p>
]]></description><link>https://community.m5stack.com/topic/1479/new-gsm-module-test</link><generator>RSS for Node</generator><lastBuildDate>Wed, 06 May 2026 14:09:27 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1479.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Nov 2019 05:43:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to New GSM module test on Sun, 08 Dec 2019 09:22:48 GMT]]></title><description><![CDATA[<p dir="auto">It will help a lot if M5STACK can publish more sample code in sms/mqtt communication.</p>
]]></description><link>https://community.m5stack.com/post/6640</link><guid isPermaLink="true">https://community.m5stack.com/post/6640</guid><dc:creator><![CDATA[zw29]]></dc:creator><pubDate>Sun, 08 Dec 2019 09:22:48 GMT</pubDate></item><item><title><![CDATA[Reply to New GSM module test on Sun, 08 Dec 2019 09:20:08 GMT]]></title><description><![CDATA[<p dir="auto">I modified the Button example and can get "OK" in the result. But I need to press the "A" button twice to get the result. Not sure if this is correct.</p>
<p dir="auto">#include &lt;M5Stack.h&gt;</p>
<p dir="auto">void setup() {<br />
// init lcd, serial, but don't init sd card<br />
M5.begin(true, false, true);<br />
M5.Power.begin();</p>
<p dir="auto">M5.Lcd.clear(BLACK);<br />
M5.Lcd.setTextColor(YELLOW);<br />
M5.Lcd.setTextSize(2);<br />
M5.Lcd.setCursor(65, 10);<br />
M5.Lcd.println("GSM TEST");</p>
<p dir="auto">Serial2.begin(115200, SERIAL_8N1, 16, 17);</p>
<p dir="auto">// to power on the gsm module<br />
pinMode(2, OUTPUT);<br />
digitalWrite(2, 0);<br />
delay(3000);<br />
digitalWrite(2, 1);<br />
delay(1000*60);<br />
M5.Lcd.println("Init done!");<br />
}</p>
<p dir="auto">// Add the main program code into the continuous loop() function<br />
void loop() {<br />
if (M5.BtnA.wasReleased()) {<br />
get_time();<br />
} else if (M5.BtnB.wasReleased()) {<br />
M5.Lcd.clear(BLACK);<br />
M5.Lcd.setCursor(0, 0);<br />
}<br />
// update button state<br />
M5.update();<br />
}</p>
<p dir="auto">void IotWriteCommand(char cmd[],char date[])<br />
{<br />
char buf[256] = {0};<br />
if(cmd == NULL)<br />
sprintf(buf,"AT\r\n");<br />
else if(date == NULL)<br />
sprintf(buf,"AT+%s\r\n",cmd);<br />
else<br />
sprintf(buf,"AT+%s=%s\r\n",cmd,date);</p>
<p dir="auto">Serial2.write(buf);<br />
}</p>
<p dir="auto">//AT+CSQ=?<br />
void get_time(void){<br />
IotWriteCommand("CSQ",NULL);<br />
while(Serial2.available()){<br />
uint8_t ch = Serial2.read();<br />
M5.Lcd.write(ch);<br />
}<br />
}</p>
]]></description><link>https://community.m5stack.com/post/6639</link><guid isPermaLink="true">https://community.m5stack.com/post/6639</guid><dc:creator><![CDATA[zw29]]></dc:creator><pubDate>Sun, 08 Dec 2019 09:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to New GSM module test on Sun, 08 Dec 2019 09:17:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> Thank you for your suggestion. And sorry for the very late reply. The above code does not work for me. it is a blank screen.</p>
]]></description><link>https://community.m5stack.com/post/6638</link><guid isPermaLink="true">https://community.m5stack.com/post/6638</guid><dc:creator><![CDATA[zw29]]></dc:creator><pubDate>Sun, 08 Dec 2019 09:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to New GSM module test on Mon, 18 Nov 2019 10:27:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/zw29" aria-label="Profile: zw29">@<bdi>zw29</bdi></a> did you look at the Arduino code?</p>
<pre><code>#include &lt;M5Stack.h&gt;

void IotWriteCommand(char cmd[],char date[]){
  char buf[256] = {0};
  if(cmd == NULL)
  sprintf(buf,"AT\r\n");
  else if(date == NULL)
  sprintf(buf,"AT+%s\r\n",cmd);
  else
  sprintf(buf,"AT+%s=%s\r\n",cmd,date);

  Serial2.write(buf);
}
//AT+CSQ=?
void get_time(void){
  IotWriteCommand("CSQ=?",NULL);
  while(Serial2.available()){
    uint8_t ch = Serial2.read();
    Serial.write(ch);
    M5.Lcd.write(ch);
  }
}

void setup() {
  M5.begin();
  Serial.begin(115200);
  Serial2.begin(115200, SERIAL_8N1, 16, 17);
  pinMode(2, OUTPUT);
  digitalWrite(2, 0);
  delay(3000);
  digitalWrite(2, 1);
}

void loop() {
 if(M5.BtnA.wasReleased()){
    M5.Lcd.fillScreen(TFT_BLACK); 
    M5.Lcd.setCursor(60,80,2);
    get_time();
  }
}

</code></pre>
<p dir="auto">The code really doesn't seem to do much other than fill the screen with black and supposedly print the time to the screen, Was there any output on the serial terminal?</p>
<p dir="auto">It looks as though it is simply a template and you need to add in your own AT commands. I do not have a GSM module to test unfortunately，What is your intended use for the project?</p>
]]></description><link>https://community.m5stack.com/post/6424</link><guid isPermaLink="true">https://community.m5stack.com/post/6424</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Mon, 18 Nov 2019 10:27:48 GMT</pubDate></item></channel></rss>