当前位置:网站首页>5g communication test manual based on Ti am5728 + artix-7 FPGA development board (dsp+arm)

5g communication test manual based on Ti am5728 + artix-7 FPGA development board (dsp+arm)

2022-06-11 19:02:00 Tronlong

front said

This article is mainly based on our company TL5728F-EVM Evaluation board + Move away RM500Q 5G Module demonstration 5G The function of the network .

This guidance document is applicable to the development environment :

Windows development environment :Windows 7 64bit、Windows 10 64bit

Linux development environment :Ubuntu14.04.3 64bit

virtual machine :VMware15.1.0

U-Boot:U-Boot-2017.01

Kernel:Linux-4.9.65、Linux-RT-4.9.65

Linux Processor SDK:ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05

Hardware device :5G modular ( Move away RM500Q)、SIM card (5G telecom )

Chuang long technology TL5728F-EVM It's based on TI Sitara series AM5728( Dual core ARM Cortex-A15 + Floating point dual core DSP C66x) + Xilinx Artix-7 FPGA High end heterogeneous multi-core evaluation board for processor design , It consists of core plate and evaluation base plate .AM5728 And Artix-7 Inside the core board through GPMC、I2C Communication bus connection , Pass the evaluation board PCIe Communication bus connection .

The core board has been professionally PCB Layout And high and low temperature tests to verify , Stable and reliable , It can meet various industrial application environments . Evaluation board interface resources are rich , Lead out dual Gigabit network port 、 dual SFP Smooth mouth 、USB 3.0、CAN、RS485、SATA、HDMI、GPMC、FMC Such as the interface , It is convenient for users to quickly carry out product scheme evaluation and technology pre research . Typical applications : Motion control 、 Test measurement 、 Machine vision 、 Smart power 、 Video tracking 、 Positioning navigation .

Case function

This case is located in the product data “4- Software data \Demo\tl-linux-application\module-demos\” Under the table of contents , The directory structure is shown in the following table :

surface 1

Catalog

describe

bin

Store program executable files

driver

Store driver files and driver source code

src

Stored program source code

tool

Deposit Python Scripting tools

The case includes 4 A test program and 1 individual Python Script , The following functions are realized respectively :

  1. quectel-CM: Realize network function . Move away from the official automatic dial-up Internet program , Through to GobiNet Drive generated "/dev/qcqmiX" The device node operates , It can automatically set network connection parameters 、 obtain IP and DNS etc. , If you need to use the Internet function continuously , Keep the program running in the background .
  2. rm500q_phone_call: Realize voice call function .
  3. rm500q_send_sms: Realize the function of sending SMS .
  4. rm500q_get_location: Realize the function of obtaining longitude and latitude .
  5. speedtest.py: be based on Python Developed script program , Take advantage of speedtest.net To measure the uplink and downlink broadband , List the distance from the server room according to the physical speed measurement . It can also measure the speed of a server , Generate a URL Used to share speed measurement results .

Case test

Please put 5G modular ( Move away RM500Q) Antenna interface on ANT0、ANT1 and ANT3 Connect 5G The antenna ,ANT2_GNSSL Connect GPS The antenna , take 5G Module installation to M.2 turn USB Adapter plate . The evaluation board is not connected to the network cable , Use USB turn Type-C The data cable is connected to the... Of the evaluation board USB1 DRD 3.0 Interface and M.2 turn USB Of adapter plate USB Type-C Interface .

chart 1

chart 2 5G( Move away RM500Q) modular

Before use, please 5G Insert a functional... Into the module SIM card , Make sure 5G Antennas and GPS The antenna (GPS The words face up ) Installed properly , And then GPS The antenna is placed in an open place ( Indoor test GPS The function may cause the longitude and latitude acquisition to fail ).

Take this case bin Program executable in directory 、"driver/image/" Drive image file in directory 、tool Copy the script in the directory to the evaluation board file system . In the directory where the drive image file is located , Execute the following command to load the driver , After loading, it will generate usbX Network device node , as well as "/dev/qcqmiX" Device node .

Target# modprobe usbnet

Target# insmod GobiNet.ko

chart 3

Execute the following command to shut down other network device nodes , query-generated usbX Network device node .

Target# ifconfig eth0 down

Target# ifconfig eth1 down

Target# ifconfig

chart 4

Network function test

Execute the following command , Run the Internet dial-up program provided by the official mobile phone , And run it in the background .

Target# ./quectel-CM &

chart 5

Network function test

After dialing successfully , Execute the following command to test the network communication function .

Target# ping www.baidu.com

chart 6

If you need to exit the Internet function , Please execute the following command .

Target# killall quectel-CM

chart 7

Network bandwidth performance test

Ensure that the Internet dial-up program is running in the background , adopt speedtest.py Script to test . Description of script usage :

  1. Test Download and upload speed , No parameters required , Carry out orders :./speedtest.py
  2. Test the speed of upload and download ( In bytes ), Carry out orders :./speedtest.py --bytes
  3. Only required Ping, Get the results of upload and download , Carry out orders :./speedtest.py --simple
  4. List speedtest.net The physical distance between all servers and the host , The unit is kilometer (km), Carry out orders :./speedtest.py --list
  5. Measure the speed of the specified server ( Use "./speedtest.py --list" Command to get the server ID), Carry out orders :./speedtest.py --server [server ID]

5G Mode test rate

In the directory where the script is located , Execute the following command , To test .

Target# ./speedtest.py

chart 8

It can be seen from the above figure , The downlink rate is 118.77Mbit/s, The uplink rate is 91.23Mbit/s, The real time Ping by 25.236ms.

remarks :5G The signal bandwidth is related to the signal coverage location , The test data are for reference only .

4G Mode test rate

take 5G The module retains only any 1 root 5G Antenna connection , That is to say 4G Pattern , During this test, only ANT0 The antenna . In the directory where the script is located , Execute the following command , To test .

Target# ./speedtest.py

chart 9

It can be seen from the above figure , The downlink rate is 57.78Mbit/s, The uplink rate is 40.85Mbit/s, The real time Ping by 106.935ms.

If used speedtest.py The script appears "ERROR: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>" error , Please add the following content to the script :

import ssl

ssl._create_default_https_context = ssl._create_unverified_context

SMS function test

The test command :./rm500q_send_sms <device> <phonenumber> <text>

Command specification :<device> For device nodes , With "ls /dev/ttyUSB*" The result of command view shall prevail , After restarting the evaluation board, it may change .<phonenumber> Target mobile phone number for sending SMS .<text> Send content for SMS , There must be no space between the characters in the text message , Otherwise, the error will be prompted .

Program description : Set SMS sending mode , And send SMS content .

Enter the evaluation board file system , stay rm500q_send_sms Execute the following command under the path where the file is located to test whether the SMS function is normal .

Target# ./rm500q_send_sms /dev/ttyUSB2 131******** www.tronlong.com

chart 10

chart 11

Voice call function test

The test command :./rm500q_phone_call <device> <phonenumber>

Command specification :<device> For device nodes , With "ls /dev/ttyUSB*" The result of command view shall prevail , After restarting the evaluation board, it may change .<phonenumber> To dial the target mobile number .

Program description : Test the voice call function .

Enter the evaluation board file system , stay rm500q_phone_call Execute the following command under the path where the file is located to test whether the voice call function is normal .

Target# ./rm500q_phone_call /dev/ttyUSB2 131********

chart 12

chart 13

Get latitude and longitude function test

The test command :./rm500q_get_location <device> <timeout>

Command specification :<device> For device nodes , With "ls /dev/ttyUSB*" The result of command view shall prevail , After restarting the evaluation board, it may change .<timeout> Is the time to wait for the return of longitude and latitude information ( The unit is in seconds ).

Program description : adopt GPS The antenna obtains longitude and latitude information , And print the results .

Enter the evaluation board file system , stay rm500q_get_location Execute the following command test under the path where the file is located GPS Whether the positioning function is normal .

Target# ./rm500q_get_location /dev/ttyUSB2 1

chart 14

Here's the picture , If the longitude and latitude information acquisition fails 、 Overtime , Please check whether the antenna is connected properly , And ensure that the test is conducted in an outdoor open space .

chart 15

Case compilation

Drive compilation

The case driver The driver source code under the directory GobiNet Copy to Ubuntu Working directory , Execute the following command to specify the cross compilation tool and compile .

Host# export PATH=/home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH

Host# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KDIR=/home/tronlong/AM57x/Kernel/Linux-4.9.65

remarks :"/home/tronlong/AM57x/Kernel/Linux-4.9.65" by Linux Kernel source path , And you need to compile the kernel first .

chart 16

Compile the complete , Generate driver in current directory GobiNet.ko.

Program compilation

Put the case in the directory src Copy the program source code to Ubuntu Working directory , Execute the following command to load SDK Environment and compile .

Host# source /home/tronlong/ti-processor-sdk-linux-rt-am57xx-evm-04.03.00.05/linux-devkit/environment-setup

Host# make

chart 17

Compile the complete , Generate the test program executable in the current directory .

Key code description

rm500q_send_sms.c

Open and set the serial port .

chart 18

Set text mode .

chart 19

Send a text message .

chart 20

rm500q_phone_call.c

Open and initialize the serial port .

chart 21

Send voice call command .

chart 22

rm500q_get_location.c

Open and set the serial port .

chart 23

Inquire about GPS Function on or off .

chart 24

Turn on GPS function .

chart 25

If GPS Function is on , Shut down first GPS To clear the location data , And open GPS.

chart 26

Obtain longitude and latitude information and print .

chart 27

原网站

版权声明
本文为[Tronlong]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111816078661.html