CN113038440A - Communication channel switching method and device, computer equipment and readable storage medium - Google Patents

Communication channel switching method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN113038440A
CN113038440A CN202110274290.9A CN202110274290A CN113038440A CN 113038440 A CN113038440 A CN 113038440A CN 202110274290 A CN202110274290 A CN 202110274290A CN 113038440 A CN113038440 A CN 113038440A
Authority
CN
China
Prior art keywords
multimode
communication
equipment
bluetooth
communication 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.)
Granted
Application number
CN202110274290.9A
Other languages
Chinese (zh)
Other versions
CN113038440B (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.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information 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 Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202110274290.9A priority Critical patent/CN113038440B/en
Publication of CN113038440A publication Critical patent/CN113038440A/en
Application granted granted Critical
Publication of CN113038440B publication Critical patent/CN113038440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0016Hand-off preparation specially adapted for end-to-end data sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a communication channel switching method, a communication channel switching device, computer equipment and a readable storage medium, wherein the method comprises the following steps: monitoring the online state of a current communication module in the multimode equipment; and if the current communication module is monitored to be offline, directly sending a channel switching instruction to the APP so as to indicate the APP to switch the communication channel to the communication channel corresponding to other communication modules according to the current online state and the preset priority of the multimode equipment. By the method and the device, the problem that channels of the multi-mode equipment are not switched timely in the related technology is solved, and the channels of the multi-mode equipment are switched rapidly and noninductively.

Description

Communication channel switching method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for switching a communication channel, a computer device, and a readable storage medium.
Background
The dual-mode device is a device with a Bluetooth module and a WIFI module, and the type of device supports data reporting and issuing through a Bluetooth channel and a WIFI channel respectively. When the WIFI module of the dual-mode device is on line, the dual-mode device can be normally connected with gateway devices with networking capability such as a router, and the APP can control the device through the WIFI channel of the dual-mode device. When the WIFI module of the dual-mode device is offline, the APP can try to scan and connect the Bluetooth module of the dual-mode device, and the device is controlled through the Bluetooth channel, so that the purposes of two control modes of a remote network control mode and a near-field network-free control mode are achieved.
Conventionally, after one of the modules of the dual-mode device, for example, a bluetooth module, goes offline, the cloud monitors that the dual-mode device does not report a heartbeat packet within three minutes, determines that the heartbeat of the device is overtime, and issues an offline message of the device to an APP through an mqtt channel, after receiving a state change message, the APP sets the local online state of the device to be offline, and starts bluetooth scanning, and if the user is around the dual-mode device at this time, the device can be controlled through bluetooth near-field communication. This channel switching mode, because APP can't know whether the online state of multimode equipment WIFI module changes through effective way fast, lead to the user in the use equipment in-process, equipment WIFI off-line leads to the uncontrollable problem in the user three minutes time.
At present, no effective solution is provided for the problem that the channel switching is not timely in the process of using the multimode equipment by the user in the related technology.
Disclosure of Invention
The embodiment of the application provides a communication channel switching method, a communication channel switching device, computer equipment and a readable storage medium, so as to at least solve the problem that the channel switching of multimode equipment is not timely in the related art.
In a first aspect, an embodiment of the present application provides a method for switching a communication channel, where the method includes:
monitoring a communication connection state between the first multimode device and the second multimode device;
and if the communication connection state is monitored to be an offline state, controlling the first multimode equipment to send a communication channel switching instruction to the second multimode equipment so as to instruct the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
In some embodiments, the above communication channel switching method is applied to a first multimode device, and the method includes:
monitoring a communication connection state with a second multimode device;
if the communication connection state is monitored to be an offline state, a communication channel switching instruction is directly sent to the second multimode equipment so as to instruct the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
In some embodiments, the first multimode device is a dual mode device, the first multimode device comprising a WIFI module and a bluetooth module; the method comprises the following steps:
monitoring WIFI online states of the first multimode device and the second multimode device;
and if the WIFI online state is monitored to be offline, directly sending a channel switching instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to a Bluetooth channel.
In some embodiments, if it is monitored that the WIFI online state is offline, directly sending a communication channel switching instruction to the second multimode device to instruct the second multimode device to switch the WIFI channel to the bluetooth channel, includes:
if the WIFI online state is monitored to be offline, acquiring a Bluetooth connection state with the second multimode equipment;
and sending a Bluetooth broadcast packet or an online state change instruction to the second multimode equipment according to the Bluetooth connection state so as to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
In some embodiments, the sending, according to the bluetooth connection status, a bluetooth broadcast packet or an online status change instruction to the second multimode device to instruct the second multimode device to switch a WIFI channel to a bluetooth channel includes:
if the Bluetooth connection state is that the Bluetooth connection with the second multimode equipment is not established currently, a Bluetooth broadcast packet is sent to the second multimode equipment, and the connection mark position in the Bluetooth broadcast packet is a request for establishing the Bluetooth connection;
and if the Bluetooth connection state is that the Bluetooth connection is established with the second multimode equipment at present, sending a state change instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
In some embodiments, the above communication channel switching method is applied to a second multimode device, and the method includes:
receiving a communication channel switching instruction, wherein the communication channel switching instruction is an instruction which is directly sent to the second multimode device when the first multimode device monitors that the communication connection state is an offline state;
analyzing the communication channel switching instruction to obtain the current online state of the first multimode equipment;
and switching a communication channel to other communication channels according to the current online state and the preset priority of the first multimode equipment.
In some of these embodiments, the method further comprises:
if the second multimode device establishes connection with a plurality of communication modules in the first multimode device at the same time, when the first multimode device reports the same data through two channels, analyzing a type field in the data to determine whether the data is the data actively reported by the first multimode device or the data responded to be reported;
and if the data is response report data, carrying out duplicate removal processing on the data through the seq field in the data.
In a second aspect, an embodiment of the present application provides a communication channel switching apparatus, including: the system comprises a monitoring module and a switching module; wherein:
the monitoring module is used for monitoring the communication connection state between the first multimode equipment and the second multimode equipment;
and the switching module is used for controlling the first multimode equipment to send a communication channel switching instruction to the second multimode equipment if the communication connection state is monitored to be an offline state so as to indicate the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the communication channel switching method according to the first aspect is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the communication channel switching method according to the first aspect.
Compared with the related art, the communication channel switching method provided by the embodiment of the application monitors the communication connection state between the first multimode device and the second multimode device; if the communication connection state is monitored to be an offline state, the first multimode device is controlled to send a communication channel switching instruction to the second multimode device so as to indicate the second multimode device to switch the current communication channel to other communication channels according to the communication connection state and the preset priority, and the problem that the communication channel of the multimode device is not switched timely in the related technology is solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a communication channel switching method provided in an embodiment of the present application;
fig. 2 is a flowchart of a channel switching method applied to a second multimode device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a communication channel switching apparatus according to an embodiment of the present application;
fig. 4 is an internal structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The technology described in the application can be applied to multi-mode equipment, and the multi-mode equipment is at least provided with other communication modules such as a Bluetooth module, a WIFI module and the like, and supports a plurality of communication channels to report and issue data. Preferably, the channel switching method provided by the application is applied to a dual-mode device, and the dual-mode device is configured with a bluetooth module and a WIFI module, and supports data reporting and issuing through the bluetooth channel and the WIFI channel respectively.
The multimode device may be a terminal, which may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The following description will be given taking a mobile terminal as an example.
The embodiment also provides a communication channel switching method. Fig. 1 is a flowchart of a channel switching method according to an embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
step 110, monitoring a communication connection state between a first multimode device and a second multimode device;
and step 120, if the communication connection state is monitored to be an offline state, controlling the first multimode device to send a communication channel switching instruction to the second multimode device so as to instruct the second multimode device to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
The multimode equipment comprises a plurality of communication modules, for example, a WIFI module, a Bluetooth module and a ZIGBEE module, and supports data reporting and issuing through the WIFI channel, the ZIGBEE channel and the Bluetooth channel. The user can set the priority of a plurality of channels according to actual conditions, for example, WIFI channel priority > ZIGBEE channel priority > Bluetooth channel priority. If the current WIFI module is monitored to be offline, a channel switching instruction is directly sent to the APP, the channel switching instruction carries the current online state of the multimode equipment, and the APP switches the communication channel to the ZIGBEE channel according to the current online state. And if the ZIGBEE module is monitored to be offline and the WIFI channel is unavailable, switching the communication channel to the Bluetooth channel.
In some of these implementations, the first multi-mode device may be a smart device, such as a smart refrigerator, a smart desk lamp, etc., and the second multi-mode device may be a mobile electronic device, such as a cell phone, ipad, etc. Specifically, if the communication connection state is monitored to be an offline state, the intelligent device is controlled to send a communication channel switching instruction to the APP in the second multimode device, so that the APP is instructed to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
Currently, a heartbeat packet uploaded by the dual-mode device is monitored through a cloud, if the heartbeat packet reported by the device is not monitored within three minutes, the heartbeat is judged to be overtime. The cloud sends the offline message of the device to the APP through the mqtt channel, and after receiving the offline message, the APP sets the online state of the device to be offline locally, and starts Bluetooth scanning. If the user is around the dual mode device at this time, the device may be controlled through bluetooth near field communication. In the method, whether the intelligent device is off-line or not is judged by means of the heartbeat packet monitored by the cloud, and the APP cannot rapidly know whether the on-line state of the dual-mode device changes or not through an effective way, so that the problem of switching delay is caused. When a user uses the device, if the device is in an off-line state, the problem that the device is uncontrollable within three minutes of the user is caused.
Compared with the prior art, the communication channel switching method provided by the application monitors the communication connection state between the first multimode equipment and the second multimode equipment; and if the communication connection state is monitored to be an offline state, controlling the first multimode equipment to send a communication channel switching instruction to the second multimode equipment so as to instruct the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority. According to the communication channel switching scheme, the timeout of the heartbeat package is not relied, and the second multimode equipment is directly informed after the current communication channel is monitored, so that the second multimode equipment can rapidly change the online state of the first multimode equipment by knowing, the rapid switching of the communication channel is realized, and the problem of switching delay is avoided.
In some embodiments, a communication channel switching method is applied to a first multimode device, and the method comprises:
monitoring a communication connection state with a second multimode device;
if the communication connection state is monitored to be an offline state, a communication channel switching instruction is directly sent to the second multimode equipment so as to instruct the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
In some embodiments, the first multimode device is a dual-mode device comprising a WIFI module and a bluetooth module; the method comprises the following steps:
monitoring WIFI online states of the first multimode device and the second multimode device;
and if the WIFI online state is monitored to be offline, directly sending a channel switching instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to a Bluetooth channel.
Bluetooth and WIFI belong to wireless communication network standards, and the same point of the Bluetooth and the WIFI is that the Bluetooth and the WIFI work in an ISM2.4GHz public frequency band. At present, the traditional bluetooth technology is widely used for pairing and transmitting data of mobile terminals, the transmission speed is low, the effective transmission distance is only 10 meters, and the traditional bluetooth technology is generally only used for transmitting data. The WIFI has the greatest advantages that the transmission speed is high and can reach 11Mbps, and in addition, the effective distance of the WIFI is long. In this application, the WIFI channel is preferentially adopted, and the switching to the Bluetooth channel is performed when the WIFI channel is unavailable. Specifically, the dual-mode device monitors the online state of the WIFI module, and when the offline state of the WIFI module is monitored, the channel switching instruction is directly sent to the APP to indicate the APP to switch the WIFI channel to the standby Bluetooth channel. On the one hand, the problem that the APP cannot control the dual-mode device through the WIFI channel in a carrier (including but not limited to a mobile phone, a tablet, a computer and the like) wireless environment can be solved, and on the other hand, the effect of channel fast switching can be achieved.
It can be understood that when the WIFI channel is monitored to be available, the APP can be informed of the available information of the WIFI channel, so that the APP can switch the Bluetooth channel to the WIFI channel.
In some embodiments, if it is monitored that the WIFI online state is offline, directly sending a communication channel switching instruction to the second multimode device to instruct the second multimode device to switch the WIFI channel to the bluetooth channel, includes:
if the WIFI online state is monitored to be offline, acquiring a Bluetooth connection state with the second multimode equipment;
and sending a Bluetooth broadcast packet or an online state change instruction to the second multimode equipment according to the Bluetooth connection state so as to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
When the WIFI module is offline, the Bluetooth connection between the dual-mode device and the APP may be established, the Bluetooth connection may not be established, and whether the dual-mode device establishes the Bluetooth connection relationship with the APP or not is determined according to the Bluetooth connection state of the APP, so that the online state of the APP can be notified in what manner, the Bluetooth connection state between the dual-mode device and the APP is acquired, and whether a Bluetooth broadcast packet or an online state change instruction is sent to the APP is determined according to the Bluetooth connection state of the APP.
In some embodiments, the sending, according to the bluetooth connection status, a bluetooth broadcast packet or an online status change instruction to the second multimode device to instruct the second multimode device to switch a WIFI channel to a bluetooth channel includes:
and if the Bluetooth connection state is that the Bluetooth connection with the second multimode equipment is not established currently, sending a Bluetooth broadcast packet to the second multimode equipment, wherein the connection mark position in the Bluetooth broadcast packet is a request for establishing the Bluetooth connection.
In this embodiment, the first multimode device is used as an intelligent device, and the second multimode device is used as a mobile terminal. When monitoring that the WIFI channel of the mobile terminal is offline, if the intelligent device is not connected with the mobile terminal through the Bluetooth, the intelligent device can try to send a Bluetooth broadcast packet, and the connection mark position in the broadcast packet is used as a request for Bluetooth connection. At this moment, if the user clicks the operation panel to enable the mobile terminal to be in an awakening state, the mobile terminal receives the Bluetooth broadcast packet, specifically, the APP in the mobile terminal receives the Bluetooth broadcast packet, the APP can start Bluetooth scanning and analyze the content of the Bluetooth broadcast packet, if the connection mark position is a request connection, the APP can initiate Bluetooth connection and establish a safe Bluetooth channel, and at the moment, the user can operate the equipment through the Bluetooth channel, so that the control priority is rapidly switched.
And if the Bluetooth connection state is that the Bluetooth connection is established with the second multimode equipment at present, sending a state change instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
When monitoring that the dual-mode device is WIFI offline, if the APP and the dual-mode device establish Bluetooth connection at the moment, the dual-mode device can inform the current online state of the APP device through a device state change instruction. After the APP receives and analyzes the instruction, the WIFI channel can be switched into the Bluetooth channel according to the current online state of the dual-mode device. Under the scene, the control priority can be switched quickly and noninductively.
The embodiment also provides a communication channel switching method, which is applied to a second multimode device and comprises steps 210 to 230; wherein:
step 210, receiving a communication channel switching instruction, where the communication channel switching instruction is an instruction that is directly sent to the second multimode device when the first multimode device monitors that the communication connection state is an offline state;
step 220, analyzing the channel switching instruction to obtain the current online state of the first multimode equipment;
step 230, switching the communication channel to other communication channels according to the current online state and the preset priority of the first multimode device.
According to the channel switching method applied to the second multimode device, the multimode device monitors the online state of the current communication module, and if the current communication module is monitored to be offline, the first multimode device directly sends a communication channel switching instruction to the second multimode device so as to indicate the second multimode device to switch the communication channel to other communication channels according to the current online state and the preset priority of the first multimode device. According to the channel switching scheme, the timeout of the heartbeat packet is not relied on, and when the current communication module is monitored to be offline, the second multimode device is directly informed, so that the second multimode device can rapidly realize the rapid switching of the communication channels by knowing whether the online state between the multimode devices changes, and the problem of switching delay is avoided.
In some of these embodiments, the method further comprises: if the second multimode device establishes connection with a plurality of communication modules in the first multimode device at the same time, when the first multimode device reports the same data through two channels, analyzing a type field in the data to determine whether the data is the data actively reported by the first multimode device or the data responded to be reported; and if the data is response report data, carrying out duplicate removal processing on the data through the seq field in the data.
In this embodiment, the first multimode device is an intelligent device, and the second multimode device is specifically an APP. The active data reporting is that the intelligent equipment actively reports the current dp data to the App, and the reporting is not triggered by a user. The response report is that when the user controls the intelligent device, the App sends a dp instruction, and at the moment, the device replies the dp instruction, namely the response report is actively triggered by the user. In this embodiment, only the response report data is subjected to deduplication processing. For example, the App performs deduplication processing on the same piece of data according to the serial number of the data reported by the intelligent device, and ensures that one piece of data is executed only once.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment further provides a channel switching device, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the channel switching device is omitted here. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a channel switching apparatus according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes: a monitoring module 310 and a switching module 320; wherein:
a monitoring module 310, configured to monitor a communication connection status between the first multimode device and the second multimode device;
the switching module 320 is configured to control the first multimode device to send a communication channel switching instruction to the second multimode device if it is monitored that the communication connection state is an offline state, so as to instruct the second multimode device to switch the current communication channel to another communication channel according to the communication connection state and a preset priority.
According to the communication channel switching device, the communication connection state between the first multimode device and the second multimode device is monitored through the monitoring module 310, if the communication connection state is monitored to be an offline state, the switching module 320 controls the first multimode device to send a communication channel switching instruction to the second multimode device so as to indicate the second multimode device to switch the current communication channel to other communication channels according to the communication connection state and the preset priority, and the problem that the communication channel of the multimode device is not switched timely in the related technology is solved.
In some embodiments, the first multimode device is a dual mode device, the dual mode device comprising a WIFI module and a bluetooth module; the monitoring module 310 is configured to monitor WIFI online states of the first multimode device and the second multimode device; the switching module 320 is configured to directly send a channel switching instruction to the second multimode device if it is monitored that the WIFI online state is offline, so as to instruct the second multimode device to switch the WIFI channel to the bluetooth channel.
In some embodiments, the switching module 320 is further configured to: if the WIFI online state is monitored to be offline, acquiring a Bluetooth connection state with the second multimode equipment; and sending a Bluetooth broadcast packet or an online state change instruction to the second multimode equipment according to the Bluetooth connection state so as to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
In some embodiments, the switching module 320 is further configured to: if the Bluetooth connection state is that the Bluetooth connection with the second multimode equipment is not established currently, a Bluetooth broadcast packet is sent to the second multimode equipment, and the connection mark position in the Bluetooth broadcast packet is a request for establishing the Bluetooth connection;
and if the Bluetooth connection state is that the Bluetooth connection is established with the second multimode equipment at present, sending a state change instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
In addition, the channel switching method described in the embodiment of the present application with reference to fig. 1 and fig. 2 may be implemented by a computer device. Fig. 4 is a hardware structure diagram of a computer device according to an embodiment of the present application.
The computer device may include a processor 41 and a memory 42 storing computer program instructions.
Specifically, the processor 41 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present APPlication.
Memory 42 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 42 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 42 may include removable or non-removable (or fixed) media, where appropriate. The memory 42 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 42 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 42 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (earrom), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 42 may be used to store or cache various data files for processing and/or communication use, as well as possibly computer program instructions for execution by the processor 42.
The processor 41 realizes any one of the communication channel switching methods in the above-described embodiments by reading and executing computer program instructions stored in the memory 42.
In some of these embodiments, the computer device may also include a communication interface 43 and a bus 40. As shown in fig. 4, the processor 41, the memory 42, and the communication interface 43 are connected via the bus 40 to complete mutual communication.
The communication interface 43 is used for implementing communication between modules, devices, units and/or apparatuses in the embodiments of the present application. The communication interface 43 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
Bus 40 comprises hardware, software, or both coupling the components of the computer device to each other. Bus 40 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 40 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 40 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The computer device may execute the channel switching method in the embodiment of the present application based on the obtained program instruction, thereby implementing the communication channel switching method described in conjunction with fig. 1 and 2.
In addition, in combination with the channel switching method in the foregoing embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the communication channel switching methods in the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for switching a communication channel, the method comprising:
monitoring a communication connection state between the first multimode device and the second multimode device;
and if the communication connection state is monitored to be an offline state, controlling the first multimode equipment to send a communication channel switching instruction to the second multimode equipment so as to instruct the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
2. The communication channel switching method according to claim 1, applied to a first multimode device, the method comprising:
monitoring a communication connection state with a second multimode device;
if the communication connection state is monitored to be an offline state, a communication channel switching instruction is directly sent to the second multimode equipment so as to instruct the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
3. The communication channel switching method according to claim 2, wherein the first multimode device is a dual mode device, and the first multimode device includes a WIFI module and a bluetooth module; the method comprises the following steps:
monitoring WIFI online states of the first multimode device and the second multimode device;
and if the WIFI online state is monitored to be offline, directly sending a channel switching instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to a Bluetooth channel.
4. The communication channel switching method according to claim 3, wherein if it is monitored that the WIFI online state is offline, directly sending a communication channel switching instruction to the second multimode device to instruct the second multimode device to switch the WIFI channel to the bluetooth channel, includes:
if the WIFI online state is monitored to be offline, acquiring a Bluetooth connection state with the second multimode equipment;
and sending a Bluetooth broadcast packet or an online state change instruction to the second multimode equipment according to the Bluetooth connection state so as to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
5. The communication channel switching method according to claim 4, wherein the sending a bluetooth broadcast packet or an online status change instruction to the second multimode device according to the bluetooth connection status to instruct the second multimode device to switch the WIFI channel to the bluetooth channel comprises:
if the Bluetooth connection state is that the Bluetooth connection with the second multimode equipment is not established currently, a Bluetooth broadcast packet is sent to the second multimode equipment, and the connection mark position in the Bluetooth broadcast packet is a request for establishing the Bluetooth connection;
and if the Bluetooth connection state is that the Bluetooth connection is established with the second multimode equipment at present, sending a state change instruction to the second multimode equipment to instruct the second multimode equipment to switch the WIFI channel to the Bluetooth channel.
6. The communication channel switching method according to claim 1, applied to a second multimode device, the method comprising:
receiving a communication channel switching instruction, wherein the communication channel switching instruction is an instruction which is directly sent to the second multimode device when the first multimode device monitors that the communication connection state is an offline state;
analyzing the communication channel switching instruction to obtain the current online state of the first multimode equipment;
and switching a communication channel to other communication channels according to the current online state and the preset priority of the first multimode equipment.
7. The communication channel switching method according to claim 6, further comprising:
if the second multimode device establishes connection with a plurality of communication modules in the first multimode device at the same time, when the first multimode device reports the same data through two channels, analyzing a type field in the data to determine whether the data is the data actively reported by the first multimode device or the data responded to be reported;
and if the data is response report data, carrying out duplicate removal processing on the data through the seq field in the data.
8. A communication channel switching apparatus comprising: the system comprises a monitoring module and a switching module; wherein:
the monitoring module is used for monitoring the communication connection state between the first multimode equipment and the second multimode equipment;
and the switching module is used for controlling the first multimode equipment to send a communication channel switching instruction to the second multimode equipment if the communication connection state is monitored to be an offline state so as to indicate the second multimode equipment to switch the current communication channel to other communication channels according to the communication connection state and the preset priority.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the communication channel switching method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the communication channel switching method according to any one of claims 1 to 7.
CN202110274290.9A 2021-03-15 2021-03-15 Communication channel switching method and device, computer equipment and readable storage medium Active CN113038440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110274290.9A CN113038440B (en) 2021-03-15 2021-03-15 Communication channel switching method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110274290.9A CN113038440B (en) 2021-03-15 2021-03-15 Communication channel switching method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113038440A true CN113038440A (en) 2021-06-25
CN113038440B CN113038440B (en) 2023-04-07

Family

ID=76468955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110274290.9A Active CN113038440B (en) 2021-03-15 2021-03-15 Communication channel switching method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113038440B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257650A (en) * 2021-10-29 2022-03-29 四川新网银行股份有限公司 Bank individual user online checking method, system and equipment
CN114338375A (en) * 2021-12-24 2022-04-12 深圳市创维软件有限公司 Device resetting method, device and storage medium
CN114884987A (en) * 2022-04-24 2022-08-09 青岛海信医疗设备股份有限公司 Method, device and storage medium for acquiring equipment state information
CN116074375A (en) * 2021-10-29 2023-05-05 青岛海尔科技有限公司 Method, system and equipment for updating remote online state of equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130157566A1 (en) * 2011-12-15 2013-06-20 Fujitsu Mobile Communications Limited Information processing terminal apparatus and method for controlling information processing terminal apparatus
US20150245298A1 (en) * 2014-02-25 2015-08-27 Canon Kabushiki Kaisha Communication apparatus, method of controlling a communication apparatus, and storage medium
US20150350813A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Dynamic transport switching in inter-device communication
US20160127581A1 (en) * 2014-11-04 2016-05-05 Canon Kabushiki Kaisha Communication system, communication apparatus, method of controlling the same, information processing apparatus, method of controlling the same and storage medium
US20160269957A1 (en) * 2013-10-21 2016-09-15 Korea University Research And Business Foundation Method for selecting network and electronic device therefor
US20170223579A1 (en) * 2014-07-31 2017-08-03 Lg Electronics Inc. Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
CN108134722A (en) * 2017-12-27 2018-06-08 惠州Tcl家电集团有限公司 Control method for washing machine, mobile terminal, system and readable storage medium storing program for executing
CN109756864A (en) * 2019-01-09 2019-05-14 深圳高新兴物联科技有限公司 A kind of vehicle-mounted TBOX equipment communication means and device, TBOX equipment and readable storage medium storing program for executing
CN110636486A (en) * 2019-09-25 2019-12-31 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system
CN111107241A (en) * 2018-10-25 2020-05-05 佳能株式会社 Communication device, control method of communication device, and storage medium
CN111163497A (en) * 2019-12-19 2020-05-15 展讯通信(上海)有限公司 Communication device, system and channel switching method
CN111757300A (en) * 2019-03-27 2020-10-09 本田技研工业株式会社 Agent device, control method for agent device, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130157566A1 (en) * 2011-12-15 2013-06-20 Fujitsu Mobile Communications Limited Information processing terminal apparatus and method for controlling information processing terminal apparatus
US20160269957A1 (en) * 2013-10-21 2016-09-15 Korea University Research And Business Foundation Method for selecting network and electronic device therefor
US20150245298A1 (en) * 2014-02-25 2015-08-27 Canon Kabushiki Kaisha Communication apparatus, method of controlling a communication apparatus, and storage medium
US20150350813A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Dynamic transport switching in inter-device communication
US20170223579A1 (en) * 2014-07-31 2017-08-03 Lg Electronics Inc. Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
US20160127581A1 (en) * 2014-11-04 2016-05-05 Canon Kabushiki Kaisha Communication system, communication apparatus, method of controlling the same, information processing apparatus, method of controlling the same and storage medium
CN108134722A (en) * 2017-12-27 2018-06-08 惠州Tcl家电集团有限公司 Control method for washing machine, mobile terminal, system and readable storage medium storing program for executing
CN111107241A (en) * 2018-10-25 2020-05-05 佳能株式会社 Communication device, control method of communication device, and storage medium
CN109756864A (en) * 2019-01-09 2019-05-14 深圳高新兴物联科技有限公司 A kind of vehicle-mounted TBOX equipment communication means and device, TBOX equipment and readable storage medium storing program for executing
CN111757300A (en) * 2019-03-27 2020-10-09 本田技研工业株式会社 Agent device, control method for agent device, and storage medium
CN110636486A (en) * 2019-09-25 2019-12-31 珠海格力电器股份有限公司 Method for establishing communication connection after equipment is offline and intelligent home system
CN111163497A (en) * 2019-12-19 2020-05-15 展讯通信(上海)有限公司 Communication device, system and channel switching method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257650A (en) * 2021-10-29 2022-03-29 四川新网银行股份有限公司 Bank individual user online checking method, system and equipment
CN116074375A (en) * 2021-10-29 2023-05-05 青岛海尔科技有限公司 Method, system and equipment for updating remote online state of equipment
CN114257650B (en) * 2021-10-29 2024-03-12 四川新网银行股份有限公司 Bank personal user networking checking method, system and equipment
CN114338375A (en) * 2021-12-24 2022-04-12 深圳市创维软件有限公司 Device resetting method, device and storage medium
CN114338375B (en) * 2021-12-24 2024-03-12 深圳市创维软件有限公司 Device resetting method, device and storage medium
CN114884987A (en) * 2022-04-24 2022-08-09 青岛海信医疗设备股份有限公司 Method, device and storage medium for acquiring equipment state information
CN114884987B (en) * 2022-04-24 2024-03-29 青岛海信医疗设备股份有限公司 Method, device and storage medium for acquiring equipment state information

Also Published As

Publication number Publication date
CN113038440B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN113038440B (en) Communication channel switching method and device, computer equipment and readable storage medium
CN107396386B (en) Channel detection method and channel detection equipment
US20200213903A1 (en) Data transmission method and device
US8055306B2 (en) Mobile phone alert system and method
US10764805B2 (en) Signal strength measurement method and device
CN112134758B (en) Method and device for monitoring weak network environment and reconnecting communication session
WO2021102814A1 (en) Ue capability reporting method, apparatus and system
CN112106395A (en) Method and device for reporting user equipment capacity and computer readable storage medium
US8565672B2 (en) Communication
CN111294460A (en) Communication method, terminal, network equipment and communication device
CN107222937B (en) Data transmission method, device and terminal
CN114390501A (en) Data transmission method and electronic equipment
WO2019015429A1 (en) Data transmission method, device, terminal and computer-readable storage medium
WO2017128185A1 (en) Method and terminal for controlling service connection
CN110545539B (en) Self-adaptive link establishment method and system based on big data
EP3512284B1 (en) Method for determining time at which rrc signaling takes effect and terminal,
CN107659996B (en) Channel access method and equipment
WO2023050362A1 (en) Downlink transmission configuration, receiving method and apparatus, communication device and storage medium
CN113114798B (en) Method for acquiring Internet protocol IP address and electronic equipment
WO2022067544A1 (en) Wireless communication method, terminal device, and network device
US20220141900A1 (en) Communication method, communication system, and wireless communication device
CN108464038A (en) Method, base station, mobile management entity and the terminal of circuit domain dropping
CN111757381B (en) Transmission method, network equipment and terminal
CN110913022A (en) Method, device and system for downloading network file of mobile terminal and storage medium
CN113923686B (en) Auxiliary information processing method, auxiliary information sending method and related equipment

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