Advantech RSB-4220 handleiding

72 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 57 van 72
51 RSB-4220 User Manual
Chapter 3 Software Functionality
Remove the SD card and insert it into RSB-4220, then open the serial console.
On the RSB-4220 platform, type #root (Login)
On the RSB-4220 platform, type #cd /tool
On the RSB-4220 platform, type #./helloworld
“Hello World!” should be visible on RSB-4220.
3.8.2 Developing GUI Programs with a Qt Library
The development kit can be used to develop a Qt-based GUI program. Follow the
instructions below to quickly convert a Qt project into a GUI application for RSB-
4220.
1. On the host PC, setup a Qt build environment.
2. Build Qt instructions are as follows:
3.8.3 Demo Program Source Code
3.8.3.1 Serial Port Programming
Refer to <BSP_PATH>/source/demo/uart for an example of sending and receiving
data via the serial port.
Receiving data
Sending data
Before programming the serial port, ensure that the serial port is in 232/422/485
mode.
Users can reference the uart demo source code to develop a uart application.
3.8.3.2 Watchdog Programming
RSB-4220 supports a hardware watchdog. The watchdog API follows POSIX stan-
dards. Valid timeout values range from 1 to 6553 seconds. If the desired timeout
value is outside this range, the driver will set the timeout value to the default value
(60 seconds).
Sample C code
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>
#include <linux/watchdog.h>
Note! The Linux system SD card mounting point is /media/rootfs.
#source /usr/local/cross_compiler/linux-devkit/environment-setup
# cd projectdir
# qmake projectName.pro
# make
3.Run QT demo:
# ./qtappName -platform linuxfb
# ./uart_ctrl read /dev/ttyO1
# ./uart_ctrl write /dev/ttyO2

Bekijk gratis de handleiding van Advantech RSB-4220, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.

Productinformatie

MerkAdvantech
ModelRSB-4220
CategorieNiet gecategoriseerd
TaalNederlands
Grootte6307 MB