DSGW-560 Oil storage explosion-proof gateway

DSGW-560 Oil storage explosion-proof gateway is designed based on the Rockchip RK3308J, specifically tailored for high reliability and high stability in oil depot data acquisition and management. The product's CPU employs an ARM quad-core 64-bit Cortex-A35 core with a clock speed of 1.3GHz, capable of supporting high-precision data acquisition, rapid processing, and transmission.
Table of Contents

1.Product Introduction

1.1 Product Overview

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.

1.2 Hardware Specifications - Hardware SE
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
1.3 Product Application Diagram
1.3.1 Hardware Application Block Diagram
dsgw 560 hardware application block diagram
  • Functional description of oil storage explosion-proof IoT scenario:
  1. 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.
  2. 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:
  1. 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.
  2. 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.
  3. Explosion-proof + flameproof design
    The circuit adopts explosion-proof + flameproof design, the power supply is intrinsically safe design, and the product has high stability.
1.3.2 System Software Block Diagram

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.

dsgw 560 system software block diagram

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:

  1. 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;
  1. 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.
  2. 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.
  3. Industry application software: Built-in application software optimizes the process of data collection and processing, and the software realizes dual-channel data transmission.
1.3.3 Supported algorithms and peripheral hardware
1.3.3.1 Basic equipment
Peripherals model illustrate
Intrinsically safe power supplies -- --
1.3.3.2 Core Components

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
1.3.3.3 Supported algorithm models

NA

2. Installation Instructions

2.1 Packaging 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);

dsgk 070 shipping packaging bag

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)

dsgw 560 shipping packing
2.2 Accessories List

1. Product shipped without accessories

2.3 Installation

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.

dsgw 560 installation

1.2. Specifications of copper nut: M3X7+6 mm, please refer to the following dimensions:

dsgw 560 specifications of copper nut

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.

dsgw 560 product is fixed by 4 screws
2.4 Product Dimensions

1. Key dimensions of the base plate:

dsgw 560 key dimensions

2. Key dimensions of the middle plate:

dsgw 560 middle plate

3. Key dimensions of the upper board:

dsgw 560 upper board

3. Hardware Instructions

3.1 Product Appearance
dsgw 560 product Appearance
dsgw 560 product appearance 2
dsgw 560 product appearance 3
dsgw 560 product appearance 4
3.2 Product IO Interface Diagram
3.2.1 Interface Identification Diagram
dsgw 560 interface Identification diagram
3.2.2 Interface Usage Description
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
3.3 Status indicator light description
3.3.1 Indicator light status description

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

4.1 Mainboard jumper settings and interface definitions
dsgw 560 mainboard jumper settings and interface definitions
4.1.1 Button Description
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
4.1.2 Interface Description
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
4.2 Debug serial port parameter settings
4.2.1 Download PC serial port tool

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:

dsgw 560 download pc serial port tool
4.2.2 Serial port settings

Debug serial port baud rate 115200

  1. 8 data bits
  2. 1 stop bit
  3. No verification
  4. No flow control

See the figure below for details

dsgw 560 serial port settings
4.2.3 Serial port connection diagram
dsgw 560 serial port connection diagram
4.3 Firmware Burning
4.3.1 Preparation
Prepare the Materials illustrate
Burning PC Windows 7 and above
Micro-USB B cable Image
RKDevTool burning tool v2.93 and above
4.3.2 SDK application and download
4.3.2.1 Apply for SDK
sdk application process

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.

4.3.2.2 Generate server key

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

dsgw 390 generate server key
4.3.2.3 Git Configuration

Enter on the server command line:

				
					git config --global user.email " You@example.com "
git config --global user.name "Your Name"
				
			
4.3.2.4 SDK Download
4.3.2.4.1 Download repo
				
					git clone ssh:// git@roombanker.x3322.net :2223/dusun_repo.git
				
			
4.3.2.4.2 Adding environment variables
				
					sudo cp -f ~/work/dusun_repo/repo /usr/bin/repo
sudo chmod +x /usr/bin/repo
				
			
4.3.2.4.3 Get the code
				
					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
				
			
4.3.3 Download the burning software tool
4.3.3.1 Download PC flash tool

Flashing tool link, the installation package is located below the source code library

				
					tools/windows/RKDevTool_Release_v2.84.zip
				
			
4.3.3.2. PC driver download

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
				
			
4.3.4 Firmware Burning
4.3.4.1 Flash connection diagram
dsgw 560 flash connection diagram
4.3.4.2 Flashing steps
  1. 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.
  2. Power on the device
  3. 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)
  4. Open RKDevTool_Release_v2.93 flashing tool, click Firmware, and select Upgrade Firmware
dsgw 560 flashing steps

   5. Click Upgrade and wait for the flashing to complete

4.4 SDK Introduction
  • 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
				
			
4.4.1. Compile Commands
  • 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/<pkg> -build packages in the dir of app/*
external/<pkg> -build packages in the dir of external/*
   ------------Can be used as needed------------------
)
				
			
4.4.2 Compilation Products

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
				
			
4.4.3 Commonly used interfaces
4.4.3.1 Wi-Fi
				
					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'
				
			
4.4.3.2 Ethernet
				
					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
				
			
4.4.3.3 Button

Press and release the button to view the current status of gpio

				
					cat /sys/class/gpio/gpio153/value
				
			
4.4.3.4 LED
				
					#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
				
			
4.4.3.5 485

Two RS485

				
					ls /dev/ttyS1 //Reserved interface
ls /dev/ttyS3 //Connect to the upper IO interface board for communication
				
			
4.4.3.6 ADC

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
				
			
4.4.3.7 AIO

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.4.3.8 DIO

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

5.1 Hazardous Substance Standards
5.1.1 ROHS

Chinese Standard: GB/T 26572-2011
EU Standard: Directive 2011/65/EU
Remark:The components used in current products comply with ROHS standards

5.1.2 REACH

EU Standard: EU Regulation (EC) No 1907/2006 (REACH)
Remark:The components used in the current products comply with REACH standards

5.2 EMC implementation 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

5.3 Authentication Support
5.3.1 Proxy Client Authentication

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):

ce certificate
5.3.2 Customer Self-Authentication

① Dusun provides certification related materials, the list of materials is as follows (contact the project leader, who will coordinate and organize the materials):

  1. BOM list (all in English)
  2. Body Label
  3. Block diagram
  4. Parts placement
  5. PCB layout
  6. Schematic diagram SCH
  7. User manual
  8. Antenna Specifications
  9. List of key safety components (with safety component certificates, such as relays, fuses, terminal blocks, etc.)
  10. 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

6.1 Model Description

⚠️:Order sub-model and corresponding product description

Related IoT Product Specifications

DSBC-120 BLE Beacon Card

DSBC-120 BLE beacon card is an IP67 waterproof device with a battery life up to 2 years. This beacon card is adopts BLE 5.0 and

Looking For An IoT Device Supplier For Your Projects?

CONTACT US

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    IoT Gateways for Recommendation

    CONTACT US

      This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

      Welcome to DusunIoT

      Hi there 👋 Is there anything we can help you with today? Please fill in the form below for the team to follow up if you become disconnected.

        DusunIoT Distributor Program

          This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

            This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.