Page 1
Embedded ARM Computer BL303 BL304 BL303/304 User Manual Version: V1.0 Date: 2023-8-1 Shenzhen Beilai Technology Co.,Ltd Website: https://www.bliiot.com...
Page 2
Embedded ARM Computer BL303 BL304 Preface Thanks for choosing BLIIoT Embedded ARM Computer BL303 BL304. 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.
110mmx43mmx83mm(LxWxH) tiny embedded computer 1.3 Application scenarios BL303/BL304 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. Shenzhen Beilai Technology Co., Ltd V1.0...
Embedded ARM Computer BL303 BL304 1.4 Technical Specifications Item Parameter Description Processor i.MX8M Mini Quad-Core 64-bit, 1.8HGz System 2GB DDR4 Flash 8GeMMC Input Voltage DC 9~36V Power Power Normal: 360mA@12V, MAX 550mA@12V Consumption Wiring Anti- Inverse Connection Protection 2 x RJ45, 1x10/100Mbps, 1x10/100/1000Mbps, adaptive...
Page 7
Embedded ARM Computer BL303 BL304 1xmicro USB, 2x 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...
Embedded ARM Computer BL303 BL304 Indicator LEDx8 0~70℃, 10~90% RH Environment Working Case Metal Case Size 110mmx43mmx83mm(LxWxH) Others Protection IP30 Mounting DIN-Rail Mounting 1.5 Model Selection Model BL303 BL304 BL303T BL304T Processor iMX8M iMX8M iMX8M iMX8M CPU Frequency MAX 1.8GHz MAX 1.8GHz...
Embedded ARM Computer BL303 BL304 2 System Programming 2.1 Settings The computer supports USB OTG and TF card programming, supports eMMC and QSPI startup, DIP switche K5 is located on the side of the mini-usb port and K3 is located on the back of the core board where the network port is located.
Page 10
Embedded ARM Computer BL303 BL304 Availible Drives to write images to: # major minor size name 1: 8 16 15558144 sdb Enter Device Number: //Select TF card device, enter 1 sdb was selected1 Checking the device is unmounted unmounting device '/dev/sdb1' Would you like to re-partition the drive anyways [y/n] : //Enter "y"...
Page 11
Embedded ARM Computer BL303 BL304 Copy the image to the TF card, the specific options to be copied are listed in the table below File Description config.ini Programming configuration files, in the tools directory update.itb Programming tools, in the tools directory U-Boot-QSPI image, when you need to programming the QSPI image flash_qspi.bin...
Embedded ARM Computer BL303 BL304 programming process. The already compiled M4 image named m4_flash.bin can be put into the TF card, and during the programming process, the M4 image will be programmed into the emmc at an offset of 5M or the starting position of QSPI (QSPI Flash exists). Users can set the environment variable m4_run to start the M4 image.
Page 13
Embedded ARM Computer BL303 BL304 64-bit windows systems. Use OTG cable to connect the device to the computer, turn the 4 of the dip switch to ON to start the device. Create the uuu directory in D drive and copy the image into it, run the cmd program under Windows...
Embedded ARM Computer BL303 BL304 3 Hardware Specifications 3.1 Power Interface BL303/BL304 comes with 1 power input. Support DC 9~36V input, anti-reverse 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.
3.3 RS485&RS232 Serial Port BL303/BL304 comes with RS485 or RS232. COM1, COM2, COM3 and COM4 are corresponding to /dev/ttymxc0, /dev/ttymxc1, /dev/ttymxc3 and /dev/ttymxc2 respectively. The R485 serial port supports a maximum baud rate of 115200 with a cable length of 200 meters.
Embedded ARM Computer BL303 BL304 3.4 CAN Interface The CAN interface is as shown in the figure, enter the following command: ifconfig -a //View all network cards If the FlexCAN driver works well, you will see the network card interface corresponding to CAN, as shown in the figure, there is a network card named "can0", which is the CAN network card...
Page 17
Embedded ARM Computer BL303 BL304 Use the IP command to set the CAN interfaces of the two devices, first set the baud rate of the CAN interface to 12500 and enter the command shown below: ip link set can0 up type can bitrate 125000 triple-sampling on...
Embedded ARM Computer BL303 BL304 3.5 PWM Interface The PWM port is shown in the figure. PWM devices are under the directory /sys/class/pwm, where PWM1 and PWM2 are applied to pwmchip0 and pwmchip1. Taking PWM1 as an example, first you need to call out the pwm0 directory under pwmchip0, and enter the following command: echo 0 >...
Page 19
Embedded ARM Computer BL303 BL304 If you need to adjust the frequency or duty cycle, pay attention to the high-level time when adjusting. 3.6 DI The devices corresponding to DI1 and DI2 are gpio_input_0 and gpio_input_1 respectively. Select the dry/wet contact mode by the switch below.
Embedded ARM Computer BL303 BL304 3.7 LAN There are eth0 and eth1 network cards on the bottom board of BL304. 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 21
Embedded ARM Computer BL303 BL304 inet addr:192.168.1.120 indicates IP setting successful If your device is connected to a router, and the router supports DHCP automatic IP address assignment, you can enter the command in the HyperTerminal: root@fl-imx6ull:~# udhcpc -i eth0 udhcpc (v1.24.1) started...
Page 22
Embedded ARM Computer BL303 BL304 RX bytes:25700 (25.0 KiB) TX bytes:22259 (21.7 KiB) Set broadcast address root@okmx8mm:~# ifconfig eth0 broadcast 192.168.1.255//eth0 broadcast address192.168.1.255 root@okmx8mm:~# ifconfig eth0 The print information is as follows: eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:01 inet addr:192.168.20.101 Bcast:192.168.1.255 Mask:255.255.255.0...
Embedded ARM Computer BL303 BL304 network cable, and set the device and the host or virtual machine on the same network segment. For example. The IP address of my device is 192.168.1.174, and the IP address of my virtual machine is 192.168.1.141, and the ping command can be used to ping.
Page 24
Embedded ARM Computer BL303 BL304 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.
Embedded ARM Computer BL303 BL304 3.8.2 AP Mode In AP mode, the device can connect with maximum 8 users theoretically 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"...
Page 26
Embedded ARM Computer BL303 BL304 version of the module when using IoT card for testing. Low version firmware does not support it, the firmware needs to upgrade to EC20. After connecting the module and powering on the board, enter the command line, and you can check the USB status through the lsusb command as follows root@okmx8mm:/opt# ./app /dev/gpiopci 1...
Page 27
Embedded ARM Computer BL303 BL304 [04-26_19:16:06:791] Find /sys/bus/usb/devices/1-1.1:1.4/net/eth2 [04-26_19:16:06:791] Find usbnet_adapter = eth2 [04-26_19:16:06:792] Find /sys/bus/usb/devices/1-1.1:1.4/GobiQMI/qcqmi2 [04-26_19:16:06:792] Find qmichannel = /dev/qcqmi2 [04-26_19:16:06:851] Get clientWDS = 7 [04-26_19:16:06:882] Get clientDMS = 8 [04-26_19:16:06:914] Get clientNAS = 9 [04-26_19:16:06:946] Get clientUIM = 10...
Embedded ARM Computer BL303 BL304 root@okmx8mm:/opt# ./app /dev/gpiosgm 1 If both wired network and 4G network are used at the same time, one of them will be unavailable due to gateway priority. If you need to change it, you can enter the following command to view the current default gateway information.
Embedded ARM Computer BL303 BL304 Check the usb storage device, /run/media is the mounting directory of the U disk, and the device name after the U disk is mounted is sda1. If you don’t need to use the U disk anymore, please use umount to uninstall the U disk before unplug...
Embedded ARM Computer BL303 BL304 is inserted into the SD card slot of the device, the system will automatically check and mount the SD card. After the mount is successful, the SD card can be read and written. Plug in the 32G SD card, after mounting, you can see the device name after the SD card is mounted from the print information.
Embedded ARM Computer BL303 BL304 3.14 Antenna Interface The top is the cellular network antenna interface and the bottom is the WiFi antenna interface. Only one of cellular network or WiFi can be selected. 3.15 Reset Button After the device is running normally, press the reset button and the device will automatically restart.
Embedded ARM Computer BL303 BL304 3.16 HDMI Maximum support 1080p 60fps. Please connect to HDMI first and then power on. The first time you use it, please press any button during the countdown firstly. The following interface appears, press the corresponding number to select the resolution, and then select 0 to restart the device Shenzhen Beilai Technology Co., Ltd...
Embedded ARM Computer BL303 BL304 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.
Embedded ARM Computer BL303 BL304 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. Click Connect to enter the device.
4.3 MCU Frequency Modulation When the user needs to modify the MCU frequency, BL303/BL304 supports adjusting the MCU frequency by command. All cpufreq governor types supported in the current kernel:...
Embedded ARM Computer BL303 BL304 85000 //temperature is 85℃ View the CPU restart temperature value in the kernel root@okmx8mm:~# cat /sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp 105000 //temperature is 105℃ 4.5 Wake From Sleep Set the wake-up source and put the system to sleep: root@okmx8mm:~# echo enabled >...
Embedded ARM Computer BL303 BL304 4.6 Node-Red Support node-v16.14, node-v19.6.1 and other versions. 4.7 SQLite Support sqliteV3.11~sqliteV3.40 and other versions. 4.8 Python Support PythonV3.6~V3.10 and other versions. 4.9 QT Support qtV5.9 and other versions. 4.10 MySQL Support MysqlV5.1.51~5.1.73 and other versions.
4.15 Ubuntu Support UbuntuV16 and other versions. 5 Firmware update Please contact BLIIoT 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.
Need help?
Do you have a question about the BL304 and is the answer not in the manual?
Questions and answers