1.Product Introduction
based on Rockchip RK3308J Designed for Oil depot data collection and management A model created High reliability and high stability Embedded Mother board product.The product CPU is ARM quad-core 64-bit Cortex-A35 core, main frequency 1.3GHz, Support high-precision data collection, fast processing and transmission, Fully satisfied Scenario requirements for rapid collection, processing and response of oil depot data, Its hardware design complies with -40~85°C industrial standards, and its product structure is compatible with explosion-proof + flameproof design. Applies to Outdoor oil and gas are flammable and explosive Harsh scenarios.product Support flexible selection of operating system, standard configuration Openwrt The system facilitates customer micro-development to achieve customer cloud docking and customer application migration.
Name | Describe |
---|---|
Product Model | DSGW-560 |
CPU | RK3308J |
RAM | 512MB |
EMMC | 64GB |
System | Openwrt 21.02 |
Network port | 1 10/100Mbps Ethernet interface |
USB3.0 interface | 1 USB2.0 OTG port |
Wi-Fi | WiFi6, 802.11a/b/g/n/ac/ax 1200Mbps WLAN + BT v5.4, 2 ipex antenna sockets |
RTC | Support, with 1.25*2pin socket, for non-rechargeable batteries |
Debug interface | Support, 1 UART interface on board |
Button | 1 user button |
1 hard reset button | |
1 RECOVERY button | |
LED | Flash control interface |
WiFi working status indicator light control interface | |
Power supply | DC power supply voltage range 12V/1A or 24V/0.5A |
Operating temperature | -40 to 85 degrees |
Storage temperature | -40 to 85 degrees |
PCBA Dimensions | 100*78mm |
- Functional description of oil storage explosion-proof IoT scenario:
- Sensor data acquisition and control
DSGW-560 oil storage gateway supports multiple high-precision AI, AO, DI, and DO interfaces, and can connect various intelligent sensors and controllers in oil depot management scenarios. - Local data processing and transmission
It supports built-in RTC and local storage of sensor historical data. It also has built-in data transmission application and dual redundant data transmission design. It performs independent transmission after dual-channel data encryption to ensure the stability and reliability of data transmission.
- Dusun Oil Storage Explosion-proof Gateway Advantages:
- High-precision data acquisition
The data acquisition circuit is optimized and designed, using low-temperature drift and high-precision components. The AO and AI acquisition accuracy reaches 1% over the full temperature range. - Low latency
Optimize data collection and processing processes, customize data transmission applications, and ensure that the delay of the entire process from collection to transmission is less than 50ms. - Explosion-proof + flameproof design
The circuit adopts explosion-proof + flameproof design, the power supply is intrinsically safe design, and the product has high stability.
Dusun customizes high-reliability operating systems and industry SDKs based on standard systems and industrial control industry-related applications. With years of experience in the development and design of robot embedded motherboards, it completes the transplantation and testing of a variety of hardware peripheral drivers that meet industry applications. The following is the software framework of the default Openwrt system of DSGW-560.
In addition, Dusun can provide independent system support for various versions of Linux, such as Debian, Ubuntu, etc.
Dusun provides industrial control industry SDK source code that matches the industrial control motherboard, supporting customers to conduct micro-development to achieve rapid productization. Dusun Industrial Control Industry SDK has the following features:
- Streamlined operating system: On the premise of meeting industry applications, the number of components is streamlined, the system resource utilization rate is high, thereby reducing hardware costs, and to a certain extent, the functional structure is optimized, the system architecture is reasonably laid out, and the system is more efficient and easy to maintain;
- BSP with industry attributes: According to the types of peripheral devices used in the industry, driver transplantation and debugging are carried out and industry algorithms are adapted to meet the customer’s needs for selecting an overall hardware + algorithm solution. In addition, Dusun BSP driver will continue to iterate the access to peripheral devices of different brands and models.
- Pre-installed tools and middleware: Commonly used testing tools, as well as customized tools required by customers, etc., make it easy for users to quickly transplant applications and tree models of other hardware platforms and achieve low-cost hardware platform switching.
- Industry application software: Built-in application software optimizes the process of data collection and processing, and the software realizes dual-channel data transmission.
Peripherals | model | illustrate |
---|---|---|
Intrinsically safe power supplies | -- | -- |
Core algorithms available upon request
Matching peripheral hardware | model | illustrate |
---|---|---|
Pressure Sensors | JYB-KB-P (Collihigh) | ATEX explosion-proof pressure sensor |
Thermal resistor | ZNC004(Guide car) | Explosion-proof thermal resistor PT100, L=70mm |
Liquid level sensor | L8000T (Honeywell) | Explosion-proof liquid level sensor |
Oil depot valve | VBA216-100F(Honeywell) | Electric Flange ball valve |
Emergency limit switch | - | Explosion Proof Limit Switches |
NA
2. Installation Instructions
1. Shipping box: None (can be customized if necessary);
2. Shipping packaging bag: Each PCBA is individually covered with an anti-static sealing bag (as shown in the figure below);
3. Product weight: 127g±5g (total weight of 3 PCBAs);
4. Shipping packing: 100pcs per box (1pcs is 1 set: including three PCBAs), packing diagram is as shown below. (1pc of product is placed in one clip space, with two layers of clips in total, 100pcs of products can be placed)
1. Product shipped without accessories
1.1. The whole product has 3 PCBAs. It is recommended to use copper nuts to space and fix them. As shown in the figure below.
1.2. Specifications of copper nut: M3X7+6 mm, please refer to the following dimensions:
2. The product is fixed by 4 screws (the fixing hole positions are shown in the figure below). The screw hole diameter is 3.3±0.15mm. It is recommended to use M3x6mm cross pan head screws.
1. Key dimensions of the base plate:
2. Key dimensions of the middle plate:
3. Key dimensions of the upper board:
3. Hardware Instructions
Serial number | describe | Notes (If it is a seat, the order is from left to right as shown in the picture) |
1 | 12V/1A or 24V/0.5A power input socket | Vin, GND |
2 | RJ45 Ethernet port | 10/100Mbps |
3 | User Buttons | Customizable features |
4 | RTC 1.25*2pin battery holder | Connect to non-rechargeable battery, pin 1 is positive and pin 2 is negative |
5 | FGS061N WiFi module ipex antenna seat | Ipex 1/2 generation |
6 | RS-485 connector | 485A, 485B, no isolation |
7 | USB 2.0 micro-B | USB 2.0 OTG, for burning |
8 | FCS960K-E WiFi module ipex antenna seat | Ipex 1/2 generation |
9 | RGB three-color light | Customizable features |
10 | Reserved wireless module ipex antenna base | Ipex 1/2 generation |
11 | Digital/pulse input connector JDI1 | Pulse input 1, pulse input 2, pulse input 3 |
12 | Digital/pulse input connector JDI2 | Pulse input 4, GND |
13 | 4-20mA analog input connector JAI1 | 4-20mA input, 24V output, GND |
14 | 4-20mA analog input connector JAI2 | 4-20mA input, 24V output, GND |
15 | PT100 three-wire thermal resistance detection seat | Common line terminal, common line terminal, individual line terminal |
16 | STM32 4pin debug socket | 3V3, GND, TX, RX |
17 | STM32 4pin burning socket | 3V3, SWDIO, GND, SWCLK, |
18 | Digital/relay output socket (voltage-free) | Relay 1 outputs NO, Relay 1 outputs COM, Relay 2 outputs NO, Relay 2 outputs COM, Relay 3 outputs NO, relay 3 outputs COM, Relay 4 outputs NO, relay 4 outputs COM, |
19 | 4-20mA analog output socket JAO2 | 4-20mA output, GND |
20 | 4-20mA analog output socket JAO1 | 4-20mA output, GND |
There is an RGB tricolor light on the PCBA (9 in the 3.2.1 Interface Identification Figure). The specific lighting mode can be customized through the corresponding GPIO. An example is given below:
Serial number | Light status | Product working status |
---|---|---|
1 | Green light is always on | Normal operation |
2 | Flashing red light | 1 WiFi abnormality |
3 | Red light is on | 2 WiFi anomalies |
4 | Blue light flashing | IO board abnormality |
5 | Red and blue lights flash alternately | 1 WiFi abnormality + IO board abnormality |
4. Software Instructions
Serial number | interface | illustrate |
---|---|---|
1 | RS485 | UART to RS485 |
3 | DEBUG Serial Port | Default debug port |
5 | UART Serial Port | Used to connect to STM32-IO board and communicate via modbus rtu |
Serial number | interface | illustrate |
---|---|---|
6 | TypeC firmware burning port | The same channel as the 3.0 U disk interface. After the kernel is started, it is configured as a 3.0 host and switched to the U disk interface. |
7 | CON1 Battery | RTC battery interface |
9 | Power interface | Power supply range: DC24V/2A or DC12V/2A |
10 | Network port | Ethernet port |
11 | RK3308 core board | RK3308 core board, stamp hole |
12 | LED Light | LED indicator light to indicate the current network status |
13 | Wifi antenna 1 | |
14 | Wifi Antenna 2 |
It is recommended to use MobaXterm to access, the recommended download address is: https://mobaxterm.mobatek.net/ download-home-edition.html
The effect after the tool opens the serial port is as follows:
Debug serial port baud rate 115200
- 8 data bits
- 1 stop bit
- No verification
- No flow control
See the figure below for details
Prepare the Materials | illustrate |
---|---|
Burning PC | Windows 7 and above |
Micro-USB B cable | |
RKDevTool burning tool | v2.93 and above |
The SDK versions of different Dusun chip platforms need to be applied to the corresponding business end respectively. For example, your company has received the SDK for RK3288, and now there is a new project that requires the SDK for RK3588. We need to contact the corresponding business end of Dusun for business confirmation, and the business end will assist in the application. After approval by Dusun auditors, the technical department can disclose information to your company.
Notice:
The SDK code management released by Dusun follows Google’s REPO method. Users are not recommended to delete the SDK’s REPO and GIT version records.
1. Enter on the server command line
ssh-keygen -t rsa -C " xxxx@xxxx.com "
2. Keep pressing Enter without entering any task characters;
3. After generating the key, email the ~/.ssh/id_rsa.pub file to Dusun
Enter on the server command line:
git config --global user.email " You@example.com "
git config --global user.name "Your Name"
git clone ssh:// git@roombanker.x3322.net :2223/dusun_repo.git
sudo cp -f ~/work/dusun_repo/repo /usr/bin/repo
sudo chmod +x /usr/bin/repo
mkdir -p ~/work/project/dev
cd ~/work/project/dev
repo init -u ssh:// git@roombanker.x3322.net :2223/rk3308_linux/manifests_first.git -m linux.xml -b 560 --no-repo-verify
repo sync -c -j8
repo start master --all
Flashing tool link, the installation package is located below the source code library
tools/windows/RKDevTool_Release_v2.84.zip
The computer needs to install the adb USB driver, the installation package is located below the source code library
tools/windows/DriverAssitant_v5.1.1.zip
- Connect one end of the USB data cable to the host, and the other end of the Micro-USB B cable to the firmware burning port of the device.
- Power on the device
- Press and hold the maskrom or loader button, then short press the reset button for 1 second and release it, the device enters the maskrom mode or loader mode (the core board in loader mode must be burned with firmware before entering)
- Open RKDevTool_Release_v2.93 flashing tool, click Firmware, and select Upgrade Firmware
5. Click Upgrade and wait for the flashing to complete
- Hardware Environment
Hard disk: 500G or more
Memory: 16G or more - Software Environment
It is recommended to use the distribution Ubuntu 20.04 - Update the packages that the compilation depends on
sudo apt-get update
sudo apt-get install build-essential flex bison libssl-dev libncurses5
- Compilation steps
#Enter the SDK directory
cd DSGW-560-DB-LUCI-SDK
#One-click compilation
./build.sh
- Compilation parameter description
./build.sh --help
Usage: build.sh [OPTIONS]
Available options:
BoardConfig*.mk -switch to specified board config
lunch -list current SDK boards and switch to specified board config
uboot -build uboot
spl -build spl
loader-build loader
kernel-build kernel
modules -build kernel modules
toolchain -build toolchain
rootfs -build default rootfs, currently build buildroot as default
buildroot -build buildroot rootfs
ramboot -build ramboot image
multi-npu_boot -build boot image for multi-npu board
yocto -build yocto rootfs
debian -build debian10 buster/x11 rootfs
distro -build debian10 buster/wayland rootfs
pcba -build pcba
recovery -build recovery
all -build uboot, kernel, rootfs, recovery image
cleanall -clean uboot, kernel, rootfs, recovery
firmware -pack all the image we need to boot up system
updateimg -pack update image
otapackage -pack ab update otapackage image (update_ota.img)
sdpackage -pack update sdcard package image (update_sdcard.img)
save -save images, patches, commands used to debug
allsave -build all & firmware & updateimg & save
check -check the environment of building
info -see the current board building information
app/ -build packages in the dir of app/*
external/ -build packages in the dir of external/*
------------Can be used as needed------------------
)
Programming product path
The flash package uses update.img. After complete compilation, the following files will be generated:
rockdev/
├── MiniLoaderAll.bin
├── boot.img
├── misc.img
├── oem.img
├── parameter.txt
├── misc.img
├── parameter.txt
├── recovery.img
├── rootfs.ext4
├── rootfs.img
├── trust.img
├── uboot.img
├── userdata.img
├── update.img
vi /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/ff4a0000.dwmmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option disabled '0'
option frequency '2.4G'
option 2Gchannel '1'
option channel '1'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/ff440000.usb/usb2/2-1'
option channel '36'
option band '5g'
option htmode 'VHT80'
option disabled '0'
config wifi-iface 'ap0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option hidden '0'
option key '12345678'
option disabled '0'
option ifname 'wlan0'
option encryption 'psk2'
option ssid 'KHDT-560-1-1137CE'
config wifi-iface 'sta0'
option device 'radio0'
option network 'wwan0'
option mode 'sta'
option hidden '1'
option disabled '0'
option ifname 'mlan0'
option encryption 'psk2'
option ssid 'AAAAAA'
option key 'dl123456'
config wifi-iface 'sta2'
option device 'radio1'
option network 'wwan1'
option mode 'sta'
option hidden '1'
option ifname 'usbmlan0'
option ssid 'AAAAAA'
option key 'dl123456'
option disabled '0'
option encryption 'psk2'
ifconfig eth0
eth0 Link encap:Ethernet HWaddr 1A:D9:A8:11:37:CE
inet addr:192.168.31.245 Bcast:192.168.31.255 Mask:255.255.255.0
inet6 addr: fe80::18d9:a8ff:fe11:37ce/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:696268 errors:0 dropped:0 overruns:0 frame:0
TX packets:805719 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44205723 (42.1 MiB) TX bytes:269658278 (257.1 MiB)
Interrupt:107
Press and release the button to view the current status of gpio
cat /sys/class/gpio/gpio153/value
#Openred light
echo 1 > /sys/class/leds/zigbee/brightness
#Turn off the red light
echo 0 > /sys/class/leds/zigbee/brightness
#OpenGreen Light
echo 1 > /sys/class/leds/red/brightness
#closureGreen Light
echo 0 > /sys/class/leds/red/brightness
#OpenBlue Light
echo 1 > /sys/class/leds/blue/brightness
#closureBlue Light
echo 0 > /sys/class/leds/blue/brightness
Two RS485
ls /dev/ttyS1 //Reserved interface
ls /dev/ttyS3 //Connect to the upper IO interface board for communication
3 channels of ADC acquisition, 2 channels of AI analog acquisition, 1 channel of PT100 temperature analog acquisition
#Read AI1 AI2 register values
test_modbusrin 1 1001
test_modbus rin 1 1002
#Read PT100 register value
test_modbus rin 1 1003
2-way AI acquisition 4-20ma current input, 2-way AO 4-20ma current output
#Read AI1 AI2 register values
test_modbus rin 1 1001
test_modbus rin 1 1002
#Read AO1 AO2 register values
test_modbus r 1 1004
test_modbus r 1 1005
4-channel DI, 4-channel DO
#Read DI1-4 register value
test_modbus rin 1 1000 //DI1 to DI4, corresponding to bit0 to bit3
#Read DO1-4 register value
test_modbus r 1 1000
test_modbus r 1 1001
test_modbus r 1 1002
test_modbus r 1 1003
5. Relevant standards and certifications
Chinese Standard: GB/T 26572-2011
EU Standard: Directive 2011/65/EU
Remark:The components used in current products comply with ROHS standards
EU Standard: EU Regulation (EC) No 1907/2006 (REACH)
Remark:The components used in the current products comply with REACH standards
EU standards: EN55032:2015 + A11:2020 / EN55035:2017 + A11:2020 / ETSI EN 301489-1 V2.2.3 (2019-11) / ETSI EN 301489-X
Chinese Standard: GB/T 26572-2011
Note: The current product is designed strictly in accordance with EMC standards
The customer only needs to provide the application company information, and Dusun will be responsible for all the certification processes
The certification process is shown in the following example (CE certification):
① Dusun provides certification related materials, the list of materials is as follows (contact the project leader, who will coordinate and organize the materials):
- BOM list (all in English)
- Body Label
- Block diagram
- Parts placement
- PCB layout
- Schematic diagram SCH
- User manual
- Antenna Specifications
- List of key safety components (with safety component certificates, such as relays, fuses, terminal blocks, etc.)
- PCB-UL certificate
② Dusun provides certification technical support (fixed frequency, safety regulations, EMC)
Contact the project leader, who will coordinate with relevant technical personnel to provide technical support
6. Ordering - Product Manager
⚠️:Order sub-model and corresponding product description