CN114697379A - Communication mode switching method, device, terminal equipment and storage medium - Google Patents

Communication mode switching method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114697379A
CN114697379A CN202011565903.6A CN202011565903A CN114697379A CN 114697379 A CN114697379 A CN 114697379A CN 202011565903 A CN202011565903 A CN 202011565903A CN 114697379 A CN114697379 A CN 114697379A
Authority
CN
China
Prior art keywords
bottom layer
application data
preset connection
sending
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011565903.6A
Other languages
Chinese (zh)
Other versions
CN114697379B (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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202011565903.6A priority Critical patent/CN114697379B/en
Priority claimed from CN202011565903.6A external-priority patent/CN114697379B/en
Publication of CN114697379A publication Critical patent/CN114697379A/en
Application granted granted Critical
Publication of CN114697379B publication Critical patent/CN114697379B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a communication mode switching method, a communication mode switching device, terminal equipment and a storage medium, wherein the method comprises the following steps: receiving application data issued by an upper layer application, and sending the application data to a bottom layer device; acquiring preset connection parameters according to the sending result of the application data; and changing the current connection parameter into a preset connection parameter, and communicating with the bottom layer equipment through the preset connection parameter. According to the invention, the application data is sent to the bottom layer equipment, the preset connection parameter can be obtained when the application data is failed to be sent, the current connection parameter is changed into the preset connection parameter, the conversion process of the communication mode is realized, and the communication is carried out with the bottom layer equipment through the preset connection parameter after the conversion, so that the problem of compatibility of the communication mode in the upper computer system is solved.

Description

Communication mode switching method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for switching communication modes, a terminal device, and a storage medium.
Background
With the continuous improvement of display technology, the small-pitch LED attracts people's attention, wherein the MiniLED is widely applied to civil, commercial and professional display fields with unique performance and a mature process.
In the application process of MiniLED products, a set of upper computer system which can be continuously improved is needed. For example, the large-size MiniLED direct display spliced screen has high system complexity and high requirements on software and hardware systems of an upper computer; because, in the research and development, production and the use of MiniLED display screen product, the requirement of design, environment, performance and cost etc. of different products is different, leads to the communication mode between host computer system and the MiniLED display screen also to have different demands, and this just needs host computer system can compatible multiple communication mode to satisfy the user demand of different products.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a communication mode switching method, apparatus, terminal device and storage medium for solving the above-mentioned defects in the prior art, and to solve the compatibility problem of the communication mode of the upper computer system in the prior art.
The technical scheme adopted by the invention for solving the problems is as follows:
in a first aspect, an embodiment of the present invention provides a method for switching a communication scheme, where the method includes:
receiving application data issued by an upper layer application, and sending the application data to a bottom layer device;
acquiring preset connection parameters according to the sending result of the application data;
and changing the current connection parameters into preset connection parameters, and communicating with the bottom layer equipment through the preset connection parameters.
In a second aspect, an embodiment of the present invention further provides a communication apparatus, including:
the data sending unit is used for receiving application data issued by upper-layer application and sending the application data to the bottom-layer equipment;
the acquisition unit is used for acquiring preset connection parameters according to the sending result of the application data;
a connection parameter changing unit for changing the current connection parameter to a preset connection parameter;
and the communication unit is used for communicating with the bottom layer equipment through the preset connection parameters.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a communication method switching program that is stored in the memory and is executable on the processor, and when the processor executes the communication method switching program, the step of implementing the communication method switching method according to the first aspect is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a communication method switching program is stored, and when executed by a processor, the communication method switching program implements the steps of the communication method switching method according to the first aspect.
The invention has the beneficial effects that:
according to the invention, the application data is sent to the bottom layer equipment, the preset connection parameter can be obtained when the application data is failed to be sent, the current connection parameter is changed into the preset connection parameter, the conversion process of the communication mode is realized, and the communication is carried out with the bottom layer equipment through the preset connection parameter after the conversion, so that the problem of compatibility of the communication mode in the upper computer system is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a communication mode switching method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart illustrating setting of a communication method in the communication method switching method according to the embodiment of the present invention.
Fig. 3 is a detailed flowchart of step S100 in fig. 1.
Fig. 4 is a detailed flowchart of step S200 in fig. 1.
Fig. 5 is a detailed flowchart of step S300 in fig. 1.
Fig. 6 is a detailed flowchart after step S320 in fig. 1.
Fig. 7 is a detailed flowchart after step S330 in fig. 6.
Fig. 8 is a schematic communication diagram of the upper computer and the display screen in the embodiment of the present invention.
Fig. 9 is a functional diagram of communication middleware according to an embodiment of the present invention.
Fig. 10 is a functional block diagram of a communication mode switching apparatus according to an embodiment of the present invention.
Fig. 11 is a schematic block diagram of the internal structure of the terminal device in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In the embodiment of the invention, a middleware communication module is virtualized in an upper computer (namely terminal equipment), and the communication process between an upper application and bottom equipment is realized through the middleware communication module, and in the process of the communication between the upper application and the bottom equipment, the middleware communication module can automatically set connection parameters according to the current communication state, so that the current communication mode is converted into a communication mode adaptive to the bottom equipment, the coupling between the upper application and the bottom equipment is realized, and the problem of the compatibility of the communication modes between the upper computer and the bottom equipment is solved.
For example, assuming that the default communication mode applied by the upper layer of the upper computer is communication mode 1, when data is transmitted through the communication mode 1, the phenomenon of data transmission timeout occurs in the uplink or the downlink, so that the phenomenon of frame dropping or screen blacking occurs in the bottom layer device; at the moment, monitoring the overtime phenomenon through the middleware communication module, sending an overtime signal to the communication management module, setting the connection parameter of the current communication mode 1 into the connection parameter corresponding to the communication mode N by using the communication management module, switching the current communication mode 1 into the communication mode N, and communicating between the upper computer and the bottom layer equipment by using the communication mode N so as to solve the problem of compatibility of the communication modes between the upper computer and the bottom layer equipment.
Exemplary method
As shown in fig. 1 to 9, an embodiment of the present invention provides a communication method switching method, where the communication method switching method may be applied to a terminal device (i.e., an upper computer, which is described in detail below), where the terminal device includes but is not limited to a host device, a smart television, a set-top box, and the like.
As shown in fig. 1, in an embodiment of the present invention, a method includes:
and S100, receiving application data issued by the upper layer application, and sending the application data to the bottom layer equipment.
In this embodiment, the upper computer manages the communication mode, and the switching process of the communication mode between the upper computer and the bottom layer device is realized; as shown in fig. 8, a virtual communication middleware module is provided in the upper computer, and it can be understood that the virtual communication middleware module is a software processing module, and functions and operation manner thereof are similar to those of a virtual disk of Windows, and the virtual module is used to replace an actual module, thereby realizing functions of data transmission and data reception.
In this embodiment, the underlying device may be a display screen, for example: a MiniLED display screen; other terminal devices, such as a mobile terminal with a display screen, a tablet computer, an all-in-one machine, and the like, may also be used; before managing communication modes between an upper computer and bottom layer equipment, inputting a plurality of preset connection parameters by the upper computer, and setting a plurality of communication modes according to the input preset connection parameters, wherein the plurality of preset connection parameters and the plurality of communication modes are in one-to-one correspondence relationship; after a plurality of communication modes are set, the communication modes and the corresponding connection parameters can be stored in a communication management database; meanwhile, a communication management module is arranged in the upper application of the upper computer, and different communication modes are switched by using the communication management module.
Specifically, as shown in fig. 2, step S100 previously includes:
and S001, acquiring a plurality of preset connection parameters, and setting a plurality of communication modes according to the plurality of preset connection parameters, wherein the plurality of preset connection parameters correspond to the plurality of communication modes one to one.
In this embodiment, as shown in fig. 9, the middleware communication module includes a data sending submodule, a data receiving submodule, and a reception waiting data timeout submodule; the upper application accessible data send submodule sends upper application data to the bottom equipment, bottom equipment accessible data receive submodule uploads the bottom data to the upper application, and middleware communication module accessible waits for the time length that the time-out submodule of received data uploaded bottom data to the bottom equipment to the time-out phenomenon that appears to the bottom equipment is fed back.
Specifically, when the upper layer application communicates with the bottom layer device, the upper computer receives application data issued by the upper layer application through the middleware communication module, and then determines the corresponding bottom layer device according to a destination address in the application data; the upper layer data sent by the upper layer application is provided with a corresponding destination address (namely, the MAC address of the bottom layer equipment), and the upper computer can send the data sent by the upper layer application to the corresponding bottom layer equipment according to the destination address. After determining the corresponding bottom layer device, the upper computer obtains the current connection parameters (namely the default connection parameters) through the communication management module.
Specifically, as shown in fig. 3, before sending the application data to the underlying device in step S100, the method further includes:
step S110, determining corresponding bottom layer equipment according to the destination address of the application data;
and step S120, acquiring the current connection parameters.
In this embodiment, after obtaining the current connection parameter, the middleware communication module sends the application data to the bottom layer device according to the current connection parameter; the current connection parameters comprise information such as a current communication protocol, a current bottom layer communication port, a bottom layer equipment MAC address and the like; and the bottom layer equipment acquires the application data issued by the middleware communication module through the bottom layer communication module.
Specifically, as shown in fig. 3, in step S100, sending application data to the underlying device includes:
and step S130, sending the application data to the bottom layer equipment according to the current connection parameters.
In the embodiment, the application data is sent to the bottom layer device through the intermediate communication module of the upper computer, so that the intermediate communication module can be independent of each application module and each communication mode module and used as an intermediate layer between the upper application module and the bottom layer communication module, the application module is developed without paying attention to a specific communication mode, and the complete decoupling of the application module and the bottom layer communication module is realized.
In a further embodiment of the invention, as shown in fig. 1, the method comprises:
and S200, acquiring preset connection parameters according to the transmission result of the application data.
In this embodiment, after the middleware communication module sends the application data, the middleware communication module monitors a communication result fed back by the bottom layer device, and then determines whether to acquire another communication mode according to the fed-back information.
Specifically, after the middleware sends application data to the bottom layer device, the bottom layer device receives the application data through the bottom layer communication module and feeds back information through the bottom layer communication module, and the upper computer can judge whether the application data is successfully sent according to the feedback information; the feedback information may be an information code or a fault code.
When the upper computer judges whether the application data are successfully sent or not, if the application data are successfully issued, the upper computer communicates with the bottom layer equipment through the current connection parameters; if the application data fails to be issued, the upper computer needs to switch the communication mode, and at the moment, a preset connection parameter needs to be acquired so as to communicate with the bottom layer equipment through the acquired preset connection parameter; the preset connection parameters comprise information such as a preset communication protocol, a preset bottom layer communication port, a bottom layer equipment MAC address and the like.
Specifically, as shown in fig. 4, step S200 includes:
step S210, obtaining feedback information uploaded by bottom equipment;
step S220, judging whether the application data is successfully sent according to the feedback information;
and step S230, if not, acquiring preset connection parameters.
In this embodiment, whether the current communication mode is compatible with the bottom layer device is determined by judging the sending result of the application data, so that the current connection parameter is set as the preset connection parameter under the condition that the current communication mode is incompatible with the bottom layer device, and the requirement of the bottom layer device on the compatibility of the communication mode of the upper computer is met.
In a further embodiment of the invention, as shown in fig. 1, the method comprises:
and step S300, changing the current connection parameter into a preset connection parameter, and communicating with the bottom layer equipment through the preset connection parameter.
In this embodiment, after the upper computer obtains the preset connection parameter, the upper computer changes the current connection parameter into the preset connection parameter, so as to switch the current communication mode into a communication mode corresponding to the preset connection parameter; after the current connection parameters are changed into the preset connection parameters, the upper computer can send the application data to the bottom layer equipment through the preset connection parameters, and can receive the bottom layer data uploaded by the bottom layer equipment through the preset connection parameters and send the bottom layer data to the upper layer application.
Specifically, as shown in fig. 5, step S300 includes:
step S310, changing the current connection parameter into a preset connection parameter, so as to switch the current communication mode into a communication mode corresponding to the preset connection parameter;
step S320, sending the application data to the bottom layer equipment through the preset connection parameters;
and S330, receiving the bottom layer data uploaded by the bottom layer equipment through the preset connection parameters, and sending the bottom layer data to the upper layer application.
In this embodiment, in the process of communication between the upper computer and the bottom layer device, when the middleware communication module of the upper computer issues the application data, the function of waiting for data timeout is started, that is, the time length for uploading the bottom layer data by the bottom layer device is timed.
Specifically, in the waiting process, the bottom layer device can upload data to the upper computer through the bottom layer communication module, the communication module of the upper computer can inform the middleware communication module to receive the data after receiving the data, and the middleware communication module can receive the uploaded data after the middleware communication module receives a signal of the communication module; when the middleware communication module receives the uploaded data, the overtime function of waiting for receiving the data is stopped, and the data is further uploaded to the upper application module.
Specifically, as shown in fig. 6, after step S320, the method further includes:
step S321, starting timeout waiting, and timing a time length for the bottom layer device to upload the bottom layer data.
In this embodiment, after the middleware communication module receives data uploaded by the bottom layer device, the middleware communication module stops the timeout waiting, and determines whether the time length for receiving the bottom layer data exceeds a preset time length, for example, the preset time length is 10 seconds; in the process of waiting by the middleware communication module, if the middleware communication module fails to receive the uploaded data within a certain waiting time length, the timeout function of waiting for receiving the data reports a timeout signal to the upper application module, and meanwhile, the communication is ended.
Specifically, as shown in fig. 7, after step S330, the method further includes:
step S331, stopping overtime waiting, and judging whether the time length for receiving the bottom layer data exceeds a preset time length;
step S332, if yes, sending a timeout signal to the upper layer application, and processing the timeout signal by the upper layer application.
In this embodiment, the communication management module is configured to implement switching between different communication modes, that is, one of the compatible multiple communication modes is selected as a current communication mode; in addition, different connection parameters required by various communication modes can be set correspondingly; after a communication mode is selected, only the bottom layer communication module and the middleware communication module establish the connection between receiving data and sending data in the communication process; the connection between the other bottom layer communication modules and the communication middleware is completely disconnected, namely, the other bottom layer communication modules do not participate in the communication process.
Therefore, according to the embodiment, the preset connection parameters can be acquired when the application data is failed to be sent by sending the application data to the bottom layer equipment, the current connection parameters are changed into the preset connection parameters, the conversion process of the communication mode is achieved, the communication is carried out with the bottom layer equipment through the preset connection parameters after the conversion, and the problem of compatibility of the communication mode in the upper computer system is solved.
Exemplary device
As shown in fig. 10, an embodiment of the present invention provides a communication method switching apparatus, including: a data transmitting unit 510, an obtaining unit 520, and a connection parameter changing unit 530. In particular, the amount of the solvent to be used,
a data sending unit 510, configured to receive application data sent by an upper layer application, and send the application data to a bottom layer device;
an obtaining unit 520, configured to obtain a preset connection parameter according to a sending result of the application data;
a connection parameter changing unit 530 for changing the current connection parameter to a preset connection parameter;
the communication unit 540 is configured to communicate with the underlying device through preset connection parameters.
In a further embodiment of the invention, the apparatus further comprises:
the communication mode setting unit is used for acquiring a plurality of preset connection parameters and setting a plurality of communication modes according to the plurality of preset connection parameters; the preset connection parameters correspond to the communication modes one to one.
Specifically, the data transmission unit 510 includes:
the bottom layer equipment determining unit is used for determining corresponding bottom layer equipment according to the destination address of the application data;
a current connection parameter obtaining unit, configured to obtain a current connection parameter;
and the first application data sending unit is used for sending the application data to the bottom layer equipment according to the current connection parameters.
Specifically, the acquisition unit 520 includes:
the feedback information acquisition unit is used for acquiring feedback information uploaded by the bottom layer equipment;
a feedback information judging unit, configured to judge whether the application data is successfully transmitted according to the feedback information;
and the preset connection parameter acquisition unit is used for acquiring the preset connection parameters.
Specifically, the connection parameter changing unit 530 includes:
a connection parameter changing subunit, configured to change a current connection parameter to a preset connection parameter, so as to switch a current communication mode to a communication mode corresponding to the preset connection parameter;
the second application data sending unit is used for sending the application data to the bottom layer equipment through the preset connection parameters;
and the bottom layer data sending unit is used for receiving the bottom layer data uploaded by the bottom layer equipment through the preset connection parameters and sending the bottom layer data to the upper layer application.
In a further embodiment of the invention, the apparatus further comprises:
and the overtime waiting unit is used for starting overtime waiting and timing the time length of the bottom layer data uploaded by the bottom layer equipment.
The overtime waiting stopping unit is used for stopping overtime waiting and judging whether the time length for receiving the bottom layer data exceeds the preset time length or not;
and the overtime signal sending unit is used for sending the overtime signal to the upper layer application and processing the overtime signal through the upper layer application.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 11. The terminal equipment comprises a processor, a memory, a network interface and a display end which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a computer readable storage medium and an internal memory. The computer readable storage medium stores an operating system and a computer program. The memory provides an environment for the operation of an operating system and computer programs in the computer-readable storage medium. The computer program is executed by a processor to implement the steps of a communication mode switching method. The display end of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen; the network interface of the terminal device is used for connecting a network.
It will be understood by those skilled in the art that the block diagram of fig. 11 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, a terminal device is provided, where the terminal device includes a memory, a processor, and a communication method switching program stored in the memory and executable on the processor, and the processor implements the above communication method switching method when executing the communication method switching program:
receiving application data issued by an upper layer application, and sending the application data to a bottom layer device;
acquiring preset connection parameters according to the sending result of the application data;
and changing the current connection parameter into a preset connection parameter, and communicating with the bottom layer equipment through the preset connection parameter.
In one embodiment, a computer-readable storage medium is provided, which stores a communication method switching program, and the communication method switching program realizes the steps of the above communication method switching method when executed by a processor.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware that is related to instructions of a computer program, and the computer program may be stored in a computer-readable storage medium, and when executed, the computer program may include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention provides a communication mode switching method, apparatus, terminal device and storage medium, and the method includes: receiving application data issued by an upper layer application, and sending the application data to a bottom layer device; acquiring preset connection parameters according to the sending result of the application data; and changing the current connection parameters into preset connection parameters, and communicating with the bottom layer equipment through the preset connection parameters. According to the invention, the application data is sent to the bottom layer equipment, the preset connection parameter can be obtained when the application data is failed to be sent, the current connection parameter is changed into the preset connection parameter, the conversion process of the communication mode is realized, and the communication is carried out with the bottom layer equipment through the preset connection parameter after the conversion, so that the problem of compatibility of the communication mode in the upper computer system is solved.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A communication mode switching method is characterized by comprising the following steps:
receiving application data issued by an upper layer application, and sending the application data to a bottom layer device;
acquiring preset connection parameters according to the sending result of the application data;
and changing the current connection parameter into the preset connection parameter, and communicating with the bottom layer equipment through the preset connection parameter.
2. The method of claim 1, wherein before receiving the application data sent by the upper layer application, the method further comprises:
acquiring a plurality of preset connection parameters, and setting a plurality of communication modes according to the plurality of preset connection parameters; and the preset connection parameters correspond to the communication modes one to one.
3. The method of claim 1, wherein prior to sending the application data to an underlying device, the method further comprises:
determining corresponding bottom layer equipment according to the destination address of the application data;
acquiring the current connection parameter;
the sending the application data to the underlying device includes:
and sending the application data to the bottom layer equipment according to the current connection parameters.
4. The method according to claim 3, wherein the obtaining of the preset connection parameter according to the transmission result of the application data comprises:
acquiring feedback information uploaded by the bottom layer equipment;
judging whether the application data is successfully sent according to the feedback information;
if not, acquiring preset connection parameters.
5. The method of claim 4, wherein changing the current connection parameter to the preset connection parameter and communicating with the underlying device through the preset connection parameter comprises:
changing the current connection parameter into the preset connection parameter so as to switch the current communication mode into the communication mode corresponding to the preset connection parameter;
sending the application data to the bottom layer equipment through the preset connection parameters;
and receiving the bottom layer data uploaded by the bottom layer equipment through the preset connection parameters, and sending the bottom layer data to the upper layer application.
6. The method of claim 5, wherein after sending the application data to the underlying device via the preset connection parameters, the method further comprises:
and starting overtime waiting, and timing the time length of uploading the bottom layer data by the bottom layer equipment.
7. The method of claim 6, wherein after sending the underlying data to the upper layer application, the method further comprises:
stopping the overtime waiting, and judging whether the time length for receiving the bottom layer data exceeds the preset time length or not;
and if so, sending a timeout signal to the upper layer application, and processing the timeout signal through the upper layer application.
8. A communication method switching apparatus, comprising:
the data sending unit is used for receiving application data issued by upper-layer application and sending the application data to the bottom-layer equipment;
the acquisition unit is used for acquiring preset connection parameters according to the sending result of the application data;
a connection parameter changing unit for changing the current connection parameter to the preset connection parameter;
and the communication unit is used for communicating with the bottom layer equipment through the preset connection parameters.
9. A terminal device, characterized in that the terminal device comprises a memory, a processor and a communication mode switching program stored in the memory and operable on the processor, and the processor implements the steps of the communication mode switching method according to any one of claims 1 to 7 when executing the communication mode switching program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a communication scheme switching program which, when executed by a processor, implements the steps of the communication scheme switching method according to any one of claims 1 to 7.
CN202011565903.6A 2020-12-25 Communication mode switching method, device, terminal equipment and storage medium Active CN114697379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011565903.6A CN114697379B (en) 2020-12-25 Communication mode switching method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565903.6A CN114697379B (en) 2020-12-25 Communication mode switching method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114697379A true CN114697379A (en) 2022-07-01
CN114697379B CN114697379B (en) 2024-07-05

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717183A (en) * 2013-12-13 2015-06-17 松下电器产业株式会社 Integrated monitoring system, gateway equipment and data transmission method
CN106656773A (en) * 2016-11-16 2017-05-10 珠海格力智能装备有限公司 Communication system and method
CN107959709A (en) * 2017-10-25 2018-04-24 西南电子技术研究所(中国电子科技集团公司第十研究所) Method based on communication middleware data decoupler interactive structure
WO2019137208A1 (en) * 2018-01-11 2019-07-18 贵州白山云科技股份有限公司 Underlying data monitoring method, medium, device and apparatus
CN111835793A (en) * 2020-08-05 2020-10-27 天津美腾科技股份有限公司 Communication method and device for Internet of things access, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717183A (en) * 2013-12-13 2015-06-17 松下电器产业株式会社 Integrated monitoring system, gateway equipment and data transmission method
CN106656773A (en) * 2016-11-16 2017-05-10 珠海格力智能装备有限公司 Communication system and method
CN107959709A (en) * 2017-10-25 2018-04-24 西南电子技术研究所(中国电子科技集团公司第十研究所) Method based on communication middleware data decoupler interactive structure
WO2019137208A1 (en) * 2018-01-11 2019-07-18 贵州白山云科技股份有限公司 Underlying data monitoring method, medium, device and apparatus
CN111835793A (en) * 2020-08-05 2020-10-27 天津美腾科技股份有限公司 Communication method and device for Internet of things access, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110446196B (en) Gateway control method and device, gateway working method and device and electronic equipment
WO2018176244A1 (en) Data collection method, device, and dynamic environment network management system
CN112040286B (en) Screen projection device, control method and computer readable storage medium
US11984974B2 (en) Method and device for transmitting data, system, and storage medium
US9832271B2 (en) Method and apparatus for connection between client and server
CN111629016A (en) Control method, device and system
CN101453356A (en) Computer switch and method thereof for matching with multiple servers
CN107317731A (en) A kind of detection method of client and server connection state
CN111221490A (en) Multi-screen linkage method and system
US8526425B2 (en) Home gateway and tuner sharing method
CN114697379A (en) Communication mode switching method, device, terminal equipment and storage medium
CN114697379B (en) Communication mode switching method, device, terminal equipment and storage medium
CN116095664B (en) Method for realizing service registration of newly-added Beidou user machine in system
CN115567518B (en) Device, system and method for reorienting camera of cloud desktop
CN116931862A (en) Multi-screen mobile terminal, corresponding control method and storage medium
CN108055185B (en) Communication system and communication method of household appliance and household appliance
CN113157796A (en) Data acquisition display system based on micro-service
CN108123863B (en) Communication system and communication method of household appliance and household appliance
CN114884805B (en) Data transmission method, device, terminal and storage medium
CN114785914A (en) Display device, control apparatus, and device configuration method
CN110582035B (en) Method for upgrading ONU by using broadband universal service management platform
CN112422347A (en) Equipment management system
CN113542424A (en) Data processing method, device, equipment and computer program product
WO2021134252A1 (en) Inter-device communication method and apparatus, and storage medium
CN112118420A (en) Automatic configuration method and device for monitoring system

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