Iot sdk thesis


Table 3.1.1.1 AT Commands NB-IoT with BC66 module



Download 2,28 Mb.
Pdf ko'rish
bet31/52
Sana26.04.2022
Hajmi2,28 Mb.
#584210
1   ...   27   28   29   30   31   32   33   34   ...   52
Bog'liq
EIT Thesis IoT SDK by Hrudaynath

Table 3.1.1.1 AT Commands NB-IoT with BC66 module 
The code snippet of the C function to send the AT commands in Table 3.1.1.1 is 
displayed below. The complete source code for the NB-IoT communication implementation 
project has been added in annex.


38 
void
modem_init()

Serial.write(
"\r\nAT Polling"
);
while
(ATflag==
0
)

delay(
1000
);
MODEM.println(
"AT"
); 
//Sending "AT" to modem, to check if it is alive
/*Character comparison logic; if(observed modem response == expected response) 
ATflag = 1; (removed for compact display of code)*/
Serial.write(
"\r\nAT Polling Finished"
);
ATflag = 
0
;
Serial.write(
"\r\nSetting-up the PDN Context"
);
while
(ATflag==
0
)

delay(
1000
);
MODEM.println(
"AT+QGACT=1,1,\"u.iot.mt.gr.hu\""
); 
//Sent to Modem
/*Character comparison logic; ATflag = 1; (removed for compact display of 
code)*/

Serial.write(
"\r\nSetting-up the REST API\r\n"
);
while
(ATflag==
0
)

delay(
1000
);
MODEM.println(
"AT+QIOPEN=1,0,\"UDP\",\"165.227.145.200\",41243,0,1"
);
/*Character comparison logic; ATflag = 1; (removed for compact display of 
code)*/

Serial.write(
"\r\nDisabling Sleep Mode\r\n"
);
while
(ATflag==
0
) {
delay(
1000
);
MODEM.println(
"AT+QSCLK=0"
);
//Sent to Modem
/*Character comparison logic; ATflag = 1; (removed for compact display 
of code)*/

Serial.write(
"\r\nSending the first data\r\n"
);
while
(ATflag==
0
)

delay(
1000
);
MODEM.println(
"AT+QISEND=0,18,Client Initialized"
);
//Sent to Modem
/*Character comparison logic; ATflag = 1; (removed for compact display 
of code)*/




39 
Results 
On successful compilation and uploading of the code, the following is observed on 
Serial monitor: (NOTE: BC66 has to be RESET manually before it can be initialized with AT 
commands) 

Download 2,28 Mb.

Do'stlaringiz bilan baham:
1   ...   27   28   29   30   31   32   33   34   ...   52




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish