Share this

GPRS-based remote control system for switched reluctance motor controller

2026-04-06 05:09:47 · · #1
Abstract: General Packet Radio Service (GPRS) is a wireless packet switching technology based on the GSM system, providing end-to-end, wide-area wireless IP connectivity. It boasts significant advantages such as high transmission speed, low operating costs, high reliability, and ease of development. This paper introduces a GPRS-based remote control speed regulation system for switched reluctance motors and a data acquisition system, including its hardware and software design. Keywords: GPRS; switched reluctance motor controller; remote control. GPRS technology is a new packet data bearer service developed on the existing GSM system. Its greatest advantage lies in its significantly increased data transmission speed, currently reaching 115Kbps. Secondly, GPRS is a packet switching protocol defined according to the GSM standard, enabling rapid access to data networks. It achieves an "always-on" connection between the mobile terminal and the network; network capacity is only occupied during actual transmission. Based on these advantages, GPRS technology is suitable for data transmission. Furthermore, due to its reliability, it can be designed for remote control. This paper uses an oilfield pumping unit as a practical application background to introduce the architecture and specific implementation of a GPRS-based remote control system for switched reluctance motors. System Overall Structure This system uses a host computer operating system, such as a wireless network, to remotely control switched reluctance motors used in oilfield pumping units. It controls parameters such as motor start-up, stop, reset, and speed setting, and collects data on motor operation, including current, temperature, speed, and fault information. This data is then returned to the host computer operating system for analysis to determine the motor's operating status and subsequent control steps, achieving the goal of remote control. The overall working structure of this system is shown in Figure 1. [align=center] Figure 1 Overall Structure Diagram of GPRS Remote Control System[/align] Host Computer Operating System The host computer operating system is the platform for human-computer interaction. This paper uses a visual interface written in VB language and develops a TCP/IP super terminal to implement the functions of a TCP/IP server. This is a simple application of Socket. Since the system obtains the same IP address each time GPRS dials up, while the PC's IP address is different, and the PC's IP address should be fixed, the PC is chosen as the server. After the server is created, it begins listening for data from the network, continuously waiting for client connections. If a client connects, the received data is stored in a buffer. The server then determines whether the data originated from the system. If correct, it displays the data sent by that client and simultaneously restarts a thread to wait for new client connections. System Hardware Design As shown in Figure 2, the internal structure of the remote control system can be divided into system power supply, reset circuit, signal acquisition, control setpoint, and other control parts. This section focuses on signal acquisition and GPRS remote control. [align=center]Figure 2 Internal Structure Diagram of GPRS Remote Control System[/align] This design requires the acquisition of the operating status of a switched reluctance motor, including current signals, voltage signals, etc., which requires ADC conversion. The TLC0834 is an eight-bit successive approximation analog-to-digital converter with configurable input multi-channel multiplexer and serial input mode. It adopts a serial input structure, with a power supply voltage of 5V. The input and output are compatible with TTL and CMOS levels. To save I/O resources, one I/O port of the LPC2134 is connected to the DO and DI pins of the TLC0834. The DI pin is only detected when the multiplexer is addressed, while the DO pin is still in a high-impedance state at this time. After one clock cycle, the DO pin starts reading data at the rising edge of the clock. The GPRS remote control system is the core part of the system, transmitting control information and acquiring operating status. It is the link between the upper computer control system and the underlying motor. The core part consists of an ARM7 processor LPC2134 and a GPRS wireless communication module MC35i. Communication between the LPC2134 and the GPRS communication module MC35i is achieved through serial communication, as shown in Figure 3. The 8 pins of the standard serial port of the MC35i communication module's 16-23 pins for data input/output are DSR0, RING0, RXD0, TXD0, CTS0, RTS0, DTR0, and DCD0. It has fixed parameters: 8 data bits and 1 stop bit, a parity bit, and a baud rate between 300bps and 115000bps. In order to communicate normally with the switched reluctance motor speed control system, 1200bps is selected as the data transmission baud rate. The hardware handshake signal uses RTS/CTS, and the module's serial port supports the standard AT command set. [align=center]Figure 3 Pin Structure Diagram of GPRS Module MC35I[/align] Pins 24-29 of the module are SIM card pins. The CCVPP pin is used to detect whether the SIM card is properly inserted in the SIM card slot. CCCLK is used by the module to periodically detect the SIM card during this cycle; therefore, the CCVPP pin will periodically transition. The CCVCC pin is the power supply provided by the MC35i module to the SIM card. System Software Design This design adopts the Open Systems Interconnection (OSI) model defined by international standards organizations. The OSI/RM reference model includes seven protocol layers to define the protocol functions of data communication. Figure 4 shows the interconnection reference model structure diagram and the protocols involved in this design. [align=center] Figure 4 System Interconnection Reference Model Structure Diagram[/align] The diagram includes the information communication of several major parts, including the host computer, INTERNET, GPRS network, GPRS remote control board, switched reluctance motor debugging system, and switched reluctance motor. Among them, the communication between the GPRS remote control board and the GPRS network is realized through PPP (point-to-point protocol), the communication between the GPRS network and the INTERNET is realized through the GPRS gateway node, and the communication between the INTERNET and the host computer is realized through the TCP/IP protocol and through a visual interface. PPP Design and Implementation This design requires a GSM module that supports GPRS functionality. The mobile terminal connects to the GPRS module via a serial port. The module is then configured using AT commands, defining the PDP context and network service quality. A dial-up command to request GPRS service is then issued. The GPRS module's PPP protocol server program negotiates the connection. Upon receiving the dial-up command, the GPRS module attaches to the network, and the network allocates wireless link resources. At this point, the PPP protocol server in the GPRS module enters NETWORK state, obtains an IP address allocated by the network, and distributes it to the mobile terminal via the IPCP protocol. Thus, the mobile terminal establishes a transparent transmission channel between the serial port and GPRS using the PPP protocol, obtains its own IP address, and can communicate with the data center. The implementation flow is shown in Figure 5 of the PPT. [align=center]Figure 5 PPP Implementation Flowchart[/align] Design and Implementation of the TCP/IP Miniature Protocol Stack uIP uIP is an extremely small TCP/IP protocol stack suitable for embedded systems with microprocessors as low as 8-bit or 16-bit. It can be viewed as a code library providing defined functions to the system. uIP provides three functions to the system's underlying layer: uip_init(), uip_input(), and uip_periodic(). The application must provide a response function to uIP. The response function is called when a network or timed event occurs. Visual Interface Written in VB The TCP/IP protocol is the most important protocol on the Internet. This design uses VB to implement the functions of the TCP/IP server. The socket interface is the API of TCP/IP networks. Network socket data transmission is a special type of I/O. A socket is also a file descriptor. VB provides the Winsock space for network communication based on TCP/IP. When using sockets for network communication, one of the components must be a socket server listening for communication. To create the server, first create a service port number and start listening for client connection requests. A partial VB program is shown below: Private Sub Form_Load() Sockserver.LocalPort=3000 'Server port number Sockserver.Listen 'Start listening End Sub Private sub for_unload(cancel as integer) sockServer.Close end sub private sub sockserver_close() sockserver.close end sub private sub sockserver_connectionRequest(By ValREQID As long) sockserver.close sockserver.Accept REQID 'Represents the client's connection ID end sub private sub sockserver_DataArr(ByVal bytestotal As long) 'When data sent to the server arrives, generate the dataArr event. Receive data in the event Dim a as string Sockserver.Getdata a text1.Text=a End sub ... Conclusion In summary, the greatest advantage of using GPRS networks for remote control lies in its reliability. It can be used in harsh environments, and remote control and motor operation status reception can be achieved through internet-connected terminals. Furthermore, it enables multi-point to multi-point bidirectional control at low cost. Especially in harsh working environments such as oilfield pumping units, it can save significant manpower and resources while maintaining high efficiency.
Read next

CATDOLL 138CM Ya Torso Doll

Height: 138 Torso Weight: 18.5kg Shoulder Width: 30cm Bust/Waist/Hip: 64/59/74cm Oral Depth: 3-5cm Vaginal Depth: 3-15c...

Articles 2026-02-22