CN114363396B - Dual-system communication channel construction method and device, electronic equipment and storage medium - Google Patents

Dual-system communication channel construction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114363396B
CN114363396B CN202111423220.1A CN202111423220A CN114363396B CN 114363396 B CN114363396 B CN 114363396B CN 202111423220 A CN202111423220 A CN 202111423220A CN 114363396 B CN114363396 B CN 114363396B
Authority
CN
China
Prior art keywords
communication channel
information
network communication
checking
channel
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
CN202111423220.1A
Other languages
Chinese (zh)
Other versions
CN114363396A (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.)
Beijing Honghe Aixue Education Technology Co ltd
Original Assignee
Beijing Honghe Aixue Education Technology 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 Beijing Honghe Aixue Education Technology Co ltd filed Critical Beijing Honghe Aixue Education Technology Co ltd
Priority to CN202111423220.1A priority Critical patent/CN114363396B/en
Publication of CN114363396A publication Critical patent/CN114363396A/en
Application granted granted Critical
Publication of CN114363396B publication Critical patent/CN114363396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method and a device for constructing a dual-system communication channel, electronic equipment and a storage medium. The method is applied to the electronic equipment, the electronic equipment is provided with a first system and a second system, and the method comprises the following steps: constructing a hardware communication channel between the first system and the second system, and sending channel construction information to the second system by the first system through the hardware communication channel; constructing a network communication channel between the first system and the second system based on the channel construction information; and checking the network communication channel. According to the method, the device, the electronic equipment and the storage medium for constructing the dual-system communication channel, which are provided by the application, after the network communication channel is constructed, the network connection error is found in time, and the correct construction of the dual-system communication channel is ensured.

Description

Dual-system communication channel construction method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and apparatus for constructing a dual-system communication channel, an electronic device, and a storage medium.
Background
Many electronic devices have two systems, such as large screen devices and the like. For business needs, it is often required that communication connection be possible between two systems of an electronic device, wherein one dual-system communication connection is a network connection. In the prior art, when network connection is constructed, a network client installed on one electronic device may be connected to a network server on another electronic device in an error manner, so that wrong network communication is constructed between two electronic devices, and network communication abnormality occurs between two systems of the same electronic device, thereby affecting normal operation of the electronic devices.
Disclosure of Invention
Accordingly, the present application is directed to a method, an apparatus, an electronic device, and a storage medium for constructing a dual-system communication channel, which solve the problems in the prior art and ensure normal communication between two systems of the electronic device.
Based on the above object, the present application provides a method for constructing a dual-system communication channel, which is applied to an electronic device, wherein the electronic device has a first system and a second system, and the method includes:
constructing a hardware communication channel between the first system and the second system, and sending channel construction information to the second system by the first system through the hardware communication channel;
constructing a network communication channel between the first system and the second system based on the channel construction information;
checking the network communication channel;
the communication channel construction is completed in response to determining that the verification result is correct;
responsive to determining that the verification result is incorrect, disconnecting the network communication channel between the first system and the second system, the first system modifying the channel construction information and transmitting the modified channel construction information to the second system through the hardware communication channel, reconstructing the network communication channel between the first system and the second system based on the modified channel construction information; and checking the reconstructed network communication channel until the checking result is correct.
Further, the verifying the network communication channel includes:
the second system acquires second check information from the first system through the network communication channel, and compares the second check information with the first check information stored in the second system;
responding to the fact that the comparison result of the second checking information and the first checking information is consistent, and checking results are correct; and in response to determining that the second verification information is inconsistent with the comparison result of the first verification information, the verification result is incorrect.
Further, the first check information and the second check information include MAC addresses of the electronic devices.
Further, the first verification information and the second verification information include a device unique ID of the electronic device;
before the network communication channel is checked, the first system generates and sends the device unique ID to the second system as the first check information, and the second system receives and stores the device unique ID.
Further, the encoding of the device unique ID includes randomly encoded data.
Further, the random coded data includes a random check code and a generation time.
Further, the channel construction information includes an IP address and a port number.
Based on the same inventive concept, the application also provides a dual-system communication channel construction device, which is applied to electronic equipment, wherein the electronic equipment is provided with a first system and a second system, and the device comprises:
a hardware channel construction module, configured to construct a hardware communication channel between the first system and the second system, where the first system sends channel construction information to the second system through the hardware communication channel;
a network channel construction module to construct a network communication channel between the first system and the second system based on the channel construction information;
the verification module is used for verifying the network communication channel;
the communication channel construction is completed in response to determining that the verification result is correct;
responsive to determining that the verification result is incorrect, disconnecting the network communication channel between the first system and the second system, the first system modifying the channel construction information and transmitting the modified channel construction information to the second system through the hardware communication channel, reconstructing the network communication channel between the first system and the second system based on the modified channel construction information; and checking the reconstructed network communication channel until the checking result is correct.
Based on the same inventive concept, the application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes a dual-system communication channel construction method when executing the program.
Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a dual-system communication channel construction method.
From the above, it can be seen that the method, the device, the electronic device and the storage medium for constructing the dual-system communication channel provided by the application verify the network communication channel after constructing the network communication channel, so as to ensure that the communication channel between the dual systems of the electronic device is constructed correctly, thereby ensuring that the communication between the dual systems is normal.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is a schematic diagram of a dual system network communication channel of a large screen device in correct connection and incorrect connection according to one or more embodiments of the present application;
FIG. 2 is a flow diagram of a method of dual system communication channel construction in accordance with one or more embodiments of the present application;
FIG. 3 is a schematic diagram of a dual-system communication channel construction device according to one or more embodiments of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to one or more embodiments of the present application.
Detailed Description
The present application will be further described in detail below with reference to specific embodiments and with reference to the accompanying drawings, in order to make the objects, technical solutions and advantages of the present application more apparent.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
The problem of establishing network communication connection between two systems of the same electronic device may occur by using a network to establish a communication channel between two systems of the same electronic device, so that the construction of the communication channel between two systems of the same electronic device fails. For example, in a large screen device, referring to fig. 1, the large screen device typically has an android system and a Windows system, which need to establish a communication channel in use because of functional service requirements. When the large-screen equipment leaves the factory, the IP addresses of the firmware ends of the large-screen equipment in the same batch are set to be the same, so that when the prior art is used for network communication connection, wrong network communication is easily established between different large-screen equipment, and the android system and Windows system network communication of the same large-screen equipment are established in error, so that normal use is affected.
Based on the above problems, the present application provides a method for constructing a dual-system communication channel, referring to fig. 2, applied to an electronic device, where the electronic device has a first system and a second system, the method includes:
s201: constructing a hardware communication channel between the first system and the second system, and sending channel construction information to the second system by the first system through the hardware communication channel;
s202: constructing a network communication channel between the first system and the second system based on the channel construction information;
s203: checking the network communication channel;
the communication channel construction is completed in response to determining that the verification result is correct;
responsive to determining that the verification result is incorrect, disconnecting the network communication channel between the first system and the second system, the first system modifying the channel construction information and transmitting the modified channel construction information to the second system through the hardware communication channel, reconstructing the network communication channel between the first system and the second system based on the modified channel construction information; and checking the reconstructed network communication channel until the checking result is correct.
In the method of the application, a verification step of the network communication channel is added for verifying whether the network communication channel is connected correctly. When the verification result is incorrect, the first system or the second system disconnects the network communication channel, the first system modifies and transmits channel construction information again, the first system and the second system reconstruct the network communication channel based on the channel construction information which is modified again, the reconstructed network communication channel is verified, and if the verification result is incorrect, the network communication channel is disconnected again until the verification is correct. And when the network communication channel verification result is correct, the construction of the dual-system communication channel is completed. In the method, the two systems of the electronic equipment automatically check whether the construction of the network communication channel is correct, so that the problem of the construction of the network communication channel can be found in time, the network connection between the two systems of the electronic equipment is effectively ensured to be correct, and the communication error is reduced.
In some embodiments, S203 includes: the verifying the network communication channel includes:
the second system acquires second check information from the first system through the network communication channel, and compares the second check information with the first check information stored in the second system;
responding to the fact that the comparison result of the second checking information and the first checking information is consistent, and checking results are correct; and in response to determining that the second verification information is inconsistent with the comparison result of the first verification information, the verification result is incorrect.
The second system acquires second check information from the first system through the network communication channel, the second system compares the acquired second check information with the first check information stored in the second system, and when the second check information is consistent with the first check information, the network communication channel is constructed correctly; when the second verification information is inconsistent with the first verification information, a problem occurs in constructing a network communication channel, and network connection is established between two systems of different electronic devices. Therefore, whether the network connection has a problem or not can be effectively distinguished, and the construction error of the network communication channel is corrected until the construction is correct.
In some embodiments, the first and second verification information comprise a MAC address of the electronic device. The MAC address is also called a physical address, a hardware address, etc., and is an identifier written in the hardware when produced by a network device manufacturer, and the MAC address has uniqueness, and each network device is different from any other device. Thus, the MAC addresses of two systems at the same electronic device are identical and unique. The first system sends the MAC address to the second system through the network communication channel, the second system compares the received MAC address with the MAC address stored by the second system, and when the two MAC addresses are different, the two systems connected with the network communication channel are not the same electronic equipment, so that the construction error of the network communication channel is judged, and the network connection between the two systems is ensured to be correct.
In some embodiments, the first verification information and the second verification information include a device unique ID of the electronic device; before the network communication channel is checked, the first system generates and sends the device unique ID to the second system as the first check information, and the second system receives and stores the device unique ID.
The first check information and the second check information may be a device unique ID generated by the electronic device itself, in addition to the MAC address. When the device unique ID generated by the electronic device is used as the first verification information and the second verification information, before the network communication channel is verified, the first system generates the device unique ID and sends the device unique ID to the second system through the hardware communication channel. The hardware communication channel is a communication channel constructed by adopting hardware communication equipment, such as serial port connection and the like, so that the situation of connection errors does not occur, and when the first system generates the equipment unique ID and transmits the information to the second system through the hardware communication channel, the two systems of the same electronic equipment are ensured to have the same and unique equipment unique ID. When checking the network communication channel, the first system sends the equipment unique ID to the second system through the network communication channel, the second system compares the information with the equipment unique ID received through the hardware communication channel before after receiving the information, if the information is consistent, the two systems connected with the network communication channel are identical to the two systems connected with the hardware communication channel, the network communication channels of the two systems of the same electronic equipment are correctly constructed, and the checking result is correct; if the two systems are inconsistent, the two systems connected with the network communication channel and the two systems connected with the hardware communication channel are different, if the two systems are inconsistent, the two systems are incorrect, and the network communication channel of the two systems is incorrect in construction, and the verification result is incorrect. Therefore, the network communication channel is disconnected, channel construction information is re-acquired, the network communication channel is re-established, and the re-established network communication channel is verified until the verification result is correct.
In some implementations, the encoding of the device unique ID includes randomly encoding data. The random coded data is randomly generated by the electronic equipment, so that the uniqueness of the equipment unique ID between the two systems of the electronic equipment can be effectively ensured.
In some implementations, the randomly encoded data includes a random check code and a generation time. The random check code is data randomly generated by the electronic equipment. By adopting the combination form of the random check code and the generation time, the uniqueness of the unique ID of the equipment can be better ensured. The random check code can be more than one random number or more than one random letter or more than one random special character or number, random permutation and combination among any two or more types of characters such as letters, special characters and the like, and the number of the characters of the random check code can be 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 and more. When constructing a dual-system communication channel, the construction time of different electronic devices is usually different, and when the same construction time occurs, the uniqueness of the unique ID of the device can be ensured through a random check code; when the random check codes appear identical, the uniqueness of the device unique ID can be ensured by the generation time. The combination of the two data can further ensure the uniqueness of the unique ID of the equipment, and further effectively ensure the accuracy of verification of the network communication channel.
In some implementations, the channel construction information includes an IP address and a port number. And the two systems construct a network communication channel through information such as IP addresses, port numbers and the like, so as to realize network connection. Alternatively, the network connection may be any one or a combination of two or more of a TCP connection or a quick user data protocol network connection (QUIC connection), etc. that enables network communication between the two systems.
In some embodiments, a communication channel is established between two systems applied to a large screen device.
The large screen device comprises two systems, wherein the two systems can be an android system and a Windows system, the android system is a first system, and the Windows system is a second system.
When the unique device ID is used as the first check information and the second check information, firstly, a hardware communication channel is established between the android system and the Windows system through the hardware communication device, the android system sends channel construction information such as an IP address, a port number and the like of the large-screen device to the Windows system, the unique device ID generated by the android system sends the unique device ID to the Windows system, and the Windows receives and stores the unique device ID as the first check information; wherein, the device unique ID adopts a code form of a random check code plus generation time. The android system and the Windows system construct a network communication channel based on channel construction information such as IP addresses, port numbers and the like, and network connection is established. The android system sends a data packet carrying the device unique ID generated by the large-screen device to the Windows system through a network communication channel as second check information according to a pre-agreed communication data protocol, the Windows system checks the device unique ID received through a hardware communication channel after receiving the device unique ID as the second check information, if the information is consistent, the connection between the android system of the large-screen device and the Windows system is correct, and the construction of the dual-system communication channel of the large-screen device is completed; if the information is inconsistent, the Windows system network client of the large-screen device is connected with the android system network server of the other large-screen device, and the network communication channel is constructed incorrectly.
When the MAC address is used as the first check information and the second check information, a hardware communication channel is established between the android system and the Windows system through the hardware communication device, the android system sends channel construction information such as an IP address and a port number of the large-screen device to the Windows system, the android system and the Windows system construct a network communication channel based on the channel construction information such as the IP address and the port number, and network connection is established. The android system sends a data packet carrying the MAC address of the large-screen device to the Windows system through a network communication channel according to a pre-agreed communication data protocol, the Windows system checks the MAC address with the MAC address of the large-screen device stored in Windows after receiving the MAC address, if the information is consistent, the android system of the large-screen device and the Windows system are correctly connected, and the construction of the double-system communication channel of the large-screen device is completed; if the information is inconsistent, the Windows system network client of the large-screen device is connected with the android system network server of the other large-screen device, and the network communication channel is constructed incorrectly.
When a network communication channel construction error occurs, the Windows system actively disconnects the network communication channel with the android system, cuts off network connection, sends a port number modification request to the android system through the hardware communication channel, sends a port number modification request to the Windows system through the hardware communication channel, reconstructs the network communication channel with the android system based on the IP address and the port number which is modified again, establishes a new network connection, sends an MAC address or a device unique ID to the Windows system through the network communication channel again, checks the MAC address stored by the Windows system after receiving the information or the device unique ID which is received and stored through the hardware communication channel before, if the information is consistent, the network communication channel construction is correct, and the large screen device double-system communication channel construction is completed; if the information is inconsistent, the network communication channel is constructed incorrectly, the network communication channel is disconnected again, the network communication channel is reconstructed again, and the reconstructed network communication channel is verified until the MAC address or the device unique ID transmitted by the network communication channel is consistent with the MAC address or the device unique ID stored by the Windows system, and the construction of the communication channel of the large-screen device double system is completed.
In some embodiments, the android system of the large-screen device may also be the second system, and the Windows system of the large-screen device may also be the first system.
It should be noted that, the method of the embodiment of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the method of an embodiment of the present application, the devices interacting with each other to accomplish the method.
It should be noted that the foregoing describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, the application also provides a device for constructing a dual-system communication channel, which corresponds to the method in any embodiment.
Referring to fig. 3, the dual-system communication channel construction apparatus is applied to an electronic device, where the electronic device has a first system and a second system, and the apparatus includes:
a hardware channel construction module 301, configured to construct a hardware communication channel between the first system and the second system, where the first system sends channel construction information to the second system through the hardware communication channel;
a network channel construction module 302, configured to construct a network communication channel between the first system and the second system based on the channel construction information;
a verification module 303, configured to verify the network communication channel;
the communication channel construction is completed in response to determining that the verification result is correct;
responsive to determining that the verification result is incorrect, disconnecting the network communication channel between the first system and the second system, the first system modifying the channel construction information and transmitting the modified channel construction information to the second system through the hardware communication channel, reconstructing the network communication channel between the first system and the second system based on the modified channel construction information; and checking the reconstructed network communication channel until the checking result is correct.
In some embodiments, the verifying module 303 to verify the network communication channel comprises:
the second system acquires second check information from the first system through the network communication channel, and compares the second check information with the first check information stored in the second system;
responding to the fact that the comparison result of the second checking information and the first checking information is consistent, and checking results are correct; and in response to determining that the second verification information is inconsistent with the comparison result of the first verification information, the verification result is incorrect.
In some embodiments, the first and second verification information comprise a MAC address of the electronic device.
In some embodiments, the first verification information and the second verification information include a device unique ID of the electronic device;
the device for constructing the dual-system communication channel further comprises a device unique ID acquisition module, wherein before the network communication channel is checked, the first system generates and sends the device unique ID to the second system as the first check information, and the second system receives and stores the device unique ID.
In some embodiments, the encoding of the device unique ID includes randomly encoding data.
In some embodiments, the random encoded data includes a random check code and a generation time.
In some embodiments, the channel construction information includes an IP address and a port number.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The device of the foregoing embodiment is configured to implement a method for constructing a dual-system communication channel according to any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the method for constructing the dual-system communication channel according to any embodiment when executing the program.
Fig. 4 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement a corresponding method for constructing a dual-system communication channel in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the present application also provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform a dual-system communication channel construction method according to any of the above embodiments, corresponding to the method of any of the above embodiments.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiment stores computer instructions for causing the computer to execute a dual-system communication channel construction method as described in any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the application, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the application as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the present application are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, and the like, which are within the spirit and principles of the embodiments of the application, are intended to be included within the scope of the application.

Claims (7)

1. A method for constructing a dual-system communication channel, the method being applied to an electronic device, the electronic device having a first system and a second system, the method comprising:
constructing a hardware communication channel between the first system and the second system, and sending channel construction information to the second system by the first system through the hardware communication channel;
constructing a network communication channel between the first system and the second system based on the channel construction information;
checking the network communication channel;
the communication channel construction is completed in response to determining that the verification result is correct;
responsive to determining that the verification result is incorrect, disconnecting the network communication channel between the first system and the second system, the first system modifying the channel construction information and transmitting the modified channel construction information to the second system through the hardware communication channel, reconstructing the network communication channel between the first system and the second system based on the modified channel construction information; checking the reconstructed network communication channel until the checking result is correct;
wherein the channel construction information comprises an IP address and a port number;
the verifying the network communication channel includes:
the second system acquires second check information from the first system through the network communication channel, and compares the second check information with the first check information stored in the second system;
responding to the fact that the comparison result of the second checking information and the first checking information is consistent, and checking results are correct; responding to the fact that the comparison result of the second check information and the first check information is inconsistent, and checking the result to be incorrect;
wherein the first verification information and the second verification information include a MAC address of the electronic device or a device unique ID of the electronic device.
2. The method of claim 1, wherein prior to said verifying said network communication channel, said first system generates and transmits said device unique ID as said first verification information to said second system, said second system receiving and storing said device unique ID.
3. The method of claim 1, wherein the encoding of the device unique ID comprises randomly encoding data.
4. A method according to claim 3, wherein the randomly encoded data comprises a random check code and a generation time.
5. A dual-system communication channel construction apparatus, applied to an electronic device having a first system and a second system, comprising:
a hardware channel construction module, configured to construct a hardware communication channel between the first system and the second system, where the first system sends channel construction information to the second system through the hardware communication channel;
a network channel construction module to construct a network communication channel between the first system and the second system based on the channel construction information;
the verification module is used for verifying the network communication channel;
the communication channel construction is completed in response to determining that the verification result is correct;
responsive to determining that the verification result is incorrect, disconnecting the network communication channel between the first system and the second system, the first system modifying the channel construction information and transmitting the modified channel construction information to the second system through the hardware communication channel, reconstructing the network communication channel between the first system and the second system based on the modified channel construction information; checking the reconstructed network communication channel until the checking result is correct;
wherein the channel construction information comprises an IP address and a port number;
the checking module to check the network communication channel includes:
the second system acquires second check information from the first system through the network communication channel, and compares the second check information with the first check information stored in the second system;
responding to the fact that the comparison result of the second checking information and the first checking information is consistent, and checking results are correct; responding to the fact that the comparison result of the second check information and the first check information is inconsistent, and checking the result to be incorrect;
wherein the first verification information and the second verification information include a MAC address of the electronic device or a device unique ID of the electronic device.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-4 when the program is executed by the processor.
7. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-4.
CN202111423220.1A 2021-11-26 2021-11-26 Dual-system communication channel construction method and device, electronic equipment and storage medium Active CN114363396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111423220.1A CN114363396B (en) 2021-11-26 2021-11-26 Dual-system communication channel construction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111423220.1A CN114363396B (en) 2021-11-26 2021-11-26 Dual-system communication channel construction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114363396A CN114363396A (en) 2022-04-15
CN114363396B true CN114363396B (en) 2023-12-01

Family

ID=81097836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111423220.1A Active CN114363396B (en) 2021-11-26 2021-11-26 Dual-system communication channel construction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114363396B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5970126A (en) * 1996-08-09 1999-10-19 International Business Machines Corporation Communication method and system
CN105389233A (en) * 2015-10-21 2016-03-09 广州视睿电子科技有限公司 Dual-system state parameter storage method, first system and dual-system terminal
CN106055989A (en) * 2016-05-26 2016-10-26 深圳市金立通信设备有限公司 Data transmission method and terminal
CN106681801A (en) * 2016-05-09 2017-05-17 腾讯科技(深圳)有限公司 Method and apparatus for executing events
CN110426718A (en) * 2019-06-20 2019-11-08 广州南方卫星导航仪器有限公司 A kind of self checking method and storage device in the radio station of GNSS receiver
CN112085505A (en) * 2020-09-08 2020-12-15 青岛海信智能商用系统股份有限公司 Face payment method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5970126A (en) * 1996-08-09 1999-10-19 International Business Machines Corporation Communication method and system
CN105389233A (en) * 2015-10-21 2016-03-09 广州视睿电子科技有限公司 Dual-system state parameter storage method, first system and dual-system terminal
CN106681801A (en) * 2016-05-09 2017-05-17 腾讯科技(深圳)有限公司 Method and apparatus for executing events
CN106055989A (en) * 2016-05-26 2016-10-26 深圳市金立通信设备有限公司 Data transmission method and terminal
CN110426718A (en) * 2019-06-20 2019-11-08 广州南方卫星导航仪器有限公司 A kind of self checking method and storage device in the radio station of GNSS receiver
CN112085505A (en) * 2020-09-08 2020-12-15 青岛海信智能商用系统股份有限公司 Face payment method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于TrustZone的内核完整性保护的研究与实现";夏常钧;《中国优秀硕士全文论文数据库(信息科技I辑)》;全文 *
"基于本体的多Agent内容感知通信协议研究";关向前;《中国优秀硕士学位论文全文数据库(信息科技I辑)》;全文 *

Also Published As

Publication number Publication date
CN114363396A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN110048879B (en) Microservice registration method, microservice registration device, electronic equipment and computer-readable storage medium
CN110245518B (en) Data storage method, device and equipment
CN107193681B (en) Data verification method and device
CN105389177A (en) Software version confirmation method, device and system
CN107329849B (en) Data verification method and system based on Java system
CN108040355B (en) Network access method and system
CN107861832B (en) Data verification method and device and readable storage medium
CN103747013A (en) Cloud terminal login verification method and device
US20170134384A1 (en) Method and device for obtaining superuser permission
CN107347048A (en) The method, apparatus and system of data check
CN110289997A (en) A kind of log message checking method, apparatus and system
CN111753270A (en) Application program login verification method, device, equipment and storage medium
CN104065674A (en) Terminal device and information processing method
CN114363396B (en) Dual-system communication channel construction method and device, electronic equipment and storage medium
CN111918363A (en) Network distribution method and device
CN116257882A (en) Voting method, voting system, electronic equipment and storage medium
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
US20220083439A1 (en) Technology To Provide Fault Tolerance For Elliptic Curve Digital Signature Algorithm Engines
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
CN106937283B (en) Password-free authentication method and device for dual-card dual-standby terminal
CN111124445A (en) Home gateway upgrading method and home gateway
CN117215995B (en) Remote direct memory access method, distributed storage system and electronic equipment
CN114499828B (en) Communication method, internet of things terminal, gateway equipment and Internet of things system
CN112685098B (en) Method for verifying data of front-end receiving server
CN111800779B (en) Device source identification method and apparatus, computer system, and readable storage medium

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