BLIIoT BL301 User Manual

Embedded arm computer

Advertisement

Quick Links

Embedded ARM Computer
BL301 BL302
BL301/302
User Manual
Version: V1.1
Date: 2023-2-28
Shenzhen Beilai Technology Co.,Ltd
Website: https://www.bliiot.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BL301 and is the answer not in the manual?

Questions and answers

Summary of Contents for BLIIoT BL301

  • Page 1 Embedded ARM Computer BL301 BL302 BL301/302 User Manual Version: V1.1 Date: 2023-2-28 Shenzhen Beilai Technology Co.,Ltd Website: https://www.bliiot.com...
  • Page 2 Embedded ARM Computer BL301 BL302 Preface Thanks for choosing BLIIoT Embedded ARM Computer BL301 BL302. These operating instructions contain all the information you need for operation of a device in the EdgeCOM BL30 family. Copyright This user manual is owned by Shenzhen Beilai Technology Co., Ltd. No one is authorized to copy, distribute or forward any part of this document without written approval of Shenzhen Beilai Technology.
  • Page 3: Table Of Contents

    Embedded ARM Computer BL301 BL302 Table of Contents 1 Introduction ..............................5 1.1 Overview .............................5 1.2 Features ..............................5 1.3 Application scenarios ........................5 1.4 Technical Specifications ........................6 1.5 Model Selection ..........................8 2 Development ............................. 9 2.1 Development Environment ......................9 2.2 System Programming ........................
  • Page 4 Embedded ARM Computer BL301 BL302 3.15 Reset Button ..........................35 3.16 HDMI ............................... 36 4 Software ..............................36 4.1 Login ..............................36 4.2 Time Setting ............................. 38 4.3 MCU Frequency Modulation ......................38 4.4 Temperature Control ........................39 4.5 Wake From Sleep ..........................39 4.6 Node-Red ............................
  • Page 5: Introduction

    IP30 protection; metal shell and system are safely isolated; DIN rail installation  1.3 Application scenarios BL301/BL302 series Embedded ARM Computer are widely applicable to IoT, Industrial IoT, digital factories, industrial automation, energy monitoring, smart security, rail transit, telecommunications, smart EV charging, human-computer interaction and other fields.
  • Page 6: Technical Specifications

    Embedded ARM Computer BL301 BL302 1.4 Technical Specifications Item Parameter Description Processor i.MX6ULL 800MHz System 256/512MB Flash 256MB/8GeMMC Input Voltage DC 9~36V Power Power Normal: 170mA@12V, max 340mA@12V Consumption Wiring Anti- Inverse Connection Protection Interface Spec 2 x RJ45, 10/100Mbps, adaptive MDI/MDIX ESD ±16kV (contact), ±18kV (air),...
  • Page 7 Embedded ARM Computer BL301 BL302 1xmicro USB, 1x USB2.0 USB Port Protection Over Current Protection SD Card Slot Spec Supports SD, SDHC and SDXC (UHS-I) cards HDMI 1x Cellular antenna, 1xWiFi Antenna Antenna Type SMA Hole Type GSM/EDGE:900,1800MHz WCDMA:B1,B5,B8 L-E version...
  • Page 8: Model Selection

    Embedded ARM Computer BL301 BL302 AES, TKIP, TKIPAES Encryption Connection 8(Max) Speed Rate 150Mbps(Max) Transmission Outdoor/Open area, up to 20 meters distance SSID Support Indicator LEDx8 MTBF ≥100,000 hours EN 55022: 2006/A1: 2007 (CE &RE) Class B IEC 61000-4-2 (ESD) Level 4...
  • Page 9: Development

    Embedded ARM Computer BL301 BL302 RS232/RS485 SD slot MINI-PCIe 4G(GPS)/WIFI(BLE) √ √ SIM slot HDMI Audio House Metal Metal Metal Metal Temperature ( °C ) -25 ~ 85 -40 ~ 85 -25 ~ 85 -40 ~ 85 2 Development 2.1 Development Environment ...
  • Page 10: Programming Via Sd Card

    Embedded ARM Computer BL301 BL302 Switch Mode SD Card Programming NAND startup USB OTG Programming eMMC startup 2.2.1 Programming via SD card Copy nand-burnsd to any directory of the Ubuntu system, such as /home/beilai/work User profile\Linux\ programming tools\emmc-sdburn.tar.bz2 is the 4G/8G eMMC file system 1) Format the SD card into FAT32 format before using the SD card.
  • Page 11 Embedded ARM Computer BL301 BL302 4) After the virtual machine recognizes the SD card, and the directory pop up, and then perform the following programming operation. Enter /home/beilai/work/emmc-burnsd directory, execute the script: root@ubuntu:~/work/nand-burnsd$ sudo ./burn.sh After executing the above command, the terminal will list the computer’s hard disk or U disk, and choose your SD card, enter.
  • Page 12 Embedded ARM Computer BL301 BL302 sdb1 sdb2 sdb3 7757824 ############################################################################### Detected device has 1 partitions already Re-partitioning will allow the choice of 1 partitions ############################################################################### Would you like to re-partition the drive anyways [y/n] : y //input y,enter,Wait for the card to complete Now partitioning sdb ...
  • Page 13 Embedded ARM Computer BL301 BL302 Copying boot partition copy sdrun/ target/ to SD Buring the u-boot.imx to sdcard 129+0 records in 129+0 records out 132096 bytes (132 kB, 129 KiB) copied, 0.161529 s, 818 kB/s 431+0 records in 431+0 records out 441344 bytes (441 kB, 431 KiB) copied, 0.422838 s, 1.0 MB/s...
  • Page 14: Programming Via Otg

    Embedded ARM Computer BL301 BL302 rootfs_nogpu.tar.bz2 and replace this file, you can program file system of your own. modules.tar.bz2 Module file (unzip to the file system when programming) 6) Insert the finished SD card in the previous section, and set the DIP switch as shown in the figure below.
  • Page 15 Embedded ARM Computer BL301 BL302 the programming process, users can view this file for instructions related to single-step update Boot the relevant Mfgtools\Profiles\Linux\OS The content of the folder is used image Firmwarefirmware to guide the system to programming, and generally...
  • Page 16: Hardware Specifications

    Embedded ARM Computer BL301 BL302 Click start to start system programming, a formatting dialog box pops up, click the "Cancel" formatting option, or leave it alone until the programming is complete. As shown in the picture: After the system programming is completed, "Done" will appear, and then click "stop" to stop. Then click "Exit"...
  • Page 17: Led Indicators

    Embedded ARM Computer BL301 BL302 connection protection. 3.2 LED Indicators The following figures shows the LED indicators, and the order from left to right and from top to bottom is LED6, LED5, LED1, LED2, LED8, LED7, LED3, LED4, correspondence with the LEDs in the /sys/class/leds directory.
  • Page 18 Embedded ARM Computer BL301 BL302 The R485 serial port supports a maximum baud rate of 115200 with a cable length of 200 meters. For debugging, enter "minicom -s" in the device, open the minicom configuration interface, and then select "Serial port setup", as shown in the figure.
  • Page 19 Embedded ARM Computer BL301 BL302 After setting, press the Enter key to confirm. After confirming, you can set other configuration items. For example, E sets the baud rate, data bits and stop bits, and F sets the hardware flow control, the setting methods are the same, as shown in the figure after setting.
  • Page 20: Can Interface

    Embedded ARM Computer BL301 BL302 The minicom has many shortcut keys. In this experiment, we enable the echo function of minicom. The echo function configuration item is "local Echo on/off..E", press E to turn on/off the echo display function. 3.4 CAN Interface...
  • Page 21 Embedded ARM Computer BL301 BL302 There is a CAN interface on the BL302 board. If you need to test the CAN interface, you need a CAN device. You can use another BL302 board or a board with CAN for testing.
  • Page 22: Pwm Interface

    Embedded ARM Computer BL301 BL302 behind the "#" is the data to be sent, in hexadecimal. CAN2.0 can send up to 8 bytes of data at a time, and the 8 bytes of data are separated by ".". If CAN works well, the receiving end will receive the 8 bytes of data sent above.
  • Page 23 Embedded ARM Computer BL301 BL302 enter the following command: echo 0 > /sys/class/pwm/pwmchip0/export After the execution is completed, a subdirectory named "pwm0" will be generated under the pwmchip0 directory, as shown in the figure Enable PWM1: Enter the following command to enable PWM1 echo 1 >...
  • Page 24: Lan

    Embedded ARM Computer BL301 BL302 ./inputapp /dev/gpio_input_0 When the dry contact mode is selected, the port is shorted; when the wet contact mode is selected, the input is greater than 3V; the console output is as follows: 3.7 LAN There are eth0 and eth1 network cards on the bottom board of BL302. When the power is just turned on and the startup is complete, if the network cable is not inserted, you can see that the network port has no IP address with ifconfig.
  • Page 25 Embedded ARM Computer BL301 BL302 root@fl-imx6ull:~# ifconfig eth0 192.168.1.120 //set ip root@fl-imx6ull:~# ifconfig eth0 //Check the network status after setting eth0 Link encap:Ethernet HWaddr 3A:D9:93:8E:A8:A4 inet addr:192.168.1.120 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::38d9:93ff:fe8e:a8a4%2124311408/64 Scope:Link inet6 addr: fec0::38d9:93ff:fe8e:a8a4%2124311408/64 Scope:Site UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1...
  • Page 26 Embedded ARM Computer BL301 BL302 root@fl-imx6ull:~# ifconfig eth0 netmask 255.255.255.0 //set eth0 subnet mask 255.255.255.0 root@fl-imx6ull:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:01 inet addr:192.168.20.101 Bcast:192.168.20.255 Mask:255.255.255.0 inet6 addr: fec0::38d9:93ff:fe8e:a8a4%2128915312/64 Scope:Site inet6 addr: fec0::200:ff:fe00:1%2128915312/64 Scope:Site UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1...
  • Page 27: Wifi Module

    Embedded ARM Computer BL301 BL302 First, make sure network cable works well, connect the device and the host or virtual machine with a network cable, and set the device and the host or virtual machine on the same network segment. For example.
  • Page 28: Ap Mode

    Embedded ARM Computer BL301 BL302 wlan0: Trying to associate with 04:d7:a5:f9:26:1d (SSID='beilai' freq=2427 MHz) wlan0: Associated with 04:d7:a5:f9:26:1d IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan0: WPA: Key negotiation completed with 04:d7:a5:f9:26:1d [PTK=CCMP GTK=TKIP] wlan0: CTRL-EVENT-CONNECTED - Connection to 04:d7:a5:f9:26:1d completed [id=0 id_str=] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon.
  • Page 29 Embedded ARM Computer BL301 BL302 For example, Ethernet eth0 connecting to the router. After configuring the Ethernet, you need to test whether eth0 can connect to the external network. If you can connect to the external network (refer to the "LAN" chapter for the method), please follow the steps. If not, please check whether the Ethernet or router connection is good.
  • Page 30 Embedded ARM Computer BL301 BL302 usb 2-1: new high-speed USB device number 2 using ci_hdrc option 2-1:1.0: GSM modem (1-port) converter detected usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0 option 2-1:1.1: GSM modem (1-port) converter detected usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1 option 2-1:1.2: GSM modem (1-port) converter detected...
  • Page 31 Embedded ARM Computer BL301 BL302 [04-26_19:16:06:978] Get clientWDA = 11 [04-26_19:16:07:011] requestBaseBandVersion EC20CEHCLGR06A05M1G //If the version number in the printed information is 5Mxx, that means it supports the IoT card, if it is 2Mxx, then it does not support IoT card...
  • Page 32: Usb Port

    Embedded ARM Computer BL301 BL302 3.10 USB Port Support hot swapping of USB mouse, USB keyboard, and U disk devices. When using a USB flash drive, it is recommended to use a formatting tool to format it into a FAT32 format that can be recognized by the linux system.
  • Page 33: Debug

    Embedded ARM Computer BL301 BL302 3.11 Debug 3.12 SD Card slot This device does not support NTFS and exFAT format file systems. If you do not know the SD card format, please format it into FAT32 format before use. The SD card mount directory is /run/media, supports hot swapping, and the terminal will print information about the SD card.
  • Page 34: Sim Card Slot

    Embedded ARM Computer BL301 BL302 FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. /run/media is the mounting directory of the SD card, and view the files in this directory root@fl-imx6ull:~# ls /run/media //list file under /run/media directory...
  • Page 35: Antenna Interface

    Embedded ARM Computer BL301 BL302 3.14 Antenna Interface The left is the WIFI antenna interface, and the right is the 4G antenna interface. 3.15 Reset Button After the device is running normally, press the reset button and the device will automatically restart.
  • Page 36: Hdmi

    Embedded ARM Computer BL301 BL302 3.16 HDMI The HDMI version is HDMI1.3, the resolution is 1600x900, 50Hz. Please connect to HDMI first and then power on. 4 Software 4.1 Login Serial Port Login method: The device can be logged in via micro-USB, and the default system login name is: root. Take SecureCRT as an example, connect the power supply and USB cable of the device, open SecureCRT, and click the quick login button in the upper left corner.
  • Page 37 Embedded ARM Computer BL301 BL302 Enter the login name root to log in. Ethernet Login Method Make sure the network is working before using this method. Hostname fills in the device IP, Username is root. Shenzhen Beilai Technology Co., Ltd.
  • Page 38: Time Setting

    Embedded ARM Computer BL301 BL302 Click Connect to enter the device. 4.2 Time Setting By using the date and hwclock tools to set the software and hardware time, test whether the software clock reads the RTC clock synchronously when the board is powered off and on again.
  • Page 39: Temperature Control

    Embedded ARM Computer BL301 BL302 root@fl-imx6ull:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 198000 396000 528000 792000 Modify it to user mode, modify the frequency to 792000: root@fl-imx6ull:~# echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor root@fl-imx6ull:~# echo 792000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed Check the current frequency: root@fl-imx6ull:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 792000 4.4 Temperature Control...
  • Page 40: Node-Red

    Embedded ARM Computer BL301 BL302 state before the suspend, and the resuming speed is faster. When only connected to the serial cable, the power supply is 5v, and the current is about 0.076A. cat /sys/power/state check the supported modes echo freeze > /sys/power/state Enter freeze mode echo standby >...
  • Page 41: Sqlite

    Embedded ARM Computer BL301 BL302 root@fl-imx6ull:~# cp /run/media/sda1/node-v16.14.0-linux-armv7l.tar.xz /test Then use the tar xf command to decompress the file. root@fl-imx6ull:~# tar xf node-v16.14.0-linux-armv7l.tar.xz Then link node, npm, and npx in the file to /usr/bin. root@fl-imx6ull:~# ln -sf /test/node-v16.14.0-linux-armv7l/bin/node /usr/bin root@fl-imx6ull:~# ln -sf /test/node-v16.14.0-linux-armv7l/bin/npm /usr/bin...
  • Page 42: Python

    Embedded ARM Computer BL301 BL302 Run the database: root@fl-imx6ull:~# sqlite3 SQLite version 3.11.0 2016-02-15 17:29:24 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> Test the SQLite software: QLite version 3.11.0 2016-02-15 17:29:24...
  • Page 43 Embedded ARM Computer BL301 BL302 Python 3.10.8 (main, Nov 20 2022, 06:26:16) [GCC 5.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> Enter quit() or type Ctrl+D to exit 4.9 QT The computer supports QT version 4.8~5.15.
  • Page 44: Mysql

    Embedded ARM Computer BL301 BL302 4.10 MySQL The computer supports MySQL versions 5.1.51~5.1.73. Copy the compiled file to the /usr/local/mysql directory of BL302, copy the executable file inside to the /usr/sbin directory or set the environment variable on the device export PATH="$PATH:/usr/local/mysql/bin...
  • Page 45: Firmware Update

    Embedded ARM Computer BL301 BL302 5 Firmware update Please contact us if you need to upgrade firmware. 6 Warranty Terms 1) This equipment will be repaired free of charge for any material or quality problems within one year from the date of purchase.

This manual is also suitable for:

Bl302Bl301tBl302t

Table of Contents