Home » [Update] NB-IoT Arduino Shield from AIS (Thailand) First Impressions | ais nb-iot – Uptechitalia

[Update] NB-IoT Arduino Shield from AIS (Thailand) First Impressions | ais nb-iot – Uptechitalia

ais nb-iot: นี่คือโพสต์ที่เกี่ยวข้องกับหัวข้อนี้

NB-IoT Arduino Shield from AIS (Thailand) First Impressions

My shield looks just like the one above, for the most part. I’ll post another photo of the actual device later.

When I received the shield in the mail, I went immediately to a local AIS office in the mall to have it activated.

Of course, none of the regular service people at the counter knew anything about registering this device with AIS; and at first they told me I could not register it because I had to also have an AIS SIM card and mobile number. Naturally, I told them (very strongly) that was absolutely not the case and the “SIM” was in the board which you could clearly see in the form of an “IEMI” and serial number on the bottom of the device. The counter people were nice, despite some older, foreign guy insisting, in their language (spoken as a non-native speaker), that I did not need an AIS SIM card and that they could register this device without one.

Patiently, and after about 30 minutes of “not much real progress” at the counter, the counter staff disappeared to the back room (to escape my lecturing them that I did not need a mobile SIM card); and after about 10 minutes had passed, the service counter team returned with a “manager”, who knew exactly how to register it and explained to the counter team, in a mentoring way, step-by-step, how to register and activate my NB-IoT device.

During that time, the manager (who was a great guy and very helpful) told me, in reply to me asking a number of questions, that only around one person a month registers a device like this, on average, and they are mostly students. So, I thought then, it surely looked funny to them to see a retired techie like me registering this device.

After running some errands on my motorcycle, I got home and immediately inserted the shield into my Arduino; checked that I had installed the AIS libraries (earlier I did the prep work); started my very simple UDP server I wrote in Python for testing purposes on a server in the USA.

Here is a link to the

Code

:

https://github.com/AIS-DeviceInnovation/AIS_NB_BC95

Here was the sketch for the Arduino:

Code

:

#include "AIS_NB_BC95.h"

String apnName = "devkit.nb";

String serverIP = "udp_server_ip_here";          // My Server IP back in the USA
String serverPort = "upd_port_number_here";     // My Server Port back in the USA

String udpData = "HelloWorld";

AIS_NB_BC95 AISnb;

const long interval = 5000;  //milliseconds
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();
     
}

Here was my “test setup” Python code:

Code

:

"""
NB-IoT First Test Code, Simple Authentication Override, version 0.2
Listens on a port for UDP, simple authentication, echo back with unix time
Neo www.unix.com
Jan 2020
"""
import socket
import sys
import time

# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
port = 13131
# Bind the socket to the port
server_address = ('www.mytestserver.com', port)
print >>sys.stderr, 'starting up on %s port %s' % server_address
sock.bind(server_address)
password = "blah_blah_blah\n"
authenticated = True // override simple authentication for testing
receivepw = True // override simple authentication for testing
lastsent = 0

while True:
    print >>sys.stderr, '\nwaiting to receive message'
    now = time.time()

    data, address = sock.recvfrom(4096)
    site = address
    if data:
        lastsent = time.time()
        if authenticated == False and receivepw == False:
            sent = sock.sendto("Password: ", address)
            receivepw = True
        elif receivepw == True and authenticated == False:
            if data == password:
                sent = sock.sendto("Authenticated\n", address)
                authenticated = True
            else:
                sent = sock.sendto("Password:\n", address)
            print >>sys.stderr, 'a: sent %s bytes back to %s' % (sent, address)
        elif authenticated == True:
            received = "You sent: " + data
            sent = sock.sendto(received, address)
            data = time.time()
            data = "Unix Time: " + str(data)+"\n"
            sent = sock.sendto(data, address)
            print >>sys.stderr, 'b: sent %s bytes back to %s' % (sent, address)
        else:
            sent = sock.sendto("Error\n", address)
            print >>sys.stderr, 'c: sent %s bytes back to %s' % (sent, address)

Well, it would not connect…. many tries… no connection to the AIS network…..

The Arduino serial monitor showed it kept getting stuck on this line in the AIS lib code (debug message):

Code

:

19:03:18.470 -> # Connecting NB-IoT Network..................................................

I posted a question on the AIS NB-IoT group on FB and went to the local fish market; and got some replies but nothing really technical, just a confirmation that another person had the same results. Well, “misery loves company”, as they say.

Then, eating some local fish at my desk, I decided to connect the device to my laptop and go outside to the “city side” balcony in my condo.

No luck.

I put the test setup on my desk, and continued eating, then noticed on my UDP server log output, that it had connected and pinged a few times and stopped. Yea!

Next, now feeling like I was getting somewhere, I took my setup out to the ocean facing balcony, and … yea! it connected.

So, I immediately realized it was a signal quality and location issue; and so I walked around the building, in the parking garage, running the test ping program from AIS.

In the next post, I’ll post some of the output from the Arduino serial monitor, for completeness.

The Bottom Line / Initial Impressions:

  • This NB-IoT device has low signal quality from high floors in my building (over 20 floors high).
  • This NB-IoT device has low signal signal quality from underground parking (one level underground) in my building, except near the entrance ramps in my area.
  • This NB-IoT device has low signal quality between the buildings and there were a number of “dead areas” where the signal was lost and not recovered.
  • This NB-IoT device works OK at the ground level of the building (for the most part) and at ground level in most open areas.
  • This NB-IoT device would disconnect from the network when in a dead area and it mostly required a device restart to reconnect. Note: This issue could be mitigated by adding a few lines of code in the sketch to attempt to reconnect to the network after some timeout, or based on reading the signal strength on the device.
See also  Pal Pal Dil Ke Paas Tum Rahati Ho - Karaoke With Scrolling Lyrics Eng. \u0026 हिंदी | karoke

Next Steps:

  • Read the AIS Library for this device and see if I can get the signal strength from the device and use the signal strength in the code for connection management and status messages. If so, this is good. If not, request this modification from AIS tech support, or search the network and see if can get it for the NB-IoT chipset on the device.

Will post some survey “ping” samples from the device to my test server after I transfer the data from my laptop to my desktop.

In a nutshell, this NB-IoT reminded me of the “good ole’ days” when mobile phone quality was quite poor (in the early days of mobile phones, because they become commonplace) and connections to the network were unreliable. I would not use this, in its current form, for any mission critical application, because it is not (yet)reliable and the signal quality is low / weak in my areas-of-interest (AOI). I guess I could get an SMC power pre-amplifier in the frequency range or a higher gain antenna and see if that helps

Today I received my NB-IoT Arduino Shield for AIS (Thailand). Here is a “pinout” photo of the shield.My shield looks just like the one above, for the most part. I’ll post another photo of the actual device later.When I received the shield in the mail, I went immediately to a local AIS office in the mall to have it activated.Of course, none of the regular service people at the counter knew anything about registering this device with AIS; and at first they told me I could not register it because I had to also have an AIS SIM card and mobile number. Naturally, I told them (very strongly) that was absolutely not the case and the “SIM” was in the board which you could clearly see in the form of an “IEMI” and serial number on the bottom of the device. The counter people were nice, despite some older, foreign guy insisting, in their language (spoken as a non-native speaker), that I did not need an AIS SIM card and that they could register this device without one.Patiently, and after about 30 minutes of “not much real progress” at the counter, the counter staff disappeared to the back room (to escape my lecturing them that I did not need a mobile SIM card); and after about 10 minutes had passed, the service counter team returned with a “manager”, who knew exactly how to register it and explained to the counter team, in a mentoring way, step-by-step, how to register and activate my NB-IoT device.During that time, the manager (who was a great guy and very helpful) told me, in reply to me asking a number of questions, that only around one person a month registers a device like this, on average, and they are mostly students. So, I thought then, it surely looked funny to them to see a retired techie like me registering this device.After running some errands on my motorcycle, I got home and immediately inserted the shield into my Arduino; checked that I had installed the AIS libraries (earlier I did the prep work); started my very simple UDP server I wrote in Python for testing purposes on a server in the USA.Here is a link to the AIS_NB_BC95 libs on GitHub , with the example sketch:Here was the sketch for the Arduino:Here was my “test setup” Python code:The Arduino serial monitor showed it kept getting stuck on this line in the AIS lib code (debug message):I posted a question on the AIS NB-IoT group on FB and went to the local fish market; and got some replies but nothing really technical, just a confirmation that another person had the same results. Well, “misery loves company”, as they say.Then, eating some local fish at my desk, I decided to connect the device to my laptop and go outside to the “city side” balcony in my condo.No luck.I put the test setup on my desk, and continued eating, then noticed on my UDP server log output, that it had connected and pinged a few times and stopped. Yea!Next, now feeling like I was getting somewhere, I took my setup out to the ocean facing balcony, and … yea! it connected.So, I immediately realized it was a signal quality and location issue; and so I walked around the building, in the parking garage, running the test ping program from AIS.In the next post, I’ll post some of the output from the Arduino serial monitor, for completeness.Will post some survey “ping” samples from the device to my test server after I transfer the data from my laptop to my desktop.In a nutshell, this NB-IoT reminded me of the “good ole’ days” when mobile phone quality was quite poor (in the early days of mobile phones, because they become commonplace) and connections to the network were unreliable. I would not use this, in its current form, for any mission critical application, because it is not (yet)reliable and the signal quality is low / weak in my areas-of-interest (AOI). I guess I could get an SMC power pre-amplifier in the frequency range or a higher gain antenna and see if that helps

See also  Mixing Store Bought Slime Into Clear Slime - Most Satisfying Videos | ais music store

[NEW] NB-IoT Overview, Technical Presentation, and Getting Started (in Thailand) | ais nb-iot – Uptechitalia

As I mentioned in my post yesterday I attended a talk about NB-IoT at Chiang Mai Maker Party 4.0 (2017). It was presented by representatives from AIS, a large telco company in Thailand, and I’ll give a summary of what I learned beside that Xiaomi Mi A1 camera is not that good after all, and I should have taken my DSLR camera with me instead. So apologies for the poor quality of some of the photos…

The talk started from a higher level, including marketing / business propositions, and has time passed it become more and more technical.

The first part of talk was presented by Phuchong Charoensuk, IoT marketing specialist at AIS, and he provided some more details about the company, and their current B2B IoT/M2M market (400,000 subscribers), before providing an overview of IoT, and how NB-IoT will bring in not only larger businesses but also startups and makers.

He also went through some of the benefits of NB-IoT network with (eventually) low cost devices, easy deployment, deep penetration (works indoor and underground), low power consumption with up to 10+ years batter life, and support for 100K connection per cell.

At some points he explained the different use cases of 4G, 3G, and NB-IoT / LTE Cat M1, and showed how LTE in automotive application was used by both the company to first track manufacturing and then telemetry, and the consumer for infotainment. Of course, no NB-IoT here.

The second speaker was Jarun Sinsawasmongkol, Future Network Developer Manager, and he started from a slide by ndimensionz showing the differences between M2M and IoT, with the former more focused on machines, and hardware based, while IoT is mostly software based with the cloud and big data, although we still obviously need the sensors to get data.

He went through the main component of the IoT network from B2C/B2C/B2C2B users, sensors and devices, the network itself which can be private or the Internet, IoT platforms in the cloud, and finally the apps running on the platforms.

Next up was the start of a comparison between IoT solutions following 3GPP standard such as eMTC, NB-IoT, or EC-GSM-IoT, and competing solutions like Sigfox, LoRa, Ingenu RPMA, etc…

But before that an explanation of about NB (Narrow Band) means, basically NB-IoT communication just takes over 200 kHz either in standalone mode, in the guard band, or inband.

NB-IoT comes with many of the same features as LTE like OFDMA for download and SC-FDMA for upload, but has been tweaked to provide a simpler and lower power comsumption with the following changes:

  • 200 kHz bandwidth
  • More retransmissions (up to 100 times)
  • No MSISDN needed
  • No IP mode
  • Network resource optimization

The table below compares Sigfox, LoRa, LTE Cat-1/0, LTE Cat M1 (eMTC) and LTE Cat NB1 (NB-IoT) with the latter having similar features and complexity as Sigfox/LoRa solutions.

NB-IoT coverage should eventually be better than LTE coverage thanks to NB-IoT coverage extension features using power spectrum density boosting (PSD) and repetition to extend the range of a cell tower.

NB-IoT power saving mode (PSM) is what makes 10+ years battery life possible, as the node can stay in sleep state for up to 310 hours.

The final two speakers, including Pornsak Hanvoravongchai, Device Innovation Manager, dealt with the node / sensor part of NB-IoT. First, Nb-IoT should be using embedded SIMs (eSIM) instead of traditional SIM cards since they allow for smaller footprints, and are more durable with better resistance to vibration, high temperature, and humidity levels.

Plenty of companies are already involved with NB-IoT starting with Silicon vendors including Hisilicon, Qualcomm, ZTE Welink, Sequans communication,
The list of NB-IoT modules is even longer with:

  • Telit
  • Quectel
  • ZTE Welink
  • MobileTek
  • Cinterion
  • U-blox
  • Sierra Wireless
  • Sequans communication
  • Long Ung (LongSung?)
  • SIMCom Wireless Solutions

Plenty of companies are already involved with NB-IoT starting with Silicon vendors including Hisilicon, Qualcomm, ZTE Welink, Sequans communication, Mediatek , Nordic Semi, Intel and Altair Semiconductor. But as we covered a few days ago, there are also new entrants like Riot Micro The list of NB-IoT modules is even longer with:

I just added links to the companies I had never heard from. Some modules were listed on the next slides..

See also  [Update] [Tip] วิธีการย้ายค่ายเบอร์เดิม ทำยังไง ติดต่อที่ไหน? | วิธีย้ายค่าย - Uptechitalia

Some extra companies also joined the development ecosystem with devkits, MCU, sensors, or even antennas and batteries especially designed for NB-IoT, and other LPWAN standards.


Finally, another person took over the talk with more practical technical information for makers.

NB-IoT includes three connection modes: CONNECT while transmitting/receiving data, IDLE, and PSM (Power Saving Mode) where it does not attempt to make any connection for a given time, which depends on your own requirements.

Power consumption for the three modes is illustrated in the chart above. I could see the scale on the right even during the live event.The company also introduced their NB-IoT Arduino shield with embedded SIM. They also appear to have XBee and mPCIE (USB) NB-IoT modules, again with an eSIM.

The software architecture of AIS NB-IoT platform includes an Arduino library for AIS NB-IoT shield, CoAP protocol, a dashboard, and an API.

Some IoT projects use the REST API (HTTP) or MQTT, but CoAP over UDP is recommended in this case, because it minimizes the amount of data required compared to HTTP, and hence saves power.

 

AIS NB-IoT Arduino library and sample code can be found on Github, and works with Arduino 1.8.1 or greater. Next up was time for a demo from an AIS representative showing transmission and reception of data with one base station that was enabled with NB-IoT for the event.

If you are based in Thailand, it’s now possible to register your interest for AIS NB-IoT Arduino shield that will be sold for 1,990 THB (~$61) and ship on February 14, 2018. The registration page is only opened until December 9th. I was expecting some more details about the kit on that page, but sadly it’s just a form asking for contact details.

It should be noted that only a few base station will work with NB-IoT at first, with connectivity first available in Bangkok around AIS D.C., AIS SC Tower, and Chulalongkorn University, and upcountry close to Chiang Mai Maker Space, Prince of Songkhla University, and Khon Kaen University. Anywhere else and you will likely not be able to connect at least in early 2018.

Finally, we got a demo from a member of the Chiang Mai Maker Club that got an early sample of the Arduino shield, connected it to an Arduino Mega with GPS, and various sensors, and as I understand that retrieved data while flying a drone (TBC).

I talked with AIS a little bit after the event, asking confirmation about initial coverage, and since it’s not exactly free to enable NB-IoT, despite using the same LTE base stations, they will only enable a few as previously mentioned. Considering NB-IoT will only be enabled for the 4-day event at the exhibition center, I suspect they may be recurring fees or royalties that AIS may have to pay to maintain the network.

Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.

Share this:


AIS NB-IoT Unbox and hardware review part 1


AIS NBIoT Unbox and hardware review part 1
Tutorial at http://blog.redlinesoft.net/?p=3715

นอกจากการดูบทความนี้แล้ว คุณยังสามารถดูข้อมูลที่เป็นประโยชน์อื่นๆ อีกมากมายที่เราให้ไว้ที่นี่: ดูความรู้เพิ่มเติมที่นี่

AIS NB-IoT Unbox and hardware review part 1

What is the difference between Cat-M1 and NB-IoT?


For many IoT devices, an intermittent lowbandwidth connection is ideal. In this case, there are two main low power cellular connectivity options to choose from, CatM1 (or LTEM) and NBIoT.
Use this video to review the requirements of your IoT device against the differences between CatM1 and NBIoT.
Twilio Narrowband connects your IoT devices to the first Narrowband Network in the United States with payasyougo pricing and intuitive APIs and an SDK to manage.
Find out more about Twilio Narrowband www.twilio.com/wireless/narrowband

What is the difference between Cat-M1 and NB-IoT?

What Is NB-IoT? (2020) | Learn Technology in 5 Minutes


Hello and welcome to another episode of Learn Technology in 5minutes and this is Venkatesh, the founder of MAKERDEMY.
In this episode, we will learn about NBIoT, the wireless cellular communication for IoT. In an earlier video in this series, we learned about LoRa, the Low Power Wide Area Network radio technology designed for the Internet of Things the Low Power Wide Area Network radio technology designed for the Internet of Things.
Links:
What is LoRa: https://youtu.be/WdJxXzSE9Gs
(If you liked this video and would like to buy our course Introduction to Raspberry Pi 4, you are in for a pleasant surprise. Please click on the link below to buy the course for $25 ONLY. Original price is $195.
https://utm.io/usPw)
Check us out on
Website : https://makerdemy.com
Catalogue : https://makerdemy1.teachable.com
Facebook : https://www.facebook.com/Makerdemy/
Twitter : https://twitter.com/makerdemy
LinkedIn : https://www.linkedin.com/company/makerdemy
Instagram : https://www.instagram.com/makerdemy/
Email : [email protected]
NBIoT IoT InternetofThings

What Is NB-IoT? (2020) | Learn Technology in 5 Minutes

สอนใช้งาน NB-IOT AIS เชื่อมต่อกับ UDP Server Node-Red และแนวทางการประยุกต์ใช้งาน **แบบละเอียดยิบ**


สอนการใช้งาน NBIOT AIS และแนวทางการใช้งาน การประยุกต์ใช้งาน
การสั่งซื้อบอร์ด การลงทะเบียน ESIM
ทำการสร้าง UDP Server ใน NodeRed
ais nbiot library : https://github.com/AISDeviceInnovation/AIS_NB_BC95

สอนใช้งาน NB-IOT AIS เชื่อมต่อกับ UDP Server Node-Red และแนวทางการประยุกต์ใช้งาน **แบบละเอียดยิบ**

Review AIS NB-IoT


Review AIS NBIoT
หนึ่งวีดิโอตัวอย่างใน Raspberry Pi IoT Online Course by TESR ^_^
https://www.facebook.com/commerce/products/2075424739176771/

Website: https://tesracademy.wordpress.com/
Facebook : http://www.facebook.com/ThaiEmbedded
Youtube Channel : http://www.youtube.com/tesrchannel
Email : [email protected]
line id : @ion1900z
Tel. 0904656519

Review AIS NB-IoT

นอกจากการดูบทความนี้แล้ว คุณยังสามารถดูข้อมูลที่เป็นประโยชน์อื่นๆ อีกมากมายที่เราให้ไว้ที่นี่: ดูวิธีอื่นๆGame

ขอบคุณที่รับชมกระทู้ครับ ais nb-iot

Leave a Reply

Your email address will not be published.