{"id":7828,"date":"2024-12-02T11:26:04","date_gmt":"2024-12-02T02:26:04","guid":{"rendered":"https:\/\/pilink.jp\/wwan_pl-r4\/"},"modified":"2025-03-10T13:57:54","modified_gmt":"2025-03-10T04:57:54","slug":"wwan_pl-r4","status":"publish","type":"post","link":"https:\/\/pilink.jp\/en\/wwan_pl-r4\/","title":{"rendered":"Mobile data communication with industrial Raspberry Pi with embedded 4G (LTE)!<br>IoT can be used outdoors and at sites without Wi-Fi"},"content":{"rendered":"\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:50%\">\n<p>Have you ever wished you could plug a SIM card directly into your Raspberry Pi (Raspberry Pi)?<br>On commercially available Raspberry Pi, a 4G (LTE) module can be realized with an extended HAT or with a USB-connected communication modem.<\/p>\n\n\n\n<p>On the other hand, did you know that there are Raspberry Pi products specialized for industrial applications that allow SIM cards to be inserted without modification?<\/p>\n\n\n\n<p>An industrial Raspberry Pi, housed in a rugged enclosure, can adapt to harsh environments such as factories. If possible, you want to keep both the SIM card and the 4G (LTE) module in it. <br>PiLink offers a model that supports 4G (LTE) communication, so we borrowed one to try it out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mobile Communications on the Industrial Raspberry Pi<\/h2>\n\n\n\n<p>This article is recommended for those who have the following problems<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I want to use Raspberry Pi for industrial applications, but do I have to get a separate 4G (LTE) module?<\/li>\n\n\n\n<li>You want to send data from a remote location, but you don&#8217;t have a network environment.<\/li>\n\n\n\n<li>I want to reduce running costs with a low-cost SIM, but is the SIM specified?<\/li>\n\n\n\n<li>You want to set it up outdoors in the hot sun, but the Raspberry Pi wouldn&#8217;t survive it in the first place, would it?<\/li>\n<\/ul>\n\n\n\n<p>There are products that are not cellular models like tablets, but can be operated all in one housing.<br>I can operate both the communication module and SIM card more safely because of the robust housing that can withstand harsh installation environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Environment of this time<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"620\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-1024x620.webp\" alt=\"\" class=\"wp-image-7704\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-1024x620.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-600x363.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-300x182.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-768x465.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-370x224.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01-540x327.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte01.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Communication module mounted in M.2 slot (inside is visible due to demonstration model)<\/figcaption><\/figure>\n\n\n\n<p>The following devices, OS versions, and environments were used to test 4G (LTE) communications.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Industrial Raspberry Pi &#8220;PL-R4&#8221;<\/li>\n\n\n\n<li>Communication module + communication antenna built into chassis<\/li>\n\n\n\n<li>DoCoMo SIM card (DoCoMo is Japan&#8217;s telecommunications company.)<\/li>\n\n\n\n<li>OS boot with eMMC<\/li>\n\n\n\n<li>Raspberry Pi OS (bullseye)<\/li>\n\n\n\n<li>Connect to a monitor to check<\/li>\n<\/ul>\n\n\n\n<p>The communication module in the photo is Sierra Wireless&#8217; EM7431.<br>The supported bands are wide and the speed is perfect.<br>Not only the three major carriers are available for SIM cards, but also MVNOs, so called &#8220;low-cost SIMs.<\/p>\n\n\n\n<p>Supported band ranges:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>4G(LTE)<\/th><th>B1, B3, B5, B8, B18, B19, B39, B41, B42, B43<\/th><\/tr><\/thead><tbody><tr><td>3G<\/td><td>B1, B5, B6, B19<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Peak download speed: 300 Mbps<\/li>\n\n\n\n<li>Peak upload speed: 150 Mbps<\/li>\n<\/ul>\n\n\n\n<p>EM7431 Industrial-grade IoT Module <br><a href=\"https:\/\/www.sierrawireless.com\/iot-modules\/4g-modules\/em7431\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\"> https:\/\/www.sierrawireless.com\/iot-modules\/4g-modules\/em7431\/<\/mark><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SIM card can be inserted without modification<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-1024x576.webp\" alt=\"\" class=\"wp-image-7708\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-1024x576.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-600x338.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-300x169.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-768x432.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-370x208.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02-540x304.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte02.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Open the cover at the rear of the unit to access the SIM slot<\/figcaption><\/figure>\n\n\n\n<p>The device we tested can accommodate a 4G (LTE) communication module behind the internal carry board. (Exclusive use with NVMe-connected SSD drive) <br>SIM card is provided with an insertion slot below the microSD card. <br>Both are integrated into the chassis, eliminating the need to connect a separate device (expansion HAT or USB).<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pilink.jp\/en\/industrial-raspberry-pi\/carrier-board\/\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"434\" data-id=\"7758\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_LTE_EN.webp\" alt=\"\" class=\"wp-image-7758\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_LTE_EN.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_LTE_EN-300x217.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_LTE_EN-370x268.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_LTE_EN-540x391.webp 540w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption class=\"wp-element-caption\">Back side of carry board<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pilink.jp\/en\/industrial-raspberry-pi\/carrier-board\/\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"563\" data-id=\"7754\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_front_EN.webp\" alt=\"\" class=\"wp-image-7754\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_front_EN.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_front_EN-300x282.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_front_EN-370x347.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/carry_front_EN-540x507.webp 540w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption class=\"wp-element-caption\">Carry board front side<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Easy setup with NetworkManager<\/h2>\n\n\n\n<p>As many of you may know, the Raspberry Pi OS (hereafter referred to as RPi OS) has replaced NetWorkManager as the tool software for network management configuration since the bookworm version.<\/p>\n\n\n\n<p>Some people may be confused by the change in the way to set up the Wi-Fi connection settings, including the fixed IP address.<br>Although the configuration method has changed, the impression is that it has become simpler, as it can be set by executing a single line of command.<\/p>\n\n\n\n<p>What I felt after trying this time was that it was very easy to set up 4G (LTE) with NetworkManager, even with bullseye.<br>To begin with, the 4G (LTE) communication module is recognized from the beginning as a device.<\/p>\n\n\n\n<p>After inserting the SIM and completing the connection settings, you will be given a global IP and connected to the Internet.<br>At the same time, if a firewall (using UFW) is set up as a security measure, it can be immediately utilized and tested on site.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Bullseye is dhcpcd<\/h3>\n\n\n\n<p>The Raspberry Pi OS is still default (standard) with dhcpcd in the bullseye version. I am trying to get connection information out, but nmcli is not running.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli con show \nError: NetworkManager is not running.<\/code><\/pre>\n\n\n\n<p>I have not yet switched to NetworkManager, but if you check with the ip command, you will see wwan0 in the 5th position. This is the 4G (LTE) communication module connected. It is already recognized as a device.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ip a\n\n5: wwan0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000\n &#91;The rest is omitted]<\/code><\/pre>\n\n\n\n<p>Switch to NetworkManager since it is still dhcpcd.<\/p>\n\n\n\n<p>The reason for the switch is that NetworkManager is standard on the latest version of the Raspberry Pi OS, and it is very easy to set up 4G (LTE) communication with NetworkManager. With NetworkManager, it is a single command line, so it is very easy.<\/p>\n\n\n\n<p>The changes are simply selected with the raspi-config command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config<\/code><\/pre>\n\n\n\n<p>Note: Wi-Fi and network communication settings will have to be redone.<\/p>\n\n\n\n<p>From the raspi-config menu, follow &#8220;6 Advanced Option -&gt; AA Network Config&#8221; to configure the settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"543\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06.webp\" alt=\"\" class=\"wp-image-7716\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06.webp 935w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06-600x348.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06-300x174.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06-768x446.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06-370x215.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte06-540x314.webp 540w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"543\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05.webp\" alt=\"\" class=\"wp-image-7712\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05.webp 935w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05-600x348.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05-300x174.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05-768x446.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05-370x215.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte05-540x314.webp 540w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/figure>\n\n\n\n<p>If you select NetworkManager and accept, you will be prompted to reboot, and the change will take effect after the reboot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"543\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07.webp\" alt=\"\" class=\"wp-image-7720\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07.webp 935w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07-600x348.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07-300x174.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07-768x446.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07-370x215.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte07-540x314.webp 540w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">nmcli command for connection settings<\/h3>\n\n\n\n<p>NetworkManager connection settings can be configured with the nmcli command. If you are connected to a monitor, you can also configure the settings on the desktop screen. <br>Since commands are rather easier than GUI, we are showing you how to configure the settings with commands in this article.<\/p>\n\n\n\n<p>Now, let&#8217;s hit the nmcli command as before.<\/p>\n\n\n\n<p>If the modified NewworkMnager is running, cdc-wdm0 can be confirmed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli device status\n\nDEVICE         TYPE      STATE           CONNECTION \neth0           ethernet  connected       Wired connection 1 \nwlan0          wifi      disconnected    --         \np2p-dev-wlan0  wifi-p2p  disconnected    --         \neth1           ethernet  unavailable     --         \ncdc-wdm0       gsm       unavailable     --         \nlo             loopback  unmanaged       --      <\/code><\/pre>\n\n\n\n<p>In this status, it is connected to the net with wired connection 1 (eth0). <br>The 4G (LTE) communication module is cdc-wdm0, gsm type and has a status of <strong>unavailable<\/strong>. This is because I <strong>have not inserted the SIM card yet<\/strong>.<\/p>\n\n\n\n<p>The SIM card will be inserted later, but continue to use the nmcli con show command to check the name of the device currently connected.<\/p>\n\n\n\n<p>Wi-Fi and 4G (LTE) are not shown because the connection has not yet been set up. <br>Once the connection is set up, it will be displayed here as well. Please check after setting up.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli con show\n\nNAME        UUID                                  TYPE      DEVICE \nWired connection 1  b27d80c1-XXXX-XXXX-XXXX-XXXXXXXXXXXX  ethernet  eth0   \nWired connection 2  3XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX  ethernet  --   <\/code><\/pre>\n\n\n\n<p>The desktop screen will appear as follows and can be configured from here.<br>However, we recommend command execution because a command in the CUI requires only one command execution.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"855\" height=\"543\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09.webp\" alt=\"\" class=\"wp-image-7728\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09.webp 855w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09-600x381.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09-300x191.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09-768x488.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09-370x235.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte09-540x343.webp 540w\" sizes=\"auto, (max-width: 855px) 100vw, 855px\" \/><figcaption class=\"wp-element-caption\">Ethernet: Wired connection 1 and 2. Mobile broadband: ocn-net.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">UFW &#8211; Firewall<\/h2>\n\n\n\n<p>We would like to insert the SIM card and set up the connection information with nmcli as soon as possible, but let&#8217;s set up the UFW, the firewall, first. <br>These are dangerous times. We should set up UFW in advance to prevent intrusion even for a short time.<\/p>\n\n\n\n<p>UFW stands for &#8220;Uncomplicated Firewall&#8221; and is a very simple firewall.<\/p>\n\n\n\n<p>Installation Method:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install -y ufw<\/code><\/pre>\n\n\n\n<p>First, let&#8217;s check the status of UFW.<br>At first, it is marked as inactive and is not moving.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw status\nStatus: inactive<\/code><\/pre>\n\n\n\n<p>Next, we will allow ports.<\/p>\n\n\n\n<p>First, set the default to deny before proceeding.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw default deny<\/code><\/pre>\n\n\n\n<p>If you are using the &#8220;PL-R4&#8221; you are trying, you should also allow nodered ports.<br>Ports should be changed or added depending on the environment.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>web Port 80<\/li>\n\n\n\n<li>nodered Port 1880<\/li>\n\n\n\n<li>ssh port 22<\/li>\n\n\n\n<li>vnc port 5900<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow 80\nsudo ufw allow 1880<\/code><\/pre>\n\n\n\n<p>ssh and vnc were <strong>allowed only from local addresses<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow from 192.168.0.0\/24 to any port 22\nsudo ufw allow from 192.168.0.0\/24 to any port 5900\nsudo ufw allow from 192.168.1.0\/24 to any port 22\nsudo ufw allow from 192.168.1.0\/24 to any port 5900<\/code><\/pre>\n\n\n\n<p>Enable at the end.<br>This will remain in effect after rebooting.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw enable<\/code><\/pre>\n\n\n\n<p>Conversely, if you want to stop UFW, the disable command. Leave it enabled for now.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw disable<\/code><\/pre>\n\n\n\n<p>The ufw numbered command is used to check the list of settings.<br>The status is now active and each configured port is shown.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw numbered\nStatus: active\n\nTo                         Action      From\n--                         ------      ----\n80                         ALLOW       Anywhere                  \n1880                       ALLOW       Anywhere                  \n22                         ALLOW       192.168.0.0\/24            \n5900                       ALLOW       192.168.0.0\/24            \n80 (v6)                    ALLOW       Anywhere (v6)             \n1880 (v6)                  ALLOW       Anywhere (v6)<\/code><\/pre>\n\n\n\n<p>Firewall settings should be adjusted in a timely manner according to the environment in which they are used.<br>In this case, we will allow the ports used above to proceed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Connection setup with 4G (LTE) communication module<\/h2>\n\n\n\n<p>Before setting up the connection, insert the SIM card and connect the antenna as well.<\/p>\n\n\n\n<p>They have several types of antennas for LTE to choose from. This time it is a flat antenna. <br>This type has 3M tape on the back and can be flipped onto a plastic or glass surface.<\/p>\n\n\n\n<p>Once shut down, each was installed and booted.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-1024x614.webp\" alt=\"\" class=\"wp-image-7732\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-1024x614.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-600x360.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-300x180.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-768x461.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-370x222.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11-540x324.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna11.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Flat antenna [cable 1m].<\/figcaption><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-1024x614.webp\" alt=\"\" class=\"wp-image-7736\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-1024x614.webp 1024w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-600x360.webp 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-300x180.webp 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-768x461.webp 768w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-370x222.webp 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12-540x324.webp 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/12\/plr4-lte-antenna12.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Connect LTE antenna to the main unit<\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Configure connection settings<\/h3>\n\n\n\n<p>The format of the command to set the connection is as follows<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli con add type gsm ifname \"*\" \\\ncon-name Connection name apn Access point name user User name password Password<\/code><\/pre>\n\n\n\n<p>Your SIM card contract documents should have the APN, ID, and PWD listed. We will apply them. <br>The connection name is arbitrary and is named after the company with which you have a contract (e.g., ocn-net for OCN). (For OCN, it would be ocn-net, etc.)<\/p>\n\n\n\n<p>nmcli add to add a connection destination, connection type is gsm that was in status.<\/p>\n\n\n\n<p>*Wi-Fi settings and detailed nmcli commands are <a href=\"https:\/\/raspida.com\/nmcli-static-ipaddress\/\">also available on the Raspida page<\/a>. Please refer to them as well.<\/p>\n\n\n\n<p>&#8220;Added successfully.&#8221; is displayed, you are good to go. <br>Look at the status as before.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli device status\n\nDEVICE         TYPE      STATE           CONNECTION \neth0           ethernet  connected       Wired connection 1  \ncdc-wdm0       gsm       connecting      ocn-net    \nwlan0          wifi      disconnected    --         \np2p-dev-wlan0  wifi-p2p  disconnected    --         \neth1           ethernet  unavailable     --         \nlo             loopback  unmanaged       --   <\/code><\/pre>\n\n\n\n<p>I see that cdc-wdm0, TYPE is now connecting with gsm, and the CONNECTION is now ocn-net, which I arbitrarily set to CONNECTION.<\/p>\n\n\n\n<p>By <strong>rebooting from<\/strong> here, the 4G (LTE) communication module will get a global IP address and connect to the Internet.<\/p>\n\n\n\n<p>I wanted to check only mobile communication, not via my home router, so I unplugged the LAN cable for wired connection 1 and disconnected Wi-Fi as well to try it.<br>You can see that only cdc-wdm0 is now connected.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nmcli device status\nDEVICE         TYPE      STATE           CONNECTION \ncdc-wdm0       gsm       connected       ocn-net    \nwlan0          wifi      disconnected    --         \np2p-dev-wlan0  wifi-p2p  disconnected    --         \neth0           ethernet  unavailable     --  \neth1           ethernet  unavailable     --         \nlo             loopback  unmanaged       --         <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Confirmation of global IP address<\/h3>\n\n\n\n<p>Check the global IP address while in mobile communication.<br>You can check it with the curl command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl inet-ip.info<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Ping command to test communication to the Internet<\/h3>\n\n\n\n<p>If you just want to test the communication, use the ping command to specify a URL or IP address.<br>If you turn off the LAN cable and Wi-Fi, only the 4G (LTE) module is already connected, so if there are no execution errors, you have confirmed mobile communication.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ping www.yahoo.co.jp\nping www.google.co.jp<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Communication Modem Details<\/h3>\n\n\n\n<p>The following command will give you the details of the modem and the 4G (LTE) communication module that was used in this trial.<br>It is the mmcli (MMCLI) command, not the nmcli that was used earlier.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mmcli -m 0\n\n\uff08omission\uff09\n  --------------------------------\n  Status   |       unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)\n           |                state: connected\n           |          power state: on\n           |          access tech: lte\n           |       signal quality: 89% (recent)\n\uff08omission\uff09<\/code><\/pre>\n\n\n\n<p>The Status item here also confirmed the connection (CONNECTED).<\/p>\n\n\n\n<p>With the above, mobile communication is now available on the industrial Raspberry Pi.<\/p>\n\n\n\n<p>*The current Raspberry Pi OS has been changed to NetworkManager; you do not need to switch to NetworkManager unless you are bullseye.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Greater flexibility in system operation<\/h2>\n\n\n\n<p>The 4G (LTE) communication module enables stand-alone mobile communication and eases the installation location in sending and receiving data.<br>It is especially difficult to connect to Wi-Fi or LAN cables outdoors.<br>In addition, the robust construction of the enclosure helps alleviate conditions in locations where temperature control is difficult.<\/p>\n\n\n\n<p>The product we tried out would be a relatively small enclosure and could be handled as an addition to an existing system.<br>If you have given up on introducing IoT terminals because of the challenges of where to install them, support for mobile communications would be one factor you could consider.<\/p>\n\n\n\n<p>Both communication speed and signal strength require only small amounts of data when limited to the transfer of acquired numerical data.<br>With the Raspberry Pi, a small computer, it is possible to process the data before sending it.<\/p>\n\n\n\n<p>So there are products that meet the demand for Raspberry Pi, especially for industrial applications, as well as the realization of mobile communications such as 4G (LTE) communication. <br>In particular, the &#8220;PL-R4&#8221; we tested is integrated into the carry board, and a SIM card insertion slot is also provided. The integrated type, which does not require connection to another device, was easy to understand in terms of setting up the connection.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium is-resized\"><a href=\"https:\/\/raspida.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-300x300.png\" alt=\"\" class=\"wp-image-6246\" style=\"width:150px\" srcset=\"https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-300x300.png 300w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-600x600.png 600w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-100x100.png 100w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-150x150.png 150w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-370x370.png 370w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile-540x540.png 540w, https:\/\/pilink.jp\/wp-content\/uploads\/2024\/09\/raspida-red-profile.png 759w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:70%\">\n<p>Article contributed by Raspida<\/p>\n\n\n\n<p>Raspberry Pi information site that even non-engineers can enjoy using <a href=\"https:\/\/raspida.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong> raspida.com<\/strong><\/a> a Raspberry Pi information site that even non-engineers can enjoy and handle. He also contributes <a href=\"https:\/\/pilink.jp\/en\/technical-blog\/\" data-type=\"page\" data-id=\"4315\">technical blog articles<\/a> to the PiLink site on the Raspberry Pi for industrial use.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:25%\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever wished you could plug a SIM card directly into your Raspberry Pi (Raspberry Pi)?On commercially available Raspberry Pi, a 4G (LTE) module can be realized with an extended HAT or with a USB-connected communication modem. On the other hand, did you know that there are Raspberry Pi products specialized for industrial applications that allow SIM cards to be inserted without modification? An industrial Raspberry Pi, housed in a rugged enclosure, can adapt to harsh environments such as factories. If possible, you want to keep both the SIM card and the 4G (LTE) module in it. PiLink offers a model that supports 4G (LTE) communication, so we borrowed&hellip;<\/p>\n","protected":false},"author":6,"featured_media":7702,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[87],"tags":[242,243],"class_list":["post-7828","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical","tag-cm4-en","tag-lte-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts\/7828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/comments?post=7828"}],"version-history":[{"count":6,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts\/7828\/revisions"}],"predecessor-version":[{"id":9929,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/posts\/7828\/revisions\/9929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/media\/7702"}],"wp:attachment":[{"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/media?parent=7828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/categories?post=7828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pilink.jp\/en\/wp-json\/wp\/v2\/tags?post=7828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}