CN112533038B - Playing box wireless connection switching method and playing box capable of automatically switching wireless connection - Google Patents
Playing box wireless connection switching method and playing box capable of automatically switching wireless connection Download PDFInfo
- Publication number
- CN112533038B CN112533038B CN202011364798.XA CN202011364798A CN112533038B CN 112533038 B CN112533038 B CN 112533038B CN 202011364798 A CN202011364798 A CN 202011364798A CN 112533038 B CN112533038 B CN 112533038B
- Authority
- CN
- China
- Prior art keywords
- router
- playing box
- connection
- wireless connection
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012544 monitoring process Methods 0.000 claims description 41
- 238000004891 communication Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000002474 experimental method Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4122—Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44227—Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a wireless connection switching method and a playing box capable of automatically switching wireless connection, wherein if the wireless connection between the playing box and a first router is disconnected and the playing box does not reestablish the wireless connection relation with the first router within a first preset time period after disconnection, whether a first router to be connected exists within a preset connection range of the playing box is judged; if yes, determining a second router from the first router to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the playing box and the second router; if the current playing box does not exist, starting a hot spot module in the playing box, and establishing a wireless connection relation between the playing box and the hot spot module. The method and the playing box can realize the automatic switching of wireless connection, ensure that the playing box and the user terminal control equipment are under a local area network, and bring good use experience to users.
Description
Technical Field
The invention relates to the field of wireless connection of playing boxes, in particular to a playing box wireless connection switching method and a playing box capable of automatically switching wireless connection.
Background
Currently, a user controls a playing box through a terminal control device such as a mobile phone, a tablet computer, a personal computer, and the like to indirectly control an LED display screen to play a program through the playing box, and to control the playing box through the terminal control device, the playing box and the terminal control device need to be in the same local area network. However, the playing box and the terminal control device are in the same area network by connecting the playing box and the terminal control device with the same wireless router, when the wireless router is temporarily interrupted, the playing box and the terminal control device cannot be in the same local area network, at this time, for the user to control the LED display screen by using the terminal control device through the playing box, the user will spend more time waiting for or repairing the wireless router, which is obvious, the current mode will delay the use time of the user, and the experience effect of the user is affected.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for switching wireless connection of a playing box and a playing box capable of automatically switching wireless connection, which can ensure that the playing box and a terminal control device of a user are in the same local area network.
The invention provides a method for switching wireless connection of a play box, which comprises the following steps: monitoring whether the wireless connection between the playing box and the first router is disconnected or not in real time; if the wireless connection between the playing box and the first router is disconnected and the wireless connection relation between the playing box and the first router is not reestablished in a first preset time period after disconnection, judging whether a first router to be connected exists in a preset connection range of the playing box or not; if yes, determining a second router from the first router to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the playing box and the second router; if the current playing box does not exist, starting a hot spot module in the playing box, and establishing a wireless connection relation between the playing box and the hot spot module.
Further, the step of determining whether the first router to be connected exists within the preset connection range of the play box includes: acquiring a historical connection record, wherein the historical connection record stores the successful connection record of the playing box and each router; and judging whether the distance between each router stored in the historical connection record and the playing box is within a preset connection range or not according to the historical connection record, if at least one router exists, judging that a first router to be connected exists within the preset connection range of the playing box, and if not, judging that the first router to be connected does not exist within the preset connection range of the playing box.
Further, the determining the second router from the first to-be-connected router according to the preset router selection policy includes: judging whether the number of the first routers to be connected is two or more; if so, acquiring the times of successful connection between each first router to be connected and the playing box or acquiring the signal strength of each first router to be connected, and selecting the first router to be connected with the highest times of successful connection or the highest signal strength as a second router; and if not, taking the first router to be connected as a second router.
Further, after the playing box establishes a wireless connection relationship with the hotspot module, the method further comprises: monitoring whether the wireless connection between the playing box and the hot spot module is disconnected or not in real time, if the wireless connection between the playing box and the hot spot module is disconnected and the playing box does not reestablish the wireless connection relation with the hot spot module within a second preset time period after disconnection, judging whether a second router to be connected exists within a preset connection range of the playing box or not; if yes, determining a third router from the second routers to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the playing box and the third router.
Further, the method further comprises: after the playing box and the hotspot module establish a wireless connection relationship, monitoring whether a third router to be connected exists in a preset connection range of the playing box in real time; if the router exists, the hotspot module is closed, the wireless connection between the playing box and the hotspot module is disconnected, a fourth router is determined from the third to-be-connected routers according to a preset router selection strategy, and the playing box and the fourth router establish a wireless connection relation.
Further, the method further comprises: and respectively recording the connection failure times of the playing box and each router, if the connection failure times exceed a preset time threshold, judging the router with the connection failure times exceeding the preset time threshold as a fault router, and sending router fault feedback information to a control device of a preset person by the playing box.
Further, the method further comprises: the working time of the playing box is preset, before the playing box establishes the wireless connection relation with the second router or the hot spot module, whether the current time is in the working time or not is judged, and if the current time is in the working time, the playing box establishes the wireless connection relation with the first router, the second router or the hot spot module.
Further, the playing box comprises a hot spot module, a wireless connection module, a connection state monitoring module, a router monitoring module to be connected and a control module, wherein: the connection state monitoring module is connected with the control module and used for monitoring whether the wireless connection between the playing box and the first router is disconnected or not and judging whether the playing box and the first router reestablish the wireless connection relationship within a first preset time period after disconnection or not; the router to be connected monitoring module is connected with the connection state monitoring module and the control module, and is used for judging whether the first router to be connected exists in a preset connection range of the playing box or not and sending a judgment result to the control module after the playing box is disconnected from the first router in a wireless connection mode and the playing box is not reestablished in a wireless connection relation with the first router within a first preset time period after disconnection; the control module is connected with the connection state monitoring module, the router monitoring module to be connected, the wireless connection module and the hotspot module, and is used for determining a second router from the first router to be connected according to a preset router selection strategy when the first router to be connected exists in a preset connection range of the playing box, sending a first connection instruction to the wireless connection module, starting the hotspot module when the first router to be connected does not exist in the preset connection range of the playing box, and sending a second connection instruction to the wireless connection module; the wireless connection module is connected with the control module and used for establishing a wireless connection relation between the playing box and the second router according to the first connection instruction or establishing a wireless connection relation between the playing box and the hot spot module according to the second connection instruction; and the hot spot module is connected with the control module and used for starting or closing the hot spot according to the instruction of the control module.
Further, the router monitoring module to be connected includes a history connection record storage unit and a router judgment unit to be connected with the history connection record storage unit, wherein: the historical connection record storage unit is used for storing historical connection records, and the historical connection records store the successful connection records of the playing boxes and the routers; and the router to be connected judging unit is used for acquiring the historical connection record and judging whether a first router to be connected exists in the preset connection range of the playing box or not according to the historical connection record.
Further, the playing box further comprises a router failure determination module and a feedback information sending module, wherein: the router failure judgment module is connected with the control module and used for respectively recording the connection failure times of the playing box and each router, judging the corresponding router as a failure router when the connection failure times exceed a preset time threshold value, sending a judgment result to the control module, and controlling the feedback information sending module by the control module to send router failure feedback information to a control device of a preset person.
The invention provides a playing box wireless connection switching method and a playing box capable of automatically switching wireless connection, which at least have the following beneficial effects: and monitoring the wireless connection state between the playing box and the router in real time, determining a second router from the routers to be connected within the preset connection range of the playing box when the playing box is disconnected with the router, and connecting the playing box with the second router so that the playing box is communicated with terminal control equipment of a user through the second router, receives a control instruction sent by the user and controls the LED display screen to play programs. When no router to be connected exists, the hotspot module in the playing box is started, the playing box is connected with the hotspot module, whether the router to be connected exists in the preset connection range of the playing box or not is guaranteed, the playing box and the terminal control equipment of a user can be guaranteed to be located under the same local area network and communicate with the same local area network, the user does not need to spend a long time waiting for the router to be repaired when the router fails, and good use experience is brought to the user.
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 embodiments or the description in the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts;
fig. 1 is a first flowchart of a method for switching a wireless connection of a play box according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second method for switching wireless connections of a broadcasting box according to another embodiment of the present invention;
fig. 3 is a flowchart of a method for determining whether a router to be connected exists according to an embodiment of the present invention;
fig. 4 is a flow chart of a method for switching wireless connection of a play box according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a playbox capable of automatically switching wireless connections according to an embodiment of the present invention;
501-control module, 502-connection state monitoring module, 503-to-be-connected router monitoring module, 504-wireless connection module and 505-hotspot module.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the invention, the playing box is used for controlling the LED display screen to play programs. The user can establish a wireless connection relation with the playing box through the router by using terminal control equipment such as a mobile phone, a tablet personal computer, a personal computer and the like, so that the control of playing programs on the LED display screen is realized.
In an embodiment of the present invention, a method for switching a wireless connection of a play box is provided, which is applied in the play box, as shown in fig. 1, the method includes the following steps:
step S101: and acquiring the wireless connection state of the playing box and the first router.
Step S102: and judging whether the wireless connection between the playing box and the first router is disconnected or not according to the wireless connection state, if so, executing the step S103, otherwise, executing the step S101 again until the disconnection of the wireless connection between the playing box and the first router is monitored.
When the playing box is wirelessly connected with the first router, the playing box can communicate with the terminal control equipment of the user through the first router. The playing box communicates with the terminal control equipment of the user, one of the conditions controlled by the terminal control equipment of the user is that the playing box and the terminal control equipment of the user are under the same local area network, and the condition that the playing box and the terminal control equipment of the user are simultaneously in wireless connection with the same router is simply understood. Therefore, when the wireless connection between the playing box and the first router is disconnected, the playing box is also disconnected from the terminal control device of the user, and the user can not control the LED display screen by controlling the playing box by using the terminal control device. Therefore, in this step, after the playing box is judged to be disconnected from the first router, the subsequent wireless connection switching step is performed, and the wireless connection between the playing box and other routers or hotspot modules is established.
Step S103: and judging whether the playing box reestablishes a wireless connection relation with the first router within a first preset time period after disconnection, if so, executing a step S101, and otherwise, executing a step S104.
Specifically, only when the playing box does not reestablish the wireless connection relationship with the first router within a first preset time period after disconnection, the signal of the first router is considered to be interrupted and cannot be recovered within a short time, so that subsequent wireless connection switching is performed. More specifically, the first preset time period may be set by a technician in combination with experience or a plurality of experiments, and preferably, the first preset time period is 2 minutes. Furthermore, the disconnection times of the playing box and the first router due to unstable signals can be recorded, a disconnection time threshold value is preset, once the disconnection times of the playing box and the first router due to unstable signals exceed the disconnection time threshold value, even if wireless connection is reestablished in a first preset time period after disconnection every time, subsequent playing box wireless connection switching steps are executed, the playing box is enabled to establish wireless connection with other routers to be connected, and therefore the situation that the use experience of a user is influenced by multiple times of short disconnection is avoided.
Step S104: and judging whether a first router to be connected exists in a preset connection range of the playing box, if so, executing step S105, and if not, executing step S106.
In this embodiment, the preset connection range is set by a technician according to a plurality of experiments, and as long as it is ensured that the router signal received by the play box is stronger in the preset connection range, the wireless connection effect is better. More specifically, the preset connection range is also related to the model of the router, the router may have 4 or 8 antennas, and the like, and the larger the number of the antennas, the wider the signal coverage range is, and thus the preset connection range can be set to be larger.
Specifically, as shown in fig. 2, the following method may be adopted to determine whether the first router to be connected exists within the preset connection range of the playbox:
step S1041: and acquiring a historical connection record.
Specifically, the history connection record stores a record of successful connection between the play box and each router, and more specifically, the record of successful connection between the play box and each router includes information such as a name of each router and a password of the router. When the wireless connection relation is established between the playing box and the router which is not connected before for the first time, the name and the password of the router are stored in the historical connection record, and the subsequent playing box is connected with the router again, namely, the password does not need to be input by a user, and the playing box can be directly and automatically connected according to the name and the password of the router stored in the historical connection record.
Step S1042: and judging whether the distance between at least one router and the playing box is within a preset connection range in the historical connection record or not according to the historical connection record, if so, executing a step S1043, and otherwise, executing a step S1044.
Specifically, the distance between the router and the play box may be calculated according to a difference between the strength of the signal received by the play box and the strength of the signal sent by the router, and if the difference is larger, the longer the distance is, the smaller the difference is, and the closer the distance is. In addition, the distance between the router and the playing box can be calculated by using the following formula: FL =20lgR +20lgf +92.44, where f is the operating frequency and is in MHz, R is the distance between the playing box and the router and is in km, FL represents the free space loss and is in dB, and FL can be calculated by the following formula: pr = Pt-Ct + Gt-FL + Gr-Cr, where Pr is the sensitivity of the receiving end (i.e., the playing box), pt is the power of the transmitting end (i.e., the router), cr is the connector and cable loss of the receiving end (the playing box), ct is the connector and cable loss of the transmitting end (the router), gr is the antenna gain of the receiving end (the playing box), and Gt is the antenna gain of the transmitting end (the router).
Step S1043: and judging that a first router to be connected exists in a preset connection range of the playing box.
Step S1044: and judging that the first router to be connected does not exist in the preset connection range of the playing box.
It should be understood that the first router to be connected is not only a router in the history connection record within the preset connection range of the play box, but also a router which is already started and is in an operating state. In addition, the first router to be connected does not include the first router disconnected from the play box.
Step S105: and determining a second router from the first routers to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the playing box and the second router.
Specifically, there may be one or two or more first routers to be connected, and therefore it is necessary to determine a second router from the first routers to be connected according to a preset router selection policy, more specifically, determine whether the number of the first routers to be connected is two or more, if the number of the first routers to be connected is two or more, obtain the number of times that each first router to be connected is successfully connected with the play box or obtain the signal strength of each first router to be connected, and select the first router to be connected with the highest number of times that the first router is successfully connected or the highest signal strength as the second router; and if only one first router to be connected is available, directly using the first router to be connected as a second router. In another case, the two routers may be combined to select the second router, that is, after the first router with the highest connection frequency is selected, if there are 2 or more than 2 first routers to be connected with the highest connection frequency, the first router to be connected with the strongest signal strength within a certain time is selected from the first routers to be connected with the highest connection frequency as the second router.
The playing box and the second router establish a wireless connection relation, and communication with the terminal control equipment of the user is realized through the second router, so that the playing box and the terminal control equipment of the user can still be in the same local area network after being disconnected from the first router, and the LED display screen is controlled to play programs after receiving a control instruction from the terminal control equipment of the user.
Step S106: and starting a hot spot module in the playing box, and establishing a wireless connection relation between the playing box and the hot spot module.
Specifically, after the hot spot module in the play box is started, the communication module (e.g., the 4g module and the 5g module) in the play box needs to be started first, so that the communication between the play box and the terminal control device in the same local area network can be realized through the hot spot module.
When the first router to be connected does not exist in the preset connection range of the playing box, the hot spot module preset in the playing box is started, the playing box and the hot spot module are enabled to establish a wireless connection relation, wireless connection between the playing box and the terminal control equipment of a user is guaranteed, and the situation that when the router to be connected does not exist in the preset connection range of the playing box, the playing box cannot receive a control instruction sent by the user through the terminal control equipment, and the use time of the user is delayed to influence the experience effect of the user is avoided.
According to the method for switching the wireless connection of the playing box, whether the wireless connection between the playing box and the router is disconnected or not is monitored in real time, once the wireless connection between the playing box and the router is disconnected, the playing box is enabled to be wirelessly connected with other routers, the playing box and the terminal control equipment of the user are enabled to be kept in the same local area network through communication between the other routers and the terminal control equipment of the user, the user does not need to spend more time waiting for or repairing the wireless router, and good use experience is brought to the user.
In still another embodiment of the present invention, after step S106, the method for switching wireless connection of playbox further comprises the following steps:
step S107: and monitoring whether the wireless connection between the playing box and the hotspot module is disconnected or not in real time, if so, executing step S108, otherwise, repeatedly executing step S107.
Step S108: and judging whether the playing box reestablishes the wireless connection relation with the hotspot module within a second preset time period after disconnection, if so, executing step S107, and otherwise, executing step S109.
Specifically, the second preset time period may also be set by a technician in combination with experience or multiple experiments, and the preferred second preset time period is also 2 minutes, as well as the first preset time period. Only in a second preset time period after disconnection, the playing box does not reestablish the wireless connection relation with the hotspot module, the hotspot module signal is considered to be interrupted and cannot be recovered in a short time, so that subsequent wireless connection switching is carried out. Furthermore, the disconnection times of the playing box and the hotspot module due to unstable signals can be recorded, a disconnection time threshold is preset, once the disconnection times of the playing box and the hotspot module due to unstable signals exceed the disconnection time threshold, even if the wireless connection is reestablished in a second preset time period after each disconnection, the subsequent wireless connection switching step of the playing box is executed, so that the playing box establishes a wireless connection relationship with other routers to be connected, and the influence of the temporary disconnection for many times on the use experience of a user is avoided.
Step S109: and judging whether a second router to be connected exists in the preset connection range of the playing box, if so, executing the step S1010, otherwise, repeatedly executing the step S109.
Specifically, in this embodiment, the method for determining whether the second router to be connected exists within the preset connection range of the playing box is the same as the method for determining whether the first router to be connected exists within the preset connection range of the playing box in the previous embodiment, and redundant description is not repeated in this embodiment.
Step S1010: and determining a third router from the second routers to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the play box and the third router.
In this embodiment, a method for determining the third router from the second to-be-connected router according to the preset router selection policy is the same as the method for determining the second router from the first to-be-connected router according to the preset router selection policy in the previous embodiment, and redundant description is omitted in this embodiment.
According to the method for switching the wireless connection of the playing box, after the playing box is disconnected from the hotspot module, the playing box is connected with the third router, so that the playing box and the terminal control device of the user can be in the same local area network, and the playing box receives a control instruction sent by the user through the terminal control device and controls the LED display screen to play. Further, in this embodiment, the playing box is disconnected from the hotspot module, and after the playing box is connected to the third router, the wireless connection relationship between the playing box and the third router is monitored in real time, and once it is monitored that the playing box is disconnected and the wireless connection relationship between the playing box and the third router is not reestablished within a third preset time period, the steps S104 to S106 are repeatedly executed, so that the loop monitoring and the loop switching of the wireless connection between the playing box and the terminal control device of the user are realized, the playing box can be continuously located in the same local area network with the terminal control device of the user, the user does not need to wait for too long time when a certain router is repaired, and good use experience is brought to the user.
In another embodiment of the present invention, different from the previous embodiment, after step S106, the method for switching wireless connection of a playbox further includes the following steps:
step S1011: and monitoring whether a third router to be connected exists in the preset connection range of the playing box in real time, if so, executing step S1012, otherwise, repeatedly executing step S1011.
In this embodiment, the method for monitoring whether the third router to be connected exists within the preset connection range of the playing box is the same as the method for determining whether the first router to be connected exists within the preset connection range of the playing box in the above embodiments, and redundant description is not repeated in this embodiment.
Step S1012: and closing the hotspot module, and disconnecting the wireless connection between the playing box and the hotspot module.
Step S1013: and determining a fourth router from the third routers to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the playing box and the fourth router.
In this embodiment, only the hotspot module is used as a standby wireless connection device, and once the existence of the third to-be-connected router is monitored, the hotspot module is closed, so that the playing box and the fourth router establish a wireless connection relationship, thereby reducing the consumption of the hotspot module and prolonging the service life of the hotspot module.
Further, after the playing box and the fourth router establish a wireless connection relationship, the wireless connection relationship between the playing box and the fourth router is monitored in real time, and once the playing box is monitored to be disconnected from the fourth router and the wireless connection relationship between the playing box and the fourth router is not reestablished within a third preset time period, the steps S104 to S106 are repeatedly executed, so that the loop monitoring and the loop switching of the wireless connection of the playing box are realized, the playing box and the terminal control device of the user can be continuously located in the same local area network, the user does not need to wait for too long time when a certain router is repaired, and good use experience is brought to the user.
In another embodiment of the present invention, the method for switching wireless connection of a play box further includes recording connection failure times of the play box and each router, respectively, if the connection failure times exceed a preset time threshold, determining a router with the connection failure times exceeding the preset time threshold as a failed router, and sending, by the play box, router failure feedback information to a control device of a preset person. Specifically, in this embodiment, the router failure feedback information includes information such as the model of the router and the name of the router; the preset personnel can be router management personnel; failure of the playbox to connect to the router includes two situations: (1) The playbox and the router are not successfully established in a wireless connection relationship. (2) After the playing box and the router successfully establish the wireless connection relationship, the wireless connection is disconnected, and the connection is not reestablished in a preset time period. Furthermore, if the router is determined as a failed router, even if the number of times of successful connection between the router and the playing box is the highest, the playing box does not establish a wireless connection relationship with the router any more, but selects a router with the second-place number of times of successful connection between the router and the playing box to establish a wireless connection relationship until the playing box receives the router failure resolution feedback information sent by the control device of the preset personnel.
The method for switching the wireless connection of the play box provided by the embodiment can judge whether the router fails, and send the feedback information of the router failure to the control device of the preset personnel after judging that the router fails, so as to remind the preset personnel to repair the failure in time.
In another embodiment of the present invention, the method for switching a wireless connection of a playing box further includes presetting a working time of the playing box, before the second router or the hot spot module of the playing box establishes the wireless connection relationship, determining whether the current time is in the working time, and if the current time is in the working time, establishing the wireless connection relationship between the playing box and the first router, the second router or the hot spot module. The problem that the data transmission speed between other playing boxes and the router is influenced due to resource waste caused by connection of the playing box with the router or a hot spot beyond the working time is effectively avoided.
In another embodiment of the present invention, a playing box capable of automatically switching wireless connection is further provided, as shown in fig. 5, the playing box includes a control module 501, a connection status monitoring module 502, a to-be-connected router monitoring module 503, a wireless connection module 504, and a hot spot module 505, where: the control module 502 controls the other modules in the playbox. A connection state monitoring module 502, connected to the control module 501, for monitoring whether the wireless connection between the playing box and the first router is disconnected, and determining whether the playing box and the first router reestablish the wireless connection relationship within a first preset time period after disconnection; the to-be-connected router monitoring module 503 is connected to the connection state monitoring module 502 and the control module 501, and is configured to determine whether a first to-be-connected router exists within a preset connection range of the playing box after the wireless connection between the playing box and the first router is disconnected and the playing box does not reestablish a wireless connection relationship with the first router within a first preset time period after the disconnection, and send a determination result to the control module 501; the control module 501 is connected with the connection state monitoring module 502, the to-be-connected router monitoring module 503, the wireless connection module 504 and the hotspot module 505, and is configured to determine a second router from the first to-be-connected router according to a preset router selection policy when the first to-be-connected router exists in a preset connection range of the play box, send a first connection instruction to the wireless connection module 504, start the hotspot module 505 when the first to-be-connected router does not exist in the preset connection range of the play box, and send a second connection instruction to the wireless connection module 504; a wireless connection module 504, connected to the control module 501, configured to establish a wireless connection relationship between the playing box and the second router according to the first connection instruction, or establish a wireless connection relationship between the playing box and the hot spot module 505 according to the second connection instruction; the hot spot module 505 is connected to the control module 501, and is turned on or turned off according to an instruction of the control module 501, so as to implement wireless connection or disconnection with the wireless connection module 504. The playing box provided in this embodiment realizes the wireless connection switching with the router by using the playing box wireless connection switching method disclosed in the above embodiments, so as to ensure that the playing box and the terminal control device of the user are in the same local area network.
In another embodiment of the present invention, the to-be-connected router monitoring module 503 includes a historical connection record storage unit and a to-be-connected router determination unit connected to the historical connection record storage unit, wherein: the historical connection record storage unit is used for storing historical connection records, and the historical connection records store the successful connection records of the playing boxes and the routers; and the to-be-connected router judging unit is used for acquiring the historical connection record and judging whether a first to-be-connected router exists in the preset connection range of the playing box according to the historical connection record.
In another embodiment of the present invention, the play box further includes a router failure determination module and a feedback information sending module, wherein: the router failure judging module is connected with the control module and used for respectively recording the connection failure times of the playing box and each router, judging the corresponding router as a failure router when the connection failure times exceed a preset time threshold value, sending a judging result to the control module, and controlling the feedback information sending module by the control module to send router failure feedback information to a control device of a preset person.
The playing box wireless connection switching method and the playing box capable of automatically switching wireless connection provided by the invention can monitor the wireless connection state of the playing box and the router in real time, and when the playing box is disconnected with the router and the wireless connection relation is not reestablished in a preset time period, the playing box is controlled to establish the wireless connection relation with other routers or hot spot modules, so that the playing box and terminal control equipment of a user are ensured to be in the same local area network, the user does not need to spend too much time waiting for router maintenance when the router fails, and good use experience is brought to the user.
The terms and expressions used in the specification of the present invention are for illustration only and are not meant to be limiting. The terms "first", "second", "third" and "fourth" used herein in the claims and the description of the present invention are for the purpose of convenience of distinction, have no special meanings, and are not intended to limit the present invention. It will be appreciated by those skilled in the art that changes could be made to the details of the above-described embodiments without departing from the underlying principles thereof. The scope of the invention is, therefore, indicated by the appended claims, in which all terms are intended to be interpreted in their broadest reasonable sense unless otherwise indicated.
Claims (9)
1. A method for switching wireless connection of a play box is characterized by comprising the following steps:
monitoring whether the wireless connection between the playing box and the first router is disconnected or not in real time;
if the wireless connection between the playing box and the first router is disconnected and the wireless connection relation between the playing box and the first router is not reestablished in a first preset time period after disconnection, whether a first router to be connected exists in a preset connection range of the playing box is judged, and the judging method comprises the following steps: acquiring a historical connection record, wherein the historical connection record stores the record of successful connection between the playing box and each router; judging whether the distance between each router stored in the historical connection record and a playing box is within a preset connection range or not according to the historical connection record, if at least one router exists, judging that a first router to be connected exists within the preset connection range of the playing box, and if not, judging that the first router to be connected does not exist within the preset connection range of the playing box;
if the first router exists, determining a second router from the first router to be connected according to a preset router selection strategy, and establishing a wireless connection relation between the playing box and the second router;
if the current playing box does not exist, starting a hot spot module in the playing box, and establishing a wireless connection relation between the playing box and the hot spot module.
2. The method for switching wireless connection of a playbox according to claim 1, wherein the determining a second router from the first to-be-connected routers according to a preset router selection policy comprises:
judging whether the number of the first routers to be connected is two or more;
if so, acquiring the times of successful connection between each first router to be connected and the playing box or acquiring the signal strength of each first router to be connected, and selecting the first router to be connected with the highest times of successful connection or the highest signal strength as a second router;
and if not, taking the first router to be connected as a second router.
3. The method for switching wireless connection of a playbox according to claim 1, wherein after the playbox establishes a wireless connection relationship with the hotspot module, the method further comprises:
monitoring whether the wireless connection between the playing box and the hot spot module is disconnected or not in real time, and if the wireless connection between the playing box and the hot spot module is disconnected and the playing box does not reestablish the wireless connection relationship with the hot spot module within a second preset time period after disconnection, judging whether a second router to be connected exists within a preset connection range of the playing box or not;
if yes, determining a third router from the second routers to be connected according to the preset router selection strategy, and establishing a wireless connection relation between the playing box and the third router.
4. The method for switching wireless connection of a playbox according to claim 1, further comprising:
after the playing box and the hotspot module establish a wireless connection relationship, monitoring whether a third router to be connected exists in a preset connection range of the playing box in real time;
if the router is the third router to be connected, closing the hotspot module, disconnecting the wireless connection between the playing box and the hotspot module, determining a fourth router from the third router to be connected according to the preset router selection strategy, and establishing a wireless connection relation between the playing box and the fourth router.
5. The method of claim 1, wherein the method comprises:
and respectively recording the connection failure times of the playing box and each router, if the connection failure times exceed a preset time threshold, judging the router with the connection failure times exceeding the preset time threshold as a fault router, and sending router fault feedback information to a control device of a preset person by the playing box.
6. The method of claim 1, further comprising:
presetting the working time of the playing box, judging whether the current time is within the working time before the playing box establishes the wireless connection relation with the second router or the hot spot module, and if so, establishing the wireless connection relation with the first router, the second router or the hot spot module by the playing box.
7. The utility model provides a but automatic switch wireless connection's broadcast box which characterized in that, the broadcast box includes hotspot module, wireless connection module, connection status monitoring module, treats connection router monitoring module, control module, wherein:
the connection state monitoring module is connected with the control module and used for monitoring whether the wireless connection between the playing box and the first router is disconnected or not and judging whether the playing box and the first router reestablish the wireless connection relationship within a first preset time period after disconnection or not;
the to-be-connected router monitoring module is connected with the connection state monitoring module and the control module, and is used for judging whether a first to-be-connected router exists in a preset connection range of the playing box or not and sending a judgment result to the control module after the playing box is disconnected from the first router in a wireless connection manner and the playing box is not reestablished in a wireless connection relationship with the first router within a first preset time period after disconnection;
the control module is connected with the connection state monitoring module, the router to be connected monitoring module, the wireless connection module and the hotspot module, and is used for determining a second router from the first router to be connected according to a preset router selection strategy when the first router to be connected exists in a preset connection range of the playing box, sending a first connection instruction to the wireless connection module, starting the hotspot module when the first router to be connected does not exist in the preset connection range of the playing box, and sending a second connection instruction to the wireless connection module;
the wireless connection module is connected with the control module and used for establishing a wireless connection relation between the playing box and the second router according to the first connection instruction or establishing a wireless connection relation between the playing box and the hotspot module according to the second connection instruction;
the hot spot module is connected with the control module and used for starting or closing the hot spot according to the instruction of the control module.
8. The automatically switchable wireless connection playbox of claim 7, wherein the to-be-connected router monitoring module comprises a history connection record storage unit and a to-be-connected router judgment unit connected with the history connection record storage unit, wherein:
the historical connection record storage unit is used for storing historical connection records, and the historical connection records store the successful connection records between the playing box and each router;
and the router to be connected judging unit is used for acquiring the historical connection record and judging whether a first router to be connected exists in the preset connection range of the playing box or not according to the historical connection record.
9. The automatically switchable wireless connection playbox of claim 7, further comprising a router failure determination module and a feedback information sending module, wherein:
the router fault judging module is connected with the control module and used for respectively recording the connection failure times of the playing box and each router, judging the corresponding router as a fault router when the connection failure times exceed a preset time threshold value, sending a judging result to the control module, and controlling the feedback information sending module to send router fault feedback information to a control device of a preset person by the control module.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011364798.XA CN112533038B (en) | 2020-11-27 | 2020-11-27 | Playing box wireless connection switching method and playing box capable of automatically switching wireless connection |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011364798.XA CN112533038B (en) | 2020-11-27 | 2020-11-27 | Playing box wireless connection switching method and playing box capable of automatically switching wireless connection |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112533038A CN112533038A (en) | 2021-03-19 |
| CN112533038B true CN112533038B (en) | 2022-11-25 |
Family
ID=74994658
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011364798.XA Active CN112533038B (en) | 2020-11-27 | 2020-11-27 | Playing box wireless connection switching method and playing box capable of automatically switching wireless connection |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112533038B (en) |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102006519A (en) * | 2010-11-18 | 2011-04-06 | 中兴通讯股份有限公司 | Method and system for realizing interaction between multi-media terminal and internet protocol (IP) set top box |
| CN103237246A (en) * | 2013-03-27 | 2013-08-07 | 深圳市九洲电器有限公司 | Set-top box actual standby and standby wake-up circuit and set-top box |
| CN103281581A (en) * | 2013-05-31 | 2013-09-04 | 成都三零凯天通信实业有限公司 | Human-computer interaction system and method controlling IP set-top box through smart phone voice |
| CN103813191A (en) * | 2012-11-15 | 2014-05-21 | 中兴通讯股份有限公司 | Set top box and usage method based on same |
| CN105072318A (en) * | 2015-07-23 | 2015-11-18 | 凌义川 | Electronic equipment integrating camera and television box |
| CN105681444A (en) * | 2016-02-02 | 2016-06-15 | 优听无限传媒科技(北京)有限责任公司 | Method for remotely controlling target wifi loudspeaker box by intelligent terminal |
| CN105791936A (en) * | 2014-12-24 | 2016-07-20 | 北京融合视讯科技有限公司 | Player implementation method and device and player |
| WO2017128654A1 (en) * | 2016-01-25 | 2017-08-03 | 中兴通讯股份有限公司 | Method and device realizing switching required by internet-connected terminal |
| WO2017157012A1 (en) * | 2016-03-16 | 2017-09-21 | 烽火通信科技股份有限公司 | Method for realizing support of both wired and wireless network applications in intelligent set-top box |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8781300B2 (en) * | 2008-05-23 | 2014-07-15 | At&T Intellectual Property I, Lp | System and apparatus for managing video content recordings |
| CN103179475A (en) * | 2011-12-22 | 2013-06-26 | 深圳市三诺电子有限公司 | Wireless speaker and wireless speaker system comprising wireless speakers |
| EP2849448A1 (en) * | 2013-09-13 | 2015-03-18 | Nagravision S.A. | Method for controlling access to broadcast content |
| CN103747333A (en) * | 2013-10-28 | 2014-04-23 | 华为终端有限公司 | Method and device for controlling set top box |
| CN103974386A (en) * | 2014-05-29 | 2014-08-06 | 珠海迈科电子科技有限公司 | Set top box and method for realizing wireless AP (access point) sharing thereof |
| US20170201627A1 (en) * | 2015-12-09 | 2017-07-13 | Japan Communications Inc. | Methods and systems for phone service with personal switch box |
| US10872607B2 (en) * | 2017-11-14 | 2020-12-22 | Thomas STACHURA | Information choice and security via a decoupled router with an always listening assistant device |
| US10999733B2 (en) * | 2017-11-14 | 2021-05-04 | Thomas STACHURA | Information security/privacy via a decoupled security accessory to an always listening device |
| CN108200616A (en) * | 2018-01-02 | 2018-06-22 | 青岛海信宽带多媒体技术有限公司 | A kind of switching method and apparatus of network access mode |
-
2020
- 2020-11-27 CN CN202011364798.XA patent/CN112533038B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102006519A (en) * | 2010-11-18 | 2011-04-06 | 中兴通讯股份有限公司 | Method and system for realizing interaction between multi-media terminal and internet protocol (IP) set top box |
| CN103813191A (en) * | 2012-11-15 | 2014-05-21 | 中兴通讯股份有限公司 | Set top box and usage method based on same |
| CN103237246A (en) * | 2013-03-27 | 2013-08-07 | 深圳市九洲电器有限公司 | Set-top box actual standby and standby wake-up circuit and set-top box |
| CN103281581A (en) * | 2013-05-31 | 2013-09-04 | 成都三零凯天通信实业有限公司 | Human-computer interaction system and method controlling IP set-top box through smart phone voice |
| CN105791936A (en) * | 2014-12-24 | 2016-07-20 | 北京融合视讯科技有限公司 | Player implementation method and device and player |
| CN105072318A (en) * | 2015-07-23 | 2015-11-18 | 凌义川 | Electronic equipment integrating camera and television box |
| WO2017128654A1 (en) * | 2016-01-25 | 2017-08-03 | 中兴通讯股份有限公司 | Method and device realizing switching required by internet-connected terminal |
| CN105681444A (en) * | 2016-02-02 | 2016-06-15 | 优听无限传媒科技(北京)有限责任公司 | Method for remotely controlling target wifi loudspeaker box by intelligent terminal |
| WO2017157012A1 (en) * | 2016-03-16 | 2017-09-21 | 烽火通信科技股份有限公司 | Method for realizing support of both wired and wireless network applications in intelligent set-top box |
Non-Patent Citations (1)
| Title |
|---|
| "基于嵌入式的智慧家庭系统的设计与实现";谢耀;《中国优秀硕士毕业论文》;20150515;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112533038A (en) | 2021-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4170489B2 (en) | Cable broadcasting system | |
| US9699724B2 (en) | Method, device, and system for regulating power consumption | |
| US8611906B2 (en) | Mobile communications system, general base station apparatus, base station apparatus, and base station status control method | |
| US8538352B2 (en) | Radio base transceiver station and power supplying method | |
| JP4169281B2 (en) | Communication terminal | |
| CN106791515B (en) | Intelligent switching system for main and standby transmitters of digital television transmitter and implementation method thereof | |
| KR20240060665A (en) | Networking methods, devices, facilities and storage media | |
| CN110691393A (en) | Communication method based on public and private integration | |
| CN114337796B (en) | Redundancy backup method and system for digital optical fiber repeater | |
| CN102036341B (en) | Method and device for implementing cell blockage | |
| CN105657734A (en) | Wireless intelligent roaming method, system and device | |
| CN112533038B (en) | Playing box wireless connection switching method and playing box capable of automatically switching wireless connection | |
| CN110996356A (en) | Converged communication heterogeneous communication method and system based on 5G | |
| US20170188318A1 (en) | Communications channel handover in a distributed antenna system (das) to avoid or mitigate service disconnection | |
| JP2009105935A (en) | Base station and base station test method | |
| CN208028887U (en) | Distributed access system and its radio frequency cable detection device | |
| CN102026243B (en) | Method and system for processing user equipment | |
| CN110740491A (en) | Communication processing method and device of wireless network and household appliance | |
| CN115664015A (en) | Distribution network automation system and switching signal detection method thereof | |
| CN111030754B (en) | Repeater and monitoring method and system of optical fiber repeater | |
| CN103064295B (en) | A kind of radio frequency directly puts the method that equipment carries out arranging its running parameter of inquiry unloading | |
| CN111526549B (en) | Base station apparatus, communication system, and communication method | |
| CN112072658A (en) | Intelligent power distribution device and intelligent power distribution system | |
| JP2003188884A (en) | Wireless access system | |
| CN119402929A (en) | Method for stopping operation of satellite base station, satellite base station and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Address after: 518000 room 3801, block a, block 8, block C, Wanke Yuncheng phase III, Liuxin 4th Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (37-39 floors) Applicant after: Carlette cloud Technology Co.,Ltd. Address before: 518000 room 3801, block a, block 8, block C, Wanke Yuncheng phase III, Liuxin 4th Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (37-39 floors) Applicant before: COLORLIGHT (SHENZHEN) CLOUD TECHNOLOGY Co.,Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |