ais-deviceinnovation / ais_nb_bc95 Goto Github PK
View Code? Open in Web Editor NEWAIS NB-IoT Arduino Library for DEVIO NB-SHIELD I and DEVIO NB-SHIELD I Plus
AIS NB-IoT Arduino Library for DEVIO NB-SHIELD I and DEVIO NB-SHIELD I Plus
On the Readme file, link pinout for DEVIO NB-SHIELD I have died. Please re-upload pinout on your documents.
ผมติดตั้งอุปกรณ์ ในพื้นที่ พบปัญหาว่า ค่า RSSI ออกมาเกิน -100 แล้วสถานี จะมีปัญหา ขาดการติดต่อ หรือส่งข้อมูลไม่ครบ อยากรบกวนแนะนำแนวทาง แก้ไขปัญหาดังกล่าว หรือ มีเสารับสัญญาณ แนะนำไหมครับ
ขอบคุณครับ
i'm sure, i can see getnetworkstatus in AIS NB BC95 libraries
and than this file is not found in my laptop
feedback to me please
Hi, this code for getIMEI function work much better for me.
String AIS_NB_BC95:: getIMEI()
{
String data = "";
_Serial->println(F("AT+CGSN=1"));
AIS_NB_BC95_RES res = wait_rx_bc(3000,F("+CGSN"));
if(res.status)
{
data = res.data;
int index = data.indexOf(F(":"));
int index2 = data.indexOf(F("\r"));
data = res.data.substring(index+1,index2);
}else {data = "";}
res = wait_rx_bc(500,F("OK"));
return data;
}
I tried to verify example code in Arduino IDE Version 2.1.0 as per following:
#include <AIS_NB_BC95.h>
String serverIP = "my.ip.add.ress"; // Your Server IP
String serverPort = "myport"; // Your Server Port
String udpData = "HelloWorld";
AIS_NB_BC95 AISnb;
const long interval = 20000; //millisecond
unsigned long previousMillis = 0;
long cnt = 0;
void setup()
{
AISnb.debug = true;
Serial.begin(9600);
AISnb.setupDevice(serverPort);
String ip1 = AISnb.getDeviceIP();
delay(1000);
pingRESP pingR = AISnb.pingIP(serverIP);
previousMillis = millis();
}
void loop()
{
unsigned long currentMillis = millis();
if (currentMillis - previousMillis >= interval)
{
cnt++;
// Send data in String
UDPSend udp = AISnb.sendUDPmsgStr(serverIP, serverPort, udpData+String(cnt));
//Send data in HexString
//udpDataHEX = AISnb.str2HexStr(udpData);
//UDPSend udp = AISnb.sendUDPmsg(serverIP, serverPort, udpDataHEX);
previousMillis = currentMillis;
}
UDPReceive resp = AISnb.waitResponse();
}
But always got this error from Arduino IDE
AIS_NB_BC95.h:84:3: error: 'signal' does not name a type
signal getSignal();
^~~~~~
exit status 1
Compilation error: exit status 1
Even I try to change library version to 1.0.0 or 1.0.5. This error still occurred.
I am testing the module with somewhat big reply message. I read BC95 manual and it said the largest message could be up to 512 bytes. But the strange behavior is that after the module got it first larger than 100 byte message, It wont accept any other replies until reboot.
Is this an expected behavior?
The following is screenshot from serial monitor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.