Principle and Design of Communication Interface of Nuclear Signal Acquisition System Based on DSP

The development of digital signal processors is also changing with each passing day. Not only is the instruction speed faster and faster, but its power consumption is also getting lower and lower. Many instruments or inspection devices apply DSPs to systems that have a large amount of data and need to transmit data in real time. The nuclear signal data acquisition system is no exception. The DSP can process the collected signals in real time and send the processed data to the host computer for further processing.

This article refers to the address: http://

Generally, the communication between the lower computer and the upper computer of the data acquisition system adopts the serial port mode, which is not only simple in protocol but also convenient in connection. However, the data transfer rate of this method is not high, and the USB bus interface has the advantages of convenience, fast support, plug and play, high-speed data communication, and the like, and is widely used in many fields. The USB bus interface can transmit up to 12Mbps under the USB1.1 protocol and up to 480Mbps under the USB2.0 protocol, which can fully meet the requirements of the current data acquisition and control system for the real-time data transmission rate.

Therefore, in the design of this system, the communication method adopts USB (Universal Serial Bus) bus interface mode. The USB control chip uses Cypress's EZ-USB SX2 series CY7C68001 control chip, and the DSP uses TI's fixed-point DSP chip TMS320VC5502.

1. CY7C68001USB control chip introduction

CY7C68001 is a high-speed USB chip developed by Cypress Corporation of the United States and supports the USB2.0 protocol. It integrates USB transceiver (physical layer), USB serial interface engine SIE (link layer, implements the underlying communication protocol), 4KB FIFO and voltage regulator, phase-locked loop; can work at full speed (12Mb/s) And high-speed (480Mb / s) two transmission modes, support 8-bit and 16-bit data bus mode, with synchronous and asynchronous FIFO interface. The CY7C68001 is used to connect to controllers such as DSPs, ASICs, and FPGAs to implement USB functions. It does not contain a microcontroller inside. At the same time, CY7C68001 provides 4 transmission modes (control transmission, interrupt transmission, bulk transmission and synchronous transmission), which can meet the requirements of users for various transmission methods. Since the control chip does not contain a microcontroller, the application layer protocol of USB should be implemented by DSP. The loading of USB firmware must be completed by DSP control CY7C68001.

2. Communication interface system hardware design

The entire acquisition system includes sensor signal conditioning circuit, A/D conversion circuit, FIFO data buffer unit, DSP controller, FLASH program storage unit, CPLD logic control unit, and USB communication unit connected to the host computer. The hardware interface diagram of the USB unit that communicates with the PC is shown in the figure below.



Figure 1 Hardware interface block diagram of data acquisition system and PC communication

As can be seen from Figure 1, the communication part is mainly composed of CY7C68001 USB controller, CPLD logic unit, E2PROM, TMS320VC5502. Since the number of devices required for the entire system is large, the resulting logic control is complicated, and the I/O interface of the DSP is limited. Therefore, a CPLD logic control unit is added to the system to generate the logic state required in the circuit. . At the same time, the register function is also implemented in the CPLD. This part of the register is used to characterize various status information during USB communication, which is convenient for DSP query.

The CY7C68001 USB controller and the TMS320VC5502 use an EMIF connection and configure the memory in the USB controller into the CE1 space. At the same time, the data and command exchange between TMS320VC5502 and CY7C68001 are completed by asynchronous read/write. The role of the E2PROM in the system is to complete the USB controller's description table bootstrapping. The CY7C68001 controller has two bootstrap modes: EEPROM and microcontroller. The system uses EEPROM.

3. Communication interface system software design

3.1 Host-side software design

The function of the host software is mainly to complete the receiving, displaying and analyzing of the data uploaded by the lower computer. Due to the large amount of data collected by the signal, the bulk transmission method is adopted in the USB transmission mode.

The design of the host software consists of three aspects:

(1) USB driver design

The function of the USB driver is mainly to implement USB discovery, configuration, shutdown, and data transfer interface control. The USB device driver is designed based on WDM (Windows driver model). WDM uses a layered driver model that is divided into higher-level USB device drivers and lower-level USB function layers. The USB function layer consists of two parts: a higher-level Universal Serial Bus Module (US-BD) and a lower-level Master Controller Driver Module (HCD). In the above USB layered module, the USB function layer is provided by the operating system and is responsible for managing communication between the USB device driver and the USB controller, loading and unloading the USB driver, establishing communication with the USB device universal endpoint to perform device configuration, Data and USB protocol framework and packaging format for two-way conversion tasks.

(2) Install USB information file (.inf)

This step is used to bind the driver to the Verdor ID (VID) and Product ID (PID) of a particular device. When the USB device is plugged into the computer, the computer detects that the device automatically issues a query request after it is inserted; the USB device responds to the request and sends the device's VID/PID. The computer completes the enumeration by loading the appropriate device driver based on these two IDs.

(3) User application

The user application is the core of the data acquisition system. Its main functions are: turning on or off the USB device, detecting the USB device, setting the USB data transmission pipeline, setting the A / D status and data acquisition port, collecting data from the USB interface in real time, displaying and analyze data. The entire application is written in Microsoft Visual C++, which enables A/D sampling and data display through control of the interface.
Here are some of the application-related functions:

BOOLEAN OpenDriver ( );

BOOLEAN CloseDriver ( ) ;

PVO ID Sx2GetDeviceDesc ( ) ;

PVO ID Sx2GetStringDesc ( int stringIndex) ;

PVO ID Sx2GetConfigDesc ( ) ;

BOOLEAN Sx2GetPipe Info ( PVO ID p Interface) ;

BOOLEAN Sx2SendVendorReq ( PVO ID myRequest, char * buffer, int bufferSize, int *

recnBytes) ;

BOOLEAN Sx2GetPipe Info ( PVO ID p Interface) ;

3.2 DSP software program design

Data transfer between the USB host and the device is done through an endpoint in the device. These endpoints are identified by endpoint numbers and input and output directions, and a fixed FIFO memory area is allocated for data transfers. The system configures the four endpoints of CY7C68001 as a bulk transfer type at initialization. Among them, FIFO2 and FIFO4 are output terminals for receiving data from the host computer; FIFO6 and FIFO8 are input terminals for storing data to be transmitted. Each FIFO is set to an asynchronous mode of operation. After the DSP is initialized, the USB external interrupt is opened, and the descriptor table is written to CY7C68001, waiting for its enumeration interrupt. After the enumeration is successful, the DSP performs other configuration on CY7C68001 and clears the FIFO, then waits for the host to send a user request and process accordingly. The software program flow chart is shown in Figure 2.


Figure 2 DSP software programming flow chart

The DSP software program design mainly includes the initialization of the DSP, the writing of the USB descriptor table and the configuration of other command registers, and the corresponding processing requested by the user. The initialization of the DSP is mainly to initialize the clock rate, configure the EMIF port, and configure the McBSP port. The USB descriptor table mainly completes the initial configuration inside the USB chip. The configuration of the command register is to complete the opening of the USB interrupt, the capacity of the endpoint data transmission, and the configuration of the direction. The user request is a user application that completes the corresponding data transfer according to the request sent by the user.

4 Conclusion

The system uses the USB interface to complete the data transmission between the nuclear signal acquisition system and the host computer. The user program of the host computer displays the transmitted data and the waveform graph. The verification shows that the method is simple and reliable. Compared with the ordinary serial port, its speed has also been improved.

The innovation of this paper is to use the traditional DSP signal acquisition system for the acquisition of nuclear signals, and to improve the serial port mode of communication with the host computer to USB mode. This plug-and-play interface is not only convenient and superior. The connection of the machine and the rate of transmission is increased.

4G Outdoor CPE

Can you boost your WiFi signal with outdoor 4G CPE?

When you travel or go to some remote areas, you may be annoyed by poor reception. Is there any way to get a strong WiFi router signal outdoors in a 4G LTE network? Very good, outdoor 4G CPE router would be a good choice!

What is an outdoor 4G CPE router?
An outdoor 4G CPE router differs from a Wifi-only router in that it needs to be connected to a fiber optic network. The 4G CPE WiFi router can pick up the carrier's 4G LTE network signal and convert it into broadband and Wi-Fi. Just plug in your SIM card with your data plan and enjoy a stable and reliable WiFi signal with family and friends. This Outdoor CPE can be used in harsh environments. If you install your router outside or near a window in an area with a weak 4G signal, your device can receive a better 4G signal.

Second, what are the characteristics of outdoor 4G CPE router?
1. Better network for ODU and IDU
4G CPE outdoor routers include an outdoor unit (ODU) and an indoor unit (IDU). Help your device receive the best outdoor cellular signal through the ODU, and connect to the indoor WiFi router through the network cable to experience better network speed. As shown in the figure below, an outdoor LTE CPE (ODU) is installed outdoors and connected to an indoor Wi-Fi router (IDU) via a network cable. The entire 4G device is powered by POE. This data will be transmitted over the same Ethernet cable, eliminating the need to connect the ODU to a power outlet.

2. High-speed multi-user available
The outdoor 4G CPE features a built-in 4G LTE modem and a 5dBi high-gain antenna. LTE CAT4, download speeds up to 150Mbps, WiFi speeds up to 300Mbps, can connect 32 users at the same time. The high-gain antenna of the outdoor 4G CPE router enables it to have higher power and stronger signal transmission and reception capabilities than mobile phones. Therefore, the CPE router can receive the signal. If your phone can't receive a signal in some areas. Sometimes you also use your phone as a hotspot to share Internet access with your friends, right? Similarly, this 4G LTE CPE router allows 32 users to connect to WiFi at the same time, allowing more users to connect and receive a better signal than a phone sharing hotspot. In addition, the IDU has four Lan ports and can be connected to the device through network cables, which is also a backup mode of the Internet.

3. Excellent outdoor performance and design
On the one hand, outdoor LTE CPE is waterproof, UV resistant and corrosion resistant. It can be used at -20℃~60℃ operating temperature. Therefore, it is ideal for outdoor deployment. On the other hand, there are a variety of installation methods. CPE can be mounted on Windows or walls by mounting brackets. It is also possible to attach it to the antenna mast. In addition, the signal strength is displayed through the LED indicator to facilitate users to find the best location to get a better 4G signal.

4. Support different frequency bands
Outdoor 4G CPE supports a variety of frequency bands, including LTE-FDD, LTE-TDD, 3G WCDMA, and 2G GSM network bands. Meet the needs of different frequency bands in different regions and make full use of network resources.

5. Convenient management of CPE
Start the Web browser to log in to the Web management page. You can configure and manage the CPE easily. The web management system supports Linux. Provides functions such as WebUI management, Telnet, SSH terminal system status monitoring, NTP client, synchronization between devices and the system clock network, and configuration file import and export.

6. Applicable to various application scenarios
CPE is designed to provide ISP or operator with 4G LTE outdoor wifi router to facilitate network connection, whether at home, or in enterprises and remote areas, to bring users a wonderful network experience.

All in all, an outdoor 4G CPE router is an excellent choice for connecting to the Internet in remote areas and places where the signal is weak, the wired network is unreliable, or there is a lack of reliable WiFi. It's worth deploying outdoor CPE in rural, coastal, boat, caravan, campsite and remote areas to enjoy the best network speeds and outdoor activities! It can even reduce complex cabling deployments for home networks without the need to install a wired fiber network.

4G Outdoor Cpe,4G Lte Outdoor Cpe Router,4G Lte Outdoor Cpe,Outdoor 4G Lte Cpe Router

Shenzhen MovingComm Technology Co., Ltd. , https://www.mcrouters.com