CN110798242A - Circuit, multi-channel device and multi-channel short message sending method - Google Patents
Circuit, multi-channel device and multi-channel short message sending method Download PDFInfo
- Publication number
- CN110798242A CN110798242A CN201911103318.1A CN201911103318A CN110798242A CN 110798242 A CN110798242 A CN 110798242A CN 201911103318 A CN201911103318 A CN 201911103318A CN 110798242 A CN110798242 A CN 110798242A
- Authority
- CN
- China
- Prior art keywords
- module
- circuit
- short message
- slave
- sending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000005540 biological transmission Effects 0.000 claims abstract description 24
- 238000004891 communication Methods 0.000 claims abstract description 21
- 230000002093 peripheral effect Effects 0.000 claims abstract description 16
- 230000003993 interaction Effects 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 description 6
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 230000007547 defect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000007774 longterm Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/40—Circuits
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a circuit, a multi-channel device and a multi-channel short message sending method, and relates to the technical field of communication. The method is used for solving the problems that the existing short message sending modes do not have the function of wireless network access and cannot realize the multi-network access and network backup functions of the whole system equipment. The circuit includes: the system comprises an MCU, a 4G unit, a network transmission unit and a power supply unit; the MCU comprises a first universal input/output port, at least two second universal input/output ports and a serial peripheral interface; the first general input/output port is used for setting a circuit where the MUC control unit is located as a main circuit module or a slave circuit module through a dial-up circuit; the second general input/output port is used for determining the address of a slave circuit module electrically connected with the master circuit module; the serial peripheral interface is used for information interaction among a plurality of slave circuit modules electrically connected with the main circuit module; the MCU is electrically connected with the 4G unit, the network transmission unit and the power supply unit respectively.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a circuit, a multi-channel device and a multi-channel short message sending method.
Background
Aiming at the functions of alarm reminding and information release in an emergency management system or a monitoring and early warning system, at present, three realization modes mainly exist, namely a short message modem with a USB (Universal Serial Bus) interface, a network short message server and a short message gateway.
The short message modem is a short message sending device connected by a USB interface, has the difference of single path and multi-path, and can support a 4G (the 4Generation mobile communication technology, Chinese: 4G network) network to send short messages at present, but has the defects of unstable power supply, easy interference of signals, low equipment integration level and no short message scheduling function of the multi-path device; the network short message server is a sending mode depending on a third-party short message server operator, is used for sending short messages on the basis of the public Internet, and has the defects that the network short message server is easily limited by the third-party operator and the stability of the network, cannot operate in an intranet or private network environment, is inconvenient in pre-storage cost, and can be used as a full value after being independently signed with the third-party operator for use; the short message gateway is the most common short message sending device at present.
At present, there are two kinds of providers, one is a short message gateway of a telecom operator, which has the advantages that short messages are directly sent to a server of the operator, so that the intermediate forwarding times and delay are reduced, but the short message gateway has the defects that the willingness of the telecom operator to provide services is low due to the fact that the short message sending quantity is not large in a general application scene; another kind of short message gateway produced by a common manufacturer can provide a single GSM (Global System for Mobile Communication, chinese) or CDMA (code division multiple access, chinese) short message gateway based on a 2G network at present, and does not have a short message scheduling function, nor does it support a query function of a signal status of each short message sending module, whether it is owed, and the like. In addition, in recent years, with successive announcements of quitting 2G networks by three operators in China, all types of short message sending equipment in the market cannot send short messages in 2G networks of GSM/CDMA systems.
In summary, the existing short message sending methods all have the problem that the existing short message sending methods do not have the function of wireless network access and cannot realize the multi-network access and network backup functions of the whole system equipment.
Disclosure of Invention
The embodiment of the invention provides a circuit, a multi-channel device and a multi-channel short message sending method, which are used for solving the problems that the existing short message sending modes do not have the function of wireless network access and cannot realize the multi-network access and network backup functions of the whole system equipment.
An embodiment of the present invention provides a circuit, including: the system comprises an MCU, a 4G unit, a network transmission unit and a power supply unit;
the MCU comprises a first universal input/output port, at least two second universal input/output ports and a serial peripheral interface; the first general input/output port is used for setting a circuit where the MUC control unit is located as a master circuit module or a slave circuit module through a dial-up circuit; the second general input/output port is used for determining the address of the slave circuit module electrically connected with the master circuit module; the serial peripheral interface is used for information interaction among the plurality of slave circuit modules electrically connected with the main circuit module;
the MCU is respectively electrically connected with the 4G unit, the network transmission unit and the power supply unit.
Preferably, the 4G unit includes a first communication module and a second communication module;
the first communication module and the second communication module are respectively electrically connected with the MCU.
Preferably, the power supply unit includes a first DC-DC power chip, a second DC-DC power chip, a first LDO, and a second LDO;
the power supply unit provides 4.2V power to the 4G unit through the first DC-DC power supply chip;
the power supply unit provides a 3.3V power supply to the MCU through the second DC-DC power supply chip and the first LDO;
the power supply unit provides 1.8V power to the network chip through the second DC-DC power chip and the second LDO.
The embodiment of the invention also provides a multi-channel device which comprises the at least 2 circuits.
Preferably, 1 of the circuits comprises a first general input/output port selection circuit for setting the circuit as a master circuit module, and at least 1 of the circuits comprises a first general input/output port selection circuit for setting the circuit as a slave circuit module;
when the selection circuit of the first general input/output port is set to be 1, the circuit where the selection circuit of the first general input/output port is located is a main circuit module; when the selection circuit of the first general input/output port is set to be 0, the circuit where the selection circuit of the first general input/output port is located is a slave circuit module.
Preferably, the second general input/output port of the master circuit module is electrically coupled with the second general input/output port of the slave circuit module respectively, and is used for determining the address of the slave circuit module;
the serial peripheral interface of the master circuit module is electrically connected with the serial peripheral interface of the slave circuit module respectively and used for carrying out command and data transmission between the master circuit module and the slave circuit module.
The embodiment of the invention also provides a multi-channel short message sending method based on the multi-channel device, which comprises the following steps:
receiving a command request sent by an upper layer, analyzing the command request, if the command request is a batch short message sending command, sending the batch short messages to a slave module corresponding to an idle short message channel according to the number of the idle short message channels at present, and sending a sending result fed back by the slave module to the upper layer;
and receiving a first short message sent by the slave module, and sending the first short message and a second short message received by the 4G unit of the master module to the upper layer.
Preferably, the parsing the command request further includes:
and if the state query request command is obtained through analysis, the state query request command is sent to the slave module electrically connected with the master module, so that the slave module feeds back state information according to the state query request command.
Preferably, if the batch short message sending command is obtained by analyzing, sending the batch short messages to the slave module corresponding to the idle short message channel according to the number of the current idle short message channels, specifically including:
and caching the batch short messages to a main module, and sending the batch short messages to the 4G units of the slave module through the 4G units of the main module according to the number of the current idle short message channels and an average sending rule.
The embodiment of the invention also provides a multi-channel short message sending method based on the multi-channel device, which comprises the following steps:
when a task sending request sent by a main module is detected, receiving batch short messages sent by the main module, and feeding back a sending result to the main module so that the main module sends the sending result to an upper layer;
and when the fact that the 4G unit of the slave module receives the first short message is detected, the first short message is sent to the master module, so that the master module sends the first short message to an upper layer.
The embodiment of the invention provides a circuit, a multi-channel device and a multi-channel short message sending method, wherein the circuit comprises the following steps: the system comprises an MCU, a 4G unit, a network transmission unit and a power supply unit; the MCU comprises a first universal input/output port, at least two second universal input/output ports and a serial peripheral interface; the first general input/output port is used for setting a main circuit module or a slave circuit module through a dial-up circuit; the second general input/output port is used for determining the address of the slave circuit module; the serial peripheral interface is used for information interaction between the master circuit module and the slave circuit module; the MCU is respectively electrically connected with the 4G unit, the network transmission unit and the power supply unit. The circuit adopts a 4G unit combined with an MCU (microprogrammed control unit), so that the dispatching function of sending multi-path short messages and the automatic access function of a 4G wireless network can be realized; the problems that a short message sending mode signal of the USB short message modem is unstable, power supply is unstable, the interference resistance is low, the short message sending failure rate is high and the like are solved; the problem that the short message server relies on the public Internet and is easy to receive the network speed and the server stability to cause unsuccessful short message sending is solved, and the problem that a 2G network short message gateway in the market cannot send short messages under the cancellation of a 2G network is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic circuit diagram according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a multi-channel device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a multi-path short message sending method according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of another multi-path short message sending method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 exemplarily shows a schematic circuit structure provided in an embodiment of the present invention, and as shown in fig. 1, the circuit mainly includes an MCU (Microcontroller Unit, english: micro control Unit), a 4G Unit, a network transmission Unit, and a power supply Unit.
The MCU adopts STM32F103RET6 with sufficient UART peripheral resources as a main control chip, the 4G unit adopts two SIMCOM7600CE communication module chips, and both can support GSM, TD-SCDMA (English: Time Division-Synchronous Code Division Multiple Access, Chinese: Time Division Synchronous Code Division Multiple Access), CDMA, WCDMA (English: Wideband Code Division Multiple Access, Chinese: Wideband Code Division Multiple Access), TDD-LTE (English: Time Division Long Term Evolution, Chinese: Time Division Long Term Evolution) and FDD-LTE (Chinese: Frequency Division Duplex Long Term Evolution) network communication; the network transmission unit adopts a CH9121 chip, and a TCP/IP protocol stack is integrated in the network transmission unit, so that bidirectional transparent transmission of network data packets and serial port data can be realized.
As shown in FIG. 1, the MCU is electrically connected with the 4G unit, the network transmission unit and the power supply unit respectively. The MCU includes a first general input/output port, at least two second general input/output ports and a serial peripheral interface. Specifically, the first general input/output port is used for setting a circuit where the MCU is located as a master circuit module or a slave circuit module through dial circuit setting, for example, when the dial circuit is set to 1, the circuit where the first general input/output port is located is set as the master circuit module; and when the dial-up circuit is set to be 0, the circuit where the first general input/output port is located is set as the slave circuit module. The second general input/output port is used for determining the address of the slave circuit module electrically connected with the main circuit module, so that tasks can be conveniently executed between the main circuit module and the slave circuit module; the serial peripheral interface is used for information interaction between the slave circuit modules electrically connected with the master circuit module, for example, information interaction such as command issuing, state returning, data transmission and the like between the master circuit module and the slave circuit modules. In the embodiment of the invention, through the arrangement of the master module and the slave module, the unified processing, the efficient execution and the channel expansion of the issued command or the reported information can be realized.
In the embodiment of the invention, the 4G unit comprises a first communication module and a second communication module, and the first communication module and the second communication module are respectively and electrically connected with the MUC control unit. One communication module can be a channel, and one circuit comprises two communication modules, namely 2 channels are designed on one circuit, so that the circuit can support at least 2 paths of short message sending channels and wireless network access, and the functions of task allocation processing and backup can be realized.
Furthermore, the power supply unit provided by the embodiment of the invention mainly comprises a first DC-DC power supply chip, a second DC-DC power supply chip, a first LDO (low dropout regulator, Chinese is: low dropout regulator) and a second LDO, wherein the power supply unit provides 4.2V power supply for the 4G unit through the first DC-DC power supply chip; providing a 3.3V power supply for the MCU through the second DC-DC power supply chip and the first LDO; and supplying 1.8V power to the network chip through the second DC-DC power supply chip and the second LDO. In practical applications, the first DC-DC power supply chip and the second DC-DC power supply chip may be chips with the model number of RT7272B, the first LDO may be chips with the model number of AMS1117-3.3, and the second LDO may be chips with the model number of AMS 1117-1.8.
In summary, the embodiment of the present invention provides a circuit, where a 4G unit is combined with an MCU, so as to implement a scheduling function of sending multiple short messages and an automatic access function of a 4G wireless network; the problems that a short message sending mode signal of the USB short message modem is unstable, power supply is unstable, the interference resistance is low, the short message sending failure rate is high and the like are solved; the problem that the short message server relies on the public Internet and is easy to receive the network speed and the server stability to cause unsuccessful short message sending is solved, and the problem that a 2G network short message gateway in the market cannot send short messages under the cancellation of a 2G network is solved.
Fig. 2 is a schematic structural diagram of a multi-channel device according to an embodiment of the present invention, as shown in fig. 2, the multi-channel device shown in the figure can support two or more (multiples of 2) short message channels, that is, the multi-channel device needs one master circuit module and multiple slave circuit modules. The components of the master circuit module and the slave circuit module in the multi-channel device are different only in that the master circuit module is provided with a network transmission unit, and the slave circuit module is not provided with the network transmission unit. The main circuit module is used for receiving the query command and the short message sending task issued by the upper layer service through the network transmission unit, scheduling the sending task according to the number of the short messages and the idle and busy state of the short message channel, and receiving and executing the sending task from the main circuit module or reporting corresponding data information from the slave circuit module. The multi-channel device formed by a plurality of circuits can realize the expansion of more channels, and is beneficial to realizing the efficient execution of a large batch of tasks.
As shown in fig. 2, the connection method between the master circuit module and the slave circuit module can be seen that the master circuit module utilizes a first general input/output port of the MCU to set 1 through the dial-up circuit and the slave circuit modules are all set to 0 when there are multiple channels; the serial peripheral interface is used for command issuing, state returning and data transmission between the master circuit module and the slave circuit module; the four second general input/output interface are used to determine the address of the slave circuit module in order to correctly execute the task.
The working process of the multi-channel device is divided into two modes of task response and information reporting. The task response mainly refers to that the main circuit module monitors and receives a command request issued by an upper layer through a TCP/IP protocol, analyzes the command content, puts information into a local cache if the command request is a batch short message sending, then sends a short message sending task to a corresponding slave circuit module according to an average sending rule by judging the number of the current idle short message channels and executes the sending task through a 4G unit, and returns to a successful sending state after the task is sent; if the state inquiry request is the on-line state inquiry request, if the on-line state inquiry request is the on-line state inquiry request, the network signal strength and the like, the state inquiry request is uniformly transmitted to all the control modules, and the state information is reported. The information reporting mainly refers to that each slave circuit module reports the state information of the slave circuit module or received new short messages, the process is that the slave circuit module MCU monitors the local 4G module, once new short messages are found, the new short messages are uploaded to the MCU of the master circuit module, then the short messages are uploaded to an upper layer service system through a TCP/IP protocol, and the state information of the local 4G module is reported regularly.
Furthermore, the 4G wireless network access included in the multi-channel device is a function possessed by the 4G unit, no additional new hardware circuit is needed in the main circuit module and the slave circuit module included in the multi-channel device, but the bottom layer driving protocol is designed, so that the 4G network signals of a plurality of channels are monitored in real time, an automatic switching function is designed at the upper layer, and when the signal intensity of a certain network is lower than a set value, the network of the next channel is automatically switched.
In practical application, if the multi-channel device is added to an emergency management system and a detection early warning system, the short board or the defect of various short message sending modes at present can be overcome, an efficient and accurate transmission path of information is provided for the processing of emergency events, and the efficiency of management personnel for processing the events is effectively improved; the device is added in the information issuing system, so that related workers and the common public can be accurately covered, and the right to know information and the prompt of danger are ensured to be in place.
Furthermore, the multi-channel device has the 4G wireless network access function, so that one-to-multiple-channel 4G wireless network backup function can be provided for the system, and the system can be ensured to establish a path for mutual communication with the outside in a space where the internet is disconnected or a wired network cannot be connected.
Fig. 3 is a schematic flow chart of a method for sending multiple short messages according to an embodiment of the present invention, and as shown in fig. 3, the method for sending multiple short messages mainly includes the following steps:
step 101, receiving a command request sent by an upper layer, analyzing the command request, if the command request is a batch short message sending command, sending the batch short messages to a slave module corresponding to an idle short message channel according to the number of the current idle short message channels, and sending a sending result fed back by the slave module to the upper layer;
and 102, receiving a first short message sent by the slave module, and sending the first short message and a second short message received by the 4G unit of the master module to the upper layer.
It should be noted that, in the above method, the execution main body is the main module, that is, the transmission of the multiple short messages is completed through the interaction between the main module and the upper layer and the slave module.
Before step 101, the master needs to establish a connection relationship with the upper layer and then establish a connection with the slave. It should be noted that there is no precedence when the master module establishes connection with the upper layer and the slave module.
After the main module is respectively connected with the upper layer and the slave module, the short message can be sent. Specifically, in the embodiment of the present invention, the master module, the slave module, and the upper layer mainly execute task response and information reporting. The content included in step 101 mainly corresponds to a task execution response, and accordingly, the content corresponding information included in step 102 is reported.
In step 101, when the MCU of the master module monitors and receives a command request issued by an upper layer through a TCP/IP protocol, the command request needs to be analyzed first, and if it is determined through the analysis that the content carried by the command request sends short message commands in batch, the master module needs to determine the number of slave modules connected to the master module and the number of slave modules whose short message channels are currently idle, and send the received batch short messages to the slave modules whose short message channels are currently idle in an average distribution manner, so that the slave modules receive the batch short messages. After the master module finishes sending the batch short messages, the sending results fed back by the slave module are received, and after the master module finishes receiving the sending results fed back by the slave module in sequence, all the received sending results are sent to the upper layer.
In the above flow, when the master module sends the batch short messages to the slave module, the batch short messages are sent through the 4G unit included in the master module, and meanwhile, the slave module receives the batch short messages through the 4G unit included in the slave module.
In the embodiment of the invention, after the main module receives the batch short message sending command sent by the upper layer, the received batch short messages are firstly cached in the main module, and then the number of the slave modules with empty short message channels in the slave module connected with the main module is judged.
In step 101, if it is determined that the content carried in the command request is a status query request command, the status query request command generally includes whether the slave module is online or network signal strength. The master module transmits the received status inquiry request command to each slave module coupled to the master module and receives status information fed back from the slave module after the transmission is completed. And transmits all the received state information to the upper layer. In practical applications, the master module sends the status check request command to the 4G unit of the slave module through the 4G unit included in the master module.
In step 102, if the master module receives the first short message sent by the slave module, the first short message is sent to the upper layer, it should be noted that the first short message received by the slave module is received by the 4G unit of the slave module, in practical applications, the 4G unit included in the master module also receives the short message, and the short message received by the 4G unit included in the master module is referred to as a second short message.
In the embodiment of the invention, the main module sends the first short message sent by the slave module and the second short message received by the main module 4G unit to the upper layer at the same time.
It should be noted that, in the embodiment of the present invention, the slave module not only sends the first short message to the master module, but also sends the state information of the slave module to the master module. Therefore, the master module not only sends the first short message and the second short message to the upper layer, but also sends the state information of the slave module to the upper layer according to the set time.
In the embodiment of the present invention, when the main module executes the task response and reports the information, the main module does not have a sequence relationship, that is, the step 101 and the step 102 do not represent an actual flow sequence, for example, the main module may execute the step 102 first and then execute the step 101.
Fig. 4 is a schematic flow chart of a method for sending multiple short messages according to an embodiment of the present invention, and as shown in fig. 4, the method for sending multiple short messages mainly includes the following steps:
It should be noted that, in step 201 and step 202, the execution subject is a slave module, that is, the multi-path short message sending is completed through the interaction between the slave module and the master module.
Before step 201, the slave module needs to establish connection with the master module, and when the slave module establishes connection with the master module, the master module may already establish connection with the upper layer, or may not temporarily establish connection with the upper layer.
In step 201, if the slave module detects a task request sent by the master module through the SPI interface, the 4G unit of the slave module receives the batch short messages sent by the 4G unit of the master module, and after the slave module receives the batch short messages, the slave module needs to feed back a sending result to the master module, where the sending result is matched with the batch short messages received by the slave module.
After the slave module sends the sending result to the master module, the master module sends the received sending result to the upper layer.
In step 102, when the 4G unit of the slave module receives the first short message, the slave module sends the received first short message to the master module, and after receiving the first short message sent by the slave module, the master module sends the first short message and the second short message received by the 4G unit of the master module to the upper layer in a unified manner.
It should be noted that, in step 201, the slave module may also receive a status query request command sent by the master module, and when the slave module receives the status query request command, status information of the slave module is sent to the master module.
In practical applications, the slave module does not have a strict time sequence when performing step 201 and step 202, that is, the slave module may perform step 202 first and then perform step 201.
In summary, the embodiment of the present invention provides a method for sending multiple short messages based on the multi-channel device, where the method includes: receiving a command request sent by an upper layer, analyzing the command request, if the command request is a batch short message sending command, sending the batch short messages to a slave module corresponding to an idle short message channel according to the number of the idle short message channels at present, and sending a sending result fed back by the slave module to the upper layer; and receiving a first short message sent by the slave module, and sending the first short message and a second short message received by the 4G unit of the master module to the upper layer. The circuit included in the multi-channel device can realize the master module and the slave module through the setting of the first general input/output port, and can ensure the uniform processing, the high-efficiency execution and the convenient channel expansion of the issued command or the reported information through the distinguishing of the master module and the slave module. The 4G unit included in the circuit is divided into two communication modules, and two channels included in one circuit can be realized on the basis of the two communication modules, so that the circuit can support at least two short message sending channels and wireless network access, and can realize the functions of allocation processing and backup. Further, a multi-channel device including the circuit includes a master module and a plurality of slave modules, and the multi-channel device can realize the expansion of more channels due to the increase of the number of the slave modules, thereby being beneficial to realizing the efficient execution of a large batch of tasks. The multi-channel short message sending method based on the multi-channel device solves the problem of high short message sending failure rate and the problem of unsuccessful short message sending caused by the fact that a network short message server relies on the public Internet and is easy to receive the network speed and the server stability; the problem that all 2G network short message gateways cannot send short messages is solved.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A circuit, comprising: the system comprises an MCU, a 4G unit, a network transmission unit and a power supply unit;
the MCU comprises a first universal input/output port, at least two second universal input/output ports and a serial peripheral interface; the first general input/output port is used for setting a circuit where the MUC control unit is located as a master circuit module or a slave circuit module through a dial-up circuit; the second general input/output port is used for determining the address of the slave circuit module electrically connected with the master circuit module; the serial peripheral interface is used for information interaction among the plurality of slave circuit modules electrically connected with the main circuit module;
the MCU is respectively electrically connected with the 4G unit, the network transmission unit and the power supply unit.
2. The circuit of claim 1, wherein the 4G unit comprises a first communication module and a second communication module;
the first communication module and the second communication module are respectively electrically connected with the MCU.
3. The circuit of claim 1, wherein the power supply unit comprises a first DC-DC power chip, a second DC-DC power chip, a first LDO, and a second LDO;
the power supply unit provides 4.2V power to the 4G unit through the first DC-DC power supply chip;
the power supply unit provides a 3.3V power supply to the MCU through the second DC-DC power supply chip and the first LDO;
the power supply unit provides 1.8V power to the network chip through the second DC-DC power chip and the second LDO.
4. A multi-channel device comprising at least 2 of the circuits of claims 1-3.
5. The multi-channel device of claim 4, wherein 1 of the circuits includes a first general purpose input/output port selection circuit for setting the circuit as a master circuit block, and at least 1 of the circuits includes the first general purpose input/output port selection circuits for setting the circuit as a slave circuit block;
when the selection circuit of the first general input/output port is set to be 1, the circuit where the selection circuit of the first general input/output port is located is a main circuit module; when the selection circuit of the first general input/output port is set to be 0, the circuit where the selection circuit of the first general input/output port is located is a slave circuit module.
6. The multi-channel device of claim 5, wherein the second general input/output port of the master circuit module is electrically coupled to the second general input/output port of the slave circuit module, respectively, for determining an address of the slave circuit module;
the serial peripheral interface of the master circuit module is electrically connected with the serial peripheral interface of the slave circuit module respectively and used for carrying out command and data transmission between the master circuit module and the slave circuit module.
7. A multi-channel short message sending method based on the multi-channel device of claims 4-6 is characterized by comprising the following steps:
receiving a command request sent by an upper layer, analyzing the command request, if the command request is a batch short message sending command, sending the batch short messages to a slave module corresponding to an idle short message channel according to the number of the idle short message channels at present, and sending a sending result fed back by the slave module to the upper layer;
and receiving a first short message sent by the slave module, and sending the first short message and a second short message received by the 4G unit of the master module to the upper layer.
8. The transmission method of claim 7, wherein the parsing the command request further comprises:
and if the state query request command is obtained through analysis, the state query request command is sent to the slave module electrically connected with the master module, so that the slave module feeds back state information according to the state query request command.
9. The sending method of claim 7, wherein if the batch short message sending command is obtained by analyzing, sending the batch short messages to the slave module corresponding to the idle short message channel according to the number of the current idle short message channels, specifically comprising:
and caching the batch short messages to a main module, and sending the batch short messages to the 4G units of the slave module through the 4G units of the main module according to the number of the current idle short message channels and an average sending rule.
10. A multi-channel short message sending method based on the multi-channel device of claims 4-6 is characterized by comprising the following steps:
when a task sending request sent by a main module is detected, receiving batch short messages sent by the main module, and feeding back a sending result to the main module so that the main module sends the sending result to an upper layer;
and when the fact that the 4G unit of the slave module receives the first short message is detected, the first short message is sent to the master module, so that the master module sends the first short message to an upper layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911103318.1A CN110798242B (en) | 2019-11-12 | 2019-11-12 | Circuit, multichannel device and multichannel short message sending method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911103318.1A CN110798242B (en) | 2019-11-12 | 2019-11-12 | Circuit, multichannel device and multichannel short message sending method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110798242A true CN110798242A (en) | 2020-02-14 |
CN110798242B CN110798242B (en) | 2024-06-14 |
Family
ID=69444318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911103318.1A Active CN110798242B (en) | 2019-11-12 | 2019-11-12 | Circuit, multichannel device and multichannel short message sending method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110798242B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113891257A (en) * | 2020-07-03 | 2022-01-04 | 千寻位置网络有限公司 | Short message sending method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2643571Y (en) * | 2003-04-14 | 2004-09-22 | 北京思及创环宇通信技术有限公司 | A multichannel short message apparatus |
CN104836690A (en) * | 2015-05-21 | 2015-08-12 | 重庆科技学院 | Device for multiple-communication-protocol mixing autonomous networking, and control method |
WO2018019009A1 (en) * | 2016-07-25 | 2018-02-01 | 中兴通讯股份有限公司 | Data processing method and system, peripheral component interconnect express device and host |
CN110267214A (en) * | 2019-05-16 | 2019-09-20 | 厦门网宿有限公司 | A kind of note transmission method, server and storage medium |
CN210578532U (en) * | 2019-11-12 | 2020-05-19 | 西安邦正公共安全技术有限公司 | Circuit and multichannel device |
-
2019
- 2019-11-12 CN CN201911103318.1A patent/CN110798242B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2643571Y (en) * | 2003-04-14 | 2004-09-22 | 北京思及创环宇通信技术有限公司 | A multichannel short message apparatus |
CN104836690A (en) * | 2015-05-21 | 2015-08-12 | 重庆科技学院 | Device for multiple-communication-protocol mixing autonomous networking, and control method |
WO2018019009A1 (en) * | 2016-07-25 | 2018-02-01 | 中兴通讯股份有限公司 | Data processing method and system, peripheral component interconnect express device and host |
CN110267214A (en) * | 2019-05-16 | 2019-09-20 | 厦门网宿有限公司 | A kind of note transmission method, server and storage medium |
CN210578532U (en) * | 2019-11-12 | 2020-05-19 | 西安邦正公共安全技术有限公司 | Circuit and multichannel device |
Non-Patent Citations (1)
Title |
---|
江铁成: "基于SMGP 协议的短信息平台系统设计", 景德镇学院学报, vol. 30, no. 03, pages 37 - 40 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113891257A (en) * | 2020-07-03 | 2022-01-04 | 千寻位置网络有限公司 | Short message sending method and system |
Also Published As
Publication number | Publication date |
---|---|
CN110798242B (en) | 2024-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2020380107B2 (en) | Method and apparatus for transmitting data in IoT system, and gateway device and storage medium thereof | |
CN110049014B (en) | OpenAPI conversion system and method based on multiple Modbus bus protocols | |
CN113066276A (en) | Communication fault monitoring method and device for electricity consumption information acquisition system and storage medium | |
CN112737935B (en) | Gateway-based data processing method, edge gateway and control system | |
CN105024939A (en) | OpenFlow-based distributed controller system in SDN network environment | |
CN103200070A (en) | Control terminal and control method thereof | |
CN110798242A (en) | Circuit, multi-channel device and multi-channel short message sending method | |
CN210578532U (en) | Circuit and multichannel device | |
CN112003753B (en) | Expected value judgment, acquisition, transmission and monitoring system and method based on configurable gateway | |
CN103034206A (en) | Industrial data collection system adopting late binding communication plug-in unit | |
CN103885821B (en) | SCADA pre-procesors and its Multi-channel multi-line journey real-time scheduling method | |
CN117749559A (en) | Communication method, device and system based on EtherCAT and computing equipment | |
CN116137603B (en) | Link fault detection method and device, storage medium and electronic device | |
CN104678337A (en) | Automatic detection method for performance indicators of optical digital relay protection testers | |
CN104639379A (en) | Proxy testing method and device | |
CN109600457B (en) | PHY-MAC interface control device and method with one mapping at most | |
CN113905104B (en) | Communication method and protocol conversion system for elevator intelligent networking | |
CN210780847U (en) | EtherCAT bus clock distribution system | |
CN110995490B (en) | In-situ module device and configuration-free method | |
CN105959351A (en) | Data transmission method, data transmission device, and communication management device | |
CN103516738A (en) | Message distribution method, device and system | |
CN100547560C (en) | A kind of computers group monitoring and method | |
CN110784365A (en) | Standby device of station control layer and entity device of transformer substation and automatic online method thereof | |
CN113645108B (en) | Intelligent household equipment monitoring system and method | |
CN113949706B (en) | Method and system for selecting mobile edge computing node |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: No. 72, Keji 2nd Road, High tech Zone, Xi'an City, Shaanxi Province, 710000, Tang Lege D201, Xi'an Software Park Patentee after: Xi'an bangzheng Emergency Management Technology Co.,Ltd. Country or region after: China Address before: 710075 tanglege D201, Xi'an Software Park, No. 72, Keji Second Road, high tech Zone, Xi'an, Shaanxi Patentee before: XI'AN BANGZHENG PUBLIC SAFETY TECHNOLOGY Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |