youyeetoo X1 SBC: https://www.hackster.io/smartfly00/youyeetoo-tech-has-released-a-new-product-the-youyeetoo-x1-7a119c.
In this article, we are developing in practice and deploying youyeetoo X1 as an MQTT gateway. Let’s take a look at what needs to be done:
Switch system
youyeetoo X1 defaults to Windows system. Our mqtt gateway solution is deployed on Ubuntu. youyeetoo X1 supports Ubuntu system, so its system needs to be replaced with Ubuntu system.
BIOS update
The author uses an HDMI screen, and the default BIOS screen of the board is mipi. There will be some problems when displaying HDMI, so we need to update the BIOS. The update steps are as follows:
Download the complete BIOS update package, download address: https://wiki.youyeetoo.com/en/x1/FAQ/enter_bios
Unzip the complete BIOS package and place the contents in the root directory of the USB flash drive.
Download different versions of BIOS, download address: http://d.youyeetoo.cn/X1/BIOS/BIOS.zip, the unzipped content is as follows:
link: https://wiki.youyeetoo.com/en/x1/FAQ/enter_bios
The youyeetoo X1 board I got is 8GB DDR, so I need to replace the BIOS.bin in the USB disk with X1_NO_MIPI_01_S8_Analog_MIC_20230915145622.bin or name.
1. Insert the USB flash drive and power on, and it will automatically enter the BIOS update program.
Install ubuntu systemDownload the ubuntu image. The author uses ubuntu20.04. Download link: https://releases.ubuntu.com/22.04/ubuntu-22.04.3-desktop-amd64.iso
- 2.Download the ubuntu boot disk creation tool, download address: https://wiki.youyeetoo.com/en/x1/linux/install-system
- 3.Double-click rufus-4.2.exe and insert the U disk (note: if the U disk contains important things, save it and start the disk creation process, the U disk will be formatted). The operation steps are as shown below, and it will take a long time to wait for the Ubuntu production to be completed.
Insert the ubuntu boot disk into youyeetoo X1, then power on the development board and wait to enter the system installation interface. When the following picture appears, select the second one to enter the installation of the ubuntu system.
Start installing Ubuntu system interface
Before installation, you need to format emmc first, otherwise it may cause failure during the installation process.
Delete all emmc partitions. To delete a partition, select the corresponding partition with the mouse and click the minus sign below.
Create the emmc partition. Here we only need to create two partitions, one is the efl partition and the root file partition. One is used to boot into the Ubuntu system, and the other is used to mount the new Ubuntu system. Creation method: Select the free space partition with the mouse, click the plus sign, and configure it.
Create the efl partition. Here we configure the size to 512MB and select EFI System Partition as the partition format.
Create a root file partition, select Ext4 journaling file system as the partition format, and select / as the mount point.
After configuring the partition, choose to wipe the entire disk and install ubuntu
Perform the next configuration, device account and password, and start installation
Finally restart youyeetoo X1
Deploy MQTT server
Plug the board into the Internet cable and download the emqx installation package. Download link: https://www.emqx.com/zh/downloads/enterprise/5.0.4/emqx-enterprise-5.0.4-ubuntu22.04-amd64.deb
1| $ wget https://www.emqx.com/zh/downloads/enterprise/5.0.4/emqx-enterprise-5.0.4-ubuntu22.04-amd64.deb
Install emqx
$ sudo apt install ./emqx-enterprise-5.0.4-ubuntu22.04-amd64.deb
- Start emqx service
sudo systemctl start emqx
Enter http://ip:18083/ in the browser to log in to the mqtt server, where ip is the ip address of youyeetoo X1.
You need to change your password when logging in for the first time. After changing your password, you can log in.
We use mqtt.fx as the client to verify the mqtt server built on youyeetoo X1. Create a profiler on mqtt.fx
Modify the profiler information and fill in the mqtt server IP, port number, client ID, user name, and login password.
Connect to the server and verify whether the connection can be made. If the green light in the upper right corner of mqtt.fx lights up, the connection is successful, and we can see the connected device on the MQTT server.
Subscribe to a topic on mqtt.fx, publish topic information through the websocket that comes with emqx, and check whether the data transmission is normal.
Check mqtt.fx to receive messages published by websocket.
The X86 development board (youyeetoo X1) launched by youyeetoo Tech supports Windows and Ubuntu systems, which facilitates the deployment of some services.
The compact nature of youyeetoo X1 makes it very convenient as a small gateway. We can deploy a smart home scene at home.
The overall performance of youyeetoo X1 has been verified to be quite good. The Ubuntu system runs without lag, which is worthy of praise.
Comments
Please log in or sign up to comment.