Quectel BG96 - ThreadX and Arduino - comming soon...
Quectel development platform for PlatformIO - Arduino, OpenCPU, ThreadX, OpenLinux for GSM modules
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
Quectel BG96 - ThreadX and Arduino - comming soon...
#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
*/
Create an account to leave a comment. Already have an account? Log In.
and Arduino for Quectel BG96 ... testing TCP Client
https://www.youtube.com/watch?v=Zz8q_Qclv_g
GIT update - comming soon
Arduino-PlatformIO for Quectel BG96... comming soon
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
Arduino SSL/TLS MQTT over LTE Narrow Band - Quectel BC66
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
Become a member to follow this project and never miss any updates
added support for Olimex NB IoT DevKit
https://github.com/Wiz-IO/platform-quectel/wiki/BOARD-Olimex-NB-IoT-DevKit