Close
0%
0%

PlatformIO-Quectel

Quectel development platform for PlatformIO - Arduino, OpenCPU, ThreadX, OpenLinux for GSM modules

Public Chat
Similar projects worth following
If you have an alternative as U-blox, Simcom, Fibocom .. etc

RUN AWAY FROM QUECTEL !!!


Platforms: Arduino, OpenCPU, ThreadX

Modules: M66, MC60, BC66, BG96

https://github.com/Wiz-IO/platform-quectel

Quectel BG96 - ThreadX and Arduino - comming soon...

https://www.youtube.com/watch?v=OjdAD0WR6vw

  • 1
    Simple MQTT
    #include <Arduino.h>
    #include <nbClient.h>
    
    /*
        Install Library:
        PubSubClient by Nick O'Leary
        https://github.com/knolleary
    */
    
    #include <PubSubClient.h> // 
    
    nbClient tcp;
    IPAddress server(0, 0, 0, 0); // your mqtt broker
    
    void callback(char *topic, byte *payload, unsigned int length)
    {
      Serial.printf("[RECEIVE] (%s) %.*s\n", topic, length, payload);
    }
    
    PubSubClient client(server, 1883, callback, tcp);
    
    void mqtt_setup()
    {
      Serial.println("Test MQTT");
      if (client.connect("arduinoClient", "user", "pass"))
      {
        client.publish("outTopic", "hello world");
        Serial.println("publish...");
        client.subscribe("inTopic");
        Serial.println("subscribe...");
      }
    }
    
    void setup()
    {
      String imei;
      Dev.noSleep();
      Serial.begin(115200);
      Serial.printf("Arduino %s\n", Dev.getVersion());
      pinMode(LED, OUTPUT);
      Dev.getImei(imei);
      Serial.printf("IMEI %s\n", imei.c_str());
      Dev.waitSimReady();
      Serial.println("Sim Ready");
      Dev.waitCereg();
      delay(200); // must
      Serial.println("Net Ready");
      mqtt_setup();
    }
    
    void loop()
    {
      static int led = 0, cnt = 0;
      if (++cnt % 50 == 0)
      {
        digitalWrite(LED, ++led & 1);
        //Serial.print(".");
      }
      client.loop();
    }
    
    /*
      Arduino BC66NBR01A04
      IMEI 867997030026081
      Sim Ready
      Net Ready
      Test MQTT
      publish...
      subscribe...
      [RECEIVE] (inTopic) Hello World
      [RECEIVE] (inTopic) Test 1234
    */

View all instructions

Enjoy this project?

Share

Discussions

Georgi Angelov wrote 10/15/2019 at 15:10 point

  Are you sure? yes | no

Georgi Angelov wrote 08/30/2019 at 18:16 point

MQTT to Amazon with Quectel EC25 LTE

https://www.youtube.com/watch?v=sbLJNXTRLxc

  Are you sure? yes | no

Georgi Angelov wrote 06/10/2019 at 12:46 point

  Are you sure? yes | no

Georgi Angelov wrote 05/14/2019 at 11:05 point

Quectel BG96 - Simple PubSubClient MQTT

https://www.youtube.com/watch?v=OjdAD0WR6vw

  Are you sure? yes | no

Georgi Angelov wrote 05/10/2019 at 07:26 point

and Arduino for Quectel BG96 ... testing TCP Client 

https://www.youtube.com/watch?v=Zz8q_Qclv_g

GIT update - comming soon

  Are you sure? yes | no

Georgi Angelov wrote 05/03/2019 at 13:09 point

Arduino-PlatformIO for Quectel BG96... comming soon

https://www.youtube.com/watch?v=5ULOycdItXs

  Are you sure? yes | no

chengj wrote 03/24/2019 at 07:02 point

Some upload openCPU BC26 flash error:

Short press 
Auto-detected: /dev/ttyUSB0
Uploading: program
Wait for Power ON or Reset module <.........................................> DONE
Starting <..........
ERROR: DA 1 status
*** [upload] Explicit exit, status 2
===================================== [ERROR] Took 5.91 seconds =====================================
The terminal process terminated with exit code: 1

Long Press
Auto-detected: /dev/ttyUSB0
Uploading: program
Wait for Power ON or Reset module <..................> DONE
Starting <....................................................................................................................
ERROR: baudrate CONF
*** [upload] Explicit exit, status 2
===================================== [ERROR] Took 1.64 seconds =====================================
The terminal process terminated with exit code: 1

I m not use BC66-TE-B, I used another board.

I'm trying to change the repeat time of     

def da_start(self, nvdm = False):   from 50 to 500, it still failed to upload. 

When I use windows MTK IOT Flashtool.exe, following the guidance, it succ to upload.

http://doc.iotxx.com/NB-QuickStarter%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E%E4%B9%A6 

system diagram like below:
http://doc.iotxx.com/%E6%96%87%E4%BB%B6:%E5%8A%9F%E8%83%BD%E6%A1%86%E5%9B%BE-NBQS.png

  Are you sure? yes | no

Georgi Angelov wrote 04/10/2019 at 08:03 point

  Are you sure? yes | no

Georgi Angelov wrote 03/21/2019 at 13:08 point

Arduino SSL/TLS MQTT over LTE Narrow Band - Quectel BC66

https://www.youtube.com/watch?v=O2HhR_cfk9g

  Are you sure? yes | no

Georgi Angelov wrote 03/06/2019 at 11:56 point

Full Aduino compatible SDK version for BC66 is ready, but I keep it for tests...
M66 / M60 is in progress...

https://hackaday.io/project/163292/gallery#35bb31dd2ba64cc64af2adac886754f0

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates