CN112383449B - Information sending method and device, electronic equipment and storage medium - Google Patents

Information sending method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112383449B
CN112383449B CN202011306456.2A CN202011306456A CN112383449B CN 112383449 B CN112383449 B CN 112383449B CN 202011306456 A CN202011306456 A CN 202011306456A CN 112383449 B CN112383449 B CN 112383449B
Authority
CN
China
Prior art keywords
server
information
network
terminal
narrow
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.)
Active
Application number
CN202011306456.2A
Other languages
Chinese (zh)
Other versions
CN112383449A (en
Inventor
陈�峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Woke Fusion Communication Co ltd
Original Assignee
Guangdong Woke Fusion Communication Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Woke Fusion Communication Co ltd filed Critical Guangdong Woke Fusion Communication Co ltd
Priority to CN202011306456.2A priority Critical patent/CN112383449B/en
Publication of CN112383449A publication Critical patent/CN112383449A/en
Application granted granted Critical
Publication of CN112383449B publication Critical patent/CN112383449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an information sending method, an information sending device, electronic equipment and a storage medium, which are used for detecting whether the connection state of a broadband network is abnormal or not; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, shortening the sending period of broadcasting information to the server through the narrow-band network; therefore, under the condition that the judging period of the server is not changed, the terminal can send more information in one judging period, and if the server still does not receive the information, the probability that the terminal has a fault is higher, so that the judging result of the server for judging the fault of the terminal is higher in accuracy, and the accuracy of the server for judging the fault condition of the terminal is improved.

Description

Information sending method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information sending method, an information sending apparatus, an electronic device, and a storage medium.
Background
At present, some terminals (such as interphones) can be connected with a public network to communicate with a server, can also communicate with other terminals in a narrow-band transmission mode, and have a relay function, and when the relay function is started, information received from the server or the information received from other terminals can be broadcasted in the narrow-band transmission mode.
For such a terminal, when used in a group, each terminal periodically sends information (e.g. heartbeat packet) to the server through a broadband for the server to determine whether the terminal is faulty, and the server returns a response signal to the information after receiving the information sent by the terminal, and if the number of times that the server cannot continuously receive the information sent by the terminal reaches a preset number threshold, it determines that the terminal is faulty (for example, the sending period of the terminal is 1min, the preset number threshold is 3 times, and if the terminal does not receive the information of a certain terminal within 3min, it determines that the terminal is faulty), generally, the larger the preset number threshold is, the more accurate the determination result is, but the longer the required determination period is, which is not good for the server to timely grasp the fault condition of each terminal, so that the server can timely grasp the fault condition of each terminal, the preset time threshold is generally smaller, so that the accuracy of the judgment result is reduced to a certain extent.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the embodiments of the present application is to provide an information sending method, an information sending device, an electronic device, and a storage medium, which are beneficial to improving the accuracy of the server in determining the terminal failure condition.
In a first aspect, an embodiment of the present application provides an information sending method, applied to a terminal, including:
A1. detecting whether the connection state of the broadband network is abnormal or not;
A2. if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network;
A3. detecting whether a response signal sent back by a server is received;
A4. if the response signal is not received, the sending period of broadcasting the information to the server through the narrow-band network is shortened.
In the information transmission method, the information in step a2 is a heartbeat packet.
In the information sending method, after step a3, the method further includes:
if the response signals are received after the last N times of broadcast information before the current moment is sent to the server, the sending period of the broadcast information to the server through the narrow-band network is prolonged; where N is a preset positive integer.
In the information sending method, step a1 includes:
sending information to a server through a broadband network;
detecting whether a response signal can be received through a broadband network;
if not, judging that the connection state of the broadband network is abnormal, and if so, judging that the connection state of the broadband network is normal.
In the information sending method, step a3 includes:
receiving data packets broadcast by other terminals through a narrow-band network;
and unpacking the data packet and detecting whether the data packet is a response signal sent back to the terminal by the server or not.
In a second aspect, an embodiment of the present application provides an information sending apparatus, which is applied to a terminal, and includes:
the first detection module is used for detecting whether the connection state of the broadband network is abnormal or not;
the first sending module is used for periodically broadcasting information to the server through the narrow-band network when the connection state of the wide-band network is abnormal;
the second detection module is used for detecting whether a response signal sent back by the server is received;
and the first execution module is used for shortening the period of broadcasting the information to the server through the narrow-band network when the response signal is not received.
In the information transmitting apparatus, the information broadcasted by the first transmitting module is a heartbeat packet.
The information sending device further comprises:
the second execution module is used for receiving response signals after the last N times of broadcast information before the current moment is sent to the server, and prolonging the sending period of the broadcast information to the server through the narrow-band network; where N is a preset positive integer.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a first processor and a first memory, where the first memory stores a computer program therein, and the first processor is configured to execute the step of the information sending method by calling the computer program stored in the first memory.
In a fourth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, where the computer program runs the steps of the information sending method when being executed by a processor.
Has the beneficial effects that:
according to the information sending method, the information sending device, the electronic equipment and the storage medium, whether the connection state of the broadband network is abnormal or not is detected; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, shortening the sending period of broadcasting information to the server through the narrow-band network; therefore, under the condition that the judgment period of the server is not changed, the terminal can send more information in one judgment period, and if the server still does not receive the information, the probability that the terminal has a fault is higher, so that the judgment result of the server for judging the fault of the terminal is higher in accuracy, and the accuracy of the server for judging the fault condition of the terminal is improved.
Drawings
Fig. 1 is a flowchart of an information sending method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an information sending apparatus according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in an orientation or positional relationship indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the device or element so referred to must have a particular orientation, be constructed and operated in a particular orientation, and are not to be construed as limiting the invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The following disclosure provides embodiments or examples for implementing different configurations of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Moreover, the present invention may repeat reference numerals and/or reference letters in the various examples, which have been repeated for purposes of simplicity and clarity and do not in themselves dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but those of ordinary skill in the art will recognize applications of other processes and/or uses of other materials.
Referring to fig. 1, an information sending method provided in an embodiment of the present application is applied to a terminal (which may be but not limited to an intercom, a mobile phone, a tablet computer, a smart watch, a camera, a sensing device, and the like, and the terminal has a function of communicating with a server through a public network, communicating with other terminals through a narrowband network, and having a relay function), and includes the steps of:
A1. detecting whether the connection state of the broadband network is abnormal or not;
A2. if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network;
A3. detecting whether a response signal sent back by a server is received;
A4. if the response signal is not received, the sending period of broadcasting the information to the server through the narrow-band network is shortened.
Generally, when the connection state of the broadband network is normal, the terminal sends information to the server through the broadband network, but when the connection state of the broadband network is abnormal, the information cannot be smoothly sent to the server through the broadband network, so that the server can judge that the terminal is in failure, but if the connection state of the broadband network is abnormal, the judgment result is misjudgment;
here, in order to reduce the probability of server misjudgment, when the connection status of the broadband network is abnormal, the terminal broadcasts the information through the narrowband network, so that other terminals with normal connection status of the broadband network forward the information to the server (after the terminal with normal connection status of the broadband network receives the information of the terminal through the narrowband network, the information is detected to determine whether the information is the information to be sent to the server, if the information is not received by the terminal, the information is forwarded to the server), if the terminal is not in fault, the server should be able to receive the information and send back a response signal after receiving the information (the server sends the response signal to the terminal with normal connection status of the broadband network, and the terminal with normal connection status of the broadband network broadcasts the response signal through the narrowband network, and finally the terminal receives the response signal through the narrowband network), if the response signal is not received, the server cannot receive the information of the terminal, at this time, the terminal shortens the sending period according to a preset first proportion, the terminal can send information for more times in one judging period under the condition that the judging period of the server is not changed, if the server still does not receive the information, the probability that the terminal has a fault is higher, at this time, the accuracy of the judging result of the server for judging the fault of the terminal is higher, and the server is favorable for improving the accuracy of the server for judging the fault condition of the terminal.
In addition, because the terminal shortens the sending period, when other terminals do not reach the node for sending the information, the terminal already sends the information for a plurality of times, at the moment, only a small amount of information is transmitted in the whole transmission channel, the loss rate is low, and therefore the reliability of judging the terminal fault condition by the server can be improved.
In step a4, the sending period is shortened according to a preset first ratio, which can be set according to actual needs, for example, 20% (i.e., the sending period is shortened to 20% of the original), 30% (i.e., the sending period is shortened to 20% of the original), and the like, but is not limited thereto.
Assuming that the preset time threshold is 5, the original sending period is 1min, the judging period of the server is 5min, after the terminal shortens the sending period to 20% of the original sending period, the shortened sending period is 12s, in the same judging period of 5min, the terminal sends 25 times of information, if the terminal still does not receive the information, the information is continuously received for 25 times, the terminal is judged to be in a fault, and the accuracy of the judging result is higher than that of the original judging result (namely the judging result which is judged according to the fact that the information is not continuously received for 5 times).
The information periodically transmitted (broadcasted) in step a2 may be heartbeat packets or other information for the server to analyze whether the terminal has failed.
In some preferred embodiments, step a3 is further followed by:
A5. if the response signals are received after the last N times of broadcast information before the current moment is sent to the server, the sending period of the broadcast information to the server through the narrow-band network is prolonged; where N is a preset positive integer.
After the information is broadcasted for the last N times before the current moment to the server, the response signals are received, which indicates that the terminal has no fault in the past period of time, and the probability that the terminal has no fault in the subsequent period of time is higher, so that the frequency of sending the information can be reduced, the power supply can be saved, and the calculation load of the server can be reduced. Wherein N may be set as needed, for example, N =10, but is not limited thereto.
The transmission period may be extended according to a preset second ratio, which may be set according to actual needs, for example, 200% (i.e., the transmission period is extended to 200% of the original), 300% (i.e., the transmission period is extended to 300%) or the like, but is not limited thereto. However, the extended sending period cannot be greater than the judgment period of the server, so as to prevent the server from judging the failure of the terminal because the server does not receive the information of the terminal in the judgment period.
For the terminal with the prolonged sending period, if the terminal can receive the response signal after sending the information each time, the terminal can always keep the prolonged sending period for sending the information; when the response signal is not received after a certain time of information transmission, the transmission cycle is restored to the initial transmission cycle so that the server can grasp the fault condition in time.
In some embodiments, step a1 includes:
A101. sending information to a server through a broadband network;
A102. detecting whether a response signal can be received through a broadband network;
A103. if not, judging that the connection state of the broadband network is abnormal, and if so, judging that the connection state of the broadband network is normal.
The information sent in a101 may be the same as or different from the periodically sent information; after the information is sent to the server through the broadband network, the response signal cannot be received through the broadband network, and the description information cannot be transmitted in the broadband network, so that the abnormal connection state of the broadband network can be judged.
The method of detecting the connection state of the broadband network is not limited thereto.
If the connection state of the broadband network of the terminal is normal, when the connection state of the broadband network of other terminals is abnormal, the terminal may be required to receive and upload information broadcasted by other terminals through the narrowband network, so when the terminal detects that the connection state of the broadband network is normal, the broadband network switching function can be actively started (the terminal which starts the network switching function can transmit information with other terminals through the narrowband network and can transmit information with the server through the broadband network, so that narrowband information of other terminals can be forwarded to the server, information issued by the server can also be broadcasted through the narrowband network), and the broadband network switching function can also be started under the control of the server. Thus, in some embodiments, step a1 is further followed by: A6. if the connection state of the broadband network is normal, the switching function of the broadband network is started. In other embodiments, step a1 is further followed by: A7. if the connection state of the broadband network is normal, the wide-narrow network switching function is started under the control of the server (namely, the wide-narrow network switching function is started after a starting instruction sent by the server is received).
If the wide and narrow network switching function is started under the control of the server, the server generally selects a terminal needing to start the function according to the position information of each terminal in the group, if the position of each terminal is fixed, the server selects the terminal needing to start the function according to the pre-stored position information, and if the position of the terminal is not fixed, the information periodically sent by the terminal also comprises the position information.
In addition, since turning on the wide-narrow network forwarding function accelerates power consumption, and therefore, when the remaining power is too low, it is not suitable to turn on the function, in some embodiments, after turning on the wide-narrow network forwarding function, the method further includes: A8. acquiring residual electric quantity information to judge whether the residual electric quantity is lower than a preset electric quantity threshold value; A9. if yes, the wide-narrow network switching function is closed. If the terminal starts the wide-narrow network switching function under the control of the server, after the wide-narrow network switching function is closed, the method further comprises the following steps: A10. sending a reminding message for closing the switching function of the wide and narrow network to the server; so that the server selects other terminals to replace the terminal to start the wide-narrow network switching function.
In other embodiments, after the wide-narrow network forwarding function is turned on, the method further includes: A11. acquiring residual electric quantity information to judge whether the residual electric quantity is lower than a preset electric quantity threshold value; A12. if yes, sending low-power alarm information to a server; A13. and closing the wide-narrow network forwarding function under the control of the server (namely closing the wide-narrow network forwarding function after receiving a closing instruction sent by the server).
Further, if the terminal starts the wide-narrow network forwarding function under the control of the server, the information periodically sent by the terminal also includes information of the remaining power, so that the server avoids the terminal whose remaining power is lower than the preset power threshold when selecting the terminal to start the wide-narrow network forwarding function. If the terminal actively starts the wide-narrow network forwarding function, in step a6, it is further determined whether the remaining power is not lower than the preset power threshold, and if yes, the wide-narrow network forwarding function is started.
Wherein, step A3 includes:
receiving data packets broadcast by other terminals through a narrow-band network;
and unpacking the data packet and detecting whether the data packet is a response signal sent back to the terminal by the server or not.
The server sends the response signal to other terminals with normal broadband network connection state, and the terminals with normal broadband network connection state broadcast the response signal through the narrow-band network, the response signal is sent in the form of data packets, and the terminals unpack and detect the data packets after receiving the data packets, so that whether the response signal is sent back to the terminal by the server can be determined.
As can be seen from the above, the information sending method detects whether the connection state of the broadband network is abnormal; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, shortening the sending period of broadcasting information to the server through the narrow-band network; therefore, under the condition that the judging period of the server is not changed, the terminal can send more information in one judging period, and if the server still does not receive the information, the probability that the terminal has a fault is higher, so that the judging result of the server for judging the fault of the terminal is higher in accuracy, and the accuracy of the server for judging the fault condition of the terminal is improved.
Referring to fig. 2, an information sending apparatus provided in an embodiment of the present application is applied to a terminal, and includes:
the first detection module 1 is used for detecting whether the connection state of the broadband network is abnormal;
the first sending module 2 is used for periodically broadcasting information to the server through the narrow-band network when the connection state of the wide-band network is abnormal;
the second detection module 3 is configured to detect whether a response signal sent back by the server is received;
the first executing module 4 is configured to shorten a period of broadcasting information to the server through the narrowband network when the response signal is not received.
The first execution module 4 shortens the sending period according to a preset first proportion, which can be set according to actual needs, for example, 20% (i.e., shortening the sending period to 20% of the original), 30% (i.e., shortening the sending period to 20% of the original), and the like, but is not limited thereto.
In some embodiments, the information broadcast by the first sending module 2 is a heartbeat packet or other information for the server to analyze whether the terminal has failed.
In some preferred embodiments, the information sending apparatus further includes a second execution module;
the second execution module is used for prolonging the sending period of the broadcast information to the server through the narrow-band network when the response signal is received after the last N times of broadcast information before the current moment is sent to the server; where N is a preset positive integer.
After the information is broadcasted for the last N times before the current moment to the server, the response signals are received, which indicates that the terminal has no fault in the past period of time, and the probability that the terminal has no fault in the subsequent period of time is higher, so that the frequency of sending the information can be reduced, the power supply can be saved, and the calculation load of the server can be reduced. Where N may be set as needed, for example, N =10, but is not limited thereto.
The transmission period may be extended according to a preset second ratio, which may be set according to actual needs, for example, 200% (i.e., the transmission period is extended to 200% of the original), 300% (i.e., the transmission period is extended to 300%) or the like, but is not limited thereto. However, the transmission period after the extension cannot be greater than the judgment period of the server, so as to prevent the server from judging the failure of the terminal because the server does not receive the information of the terminal in the judgment period.
After the sending period is prolonged, if the response signal can be received after each time of sending the information, the information can be sent by keeping the prolonged sending period; and once the response signal is not received after the information is sent for a certain time, the second execution module restores the sending period to the initial sending period so that the server can master the fault condition of the server in time.
In some embodiments, the first detection module 1, when detecting whether the broadband network connection status is abnormal,
sending information (which may be the same as or different from the periodically sent information) to a server through a broadband network;
detecting whether a response signal can be received through a broadband network;
if not, judging that the connection state of the broadband network is abnormal, and if so, judging that the connection state of the broadband network is normal.
After the information is sent to the server through the broadband network, the response signal cannot be received through the broadband network, and the description information cannot be transmitted in the broadband network, so that the abnormal connection state of the broadband network can be judged.
The method of detecting the connection state of the broadband network is not limited thereto.
If the connection state of the broadband network of the terminal is normal, when the connection state of the broadband network of other terminals is abnormal, the terminal may be required to receive and upload information broadcasted by other terminals through the narrowband network, so when the terminal detects that the connection state of the broadband network is normal, the broadband network switching function can be actively started (the terminal which starts the network switching function can transmit information with other terminals through the narrowband network and can transmit information with the server through the broadband network, so that narrowband information of other terminals can be forwarded to the server, information issued by the server can also be broadcasted through the narrowband network), and the broadband network switching function can also be started under the control of the server.
Therefore, in some embodiments, the information sending apparatus further includes a first starting module, where the first starting module is configured to start the wide-narrow network switching function when the connection state of the broadband network is normal.
In other embodiments, the information sending apparatus further includes a second starting module, where the second starting module is configured to start the wide-narrow network forwarding function under the control of the server when the broadband network connection state is normal (that is, start the wide-narrow network forwarding function after receiving a start instruction sent by the server).
If the wide and narrow network switching function is turned on under the control of the server, the server generally selects a terminal that needs to turn on the function according to the location information of each terminal in the group, if the location of each terminal is fixed, the server selects a terminal that needs to turn on the function according to the pre-stored location information, and if the location of the terminal is not fixed, the information periodically transmitted by the first transmitting module 2 further includes the location information.
In addition, since the power consumption is accelerated by starting the wide-narrow network switching function, when the remaining power is too low, the function is not suitable to be started, and therefore, in some embodiments, the information sending apparatus further includes a first low power determination module and a first shutdown module; the first low-power judgment module is used for acquiring the residual power information to judge whether the residual power is lower than a preset power threshold value; the first closing module is used for closing the wide-narrow network switching function when the residual electric quantity is lower than a preset electric quantity threshold value. If the terminal starts the switching function of the wide and narrow network under the control of the server, the terminal also comprises a first reminding module, and the first reminding module is used for sending reminding information for closing the switching function of the wide and narrow network to the server after closing the switching function of the wide and narrow network; so that the server selects other terminals to replace the terminal to start the wide-narrow network switching function.
In other embodiments, the terminal fault determination device further includes a second low power determination module, a second reminding module, and a second shutdown module; the second low-power judgment module is used for acquiring the residual power information to judge whether the residual power is lower than a preset power threshold value; the second reminding module is used for sending low-power alarm information to the server when the residual power is lower than a preset power threshold; the second closing module is configured to close the wide-narrow network forwarding function under the control of the server (that is, close the wide-narrow network forwarding function after receiving a closing instruction sent by the server).
Further, if the terminal starts the wide-narrow network forwarding function under the control of the server, the information periodically transmitted by the first transmission module 2 further includes remaining power information, so that the server avoids the terminal whose remaining power is lower than the preset power threshold when the terminal is selected to start the wide-narrow network forwarding function. If the terminal actively starts the wide and narrow network switching function, the first starting module needs to judge whether the residual electric quantity is not lower than a preset electric quantity threshold value, and if so, the wide and narrow network switching function is started.
Wherein, when the second detection module 3 detects whether the response signal sent back by the server is received,
receiving data packets broadcast by other terminals through a narrow-band network;
and unpacking the data packet and detecting whether the data packet is a response signal sent back to the terminal by the server or not.
As described above, the information transmission device detects whether the connection state of the broadband network is abnormal; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, shortening the sending period of broadcasting information to the server through the narrow-band network; therefore, under the condition that the judging period of the server is not changed, the terminal can send more information in one judging period, and if the server still does not receive the information, the probability that the terminal has a fault is higher, so that the judging result of the server for judging the fault of the terminal is higher in accuracy, and the accuracy of the server for judging the fault condition of the terminal is improved.
Referring to fig. 3, an electronic device 100 according to an embodiment of the present application further includes a processor 101 and a memory 102, where the memory 102 stores a computer program, and the processor 101 is configured to execute the steps of the information sending method by calling the computer program stored in the memory 102.
The processor 101 is electrically connected to the memory 102. The processor 101 is a control center of the electronic device 100, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the electronic device.
The memory 102 may be used to store computer programs and data. The memory 102 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 101 executes various functional applications and data processing by calling a computer program stored in the memory 102.
In this embodiment, the processor 101 in the electronic device 100 loads instructions corresponding to processes of one or more computer programs into the memory 102 according to the following steps, and the processor 101 runs the computer programs stored in the memory 102, thereby implementing various functions: detecting whether the connection state of the broadband network is abnormal; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, the sending period of broadcasting the information to the server through the narrow-band network is shortened.
Therefore, the electronic equipment detects whether the connection state of the broadband network is abnormal or not; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, shortening the sending period of broadcasting information to the server through the narrow-band network; therefore, under the condition that the judgment period of the server is not changed, the terminal can send more information in one judgment period, and if the server still does not receive the information, the probability that the terminal has a fault is higher, so that the judgment result of the server for judging the fault of the terminal is higher in accuracy, and the accuracy of the server for judging the fault condition of the terminal is improved.
An embodiment of the present application further provides a storage medium, on which a computer program is stored, where the computer program runs the steps of the information sending method described above when being executed by a processor, so as to implement the following functions: detecting whether the connection state of the broadband network is abnormal; if the connection state of the broadband network is abnormal, periodically broadcasting information to a server through the narrowband network; detecting whether a response signal sent back by a server is received; if the response signal is not received, the sending period of broadcasting the information to the server through the narrow-band network is shortened.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, which are substantially the same as the present invention.

Claims (10)

1. An information sending method is applied to an interphone terminal and is characterized by comprising the following steps:
A1. detecting whether the connection state of the broadband network is abnormal or not;
A2. if the connection state of the broadband network is abnormal, periodically broadcasting information to other interphone terminals with normal broadband network connection state through the narrow-band network and forwarding the information to the server;
A3. detecting whether a response signal sent back by a server is received;
A4. if the response signal is not received, shortening the sending period of broadcasting information to the server through the narrow-band network;
the step A1 includes: if the connection state of the broadband network is judged to be normal, the broadband network switching function is started to transfer information between the interphone terminal and the server with other abnormal broadband networks, and the information sent by the server is broadcasted through the narrow-band network.
2. The method according to claim 1, wherein the information in step a2 is a heartbeat packet.
3. The method for sending information according to claim 1, wherein step a3 is followed by further comprising:
if the response signals are received after the last N times of broadcast information before the current moment is sent to the server, the sending period of the broadcast information to the server through the narrow-band network is prolonged; where N is a preset positive integer.
4. The method according to claim 1, wherein step a1 comprises:
sending information to a server through a broadband network;
detecting whether a response signal can be received through a broadband network;
if not, judging that the connection state of the broadband network is abnormal, and if so, judging that the connection state of the broadband network is normal.
5. The method according to claim 1, wherein step a3 comprises:
receiving data packets broadcast by other interphone terminals through a narrow-band network;
and unpacking the data packet and detecting whether the data packet is a response signal sent back to the interphone terminal by the server or not.
6. The utility model provides an information sending device, is applied to intercom terminal, its characterized in that includes:
the first detection module is used for detecting whether the connection state of the broadband network is abnormal or not;
the first sending module is used for periodically broadcasting information to other interphone terminals with normal broadband network connection states through the narrow-band network and forwarding the information to the server when the broadband network connection states are abnormal;
the second detection module is used for detecting whether a response signal sent back by the server is received;
the first execution module is used for shortening the period of broadcasting information to the server through the narrow-band network when the response signal is not received;
the first starting module is used for starting the wide-narrow network switching function when the connection state of the broadband network is normal so as to transfer the messages between the interphone terminal and the server with other abnormal broadband networks and broadcast the messages sent by the server through the narrow-band network.
7. The information transmission apparatus according to claim 6, wherein the information broadcasted by the first transmission module is a heartbeat packet.
8. The information transmission apparatus according to claim 6, characterized by further comprising:
the second execution module is used for receiving response signals after the last N times of broadcast information before the current moment is sent to the server, and prolonging the sending period of the broadcast information to the server through the narrow-band network; where N is a preset positive integer.
9. An electronic device, comprising a first processor and a first memory, wherein the first memory stores therein a computer program, and the first processor is configured to execute the steps of the information transmission method according to any one of claims 1 to 5 by calling the computer program stored in the first memory.
10. A storage medium on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the information transmission method according to any one of claims 1 to 5.
CN202011306456.2A 2020-11-19 2020-11-19 Information sending method and device, electronic equipment and storage medium Active CN112383449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011306456.2A CN112383449B (en) 2020-11-19 2020-11-19 Information sending method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011306456.2A CN112383449B (en) 2020-11-19 2020-11-19 Information sending method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112383449A CN112383449A (en) 2021-02-19
CN112383449B true CN112383449B (en) 2022-07-22

Family

ID=74585298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011306456.2A Active CN112383449B (en) 2020-11-19 2020-11-19 Information sending method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112383449B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113207084B (en) * 2021-04-16 2023-04-14 南京大鱼半导体有限公司 Method and device for searching terminal, storage medium and electronic equipment
WO2023123295A1 (en) * 2021-12-31 2023-07-06 海能达通信股份有限公司 Communication method and apparatus, broadband and narrowband terminal, and storage medium
CN114302346B (en) * 2021-12-31 2023-05-09 海能达通信股份有限公司 Communication method, broadband terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813270A (en) * 2014-03-05 2014-05-21 上海优思通信科技有限公司 Mobile communication network system
CN106851178A (en) * 2017-04-11 2017-06-13 陕西中联电科电子有限公司 A kind of method of the intercom access network audio/video conference with redundancy ability
CN108924777A (en) * 2018-07-27 2018-11-30 深圳市荣盛智能装备有限公司 A kind of redundance communicating method for individual soldier's command system
CN109963353A (en) * 2017-12-26 2019-07-02 普天信息技术有限公司 A kind of call re-establishment method and device of wide and narrow strip emerging system
CN111586888A (en) * 2020-04-09 2020-08-25 福建鸿兴福食品有限公司 Communication method, server, mobile device and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917613B2 (en) * 2005-11-15 2011-03-29 Microsoft Corporation Heartbeat heuristics
CN103685241A (en) * 2013-11-26 2014-03-26 中国科学院计算技术研究所 Adaptive heartbeat method and adaptive heartbeat system for maintaining long connection of TCP (transmission control protocol)
CN110830539B (en) * 2018-08-14 2022-09-06 贵州白山云科技股份有限公司 Network storage system and method
CN110943878A (en) * 2018-09-25 2020-03-31 海能达通信股份有限公司 Heartbeat packet transmission method, terminal and device with storage function
CN111490914B (en) * 2020-05-09 2022-06-10 北京每日优鲜电子商务有限公司 Vending cabinet monitoring method and device, vending cabinet and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103813270A (en) * 2014-03-05 2014-05-21 上海优思通信科技有限公司 Mobile communication network system
CN106851178A (en) * 2017-04-11 2017-06-13 陕西中联电科电子有限公司 A kind of method of the intercom access network audio/video conference with redundancy ability
CN109963353A (en) * 2017-12-26 2019-07-02 普天信息技术有限公司 A kind of call re-establishment method and device of wide and narrow strip emerging system
CN108924777A (en) * 2018-07-27 2018-11-30 深圳市荣盛智能装备有限公司 A kind of redundance communicating method for individual soldier's command system
CN111586888A (en) * 2020-04-09 2020-08-25 福建鸿兴福食品有限公司 Communication method, server, mobile device and computer readable storage medium

Also Published As

Publication number Publication date
CN112383449A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN112383449B (en) Information sending method and device, electronic equipment and storage medium
CN105471678B (en) The reason of household electrical appliance networking fails detection method, system and mobile terminal
CN109962827B (en) Equipment link detection method, device, equipment and readable storage medium
CN104125590A (en) Link fault diagnosis device and method thereof
CN111224809A (en) Fault log transmission method and device, electronic equipment and storage medium
CN112601270A (en) Terminal wake-up control method and device, electronic equipment and storage medium
CN109032320A (en) Battery back unit test method and relevant device
CN105553762A (en) Communication method and communication system between domestic appliance and mobile terminal and corresponding devices
KR20190078677A (en) Remote meter reading system, remote meter reading device and remote meter reading method
CN112615733B (en) Terminal fault judgment method and device, electronic equipment and storage medium
CN112671599B (en) Heartbeat information sending method and device and electronic equipment
CN112583617A (en) Fault determination method, server, control terminal and storage medium
CN110572315A (en) Information interaction method and device, robot and storage medium
CN115913884A (en) Communication method, etherCAT system, communication device and storage medium
CN111049741B (en) Method for improving communication reliability, communication system and terminal equipment
JP2009169631A (en) Radio communication terminal
CN113784317A (en) Method, device, equipment and medium for preventing screen-throwing initialization vehicle-triggering machine from failing to sleep
CN112584329A (en) Terminal relay control method and device, electronic equipment and storage medium
US9123225B2 (en) Robust alarm system with auxiliary processing sub-system
CN108650101B (en) Data transmission method and equipment
CN115460635A (en) Fault detection method, device, equipment and computer storage medium
CN113676894A (en) Service processing method and device
CN110650259A (en) Call request response method, device, server, terminal and storage medium
EP2822225A1 (en) A method and a server for home automation
CN117279057A (en) Link switching method and device

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