Dual-mode 4G public-private network online switching device and method based on data collection service

By designing a dual-mode 4G public private network online switching device, and using the serial port and USB interface to control SIM card switching, the problem of involuntary switching of public private networks is solved, and the independent switching in the 1.8G power 4G network signal area is realized, reducing manpower and waste of costs improves the flexibility and reliability of the network.

CN111935793BActive Publication Date: 2024-11-01STATE GRID JIANGSU ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010831970.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-18
Publication Date
2024-11-01
Estimated Expiration
2040-08-18

AI Technical Summary

Technical Problem

In the prior art, the switching between public networks and private networks has not yet achieved independent switching, resulting in the need of a large amount of human resources and costs to replace the equipment when the 1.8G power and 4G network signal coverage is insufficient, and the public network cannot be switched freely.

Method used

Design a dual-mode 4G public private network online switching device based on data acquisition service, including routing module, communication module, main control chip, power module and network port module, and control SIM card switching through serial port and USB interface to realize public private network free switching.

Benefits of technology

The independent switching of public-private networks in the 1.8G power 4G network signal area has been achieved, reducing the waste of human resources and costs, and improving the flexibility and reliability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111935793B_ABST
    Figure CN111935793B_ABST
Patent Text Reader

Abstract

A dual-mode 4G public-private network online switching device and method based on data acquisition services, the switching device includes a routing module, a communication module, a main control chip, a power module, and a network port module, communicates with the communication module through routing, reads the private network information obtained by the communication module, and once the private network signal strength reaches the communication requirement threshold, the routing module controls the pin SIM_CTLR through the control switch module to switch the SIM card to the public network card, and the routing module communicates with the public network through the public network card, thereby realizing the online switching of the dual-mode 4G public-private network based on the data acquisition service. The present invention also includes a data acquisition module, and is provided with multiple 485 acquisition interfaces and an additional 232 acquisition interface. The protection components and isolation chips used in the two acquisition interfaces can not only realize the versatility of the collected data, but also better protect the circuit when collecting data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power data information collection, and in particular to a dual-mode 4G public-private network online switching device and method for collecting data based on a data collection service. Background Art

[0002] There are generally two types of communication networks for power data information collection today: one is public mobile Internet (hereinafter referred to as the public network), and the other is the 1.8G mobile Internet dedicated to power (hereinafter referred to as the private network). The public network has been developed for many years, the network deployment is relatively complete, and the signal coverage area is relatively wide, which is suitable for general users and users who need to constantly change their work and living places. However, from the perspective of various effects of power data information collection, the private network has higher reliability than the public network, and can access the network for communication at any time. In addition, the private network allows users to freely control and improve service quality. What's more, the private network uses different levels of encryption methods to ensure information security and save costs.

[0003] Now with the development of private network technology, many places do not have 1.8G power 4G network signals due to the short deployment time of private networks. For remote data collection equipment, if you want to use the private network when there is no private network coverage, you must go to the site to replace the equipment, which will require a lot of human resources and waste costs. Therefore, the switching between the public network and the private network has not yet been able to achieve autonomous switching. Summary of the invention

[0004] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a device that can freely switch between public and private networks in areas with 1.8G power 4G network signals and a method for implementing such a device.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A dual-mode 4G public and private network online switching device based on data acquisition service comprises a routing module, a communication module, a main control chip, a power module and a network port module.

[0007] The routing module includes a routing power interface, a reset interface RST_GD, a network port interface, a routing USB interface, a routing switch module control pin SIM_CTLR, and a serial port.

[0008] The routing power supply interface includes +3.3V_350 and GND.

[0009] The network port interface includes a LAN1 interface and a LAN2 interface; the LAN1 interface includes LAN4_LED, TP4, TN4, RP4, and RN4; the LAN2 interface includes LAN0_LED, TP0, TN0, RP0, and RN0.

[0010] The routing USB interface includes USB_DM and USB_DP.

[0011] The routing serial port includes P0.9_RXD and P0.8_TXD.

[0012] The communication module includes a communication power interface, a communication USB interface, and a communication switch module control pin SIM_CTLR;

[0013] The communication power supply interface includes +3.9V and GND.

[0014] The communication USB interface includes USB_DM and USB_DP.

[0015] The main control chip includes a main control power interface, a reset interface RST_350 and a main control serial port.

[0016] The main control power interface includes +3.3V and GND.

[0017] The master serial port includes P0.9_RXD and P0.8_TXD.

[0018] The network port module includes a network port power interface and a network port interface.

[0019] The network port interface includes a LAN3 interface and a LAN4 interface; the LAN3 interface includes LAN4_LED, TP4, TN4, RP4, and RN4; the LAN4 interface includes LAN0_LED, TP0, TN0, RP0, and RN0.

[0020] The power supply module includes a reset interface and a power supply interface;

[0021] The reset interface includes a reset interface RST_350 and a reset interface RST_GD;

[0022] The power supply interface includes +3.3V, +3.3V_350, +3.9V and GND.

[0023] The RST_350 of the power module is electrically connected to the RST_350 of the main control chip; the RST_GD of the power module is electrically connected to the RST_GD of the router; the +3.3V of the power module is electrically connected to the +3.3V of the main control chip; the +3.3V_350 of the power module is electrically connected to the +3.3V_350 of the routing module and the network port; the +3.9V of the power module is electrically connected to the +3.9V of the communication module; the GND of the power module is electrically connected to the GND of the main control chip, the routing module, the communication module and the network port.

[0024] The LAN1 interface of the routing module and the LAN3 interface of the network port module are connected in correspondence with electrical signals; the LAN2 interface of the routing module and the LAN4 interface of the network port module are connected in correspondence with electrical signals; the USB interface of the routing module and the USB interface of the communication module are connected in correspondence with electrical signals; the switch module control of the routing module and the switch module control of the communication module are connected in correspondence with electrical signals; the routing serial port of the routing module and the main control serial port of the main control chip are connected in correspondence with electrical signals.

[0025] Working mode: After the power module is powered on, it provides power to the main control chip, routing module, communication module and network port module. After the main control chip is powered on and started, it controls the power module through RST_350 to control the power of the routing module, reads the data information of the routing module through the serial port and sends control instructions; the routing module controls the power module through RST_GD to control the power of the communication module, reads the data information of the communication module through the USB interface and sends control instructions, and controls the switching of SIM cards through SIM_CTRL to realize the free switching of public and private networks.

[0026] Preferably, it also includes a data acquisition module, which acquires data from the acquired device through the 485 interface and transmits the acquired data to the routing module through the LAN3 interface and the LAN4 interface.

[0027] Preferably, the data acquisition module includes a power module, a main control chip, a 485 acquisition module, a storage module, a clock module and a display module;

[0028] The power module supplies power to the main control chip, 485 acquisition module, storage module, clock module and display module; the main control chip is connected to the 485 acquisition module through the serial port, sends acquisition commands to the acquired device through the 485 acquisition module and reads the acquired information; the main control chip is connected to the clock and storage module through I2C, and the main control chip stores data information in the storage module, and the data information also includes the current time information provided by the clock module; the main control chip is connected to the display module through the I / O interface to display the normal operation status of the data acquisition module and the communication status of the 485 acquisition module.

[0029] Preferably, the 485 acquisition module includes 4 485 interfaces.

[0030] Preferably, the four 485 interfaces are connected in parallel and are electrically connected to the main control chip.

[0031] The 485 interface includes a signal isolation chip, a power isolation chip, a 485 chip and a protection component. The signal isolation chip includes TLP2362, the power isolation chip includes B_S-3WR2, and the protection component includes a transient suppression diode; the signal isolation chip performs an electrical signal-optical signal-electrical signal conversion through TLP2362 (TLP2362 uses photosensitive dye molecules to capture the energy of photons. After the dye molecules absorb the photon energy, they separate the negatively charged electrons and positively charged holes of the semiconductor to achieve electrical signal-optical signal- The power isolation chip realizes transformer coupling through B_S-3WR2, the 485 chip converts the TTL protocol into the 485 protocol, the protection component realizes the protection of the 485 signal through the transient suppression diode, the command output by the main control chip completes the signal conversion through the signal isolation chip, the converted signal is input to the 485 chip for protocol conversion, and the protection component outputs the converted signal to the sampled device; the sampled data is then transmitted back to the main control chip through the protection component, the 485 chip, and the signal isolation chip in sequence.

[0032] Preferably, the protection component also includes a discharge tube, a resettable fuse and a varistor, one end of the varistor is connected to the housing, and the other end is connected to the 485 chip circuit, one end of the discharge tube is connected to the housing, and the other end is connected to the resettable fuse, and the resettable fuse is directly connected to the 485 chip circuit to prevent lightning strikes.

[0033] The 485 acquisition circuit also includes a 232 interface.

[0034] Preferably, the 232 interface includes a signal isolation chip, a power isolation chip, a 232 chip and a protection component, wherein the signal isolation chip includes TLP2362, the power isolation chip includes B_S-3WR2, and the protection component includes a transient suppression diode; the signal isolation chip performs an electrical signal-optical signal-electrical signal conversion through TLP2362 (TLP2362 uses photosensitive dye molecules to capture the energy of photons. After the dye molecules absorb the photon energy, they separate the negatively charged electrons and positively charged holes of the semiconductor to achieve electrical signal-optical signal conversion). The power isolation chip realizes transformer coupling through B_S-3WR2, the 232 chip converts the TTL protocol into the 232 protocol, the protection component realizes the protection of the 232 signal through the transient suppression diode, the instruction output by the main control chip completes the signal conversion through the signal isolation chip, the converted signal is input to the 232 chip for protocol conversion, and the protection component outputs the converted signal to the sampled device; the sampled data is then transmitted back to the main control chip through the protection component, the 232 chip, and the signal isolation chip in sequence.

[0035] The protection component also includes a discharge tube, a self-recovering fuse and a varistor to prevent lightning strikes.

[0036] The present invention also proposes a dual-mode 4G public-private network online switching method based on data acquisition service, comprising a routing module, a communication module, a main control chip, a power module, a network port, and a data acquisition module; the communication module comprises two SIM cards, one SIM card is a public network card, and the other SIM card is a private network card;

[0037] The routing module communicates with the communication module through the USB interface and reads the private network information obtained by the communication module. If the private network signal strength reaches the communication requirement threshold, the routing module communicates with the private network through the private network card, and the data acquisition module is connected to the server platform through the private network.

[0038] If the signal strength does not meet the communication requirement threshold, the routing module controls the pin SIM_CTLR through the control switch module to switch the SIM card to the public network card. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network.

[0039] Preferably, during the idle period of public network communication, the routing module switches the SIM card to the private network card by controlling the switch module control pin SIM_CTLR, and reads the private network information obtained by the communication module again. If the private network signal strength reaches the communication requirement threshold, the routing module performs private network communication through the private network card, and the data acquisition module is connected to the server platform through the private network;

[0040] If the signal strength does not meet the communication requirement threshold, the routing module switches the SIM card to the public network card through the control switch module control pin SIM_CTLR. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network, thereby realizing the detection and switching of the public-private network during the idle period of public network communication.

[0041] Preferably, in the case of private network communication, the routing module reads the private network information obtained by the communication module. If the private network signal strength reaches the communication requirement threshold, the routing module performs private network communication through the private network card, and the data acquisition module is connected to the server platform through the private network;

[0042] If the signal strength does not meet the communication requirement threshold, the routing module switches the SIM card to the public network card by controlling the switch module control pin SIM_CTLR. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network, thereby realizing the detection of poor private network communication signals and the network switching from the private network to the public network when the private network communication signal is poor.

[0043] (1) The routing module communicates with the communication module through the USB interface and reads the private network information obtained by the communication module. If the signal strength of the private network reaches the communication requirement threshold, the routing module communicates with the private network through the private network card. If the signal strength does not reach the communication requirement threshold, the routing module controls the pin SIM_CTLR of the control switch module to switch the SIM card to the public network card, and the routing module communicates with the public network through the public network card, thereby realizing the online switching of the dual-mode 4G public and private networks based on the data collection service.

[0044] (2) The present invention also provides a 485 acquisition module, a storage module, a clock module and a display module; the main control chip is connected to the 485 acquisition module through a serial port, and sends an acquisition command to the acquired device through the 485 acquisition module and reads the acquired information; the main control chip is connected to the clock and storage modules through I2C, and the main control chip stores data information in the storage module, and the data information also includes the current time information provided by the clock module; the main control chip is connected to the display module through an I / O interface to display the normal operation status of the data acquisition module and the communication status of the 485 acquisition module. In this way, data acquisition is realized.

[0045] (3) The 485 interface of the present invention includes a signal isolation chip, a power isolation chip, a 485 chip and a protection component. The signal isolation chip includes TLP2362, the power isolation chip includes B_S-3WR2, and the protection component includes a transient suppression diode. The signal isolation chip performs the conversion of electrical signal-optical signal-electrical signal through TLP2362. TLP2362 uses photosensitive dye molecules to capture the energy of photons. After absorbing the energy of photons, the dye molecules separate the negatively charged electrons and positively charged holes of the semiconductor, thereby realizing the conversion of electrical signal-optical signal-electrical signal, thereby realizing the protection of circuit signals.

[0046] (4) The protection component of the present invention also includes a discharge tube, a resettable fuse and a varistor. One end of the discharge tube is connected to the housing, and the other end is connected to the resettable fuse. The resettable fuse is directly connected to the 485 chip circuit. The discharge tube realizes the function of preventing lightning strikes.

[0047] (5) Four 485 interfaces and one 232 interface are set up, which can realize four 485 communications and one 232 communication, thereby realizing multi-channel information collection of the equipment and improving the versatility of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 Schematic diagram of the circuit structure of a dual-mode 4G public-private network online switching device based on data collection services;

[0049] Figure 2 It is a schematic diagram of the circuit structure of the data acquisition module;

[0050] Figure 3 This is a schematic diagram of the circuit structure of the 485 acquisition module;

[0051] Figure 4 This is a schematic diagram of the 485 interface circuit structure;

[0052] Figure 5 Schematic diagram of the circuit structure of the protection component;

[0053] Figure 6 This is a schematic diagram of the 232 chip circuit structure. DETAILED DESCRIPTION

[0054] In order to provide a further understanding of the purpose, structure, features, and functions of the present invention, the following detailed description is given in conjunction with the embodiments.

[0055] Example 1: Figure 1 As shown, a dual-mode 4G public-private network online switching device based on data acquisition service includes a power module 4, a network port module 5, a communication module 2, a main control chip 3, and a routing module 1.

[0056] The routing module 1 includes a power interface 11 routing the power interface 11, a reset interface RST_GD 12, a network port interface 13, a USB interface 14 routing the USB interface 14, a switch module control pin SIM_CTLR 15 routing the switch module control pin SIM_CTLR15, and a serial port 16 routing the serial port 16.

[0057] The routing power interface 11 includes +3.3V_350 and GND.

[0058] The network port interface 13 includes a LAN1 interface 131 and a LAN2 interface 132; the LAN1 interface 131 includes LAN4_LED, TP4, TN4, RP4, and RN4; and the LAN2 interface 132 includes LAN0_LED, TP0, TN0, RP0, and RN0.

[0059] The USB interface 14 routing USB interface 14 includes USB_DM and USB_DP.

[0060] The serial port 16 routing serial port 16 includes P0.9_RXD and P0.8_TXD.

[0061] The communication module 2 comprises a power supply interface 21, a USB interface 22, a switch module control pin SIM_CTLR 23, and a switch module control pin SIM_CTLR 23;

[0062] Power supply interface 21 Communication power supply interface 21 includes +3.9V and GND.

[0063] The USB interface 22 includes USB_DM and USB_DP.

[0064] The master control chip 3 includes a master control power interface 31 , a master control reset interface RST_350 32 and a master control serial port 33 .

[0065] The main control power interface 31 includes +3.3V and GND.

[0066] The master serial port 33 includes P0.9_RXD and P0.8_TXD.

[0067] The network port module 5 includes a network port power interface 51 and a network port interface 52 .

[0068] The network port interface 52 includes a LAN3 interface 521 and a LAN4 interface 522; the LAN1 interface 521 includes LAN4_LED, TP4, TN4, RP4, and RN4; and the LAN2 interface 522 includes LAN0_LED, TP0, TN0, RP0, and RN0.

[0069] The power module 4 includes a power reset interface 41 and a power interface 42;

[0070] The power reset interface 41 includes a power reset interface RST_350 and a power reset interface RST_GD;

[0071] The power interface 42 includes power +3.3V, power +3.3V_350, power +3.9V and power GND.

[0072] The power reset interface RST_350 of the power module 4 is electrically connected to the master reset interface RST_350 of the main control chip 3; the power reset interface RST_GD of the power module 4 is electrically connected to the routing reset interface RST_GD of the routing module 1; the power +3.3V of the power module 4 is electrically connected to the master +3.3V of the main control chip 3; the power +3.3V_350 of the power module 4 is electrically connected to the routing +3.3V_350 of the routing module 1 and the network port module 5; the power +3.9V of the power module 4 is electrically connected to the communication +3.9V of the communication module 2; the power GND of the power module 4 is electrically connected to the GND of the main control chip 3, the routing module 1, the communication module 2 and the network port module 5.

[0073] The LAN1 interface 131 of the routing module 1 and the LAN3 interface 521 of the network port module 5 are connected in correspondence with electrical signals; the LAN2 interface 132 of the routing module 1 and the LAN4 interface 522 of the network port module 5 are connected in correspondence with electrical signals; the USB interface 14 of the routing module 1 routes the USB interface 14 to communicate with the USB interface 22 of the communication module 2 and the USB interface 22 is connected in correspondence with electrical signals; the switch module control pin SIM_CTLR 15 of the routing module 1 routes the switch module control pin SIM_CTLR 15 to the switch module control pin SIM_CTLR 23 of the communication module 2 and the communication switch module control pin SIM_CTLR 23 is connected in correspondence with electrical signals; the serial port 16 of the routing module 1 routes the serial port 16 to the serial port 33 of the main control chip 3 and the serial port 33 is connected in correspondence with electrical signals.

[0074] Working mode: After the power module is powered on, it provides power to the main control chip, routing module, communication module and network port module. After the main control chip is powered on and started, it controls the power module through RST_350 to control the power of the routing module, reads the data information of the routing module through the serial port and sends control instructions; the routing module controls the power module through RST_GD to control the power of the communication module, reads the data information of the communication module through the USB interface and sends control instructions, and controls the switching of SIM cards through SIM_CTRL to realize the free switching of public and private networks.

[0075] Preferably, it also includes a data acquisition module 6, which collects data from the device through the 485 interface and transmits the collected data to the routing module 1 through the LAN3 interface 521 and the LAN4 interface 522.

[0076] Preferably, the data acquisition module includes a data acquisition power supply module 61, a data acquisition main control chip 62, a 485 acquisition module 63, a storage module 64, a clock module 65 and a display module 66;

[0077] The data acquisition power supply module 61 supplies power to the data acquisition main control chip 62, the 485 acquisition module 63, the storage module 64, the clock module 65 and the display module 66; the data acquisition main control chip 62 is connected to the 485 acquisition module 63 via the serial port, sends acquisition commands to the acquired device through the 485 acquisition module 63 and reads the acquired information; the data acquisition main control chip 62 is connected to the clock and storage module 64 via I2C, and the data acquisition main control chip 62 stores the data information in the storage module 64, and the data information also includes the current time information provided by the clock module 65; the data acquisition main control chip 62 is connected to the display module 66 via the I / O interface to display the normal operation status of the data acquisition module and the communication status of the 485 acquisition module 63.

[0078] Preferably, the 485 acquisition module 63 includes four 485 interfaces 7 .

[0079] Preferably, the four 485 interfaces 7 are connected in parallel and are electrically connected to the main control chip 62 .

[0080] The 485 interface 7 includes a signal isolation chip 71, a power isolation chip 72, a 485 chip 73 and a protection component 74. The signal isolation chip 71 includes TLP2362, the power isolation chip 72 includes B_S-3WR2, and the protection component 74 includes a transient suppression diode; the signal isolation chip 71 converts the electrical signal-optical signal-electrical signal through TLP2362, and TLP2362 uses photosensitive dye molecules to capture the energy of photons. After absorbing the photon energy, the dye molecules will separate the negatively charged electrons and positively charged holes of the semiconductor, thereby realizing the electrical signal-optical signal-electrical signal conversion. The signal is converted to protect the circuit signal. The power isolation chip 72 realizes transformer coupling through B_S-3WR2. The 485 chip 73 converts the TTL protocol to the 485 protocol. The protection component 74 protects the 485 signal through the transient suppression diode. The instruction output by the main control chip 62 completes the signal conversion through the signal isolation chip 71. The converted signal is input to the 485 chip for protocol conversion. The protection component 74 then outputs the converted signal to the sampled device; the sampled data is then transmitted back to the main control chip 62 through the protection component 74, the 485 chip 73, and the signal isolation chip 71 in sequence.

[0081] Preferably, the protection component 74 also includes a discharge tube, a resettable fuse and a varistor, one end of the varistor is connected to the housing, and the other end is connected to the 485 chip circuit, one end of the discharge tube is connected to the housing, and the other end is connected to the resettable fuse, and the resettable fuse is directly connected to the 485 chip circuit, thereby realizing a protection circuit to prevent lightning strikes.

[0082] The 485 acquisition module 63 also includes a 232 interface 8. Four 485 interfaces and one 232 interface are provided, so that four 485 communications and one 232 communication can be realized, thereby realizing multi-channel information acquisition of the device and improving the versatility of the device.

[0083] Preferably, the 232 interface 8 is an interface circuit obtained by replacing the 485 chip with a 232 chip, and the remaining circuit components are the same as the 485 interface, that is, the 232 interface can also be protected from lightning strikes by protecting the circuit with protection components, signal isolation chips and power isolation chips.

[0084] Working mode: After the power module is powered on, it provides power to the main control chip, routing module, communication module and network port module. After the main control chip is powered on and started, it controls the power module through RST_350 to control the power of the routing module, reads the data information of the routing module through the serial port and sends control instructions; the routing module controls the power module through RST_GD to control the power of the communication module, reads the data information of the communication module through the USB interface and sends control instructions, and controls the switching of SIM cards through SIM_CTRL to realize the free switching of public and private networks.

[0085] The routing module communicates with the communication module through the USB interface, reads the private network information obtained by the communication module, and if the signal strength of the private network reaches the communication requirement threshold, the routing module communicates with the private network through the private network card. If the signal strength does not reach the communication requirement threshold, the routing module controls the pin SIM_CTLR of the control switch module to switch the SIM card to the public network card, and the routing module communicates with the public network through the public network card, thereby realizing the online switching of the dual-mode 4G public and private network based on the data collection service.

[0086] Embodiment 2: The present invention also proposes a dual-mode 4G public-private network online switching method based on data acquisition service, comprising a routing module, a communication module, a main control chip, a power module, a network port, and a data acquisition module; the communication module comprises two SIM cards, one SIM card is a public network card, and the other SIM card is a private network card;

[0087] The routing module communicates with the communication module through the USB interface and reads the private network information obtained by the communication module. If the private network signal strength reaches the communication requirement threshold, the routing module communicates with the private network through the private network card, and the data acquisition module is connected to the server platform through the private network.

[0088] If the signal strength does not meet the communication requirement threshold, the routing module controls the pin SIM_CTLR through the control switch module to switch the SIM card to the public network card. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network.

[0089] Preferably, during the idle period of public network communication, the routing module switches the SIM card to the private network card by controlling the switch module control pin SIM_CTLR, and reads the private network information obtained by the communication module again. If the private network signal strength reaches the communication requirement threshold, the routing module performs private network communication through the private network card, and the data acquisition module is connected to the server platform through the private network;

[0090] If the signal strength does not meet the communication requirement threshold, the routing module switches the SIM card to the public network card through the control switch module control pin SIM_CTLR. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network, thereby realizing the detection and switching of the public-private network during the idle period of public network communication.

[0091] Preferably, in the case of private network communication, the routing module reads the private network information obtained by the communication module. If the private network signal strength reaches the communication requirement threshold, the routing module performs private network communication through the private network card, and the data acquisition module is connected to the server platform through the private network;

[0092] If the signal strength does not meet the communication requirement threshold, the routing module switches the SIM card to the public network card by controlling the switch module control pin SIM_CTLR. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network, thereby realizing the detection of poor private network communication signals and the network switching from the private network to the public network when the private network communication signal is poor.

[0093] The present invention has been described by the above-mentioned relevant embodiments, however, the above-mentioned embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, changes and modifications made without departing from the spirit and scope of the present invention are all within the scope of patent protection of the present invention.

Claims

1. A dual-mode 4G public and private network online switching device based on data collection service, characterized in that: It comprises a routing module (1), a communication module (2), a main control chip (3), a power module (4), and a network port module (5); The routing module (1) includes a routing power interface (11), a routing reset interface RST_GD (12), a routing network port interface (13), a routing USB interface (14), a routing switch module control pin SIM_CTLR (15), and a routing serial port (16); The routing power interface (11) includes routing +3.3V_350 and routing GND; The routing network port interface (13) includes a LAN1 interface (131) and a LAN2 interface (132); the LAN1 interface (131) includes LAN4_LED, TP4, TN4, RP4, and RN4; the LAN2 interface (132) includes LAN0_LED, TP0, TN0, RP0, and RN0; The routing USB interface (14) includes USB_DM and USB_DP; The routing serial port (16) includes P0.9_RXD and P0.8_TXD; The communication module (2) comprises a communication power interface (21), a communication USB interface (22), and a communication switch module control pin SIM_CTLR (23); The communication power interface (21) includes communication +3.9V and communication GND; The communication USB interface (22) includes USB_DM and USB_DP; The main control chip (3) comprises a main control power interface (31), a main control reset interface RST_350 (32) and a main control serial port (33); The main control power interface (31) includes a main control +3.3V and a main control GND; The master serial port (33) includes P0.9_RXD and P0.8_TXD; The network port module (5) comprises a network port power interface (51) and a network port interface (52); The network port interface (52) includes a LAN3 interface (521) and a LAN4 interface (522); the LAN3 interface (521) includes LAN4_LED, TP4, TN4, RP4, and RN4; the LAN4 interface (522) includes LAN0_LED, TP0, TN0, RP0, and RN0; The power module (4) comprises a power reset interface (41) and a power interface (42); The power reset interface (41) comprises a power reset interface RST_350 and a power reset interface RST_GD; The power interface (42) includes power +3.3V, power +3.3V_350, power +3.9V and power GND; The power reset interface RST_350 of the power module (4) is electrically connected to the master reset interface RST_350 (32) of the master control chip (3); the power reset interface RST_GD of the power module (4) is electrically connected to the routing reset interface RST_GD (12) of the routing module (1); the power supply +3.3V of the power module (4) is electrically connected to the master +3.3V of the master control chip (3); the power supply +3.3V_350 of the power module (4) is electrically connected to the routing +3.3V_350 of the routing module (1); the power supply +3.9V of the power module (4) is electrically connected to the communication +3.9V of the communication module (2); the power supply GND of the power module (4) is electrically connected to the GND of the master control chip (3), the routing module (1) and the communication module (2); The LAN1 interface (131) of the routing module (1) and the LAN3 interface (521) of the network port module (5) are connected by corresponding electrical signals; the LAN2 interface (132) of the routing module (1) and the LAN4 interface (522) of the network port module (5) are connected by corresponding electrical signals; the routing USB interface (14) of the routing module (1) and the communication USB interface (22) of the communication module (2) are connected by corresponding electrical signals; the routing switch module control pin SIM_CTLR (15) of the routing module (1) and the communication switch module control pin SIM_CTLR (23) of the communication module (2) are connected by electrical signals; and the routing serial port (16) of the routing module (1) and the main control serial port (33) of the main control chip (3) are connected by corresponding electrical signals.

2. The dual-mode 4G public-private network online switching device based on data collection service according to claim 1 is characterized in that: It also includes a data acquisition module (6), which acquires data from the acquired device via a 485 interface, and transmits the acquired data to the routing module (1) via a LAN3 interface (521) and a LAN4 interface (522).

3. The dual-mode 4G public-private network online switching device based on data collection service according to claim 2 is characterized in that: The data acquisition module (6) comprises a data acquisition power supply module (61), a data acquisition main control chip (62), a 485 acquisition module (63), a storage module (64), a clock module (65) and a display module (66); The data acquisition power supply module (61) supplies power to the data acquisition main control chip (62), the 485 acquisition module (63), the storage module (64), the clock module (65) and the display module (66); the data acquisition main control chip (62) is connected to the 485 acquisition module (63) via a serial port, and the 485 acquisition module (63) sends an acquisition command to the acquired device and reads the acquired information; the data acquisition main control chip (62) is connected to the clock module (65) and the storage module (64) via an I2C, and the data acquisition main control chip (62) stores data information in the storage module (64), and the data information also includes current time information provided by the clock module (65); the data acquisition main control chip (62) is connected to the display module (66) via an I / O interface to display the normal operating status of the data acquisition module (6) and the communication status of the 485 acquisition module (63).

4. The dual-mode 4G public-private network online switching device based on data collection service according to claim 3 is characterized in that: The 485 acquisition module (63) comprises four 485 interfaces (7).

5. The dual-mode 4G public-private network online switching device based on data collection service according to claim 4 is characterized in that: The four 485 interfaces (7) are connected in parallel and are electrically connected to the data acquisition main control chip (62).

6. The dual-mode 4G public-private network online switching device based on data collection service according to claim 4 is characterized in that: The 485 interface (7) comprises a signal isolation chip (71), a power isolation chip (72), a 485 chip (73) and a 485 interface protection component (74); the signal isolation chip (71) comprises TLP2362, the power isolation chip (72) comprises B_S-3WR2, and the 485 interface protection component (74) comprises a transient suppression diode; the signal isolation chip (71) performs an electrical signal-optical signal-electrical signal conversion through TLP2362, and the power isolation chip (72) realizes transformer coupling through B_S-3WR2 The 485 chip converts the TTL protocol into the 485 protocol, the 485 interface protection component (74) protects the 485 signal through a transient suppression diode, the command output by the main control chip completes the signal conversion through the signal isolation chip (71), the converted signal is input to the 485 chip (73) for protocol conversion, and the 485 interface protection component (74) outputs the converted signal to the collected device; the collected data is then transmitted back to the data collection main control chip (62) through the 485 interface protection component (74), the 485 chip, and the signal isolation chip (71) in sequence.

7. The dual-mode 4G public-private network online switching device based on data collection service according to claim 6 is characterized in that: The 485 interface protection component (74) further comprises a discharge tube, a resettable fuse and a varistor, one end of the varistor is connected to the housing and the other end is connected to the 485 chip circuit, one end of the discharge tube is connected to the housing and the other end is connected to the resettable fuse, and the resettable fuse is directly connected to the 485 chip circuit to prevent lightning strikes.

8. The dual-mode 4G public-private network online switching device based on data collection service according to claim 3 is characterized in that: The 485 acquisition module (63) also includes a 232 interface (8).

9. The dual-mode 4G public-private network online switching device based on data collection service according to claim 8, characterized in that: The 232 interface (8) is obtained by replacing the 485 chip (73) in the 485 interface (7) with a 232 chip (81), and the remaining components are the same as those of the 485 interface (7).

10. The dual-mode 4G public-private network online switching device based on data collection service according to claim 9, characterized in that: The protection components of the 232 interface (8) also include a discharge tube, a self-recovering fuse and a varistor to prevent lightning strikes.

11. A switching method using the dual-mode 4G public-private network online switching device based on data collection service according to claims 1-10, characterized in that: It includes routing module, communication module, main control chip, power module, network port module and data acquisition module; the communication module includes two SIM cards, one SIM card is a public network card and the other is a private network card; The routing module communicates with the communication module through the USB interface and reads the private network information obtained by the communication module. If the private network signal strength reaches the communication requirement threshold, the routing module communicates with the private network through the private network card, and the data acquisition module is connected to the server platform through the private network. If the signal strength does not meet the communication requirement threshold, the routing module controls the pin SIM_CTLR through the control switch module to switch the SIM card to the public network card. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network.

12. The switching method of the dual-mode 4G public-private network online switching device based on data collection service according to claim 11, characterized in that: During the idle period of public network communication, the routing module switches the SIM card to the private network card by controlling the switch module control pin SIM_CTLR, and reads the private network information obtained by the communication module again. If the private network signal strength reaches the communication requirement threshold, the routing module communicates with the private network through the private network card, and the data acquisition module is connected to the server platform through the private network; If the signal strength does not meet the communication requirement threshold, the routing module switches the SIM card to the public network card through the control switch module control pin SIM_CTLR. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network, thereby realizing the detection and switching of the public-private network during the idle period of public network communication.

13. The switching method of the dual-mode 4G public-private network online switching device based on data collection service according to claim 11, characterized in that: In the case of private network communication, the routing module reads the private network information obtained by the communication module. If the private network signal strength reaches the communication requirement threshold, the routing module conducts private network communication through the private network card, and the data acquisition module is connected to the server platform through the private network; If the signal strength does not meet the communication requirement threshold, the routing module switches the SIM card to the public network card by controlling the switch module control pin SIM_CTLR. The routing module communicates with the public network through the public network card, and the data acquisition module is connected to the server platform through the public network, thereby realizing the detection of poor private network communication signals and the network switching from the private network to the public network when the private network communication signal is poor.