WO2016145592A1 - 一种建立通信的方法、装置及终端、路由器 - Google Patents

一种建立通信的方法、装置及终端、路由器 Download PDF

Info

Publication number
WO2016145592A1
WO2016145592A1 PCT/CN2015/074289 CN2015074289W WO2016145592A1 WO 2016145592 A1 WO2016145592 A1 WO 2016145592A1 CN 2015074289 W CN2015074289 W CN 2015074289W WO 2016145592 A1 WO2016145592 A1 WO 2016145592A1
Authority
WO
WIPO (PCT)
Prior art keywords
low level
router
high level
binary number
demodulated
Prior art date
Application number
PCT/CN2015/074289
Other languages
English (en)
French (fr)
Inventor
李念
张科
邓以实
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/074289 priority Critical patent/WO2016145592A1/zh
Priority to CN201580064320.6A priority patent/CN107005917B/zh
Publication of WO2016145592A1 publication Critical patent/WO2016145592A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a router for establishing communication.
  • WiFi Wireless Fidelity
  • the cumbersome password characters are easy to input errors, which may result in failure to access the wireless local area network, and the login time is long due to constant input of the user name and password.
  • the user name and password are relatively easy to lose. After the loss, the terminal user has to restore the default WiFi configuration by restoring the factory settings of the wireless LAN gateway, and the terminal device also needs to be reconfigured to establish a communication connection with the wireless LAN gateway. Extends the time that end users log in to the WLAN gateway.
  • the embodiments of the present invention provide a method, a device, a terminal, and a router for establishing a communication, which are used to solve the problem that the login failure or the login time is extended due to a cumbersome password input error or loss existing in the prior art.
  • an embodiment of the present invention provides a router, including:
  • N is a positive integer
  • the receiver is configured to receive a trigger indication, where the trigger indication is used to indicate that the terminal access information of the terminal access router is sent to the terminal;
  • a processor configured to adjust the access information after the receiver receives the trigger indication Making an optical signal and transmitting the optical signal to the terminal by controlling at least one of the N illumination devices.
  • the processor is specifically configured to:
  • the processor is configured to perform the access information by using a binary data format. Representing and modulating the access information represented in the form of binary data into an electrical signal represented in a high-low level form.
  • the processor is configured to modulate a binary number 0 to a low level of a first preset duration An electrical signal composed of a high level of the second preset duration, and modulating the binary number 1 into an electrical signal composed of a low level of the first preset duration and a high level of the third preset duration; or
  • the method is configured to modulate the binary number 0 into an electrical signal composed of a high level of the fourth preset duration and a low level of the fifth preset duration, and modulate the binary number 1 into a high level and a sixth pre-predetermined for the fourth preset duration. Set the electrical signal composed of the low level of the duration.
  • the processor is further configured to control Before the at least one of the N light-emitting devices transmits the light signal to the terminal, transmitting a front light signal to the terminal by controlling a set light-emitting device of the N light-emitting devices; the front light The signal carries the illuminating device information for transmitting the optical signal, and is used to instruct the terminal to receive the optical signal corresponding to the access information from the illuminating device corresponding to the illuminating device information after receiving the pre-lighting signal.
  • the embodiment of the present invention further provides a terminal, including:
  • An illuminating state collecting device for collecting optical signals from at least one illuminating device on the router number
  • a processor configured to demodulate the optical signal collected by the illumination state collection device, and use the demodulated information as access information for accessing the router, and access the router.
  • the processor is specifically configured to indicate a high level based on a first lighting state of the lighting device and a low level in a second lighting state
  • the rule is that the optical signal collected by the illuminating state collecting device is processed into an electrical signal based on the high and low level forms; the processed electrical signal is demodulated, and the demodulated information is used as a connection to the router. Enter the information and access the router.
  • the processed electrical signal is demodulated, and the demodulated information is used as the accessing the router.
  • the processor is specifically configured to:
  • the processed electrical signal is demodulated into a binary number form; and the information corresponding to the demodulated binary number is used as access information for accessing the router, and is connected to the router.
  • the processor when the processed electrical signal is demodulated into a binary number, the processor is specifically used to :
  • the low level and the low level after the low level are demodulated to a binary number of 1, if the low level is passed After extending the first preset duration threshold and then low, demodulating the low level and the low level after the low level into a binary number of 0; or
  • the low level and the low level after the low level are demodulated to a binary number of 0, and after the low level is passed After the first preset duration threshold is extended to a low level, the low level and the low level after the low level are demodulated to a binary number of one.
  • the processor when the processed electrical signal is demodulated into a binary number form, the processor is specifically configured to:
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After extending the second preset duration threshold to be low, demodulating the high level and the low level after the high level into a binary number 0; or
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After the second preset duration threshold is extended to a low level, the high level and the low level after the high level are demodulated to a binary number of zero.
  • the illuminating state collecting device is further used for Before collecting the optical signal emitted by the at least one illuminating device on the router, acquiring a pre-lighting signal sent by the illuminating device;
  • the processor is further configured to process the pre-lighting signal collected by the illuminating state collecting device based on a rule that the first illuminating state of the setting illuminating device indicates a high level and the second illuminating state represents a low level a front conductive signal represented by a high and low level form; demodulating the processed front conductive signal into a binary number form;
  • the illuminating state collecting device is specifically configured to: when collecting an optical signal emitted by at least one illuminating device on the router, based on the illuminating device information included in the preamble signal represented by the binary number demodulated by the pre-conducting signal, the collecting device The optical signal transmitted by the light-emitting device on the router corresponding to the light-emitting device information.
  • the illuminating state collecting device is a camera.
  • the embodiment of the present invention further provides a method for establishing communication, where the method includes:
  • the router receives a trigger indication, where the trigger indication is used to indicate that the terminal access information of the terminal access router is sent to the terminal;
  • the router After receiving the trigger indication, the router modulates the access information into an optical signal, and sends the optical signal to the terminal by using at least one lighting device on the router.
  • the router modulates the access information into an optical signal, including:
  • the router After receiving the trigger indication, the router modulates the access information into an electrical signal represented by a high level and a low level;
  • the router processes the electrical signal into an optical signal based on a rule that the first illumination state of the illumination device on the router represents a high level and the second illumination state represents a low level.
  • the modulating the access information into an electrical signal represented by a high-low level form include:
  • the router expresses the access information in the form of binary data, and modulates the access information represented in the form of binary data into an electrical signal represented in a high-low level form.
  • the access information represented by the binary data form is modulated into an electrical signal represented by a high-low level form ,include:
  • the router modulates the binary number 0 into an electrical signal composed of a low level of the first preset duration and a high level of the second preset duration, and modulates the binary number 1 into a low level of the first preset duration and a third pre- An electrical signal consisting of a high level of duration; or
  • the router modulates the binary number 0 into an electrical signal composed of a high level of the fourth preset duration and a low level of the fifth preset duration, and modulates the binary number 1 into a high level of the fourth preset duration and a sixth pre- Set the electrical signal composed of the low level of the duration.
  • the method further includes:
  • the router transmits a front light signal to the terminal through a setting light emitting device on the router before transmitting the optical signal to the terminal by using at least one light emitting device on the router, where the front light signal carries
  • the illuminating device information for transmitting the optical signal is used to instruct the terminal to receive the optical signal from the illuminating device corresponding to the illuminating device information after receiving the pre-lighting signal.
  • the embodiment of the present invention further provides a method for establishing communication, where the method includes:
  • the terminal collects an optical signal emitted by at least one illuminating device on the router through the illuminating state collecting device;
  • the terminal demodulates the optical signal, and uses the demodulated information as access information for accessing the router to access the router.
  • the demodulating the optical signal includes:
  • the terminal processes the optical signal into an electrical signal based on a high-low level form based on a rule that the first light-emitting state of the light-emitting device represents a high level and the second light-emitting state represents a low level;
  • the electrical signal is demodulated, and the demodulated information is used as access information for accessing the router to access the router.
  • the processed electrical signal is demodulated, and the demodulated information is used as the accessing the router.
  • Access information, access to the router including:
  • the terminal demodulates the processed electrical signal into a binary number form, and accesses the information corresponding to the demodulated binary number as access information of the router to the router.
  • the demodulating the processed electrical signal into a binary number includes:
  • the terminal identifies each low level in the processed electrical signal, and demodulates the low level after each low level and each low level respectively as follows:
  • the low level and the low level after the low level are demodulated to a binary number of 1, if the low level is passed Extend the first preset After the duration threshold is low, the low level and the high level after the low level are demodulated to a binary number of 0; or
  • the low level and the low level after the low level are demodulated to a binary number of 0, and after the low level is passed After the first preset duration threshold is extended to a low level, the low level and the low level after the low level are demodulated to a binary number of one.
  • the demodulating the processed electrical signal into a binary number includes:
  • the terminal identifies each high level in the processed electrical signal, and demodulates the low level after each high level and each high level respectively as follows:
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After extending the second preset duration threshold to be low, demodulating the high level and the low level after the high level into a binary number 0; or
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After the second preset duration threshold is extended to a low level, the high level and the low level after the high level are demodulated to a binary number of zero.
  • the terminal Before collecting the optical signal sent by the at least one illuminating device on the router, the terminal collects a pre-lighting signal sent by the setting illuminating device on the router by using the illuminating state collecting device;
  • the terminal processes the pre-lighting signal collected by the illuminating state collecting device into a high-low power based on a rule that the first illuminating state of the setting illuminating device on the router indicates a high level and the second illuminating state indicates a low level.
  • a front conductive signal expressed in a flat form; demodulating the processed front conductive signal into a binary number form;
  • Collecting the optical signal emitted by the at least one illuminating device on the router including:
  • the embodiment of the present invention further provides an apparatus for establishing communication, including:
  • N is a positive integer
  • the receiving module is configured to receive a trigger indication, where the trigger indication is used to send the terminal access information of the terminal access router to the terminal;
  • a processing module configured to: after the receiving module receives the trigger indication, modulate the access information into an optical signal, and send the location to the terminal by controlling at least one of the N lighting modules Describe the light signal.
  • the processing module is configured to: after the receiving module receives the trigger indication, modulate the access information into high and low power An electrical signal represented in a flat form; the electrical signal is processed into an optical signal based on a rule that the first illumination state of the illumination module represents a high level and the second illumination state represents a low level.
  • the processing module is configured to perform the access information by using a binary data format. Representing and modulating the access information represented in the form of binary data into an electrical signal represented in a high-low level form.
  • the processing module is specifically configured to:
  • the binary number 0 is modulated into an electrical signal composed of a high level of the fourth preset duration and a low level of the fifth preset duration
  • the binary number 1 is modulated into a high level of the fourth preset duration and a sixth preset duration
  • the processing module is further configured to:
  • the illuminating module information is used to indicate that the terminal receives the optical signal from the illuminating module corresponding to the illuminating module information after receiving the preamble optical signal.
  • the embodiment of the present invention further provides an apparatus for establishing communication, including:
  • An illuminating state collecting module configured to collect an optical signal emitted by at least one illuminating module on the router
  • the processing module is configured to demodulate the optical signal collected by the illumination state collection module, and use the demodulated information as access information for accessing the router to access the router.
  • the processing module is specifically configured to:
  • the optical signal is processed into an electrical signal based on a high-low level form based on a rule that the first light-emitting state of the light-emitting module on the router represents a high level and the second light-emitting state represents a low level;
  • the electrical signal is demodulated, and the demodulated information is used as access information for accessing the router to access the router.
  • the processing module is specifically configured to:
  • the processed electrical signal is demodulated into a binary number form; and the information corresponding to the demodulated binary number is used as access information for accessing the router, and is connected to the router.
  • the processing module is specifically configured to:
  • the low level and the low level after the low level are demodulated to a binary number of 1, if the low level is passed Extend the first preset After the duration threshold is low, the low level and the high level after the low level are demodulated to a binary number of 0; or
  • the low level and the low level after the low level are demodulated to a binary number of 0, and after the low level is passed After the first preset duration threshold is extended to a low level, the low level and the low level after the low level are demodulated to a binary number of one.
  • the processing module is specifically configured to:
  • Each high level in the processed electrical signal is identified, and each low level and each low level after each high level are respectively demodulated as follows:
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After extending the second preset duration threshold to be low, demodulating the high level and the low level after the high level into a binary number 0; or
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After the second preset duration threshold is extended to a low level, the high level and the low level after the high level are demodulated to a binary number of zero.
  • the illuminating state collecting module is further configured to: :
  • the processing module is further configured to: based on a rule that the first lighting state of the setting light emitting module on the router indicates a high level and the second lighting state represents a low level, the preamble collected by the light emitting state collecting module
  • the optical signal processing becomes a front conductive signal expressed in a high-low level form; the processed front conductive signal is demodulated into a binary number form;
  • the illuminating state collecting module is configured to collect, according to the light signal emitted by the at least one illuminating module on the router, the illuminating module information included in the preamble signal represented by the binary number demodulated by the pre conductive signal, And acquiring an optical signal emitted by the light emitting module on the router corresponding to the light emitting module information.
  • the router transmits the access information of the terminal and the router to the terminal through the visible light as a communication medium, so that the terminal establishes a connection with the router according to the received access information, and no longer needs to input a cumbersome password. This avoids the problem of extended login time or failed login.
  • FIG. 1 is a schematic structural diagram of a system for establishing communication according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a router according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of another router according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a modulation method of access information according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of another access information modulation manner according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a method for demodulating access information according to an embodiment of the present disclosure.
  • FIG. 8 is a flowchart of a method for establishing communication according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of another method for establishing communication according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an apparatus for establishing communication according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another apparatus for establishing communication according to an embodiment of the present invention.
  • the present invention provides a method, a device, a terminal, and a router for establishing communication, which are used to solve the problem of the login failure or the extension of the login time due to the cumbersome password input error or loss existing in the prior art.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
  • Embodiments of the present invention provide a system for establishing communication, including a terminal and a router. It is used to establish communication between the router and the terminal through key configuration information such as visible light transmission WiFi password. It can also realize textized output, archive, sharing, etc. after demodulation of visible light communication content.
  • a general router such as a home router, has one or more LED lights for indicating the status of the product.
  • the terminal device has an image acquisition device such as a camera. Based on this, in order to achieve lower cost, safer, and faster communication, a receiving terminal such as a smart phone/tablet and a router form a system for establishing communication, and communication is realized by visible light.
  • the embodiment of the invention provides a system for establishing communication. As shown in FIG. 1 , the system includes a router 100 and a terminal 200:
  • the router 100 receives the trigger indication, and the trigger indication is used to indicate that the terminal 200 sends the access information of the terminal 200 to the router 100. After receiving the trigger indication, the access information is modulated into an optical signal and passed. At least one of the light emitting devices in the router 100 transmits the optical signal to the terminal 200.
  • the router 100 modulates the access information of the preset terminal 200 to the router 100 into an electrical signal represented by a high-low level, based on the first illuminating of the illuminating device on the router 100. a state indicating a high level, and a second lighting state indicating a low level, processing the electrical signal into an optical signal, and transmitting the optical signal to the terminal 200 through at least one lighting device on the router 100;
  • the terminal 200 collects an optical signal emitted by at least one illuminating device on the router 100; demodulates the optical signal collected by the illuminating state collecting device, and uses the demodulated information as access information for accessing the router. Accessing the router.
  • the terminal 200 acquires an optical signal emitted by at least one illuminating device on the router 100; and based on a rule that the first illuminating state of the illuminating device indicates a high level and the second illuminating state indicates a low level, the optical signal is
  • the processing becomes an electrical signal based on a high-low level form; the processed electrical signal is demodulated, and the demodulated information is used as access information to the router 100 to access the router 100.
  • the embodiment of the present invention provides a router 100, as shown in FIG. 2, including N light-emitting devices 101 (only one light-emitting device is taken as an example in FIG. 2), a processor 102, and a receiver 103.
  • N is a positive integer
  • the receiver 103 is configured to receive a trigger indication, where the trigger indication is used to indicate to the terminal 200 that the terminal 200 accesses the access information of the router.
  • the processor 102 is configured to modulate the access information into an optical signal, and send the optical signal to the terminal by controlling at least one of the N light emitting devices 101.
  • the triggering indication may be triggered by a button, and may be triggered by a remote control device, and may also be triggered by a terminal device, and the specific triggering manner is not specifically limited in the embodiment of the present invention. If the transmission is triggered by a button, the router 100 may be provided with a trigger button, and the trigger button is connected to the processor 102. If the transmission is triggered by the remote control device, the device 100 can be provided with a means for receiving a trigger indication.
  • the processor 102 receives the trigger indication for triggering the issuance of the access information, modulates the access information into an optical signal, and then transmits it through at least one illumination device 101.
  • the router 100 further includes a memory 104, configured to store preset access information of the terminal 200 accessing the router 100, as shown in FIG.
  • the memory 104 can also be used to store program code executed by the processor 102, which can be ROM, RAM, EEPROM, disk storage medium or other magnetic storage device, or can be used to carry or store in the form of instructions or data structures.
  • the memory 104 and the processor 102, the receiver 103, and the light emitting device 101 may Connected via the bus.
  • the embodiment of the present invention does not limit the specific connection medium between the above components.
  • the memory 104, the receiver 103, the processor 102, and the light-emitting device 101 are connected by a bus in FIG. 3, and the bus is in FIG.
  • the manner in which the other components are connected is indicated by a thick line, and is not intended to be limited.
  • processor 102 when the processor 102 modulates the access information into an optical signal, the following may be specifically performed by:
  • the processor 102 when the processor 102 modulates the access information into an electrical signal represented by a high-low level form, the processor 102 may specifically be:
  • the access information is represented by a binary data form, and the access information represented by the binary data form is modulated into an electrical signal represented by a high and low level form.
  • the processor 102 may specifically connect the preset terminal 200 to the access information of the router 100 based on the binary number representation, and modulate the electrical signal represented by the high and low level forms:
  • the first implementation manner is: modulating the binary number 0 into an electrical signal composed of a low level of the first preset duration and a high level of the second preset duration, and modulating the binary number 1 into a low level of the first preset duration and An electrical signal composed of a high level of the third predetermined duration.
  • the second preset duration may be greater than the third preset duration.
  • the second preset duration may also be less than the third preset duration.
  • the second preset duration cannot be equal to the third preset duration.
  • the first preset duration may be 0.56 s
  • the second preset duration may be 0.56 s
  • the third preset duration may be 1.68 s.
  • the waveform diagram shown in Figure 4 can represent a binary number of 0 with a low level of 0.56 s, a high level of 0.56 s, and a high and low level of 1.12 s; a low level of 0.56 s, 1.68
  • the high level of s, the high and low level combination of 2.24 s represents the binary number 1.
  • the electrical signal is modulated into a digital signal composed of a high level of a fourth preset duration and a low level of a sixth preset duration.
  • the fifth preset duration may be greater than the sixth preset duration, and of course, the fifth preset duration may also be less than the sixth preset duration. However, the second preset duration cannot be equal to the third preset duration.
  • the waveform diagram of Figure 5 it can be represented by a high level of 0.56s, a low level of 0.56s, a high and low level of 1.12s, and a binary number of 0; a high level of 0.56s, 1.68
  • the low level of s, the high and low level combination of 2.24 s represents the binary number 1.
  • the router 100 and the terminal 200 may pre-negotiate a rule that determines that the first lighting state of the lighting device 101 represents a high level and the second lighting state represents a low level.
  • the user can pre-set the above rules in the router 100 through the human-machine interface on the router 100 in advance, and then can notify the terminal 200 in advance through the router 100.
  • the light-emitting device 101 may be an LED lamp on the router 100 or other light-emitting device capable of emitting visible light.
  • the light emitting state of the light emitting device 101 may be set in advance, for example, the first light emitting state of the light emitting device 101 is set to be lit, and the second light emitting state is turned off. The opposite is also possible. Of course, it is also possible to set the lighting state according to the color of the light. Or, the illuminating state and the like are determined according to the brightness value of the illuminating, which is not specifically limited in the embodiment of the present invention.
  • the solution provided by the foregoing embodiment of the present invention transmits the access information of the terminal and the router to the terminal through the visible light as a communication medium, so that the terminal establishes a connection with the router according to the received access information, and the input is no longer required. Passwords, etc., thus avoiding the problem of extended login time or failed login.
  • the processor 102 transmits the optical signal to the terminal by controlling at least one of the N light emitting devices 101, by controlling the setting light emitting device 101 of the N light emitting devices 101 to
  • the terminal transmits a pre-lighting signal;
  • the pre-lighting signal carries information of the illuminating device that transmits the optical signal, and is used to indicate that the terminal receives the light from the illuminating device corresponding to the illuminating device information after receiving the pre-lighting signal Access the optical signal corresponding to the information.
  • the optical signal refers to the optical signal modulated by the access information.
  • the optical signal refers to the optical signal modulated by the access information.
  • a light-emitting device in the router near the edge may also be transmitted to the terminal 200 through the preamble optical signal.
  • the processor 102 determines, in the N light emitting devices 101, a first light emitting device for transmitting the front light signal, and determines at least one of the N light emitting devices 101 for transmitting a second illuminating device for the optical signal, and transmitting the pre-lighting signal by the first illuminating device determined by the control; and transmitting the optical signal by controlling the second illuminating device after transmitting the pre-lighting signal;
  • the front conductive signal carries light emitting device information that transmits the optical signal. That is, the terminal 200 may determine, according to the received pre-lighting signal, from which light-emitting devices, the optical signals corresponding to the access information and the order of the optical signals received from the respective transmitting devices, that is, the terminal The order in which the optical signal signals are decoded.
  • the processor 102 may be configured to split the modulated optical signal into M sub-signals, where the M is equal to the determined number of second illumination devices;
  • the processor 102 determines, in the determined second illumination device, one illumination device 101 corresponding to each of the split sub-signals, and performs respectively for each of the determined illumination devices 101: by controlling the illumination device 101 to transmit A sub-signal corresponding to the illumination device 101.
  • the processor 102 may predetermine an LED lamp for transmitting the optical signal; if it is determined that N LEDs for transmitting the optical signal are N (N is less than or equal to M), the optical signal is Splitting into N sub-signals; wherein the decomposed N sub-signals are in one-to-one correspondence with the determined N LED lights. Then, each of the corresponding sub-signals is emitted by each LED lamp.
  • the password in the access information includes 8 bits, and 4 LED lights for setting the modulated optical signal are preset, LED light 1, LED light 2, LED light 3 and LED light 4, and the number order can be based on the LED.
  • the position of the lights on the router, each LED light is responsible for sending two passwords.
  • the optical signal (8-bit code) is equally divided into 4 sub-signals, sub-signal 1 and sub-signal 2, and sub-signal 3 and sub-signal 4, wherein sub-signal 1 and sub-signal 2 and sub-signal 3 and sub-signal 4 are connected end to end in a sequence to form a complete electric signal.
  • the sub-signal 1 located at the forefront corresponds to the LED 1 in advance
  • the sub-signal 2 corresponds to the LED 2
  • the sub-signal 3 corresponds to the LED 3
  • the sub-signal 4 corresponds to the LED 4.
  • the embodiment of the present invention further provides a terminal.
  • the terminal 200 includes:
  • the illuminating state collecting device 201 is configured to collect an optical signal emitted by at least one illuminating device 101 on the router 100.
  • the illuminating state collecting device 201 may be an image capturing device such as a camera.
  • the processor 202 is configured to demodulate the optical signal collected by the illumination state collection device, and use the demodulated information as access information for accessing the router to access the router.
  • the processor 202 processes the optical signal collected by the illuminating state collecting device 201 into a high level based on a rule that the first illuminating state of the illuminating device 101 indicates a high level and the second illuminating state indicates a low level.
  • the light-emitting state of the light-emitting device 101 may be set in advance, for example, the first light-emitting state of the light-emitting device 101 is set to be lighted, and the second light-emitting state is turned off, and the opposite may be the same.
  • the lighting state it is also possible to set the lighting state according to the color of the light.
  • the illuminating state and the like are determined according to the brightness value of the illuminating, which is not specifically limited in the embodiment of the present invention.
  • the terminal 200 and the router 100 may pre-negotiate a rule that the first lighting state of the lighting device 101 indicates a high level and the second lighting state indicates a low level. It is also possible for the router 100 to notify the terminal 200 in advance.
  • the light-emitting state of the light-emitting device 101 can be determined in advance, for example, it is determined that the first light-emitting state of the light-emitting device 101 is lighted, and the second light-emitting state is turned off. The opposite is also possible. It is of course also possible to determine the state of illumination based on the color of the illumination. Or, the illuminating state and the like are determined according to the brightness value of the illuminating, which is not specifically limited in the embodiment of the present invention.
  • the solution provided by the foregoing embodiment of the present invention transmits visible access information of the terminal and the router to the terminal through visible light as a communication medium, so that the terminal according to the received access information and The router establishes a connection, no longer needs to input cumbersome passwords, etc., thereby avoiding the problem of extended login time or login failure.
  • the processor 102 when demodulating the processed electrical signal and using the demodulated information as the access information of the router 100 to access the router 100, the processor 102 is specifically configured to:
  • the processed electrical signal is demodulated into a binary number form; and information corresponding to the demodulated binary number is used as access information for accessing the router 100, and is connected to the router 100.
  • the processor 102 may specifically but not limited to the following:
  • Identifying each low level in the processed electrical signal respectively demodulating each low level and each high level after each low level: if the low level is reached, then the first preset time length threshold is extended and then the high level is Flat, demodulate the high level after the low level and the low level to a binary number 0. If the low level is extended after the first preset time period threshold, the low level and the low level are The subsequent high level is demodulated to a binary number of one.
  • the second preset duration threshold is extended after the high level, the high level after the high level and the high level is demodulated to a binary number of 1. If the high level is passed, the second pre-extension is extended.
  • the duration threshold is set to a low level, and the high level and the low level after the high level are demodulated to a binary number of zero.
  • the electrical signal is high level after low level, or low level after high level, and high and low levels alternately appear when encoding.
  • the demodulation mode of the terminal 200 may adopt the first implementation manner, the second implementation manner, or the fifth implementation manner.
  • the first preset duration threshold is determined according to the first preset duration and the second preset duration and the third preset duration.
  • the first preset duration threshold is required to be smaller than a sum of a minimum of the second preset duration and the third preset duration and the first preset duration, and greater than a minimum of the second preset duration and the third preset duration.
  • the demodulation mode of the terminal 200 may adopt the second implementation manner or the fifth implementation manner. If the modulation mode of the router 100 adopts the first implementation manner, the second preset duration is less than the first For the preset duration, the demodulation mode of the terminal 200 may adopt the first implementation manner or the fifth implementation manner. If the second preset duration of the first implementation is greater than the third preset duration, the demodulation mode of the terminal 200 may adopt the second implementation manner or the fifth implementation manner.
  • the modulation mode of the router 100 is as shown in FIG. 4. It can be seen from FIG. 4 that both "0" and “1" start at a low level of 0.56 s, except that the duration of the high level is different.
  • the duration of the high level of binary number 0 is 0.56 s
  • the duration of the high level of binary number 1 is 1.68 s. Therefore, it is possible to distinguish between “0” and “1” according to the duration of the low level after the high level.
  • the data transmission delay and the duration of the high and low levels need to be considered.
  • the delay after 0.56s low level needs to be greater than 0.56s, but not greater than 1.12s.
  • the demodulation mode of the terminal 200 may adopt a third implementation manner, a fourth implementation manner, or a sixth implementation manner.
  • the first preset duration threshold is determined according to the fourth preset duration, the fifth preset duration, and the sixth preset duration.
  • the second preset duration threshold is required to be smaller than a sum of a minimum of the fifth preset duration and the sixth preset duration and a fourth preset duration, and greater than a minimum of the fifth preset duration and the sixth preset duration.
  • the demodulation manner of the terminal 200 may adopt a third implementation manner or a sixth implementation manner. If the modulation mode of the router 100 is in the second implementation manner, the fifth preset duration is less than the sixth preset duration, and the demodulation manner of the terminal 200 may adopt the fourth implementation manner or the sixth implementation manner.
  • the modulation mode of the router 100 is as shown in FIG. 5. It can be seen from FIG. 5 that both "0" and “1" start at a high level of 0.56 s, except that the duration of the low level is different.
  • the low level of the binary number 0 has a duration of 0.56 s
  • the low level of the binary number 1 has a duration of 1.68 s. Therefore, it is possible to distinguish between “0” and “1” according to the duration of the low level after the high level.
  • the processor 202 is further configured to: after receiving the indication signal for initiating the lighting state collection device 201, control to turn on the illumination state collection device 201. Therefore, when the processor 202 does not receive the indication signal, the illumination state collection device 201 remains off, and the power consumption of the terminal can be saved.
  • the illuminating state collecting device 201 is further configured to: before collecting the optical signal sent by the at least one illuminating device 101 on the router 100, acquiring a pre-lighting signal sent by the illuminating device 101;
  • the processor 202 is further configured to: according to the rule that the first illumination state of the illumination device 101 is set to indicate a high level and the second illumination state represents a low level, the preamble optical signal collected by the illumination state collection device 201 is used. Processing becomes a front conductive signal expressed in a high-low level form; then demodulating the processed front conductive signal into a binary number form; and based on the illuminator information contained in the preamble signal represented by the binary number demodulated to the front conductive signal Obtaining, by the at least one illuminating device 101 on the router 100 corresponding to the illuminating device information, the optical signal.
  • the processor 202 may determine, according to the illuminating device information, the illuminating device that receives the optical signal and the decoding sequence, and then acquire the optical signal sent by the illuminating device determined on the router 100 corresponding to the illuminating device information, and then The optical signal is decoded according to a decoding order.
  • the illuminating state collecting device 201 starts to collect the front light guiding signal after being turned on, and starts collecting the optical signal only after the front light guiding signal is collected.
  • the embodiment of the invention further provides a method for establishing communication, as shown in FIG. 8, the method includes:
  • Step 801 The router receives a trigger indication, where the trigger indication is used to send the terminal access information of the terminal access router to the terminal.
  • Step 802 After receiving the trigger indication, the router modulates the access information into an optical signal, and sends the optical signal to the terminal by using at least one illuminating device on the router.
  • the router transmits the access information of the terminal and the router to the terminal through the visible light as a communication medium, so that the terminal establishes a connection with the router according to the received access information, and no longer needs to input a cumbersome password. Thereby avoiding the delay of landing time or landing loss The emergence of the problem of defeat.
  • the router modulates the access information into an optical signal, including:
  • the router After receiving the trigger indication, the router modulates the access information into an electrical signal represented by a high level and a low level;
  • the router processes the electrical signal into an optical signal based on a rule that the first illumination state of the illumination device on the router represents a high level and the second illumination state represents a low level.
  • modulating the access information into an electrical signal represented by a high-low level form may be specifically implemented by:
  • the router expresses the access information in the form of binary data, and modulates the access information represented in the form of binary data into an electrical signal represented in a high-low level form.
  • the access information represented by the binary data form is modulated into an electrical signal represented by a high-low level form, which may be specifically, but not limited to, the following implementation manner:
  • the first implementation manner is: the router modulates the binary number 0 into an electrical signal composed of a low level of the first preset duration and a high level of the second preset duration, and modulates the binary number 1 to a low level of the first preset duration.
  • An electrical signal consisting of a level and a high level of a third predetermined duration.
  • the second implementation manner is: the router modulates the binary number 0 into an electrical signal composed of a high level of the fourth preset duration and a low level of the fifth preset duration, and modulates the binary number 1 to a height of the fourth preset duration.
  • the method may further include:
  • the router transmits a front light signal to the terminal through a setting light emitting device on the router before transmitting the optical signal to the terminal by using at least one light emitting device on the router, where the front light signal carries
  • the illuminating device information for transmitting the optical signal is used to instruct the terminal to receive the optical signal from the illuminating device corresponding to the illuminating device information after receiving the pre-lighting signal.
  • the embodiment of the invention further provides a method for establishing communication, as shown in FIG. 9, the method includes:
  • Step 901 The terminal collects at least one illuminating device on the router by using the illuminating state collecting device. The emitted light signal.
  • Step 902 The terminal demodulates the optical signal, and uses the demodulated information as access information for accessing the router, and accesses the router.
  • the router transmits the access information of the terminal and the router to the terminal through the visible light as a communication medium, so that the terminal establishes a connection with the router according to the received access information, and no longer needs to input a cumbersome password. This avoids the problem of extended login time or failed login.
  • the demodulating the optical signal may be specifically performed by:
  • the terminal processes the optical signal into an electrical signal based on a high-low level form based on a rule that the first light-emitting state of the light-emitting device represents a high level and the second light-emitting state represents a low level;
  • the electrical signal is demodulated, and the demodulated information is used as access information for accessing the router to access the router.
  • the demodulating the processed electrical signal, and using the demodulated information as the access information of the router to access the router includes:
  • the terminal demodulates the processed electrical signal into a binary number form, and accesses the information corresponding to the demodulated binary number as access information of the router to the router.
  • demodulating the processed electrical signal into a binary number may be specifically performed by:
  • the terminal identifies each low level in the processed electrical signal, and demodulates the low level after each low level and each low level respectively as follows:
  • the low level and the low level after the low level are demodulated to a binary number of 1, if the low level is passed After extending the first preset duration threshold and then low, the low level and the low level after the low level are demodulated to a binary number of 0; or
  • the low level and the low level after the low level are demodulated to a binary number of 0, and after the low level is passed Extend the first preset After the duration threshold is low, the low level and the high level after the low level are demodulated to a binary number of one.
  • the terminal identifies each high level in the processed electrical signal, and demodulates the low level after each high level and each high level respectively as follows:
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After extending the second preset duration threshold to be low, demodulating the high level and the low level after the high level into a binary number 0; or
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After the second preset duration threshold is extended to a low level, the high level and the low level after the high level are demodulated to a binary number of zero.
  • the method may further include:
  • the terminal Before collecting the optical signal sent by the at least one illuminating device on the router, the terminal collects a pre-lighting signal sent by the setting illuminating device on the router by using the illuminating state collecting device;
  • the terminal processes the pre-lighting signal collected by the illuminating state collecting device into a high-low power based on a rule that the first illuminating state of the setting illuminating device on the router indicates a high level and the second illuminating state indicates a low level.
  • a front conductive signal expressed in a flat form; demodulating the processed front conductive signal into a binary number form;
  • Collecting the optical signal emitted by the at least one illuminating device on the router including:
  • the embodiment of the invention further provides a device for establishing communication, as shown in FIG. 10, the device includes:
  • N is positive Integer
  • the receiving module 1001 is configured to receive a trigger indication, where the trigger indication is used to send the terminal access information of the terminal access router to the terminal;
  • the processing module 1002 is configured to: after the receiving module 1001 receives the trigger indication, modulate the access information into an optical signal, and control the at least one of the N lighting modules 1003 to the The terminal transmits the optical signal.
  • the device for establishing communication may be disposed in a router.
  • the visible information is transmitted as a communication medium, and the access information communicated between the terminal and the router is transmitted to the terminal, so that the terminal according to the received access.
  • the information establishes a connection with the router, eliminating the need to input cumbersome passwords, etc., thereby avoiding the problem of extended login time or login failure.
  • the processing module 1002 is configured to: after the receiving module 1001 receives the trigger indication, modulate the access information into an electrical signal represented by a high level and a low level; and based on the light emitting module 1003
  • the first light-emitting state represents a high level
  • the second light-emitting state represents a rule of a low level
  • the electrical signal is processed into an optical signal.
  • the processing module 1002 is specifically configured to: when the access information is modulated into an electrical signal represented by a high-low level, the access information is represented by a binary data form, and is represented by a binary data form. The access information is modulated into an electrical signal that is expressed in a high and low level form.
  • processing module 1002 when modulating the access information represented by the binary data form into an electrical signal represented by a high-low level form, may specifically be as follows:
  • the binary number 0 is modulated into an electrical signal composed of a high level of the fourth preset duration and a low level of the fifth preset duration
  • the binary number 1 is modulated into a high level of the fourth preset duration and a sixth preset duration
  • processing module 1002 is further configured to:
  • the light emitting module information of the signal is used to indicate that the terminal receives the light signal from the light emitting module 1003 corresponding to the light emitting module information after receiving the front light guiding signal.
  • An embodiment of the present invention further provides a device for establishing communication. As shown in FIG. 11, the device includes:
  • the illuminating state collecting module 1101 is configured to collect an optical signal emitted by at least one illuminating module on the router;
  • the processing module 1102 is configured to demodulate the optical signal collected by the illumination state collection module 1101, and access the demodulated information as access information of the router to the router.
  • the device for establishing communication may be disposed in a terminal.
  • the visible information is used as a communication medium, and the access information communicated between the terminal and the router is transmitted to the terminal, so that the terminal according to the received access.
  • the information establishes a connection with the router, eliminating the need to input cumbersome passwords, etc., thereby avoiding the problem of extended login time or login failure.
  • processing module 1102 is specifically configured to:
  • the optical signal is processed into an electrical signal based on a high-low level form based on a rule that the first light-emitting state of the light-emitting module on the router represents a high level and the second light-emitting state represents a low level;
  • the electrical signal is demodulated, and the demodulated information is used as access information for accessing the router to access the router.
  • processing module 1102 when demodulating the processed electrical signal, and using the demodulated information as the access information of the router to access the router, may specifically be as follows:
  • the processed electrical signal is demodulated into a binary number form; and the information corresponding to the demodulated binary number is used as access information for accessing the router, and is connected to the router.
  • processing module 1102 when the processing module 1102 demodulates the processed electrical signal into a binary number, the processing module 1102 may specifically be configured as follows:
  • the low level and the low level after the low level are demodulated to a binary number of 1, if the low level is passed After extending the first preset duration threshold and then low, demodulating the low level and the low level after the low level into a binary number of 0; or
  • the low level and the low level after the low level are demodulated to a binary number of 0, and after the low level is passed After the first preset duration threshold is extended to a low level, the low level and the low level after the low level are demodulated to a binary number of one.
  • the processing module 1102 when demodulating the processed electrical signal into a binary number, may also be specifically implemented in the following manner
  • Each high level in the processed electrical signal is identified, and each low level and each low level after each high level are respectively demodulated as follows:
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After extending the second preset duration threshold to be low, demodulating the high level and the low level after the high level into a binary number 0; or
  • the second preset duration threshold is extended after the high level, the high level and the low level after the high level are demodulated to a binary number of 1, if the high level is passed After the second preset duration threshold is extended to a low level, the high level and the low level after the high level are demodulated to a binary number of zero.
  • the illuminating state collection module 1101 is further configured to:
  • the processing module 1102 is further configured to collect the illuminating state based on a rule that a first illuminating state of the setting illuminating module on the router indicates a high level and a second illuminating state indicates a low level.
  • the pre-lighting signal collected by the module is processed into a front conductive signal expressed in a high-low level form; the processed front conductive signal is demodulated into a binary number form;
  • the illuminating state collecting module 1102 is specifically configured to: when collecting an optical signal emitted by at least one illuminating module on the router, the illuminating module information included in the preamble signal represented by the binary number demodulated into the pre-conducting signal And acquiring an optical signal emitted by the light emitting module on the router corresponding to the light emitting module information.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flowchart Step.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Optical Communication System (AREA)

Abstract

本发明提供一种建立通信的方法、系统及终端、路由器,用以解决现有技术中存在的由于繁琐密码输入错误或者丢失导致登陆失败或者登录时间的延长的问题。路由器接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,并通过控制所述路由器上的至少一个发光装置向所述终端发送所述光信号。终端通过发光状态采集装置采集路由器上的至少一个发光装置发出的光信号;所述终端对所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。

Description

一种建立通信的方法、装置及终端、路由器 技术领域
本发明涉及通信技术领域,尤其涉及一种建立通信的方法、装置及终端、路由器。
背景技术
随着智能手持终端的高速发展,支持无线保真(Wirless Fidelity,简称WiFi)的终端设备等涌现。目前的终端设备接入无线局域网通常通过以下方案实现:终端设备通过扫描WiFi网络,然后针对扫描到的WiFi网络,输入预先设置的用户名及密码,与无线局域网建立WiFi通信。
但是通过用户名密码的方式与无线局域网建立WiFi通信,由于繁琐的密码字符容易输入出错,因此会导致无法接入无线局域网,并且由于不断的输入用户名和密码导致登陆时间较长。用户名、密码比较容易丢失,在丢失后,终端用户不得不通过恢复无线局域网网关的出厂设置,调用默认的WiFi配置,并且该终端设备也需要重新配置,才能与无线局域网网关建立通信连接,从而延长了终端用户登陆无线局域网网关的时间。
发明内容
本发明实施例提供一种建立通信的方法、装置及终端、路由器,用以解决现有技术中存在的由于繁琐密码输入错误或者丢失导致登陆失败或者登录时间延长的问题。
第一方面,本发明实施例提供了一种路由器,包括:
接收器,处理器以及N个发光装置,所述N为正整数;
所述接收器,用于接收触发指示,所述触发指示用于指示向终端发出所述终端接入路由器的接入信息;
处理器,用于在所述接收器接收到所述触发指示后,将所述接入信息调 制为光信号,并通过控制所述N个发光装置中的至少一个发光装置向所述终端发送所述光信号。
结合第一方面,在第一方面的第一种可能的实现方式中,所述处理器具体用于:
将所述接入信息调制为高低电平形式表现的电信号,并基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述处理器,具体用于将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述处理器,具体用于将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号;或者,
具体用于将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
结合第一方面和第一方面的第一种至第三种可能的实现方式中的任意一种,在第一方面的第四种可能的实现方式中,所述处理器,还用于通过控制所述N个发光装置中的至少一个发光装置向所述终端发送所述光信号之前,通过控制所述N个发光装置中的设定发光装置向所述终端发送前导光信号;所述前导光信号携带发送所述光信号的发光装置信息,用于指示终端在接收到所述前导光信号后,从所述发光装置信息对应的发光装置接收所述接入信息对应的光信号。
第二方面,本发明实施例还提供了一种终端,包括:
发光状态采集装置,用于采集路由器上的至少一个发光装置发出的光信 号;
处理器,用于对所述发光状态采集装置采集到的光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第二方面,在第二方面的第一种可能的实现方式中,所述处理器,具体用于基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,在将处理成的电信号解调,将解调后的信息作为接入所述路由器的接入信息,接入所述路由器时,所述处理器具体用于:
将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,在将处理成的电信号解调为二进制数的形式时,所述处理器具体用于:
识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
结合第二方面的第二种可能的实现方式,在第二方面的第四种可能的实 现方式中,在将处理成的电信号解调为二进制数的形式时,所述处理器具体用于:
确定处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
结合第二方面和第二方面的第一种至第四种可能的实现方式中的任意一种,在第二方面的第五种可能的实现方式中,所述发光状态采集装置,还用于在采集路由器上的至少一个发光装置发出的光信号之前,采集设定发光装置发出的前导光信号;
所述处理器,还用于基于所述设定发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
所述发光状态采集装置,具体用于在采集路由器上的至少一个发光装置发出的光信号时,基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光装置信息,采集所述发光装置信息对应的所述路由器上的发光装置发送的所述光信号。
结合第二方面和第二方面的第一种至第五种可能的实现方式中的任意一种,在第二方面的第六种可能的实现方式中,所述发光状态采集装置为摄像头。
第三方面,本发明实施例还提供了一种建立通信的方法,该方法包括:
路由器接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;
所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,并通过所述路由器上的至少一个发光装置向所述终端发送所述光信号。
结合第三方面,在第三方面的第一种可能的实现方式中,所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,包括:
所述路由器在接收到所述触发指示后,将所述接入信息调制为高低电平形式表现的电信号;
所述路由器基于所述路由器上的发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述将所述接入信息调制为高低电平形式表现的电信号,包括:
所述路由器将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号,包括:
所述路由器将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号;或者,
所述路由器将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
结合第三方面和第三方面的第一种至第三种可能的实现方式中的任意一种,在第三方面的第四种可能的实现方式中,还包括:
所述路由器在通过所述路由器上的至少一个发光装置向所述终端发送所述光信号之前,通过所述路由器上的设定发光装置向所述终端发送前导光信号,所述前导光信号携带发送所述光信号的发光装置信息,用于指示终端在接收到所述前导光信号后,从所述发光装置信息对应的发光装置接收所述光信号。
第四方面,本发明实施例还提供了一种建立通信的方法,该方法包括:
终端通过发光状态采集装置采集路由器上的至少一个发光装置发出的光信号;
所述终端对所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第四方面,在第四方面的第一种可能的实现方式中,所述对所述光信号进行解调,包括:
所述终端基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述将处理成的电信号解调,将解调后的信息作为接入所述路由器的接入信息,接入所述路由器,包括:
所述终端将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,所述将处理成的电信号解调为二进制数的形式,包括:
所述终端识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设 时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
结合第四方面的第二种可能的实现方式,在第四方面的第四种可能的实现方式中,所述将处理成的电信号解调为二进制数的形式,包括:
所述终端识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
结合第四方面和第四方面的第一种至第四种可能的实现方式中的任意一种,在第四方面的第五种可能的实现方式中,还包括:
所述终端在采集路由器上的至少一个发光装置发出的所述光信号之前,通过发光状态采集装置采集所述路由器上的设定发光装置发出的前导光信号;
所述终端基于所述路由器上的设定发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
所述采集所述路由器上的至少一个发光装置发出的光信号,包括:
基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光装置信息,采集所述发光装置信息对应的所述路由器上的发光装置发出的光信号。
第五方面,本发明实施例还提供了一种建立通信的装置,包括:
接收模块、处理模块以及N个发光模块;其中,N为正整数;
所述接收模块,用于接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;
处理模块,用于在所述接收模块接收到所述触发指示后,将所述接入信息调制为光信号,并通过控制所述N个发光模块中的至少一个发光模块向所述终端发送所述光信号。
结合第五方面,在第五方面的第一种可能的实现方式中,所述处理模块,具体用于在所述接收模块接收到所述触发指示后,将所述接入信息调制为高低电平形式表现的电信号;基于所述发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
结合第五方面或第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,所述处理模块,具体用于将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
结合第五方面的第二种可能的实现方式,在第五方面的第三种可能的实现方式中,所述处理模块,具体用于:
将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号;或者,
将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
结合第五方面和第五方面的第一种至第三种可能的实现方式中的任意一种,在第五方面的第四种可能的实现方式中,所述处理模块,还用于:
在通过所述至少一个发光模块向所述终端发送所述光信号之前,通过所述路由器上的设定发光模块向所述终端发送前导光信号,所述前导光信号携带发送所述光信号的发光模块信息,用于指示终端在接收到所述前导光信号后,从所述发光模块信息对应的发光模块接收所述光信号。
第六方面,本发明实施例还提供了一种建立通信的装置,包括:
发光状态采集模块,用于采集路由器上的至少一个发光模块发出的光信号;
处理模块,用于对所述发光状态采集模块采集到的所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第六方面,在第六方面的第一种可能的实现方式中,所述处理模块,具体用于:
基于所述路由器上的发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,所述处理模块,具体用于:
将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
结合第六方面的第二种可能的实现方式,在第六方面的第三种可能的实现方式中,所述处理模块,具体用于:
识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设 时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
结合第六方面的第二种可能的实现方式,在第六方面的第四种可能的实现方式中,所述处理模块,具体用于:
识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
结合第六方面和第六方面的第一种至第四种可能的实现方式中的任意一种,在第六方面的第五种可能的实现方式中,所述发光状态采集模块,还用于:
在采集路由器上的至少一个发光模块发出的所述光信号之前,采集所述路由器上的设定发光模块发出的前导光信号;
所述处理模块,还用于基于所述路由器上的设定发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述发光状态采集模块采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
所述发光状态采集模块,具体用于采集在所述路由器上的至少一个发光模块发出的光信号时,基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光模块信息,采集所述发光模块信息对应的所述路由器上的发光模块发出的光信号。
本发明实施例路由器通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失败的问题的出现。
附图说明
图1为本发明实施例提供的建立通信的系统结构示意图;
图2为本发明实施例提供的一种路由器结构示意图;
图3为本发明实施例提供的另一种路由器结构示意图;
图4为本发明实施例提供的一种接入信息调制方式示意图;
图5为本发明实施例提供的另一种接入信息调制方式示意图;
图6为本发明实施例提供的终端结构示意图;
图7为本发明实施例提供的接入信息解调方式示意图;
图8为本发明实施例提供的一种建立通信的方法流程图;
图9为本发明实施例提供的另一种建立通信的方法流程图;
图10为本发明实施例提供的一种建立通信的装置示意图;
图11为本发明实施例提供的另一种建立通信的装置示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的 范围。
本发明提供一种建立通信的方法、装置及终端、路由器,用以解决现有技术中存在的由于繁琐密码输入错误或者丢失导致登陆失败或者登录时间的延长的问题。其中,方法和设备是基于同一发明构思的,由于方法及设备解决问题的原理相似,因此设备与方法的实施可以相互参见,重复之处不再赘述。
本发明实施例提供了一种建立通信的系统,包括终端和路由器。用于实现路由器与终端通过可见光传输WiFi密码等关键配置信息建立通信。还能实现对可见光通信内容解调后的文本化的输出、存档、分享等。申请人在对本发明研究的过程中发现一般的路由器,例如,家庭路由器,都有一个或者多个LED灯,用于指示产品的状态。另外终端设备都有摄像头等图像采集设备。基于此,为了实现更低成本、更安全、更快捷的通信,将智能手机/平板等接收终端,与路由器组成一种建立通信的系统,通过可见光实现通讯。
本发明实施例提供了一种建立通信的系统,如图1所示,该系统包括路由器100及终端200:
路由器100接收触发指示;所述触发指示用于指示向终端200发出终端200接入路由器100的接入信息;在接收到所述触发指示后,将所述接入信息调制为光信号,并通过路由器100中的至少一个发光装置向所述终端200发送所述光信号。
具体的,路由器100在接收到触发指示后,将预设的终端200接入所述路由器100的接入信息调制为高低电平形式表现的电信号,基于路由器100上的发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号,并通过路由器100上的至少一个发光装置向所述终端200发送所述光信号;
终端200采集路由器100上的至少一个发光装置发出的光信号;并对所述发光状态采集装置采集到的光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
具体的,终端200获取路由器100上的至少一个发光装置发出的光信号;基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器100的接入信息,接入所述路由器100。
本发明实施例提供了一种路由器100,如图2所示,包括N个发光装置101(图2中仅以一个发光装置为例)、处理器102及接收器103。其中,N为正整数
接收器103,用于接收触发指示,所述触发指示用于指示向终端200发出所述终端200接入路由器的接入信息。
处理器102,用于将所述接入信息,调制为光信号,并通过控制所述N个发光装置101中的至少一个发光装置101向所述终端发送所述光信号。
其中触发指示,可以是通过按键触发发送,还可以通过遥控设备触发发送,还可以通过终端设备触发发送等等,具体触发方式本发明实施例不做具体限定。若是通过按键触发发送,则所述路由器100上可以设有触发按键,触发按键与处理器102相连接。若是通过遥控设备触发发送,则可以在路由器100上设有接收触发指示的装置。
例如,当触发按键被按下时,则处理器102接收到用于触发发出所述接入信息的触发指示后,将所述接入信息调制为光信号,然后通过至少一个发光装置101发出。
其中,所述路由器100还包括存储器104,用于存储预设的终端200接入路由器100的接入信息,如图3所示。存储器104,还可以用于存储处理器102执行的程序代码,可以是ROM,RAM,也可以是EEPROM、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此,例如存储器104可以是上述存储器的组合。
所述存储器104与所述处理器102、接收器103及所述发光装置101可以 通过总线连接。本发明实施例中不限定上述部件之间的具体连接介质,本发明实施例在图3中以存储器104、接收器103、处理器102及发光装置101之间通过总线连接,总线在图3中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。
进一步地,处理器102将所述接入信息调制为光信号时,具体可以通过以下方式:
将所述接入信息调制为高低电平形式表现的电信号,并基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
进一步地,处理器102在将接入信息调制成基于高低电平形式表现的电信号时,具体可以通过以下方式:
将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
进一步地,处理器102具体可以以下方式将预设的终端200接入路由器100的基于二进制数形式表现的接入信息,调制成基于高低电平形式表现的电信号:
第一种实现方式:将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号。
其中第二预设时长可以大于第三预设时长,当然第二预设时长也可以小于第三预设时长。但是第二预设时长不能等于第三预设时长。例如,第一预设时长可以为0.56s,第二预设时长可以为0.56s,第三预设时长可以为1.68s。
例如:如图4所示的波形图,可以以0.56s的低电平,0.56s的高电平,周期为1.12s的高低电平组合表示二进制数0;以0.56s的低电平,1.68s的高电平,周期为2.24s的高低电平组合表示二进制数1。
第二种实现方式:
将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组 成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
其中第五预设时长可以大于第六预设时长,当然第五预设时长也可以小于第六预设时长。但是第二预设时长不能等于第三预设时长。
例如:如图5所示的波形图,可以以0.56s的高电平,0.56s的低电平,周期为1.12s的高低电平组合表示二进制数0;以0.56s的高电平,1.68s的低电平,周期为2.24s的高低电平组合表示二进制数1。
其中,路由器100和终端200之间可以预先协商确定所述发光装置101的第一发光状态表示高电平、第二发光状态表示低电平的规则。用户可以预先通过路由器100上的人机接口预先将上述规则设置在路由器100内部,然后可以通过路由器100预先通知给终端200。
其中,发光装置101可以是路由器100上的LED灯,或者其他的能够发出可见光的发光装置均可。
可以预先设置发光装置101的发光状态,例如:设置发光装置101的第一发光状态为点亮,第二发光状态为熄灭。相反也可以。当然还可以根据发光颜色来设置发光状态。或者根据发光的亮度值确定发光状态等等,具体本发明实施例中不作具体限定。
本发明上述实施例提供的方案通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失败的问题的出现。
进一步地,处理器102通过控制所述N个发光装置101中的至少一个发光装置101向所述终端发送所述光信号,通过控制所述N个发光装置101中的设定发光装置101向所述终端发送前导光信号;所述前导光信号携带发送所述光信号的发光装置信息,用于指示终端在接收到所述前导光信号后,从所述发光装置信息对应的发光装置接收所述接入信息对应的光信号。
由于大多数路由器包括多个发光装置101,则有时可以确定用于发送接入 信息调制后的光信号的发光装置是哪个或者哪几个。当然可以预先在出厂时,就可以设定其中一个用于发送该光信号(本发明实施例中光信号指接入信息调制后的光信号)。例如,路由器中靠近边缘的一个发光装置。还可以将确定的用于发送所述光信号的发光装置信息通过前导光信号发送给终端200。
具体的,所述处理器102,在所述N个发光装置101中确定出用于发送所述前导光信号的第一发光装置,及在N个发光装置101中确定出至少一个用于发送所述光信号的第二发光装置,并通过控制确定的第一发光装置发送所述前导光信号;并在发送所述前导光信号后,通过控制所述第二发光装置发送所述光信号;
所述前导电信号携带发送所述光信号的发光装置信息。即,终端200可以根据接收到的所述前导光信号,确定从哪几个发光装置接收接入信息对应的光信号及从各个发送装置接收到的所述光信号的顺序,即终端对所述光信号信号进行解码的顺序。
进一步地,则所述处理器102,可以用于将调制后的光信号拆分为M个子信号,所述M为等于确定的第二发光装置的数量;
所述处理器102在确定的第二发光装置中,确定与拆分的每一个子信号分别对应的一个发光装置101,并针对确定的每个发光装置101分别执行:通过控制该发光装置101发送对应该发光装置101的子信号。
例如:路由器包括M个LED灯,则处理器102可以预先确定用于发送所述光信号的LED灯;若确定用于发送光信号的LED灯为N个(N小于等于M),将光信号拆分为N个子信号;其中分解后的N个子信号与确定的N个LED灯一一对应。然后通过各个LED灯将其对应的各个子信号发出。
通过上述方式不但能够提高传输数据的速率,还能够降低路由器的电量耗费。
例如:接入信息中的密码包括8位,预先设置用于发送调制后的光信号的LED灯为4个,LED灯1、LED灯2、LED灯3和LED灯4,编号顺序可以根据LED灯在路由器上的位置,每个LED灯负责发送两位密码。则调制后 的光信号(8位密码)平均拆分为4个子信号,子信号1和子信号2和子信号3和子信号4,其中子信号1和子信号2和子信号3和子信号4按照顺序首尾相接组成完整的电信号。预先设置位于最前面的子信号1对应LED1,子信号2对应LED2,子信号3对应LED3,子信号4对应LED4。
本发明实施例还提供了一种终端,如图6所示,该终端200包括:
发光状态采集装置201,用于采集路由器100上的至少一个发光装置101发出的光信号。
可选地,发光状态采集装置201可以是摄像头等图像采集设备。
处理器202,用于对所述发光状态采集装置采集到的光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
具体的,所述处理器202基于所述发光装置101的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置201采集到的光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器100的接入信息,接入所述路由器100。
可以预先设置发光装置101的发光状态,例如:设置发光装置101的第一发光状态为点亮,第二发光状态为熄灭,同理相反也可以。当然还可以根据发光颜色来设置发光状态。或者根据发光的亮度值确定发光状态等等,具体本发明实施例中不作具体限定。
其中,终端200和路由器100之间可以预先协商确定所述发光装置101的第一发光状态表示高电平、第二发光状态表示低电平的规则。还可以路由器100预先通知给终端200。
可以预先确定发光装置101的发光状态,例如:确定发光装置101的第一发光状态为点亮,第二发光状态为熄灭。相反也可以。当然还可以根据发光颜色来确定发光状态。或者根据发光的亮度值确定发光状态等等,具体本发明实施例中不作具体限定。
本发明上述实施例提供的方案通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与 路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失败的问题的出现。
进一步地,在将处理成的电信号解调,将解调后的信息作为接入所述路由器100的接入信息,接入所述路由器100时,所述处理器102具体用于:
将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器100的接入信息,接入所述路由器100。
可选地,在将处理成的电信号解调为二进制数的形式时,所述处理器102具体可以但不仅限于以下方式:
第一种实现方式:
识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行解调:若经过低电平后再延长第一预设时长阈值后为高电平,将低电平和低电平后的高电平解调为二进制数1,若经过低电平后再延长第一预设时长阈值后为低电平,将该低电平和该低电平后的高电平解调为二进制数0。
第二种实现方式:
识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行解调:若经过低电平后再延长第一预设时长阈值后为高电平,将低电平和低电平后的高电平解调为二进制数0,若经过低电平后再延长第一预设时长阈值后为低电平,将该低电平和该低电平后的高电平解调为二进制数1。
第三种实现方式:
识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行解调:若经过高电平后再延长第二预设时长阈值后为高电平,将高电平和高电平后的低电平解调为二进制数1,若经过高电平后再延长第二预设时长阈值后为低电平,将该高电平和该高电平后的低电平解调为二进制数0。
第四种实现方式:
识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行解调:
若经过高电平后再延长第二预设时长阈值后为高电平,将高电平和高电平后的高电平解调为二进制数1,若经过高电平后再延长第二预设时长阈值后为低电平,将该高电平和该高电平后的低电平解调为二进制数0。
第五种实现方式:
识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行解调:若经过低电平后的高电平持续时长处在第一预设时间范围内,将低电平和低电平后的高电平解调为二进制数1,若经过低电平后的高电平的持续时间处在第二预设时间范围内,将该低电平和该低电平后的高电平解调为二进制数0。
第六种实现方式:
识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行解调:若经过高电平后的低电平持续时长处在第三预设时间范围内,将高电平和高电平后的低电平解调为二进制数1,若经过高电平后的低电平的持续时间处在第四预设时间范围内,将该高电平和该高电平后的低电平解调为二进制数0。
需要说明的是,电信号中在低电平后为高电平,或者在高电平后为低电平,编码时高低电平相互交替出现。
其中,若路由器100的调制方式采用第一种实现方式,则终端200的解调方式可以采用第一种实现方式或者第二种实现方式或者第五种实现方式。并且第一预设时长阈值是根据第一预设时长和第二预设时长和第三预设时长确定的。需要第一预设时长阈值小于第二预设时长和第三预设时长中的最小值与第一预设时长之和,且大于第二预设时长和第三预设时长中的最小值。
若路由器100的调制方式采用第一种实现方式中第二预设时长大于第三预设时长,则终端200的解调方式可以采用第二种实现方式或者第五种实现方式。若路由器100的调制方式采用第一种实现方式中第二预设时长小于第 三预设时长,则终端200的解调方式可以采用第一种实现方式或者第五种实现方式。若路由器100的调制方式采用第一种实现方式中第二预设时长大于第三预设时长,则终端200的解调方式可以采用第二种实现方式或者第五种实现方式。
例如:路由器100的调制方式如图4所示,从图4中可以看出无论“0”和“1”均以0.56s的低电平开始,不同的是高电平的持续时间不同。二进制数0的高电平的持续时间为0.56s,二进制数1的高电平的持续时间为1.68s。所以可以根据高电平后低电平的持续时间区别“0”和“1”。为了可靠起见,需要考虑数据传输延迟以及高低电平的持续时间。解调时,0.56s低电平后的延时需要大于0.56s,但不能大于1.12s。
若路由器100的调制方式采用第二种实现方式,则终端200的解调方式可以采用第三种实现方式或者第四种实现方式或者第六种实现方式。并且第一预设时长阈值是根据第四预设时长、第五预设时长和第六预设时长确定的。需要第二预设时长阈值小于第五预设时长和第六预设时长中的最小值与第四预设时长之和,且大于第五预设时长和第六预设时长中的最小值。
若路由器100的调制方式采用的第二种实现方式中第五预设时长大于第六预设时长,则终端200的解调方式可以采用第三种实现方式或者第六种实现方式。若路由器100的调制方式采用第二种实现方式中第五预设时长小于第六预设时长,则终端200的解调方式可以采用第四种实现方式或者第六种实现方式。
例如:路由器100的调制方式如图5所示,从图5中可以看出无论“0”和“1”均以0.56s的高电平开始,不同的是低电平的持续时间不同。二进制数0的低电平的持续时间为0.56s,二进制数1的低电平的持续时间为1.68s。所以可以根据高电平后低电平的持续时间区别“0”和“1”。比如设置第一预设时长阈值=(0.56s+1.12s)/2=0.84s。假设,将接入信息表示为二进制数后是:101010,则调制后的电信号如图7中a图所示,利用第一预设时长阈值为0.84s进行解码,解码后如图7中b图所示。
可选地,所述处理器202还用于接收用于指示开启所述发光状态采集装置201的指示信号后,控制开启所述发光状态采集装置201。因此,在处理器202未接收到指示信号时,发光状态采集装置201保持关闭,能够节省终端的耗电量。
可选地,所述发光状态采集装置201,还用于在采集路由器100上的至少一个发光装置101发出的所述光信号之前,采集设定发光装置101发出的前导光信号;
所述处理器202,还用于基于所述设定发光装置101的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置201采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;然后将处理成的前导电信号解调为二进制数的形式;并基于前导电信号解调为的二进制数表示的前导信号中包含的发光装置信息,获取所述发光装置信息对应的所述路由器100上的至少一个发光装置101发出的所述光信号。
进一步地,处理器202可以根据发光装置信息确定接收所述光信号的发光装置及解码顺序,然后获取所述发光装置信息对应的所述路由器100上确定的发光装置发送的所述光信号,然后根据解码顺序对所述光信号进行解码。
需要说明的,发光状态采集装置201在开启后,才开始采集前导光信号,在采集到前导光信号后,才开始采集所述光信号。
本发明实施例还提供了一种建立通信的方法,如图8所示,该方法包括:
步骤801,路由器接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;
步骤802,所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,并通过所述路由器上的至少一个发光装置向所述终端发送所述光信号。
本发明实施例路由器通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失 败的问题的出现。
可选地,所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,包括:
所述路由器在接收到所述触发指示后,将所述接入信息调制为高低电平形式表现的电信号;
所述路由器基于所述路由器上的发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
进一步地,所述将所述接入信息调制为高低电平形式表现的电信号,具体可以通过以下实现方式:
所述路由器将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
进一步地,所述将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号,具体可以但不仅限于以下实现方式:
第一实现方式:所述路由器将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号。
第二实现方式:所述路由器将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
可选地,所述方法还可以包括:
所述路由器在通过所述路由器上的至少一个发光装置向所述终端发送所述光信号之前,通过所述路由器上的设定发光装置向所述终端发送前导光信号,所述前导光信号携带发送所述光信号的发光装置信息,用于指示终端在接收到所述前导光信号后,从所述发光装置信息对应的发光装置接收所述光信号。
本发明实施例还提供了一种建立通信的方法,如图9所示,该方法包括:
步骤901,终端通过发光状态采集装置采集路由器上的至少一个发光装置 发出的光信号。
步骤902,所述终端对所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
本发明实施例路由器通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失败的问题的出现。
可选的,所述对所述光信号进行解调,具体可以通过以下方式:
所述终端基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
可选地,所述将处理成的电信号解调,将解调后的信息作为接入所述路由器的接入信息,接入所述路由器,包括:
所述终端将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
进一步地,所述将处理成的电信号解调为二进制数的形式,具体可以通过以下方式:
第一种实现方式:
所述终端识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者,
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设 时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
第二种实现方式:
所述终端识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
可选地,该方法还可以包括:
所述终端在采集路由器上的至少一个发光装置发出的所述光信号之前,通过发光状态采集装置采集所述路由器上的设定发光装置发出的前导光信号;
所述终端基于所述路由器上的设定发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
所述采集所述路由器上的至少一个发光装置发出的光信号,包括:
基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光装置信息,获取所述发光装置信息对应的所述路由器上的发光装置发出的光信号。
本发明实施例还提供了一种建立通信的装置,如图10所示,该装置包括:
接收模块1001、处理模块1002以及N个发光模块1003;其中,N为正 整数;
所述接收模块1001,用于接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;
处理模块1002,用于在所述接收模块1001接收到所述触发指示后,将所述接入信息调制为光信号,并通过控制所述N个发光模块1003中的至少一个发光模块向所述终端发送所述光信号。
本发明实施例提供的建立通信的装置可以设置于路由器中,本发明实施例通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失败的问题的出现。
可选地,所述处理模块1002,具体用于在所述接收模块1001接收到所述触发指示后,将所述接入信息调制为高低电平形式表现的电信号;基于所述发光模块1003的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
进一步地,所述处理模块1002,具体用于在所述接入信息调制为高低电平形式表现的电信号时,将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
进一步地,所述处理模块1002,在将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号时,具体可以通过以下方式:
第一种实现方式:
将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号。
第二种实现方式:
将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
可选地,所述处理模块1002,还用于:
在通过所述至少一个发光模块1003向所述终端发送所述光信号之前,通过所述路由器上的设定发光模块1003向所述终端发送前导光信号,所述前导光信号携带发送所述光信号的发光模块信息,用于指示终端在接收到所述前导光信号后,从所述发光模块信息对应的发光模块1003接收所述光信号。
本发明实施例还提供了一种建立通信的装置,如图11所示,该装置包括:
发光状态采集模块1101,用于采集路由器上的至少一个发光模块发出的光信号;
处理模块1102,用于对所述发光状态采集模块1101采集到的所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
本发明实施例提供的建立通信的装置可以设置于终端中,本发明实施例通过可见光作为一种通讯介质,将终端与路由器通信的接入信息传送给终端,从而使得终端根据接收到的接入信息与路由器建立连接,不再需要输入繁琐的密码等,从而避免了登陆时间延长或者登陆失败的问题的出现。
可选地,所述处理模块1102,具体用于:
基于所述路由器上的发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
进一步地,所述处理模块1102,在将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器时,具体可以通过以下方式:
将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
进一步地,所述处理模块1102,在将处理成的电信号解调为二进制数的形式时,具体可以通过以下方式:
识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
所述处理模块1102,在将处理成的电信号解调为二进制数的形式时,具体还可以通过以下方式
识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
可选地,所述发光状态采集模块1101,还用于:
在采集路由器上的至少一个发光模块发出的所述光信号之前,采集所述路由器上的设定发光模块发出的前导光信号;
所述处理模块1102,还用于基于所述路由器上的设定发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述发光状态采集 模块采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
所述发光状态采集模块1102,具体用于采集在所述路由器上的至少一个发光模块发出的光信号时,基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光模块信息,采集所述发光模块信息对应的所述路由器上的发光模块发出的光信号。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步 骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (34)

  1. 一种路由器,其特征在于,包括:
    接收器,处理器以及N个发光装置,所述N为正整数;
    所述接收器,用于接收触发指示,所述触发指示用于指示向终端发出所述终端接入路由器的接入信息;
    处理器,用于在所述接收器接收到所述触发指示后,将所述接入信息调制为光信号,并通过控制所述N个发光装置中的至少一个发光装置向所述终端发送所述光信号。
  2. 如权利要求1所述的路由器,其特征在于,所述处理器具体用于:
    将所述接入信息调制为高低电平形式表现的电信号,并基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
  3. 如权利要求1或2所述的路由器,其特征在于,所述处理器,具体用于将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
  4. 如权利要求3所述的路由器,其特征在于,所述处理器,具体用于将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号;或者,
    具体用于将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
  5. 如权利要求1~4任一项所述的路由器,其特征在于,所述处理器,还用于通过控制所述N个发光装置中的至少一个发光装置向所述终端发送所述光信号之前,通过控制所述N个发光装置中的设定发光装置向所述终端发送前导光信号;所述前导光信号携带发送所述光信号的发光装置信息,用于指 示终端在接收到所述前导光信号后,从所述发光装置信息对应的发光装置接收所述接入信息对应的光信号。
  6. 一种终端,其特征在于,包括:
    发光状态采集装置,用于采集路由器上的至少一个发光装置发出的光信号;
    处理器,用于对所述发光状态采集装置采集到的光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
  7. 如权利要求6所述的终端,其特征在于,所述处理器,具体用于基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
  8. 如权利要求7所述的终端,其特征在于,在将处理成的电信号解调,将解调后的信息作为接入所述路由器的接入信息,接入所述路由器时,所述处理器具体用于:
    将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
  9. 如权利要求8所述的终端,其特征在于,在将处理成的电信号解调为二进制数的形式时,所述处理器具体用于:
    识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
    若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
    若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设 时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
  10. 如权利要求8所述的终端,其特征在于,在将处理成的电信号解调为二进制数的形式时,所述处理器具体用于:
    确定处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
    若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
    若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
  11. 如权利要求6~10任一项所述的终端,其特征在于,所述发光状态采集装置,还用于在采集路由器上的至少一个发光装置发出的光信号之前,采集设定发光装置发出的前导光信号;
    所述处理器,还用于基于所述设定发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
    所述发光状态采集装置,具体用于在采集路由器上的至少一个发光装置发出的光信号时,基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光装置信息,采集所述发光装置信息对应的所述路由器上的发光装置发送的所述光信号。
  12. 如权利要求6~11任一项所述的终端,其特征在于,所述发光状态采集装置为摄像头。
  13. 一种建立通信的方法,其特征在于,包括:
    路由器接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;
    所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,并通过控制所述路由器上的至少一个发光装置向所述终端发送所述光信号。
  14. 如权利要求13所述的方法,其特征在于,所述路由器在接收到所述触发指示后,将所述接入信息调制为光信号,包括:
    所述路由器在接收到所述触发指示后,将所述接入信息调制为高低电平形式表现的电信号;
    所述路由器基于所述路由器上的发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
  15. 如权利要求14所述的方法,其特征在于,所述将所述接入信息调制为高低电平形式表现的电信号,包括:
    所述路由器将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
  16. 如权利要求15所述的方法,其特征在于,所述将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号,包括:
    所述路由器将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号;或者,
    所述路由器将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
  17. 如权利要求13~16任一项所述的方法,其特征在于,还包括:
    所述路由器在通过所述路由器上的至少一个发光装置向所述终端发送所述光信号之前,通过所述路由器上的设定发光装置向所述终端发送前导光信号,所述前导光信号携带发送所述光信号的发光装置信息,用于指示终端在 接收到所述前导光信号后,从所述发光装置信息对应的发光装置接收所述光信号。
  18. 一种建立通信的方法,其特征在于,包括:
    终端通过发光状态采集装置采集路由器上的至少一个发光装置发出的光信号;
    所述终端对所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
  19. 如权利要求18所述的方法,其特征在于,所述对所述光信号进行解调,包括:
    所述终端基于所述发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
  20. 如权利要求19所述的方法,其特征在于,所述将处理成的电信号解调,将解调后的信息作为接入所述路由器的接入信息,接入所述路由器,包括:
    所述终端将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
  21. 如权利要求20所述的方法,其特征在于,所述将处理成的电信号解调为二进制数的形式,包括:
    所述终端识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
    若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
    若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平 和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
  22. 如权利要求20所述的方法,其特征在于,所述将处理成的电信号解调为二进制数的形式,包括:
    所述终端识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
    若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
    若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
  23. 如权利要求18~22任一项所述的方法,其特征在于,还包括:
    所述终端在采集路由器上的至少一个发光装置发出的所述光信号之前,通过发光状态采集装置采集所述路由器上的设定发光装置发出的前导光信号;
    所述终端基于所述路由器上的设定发光装置的第一发光状态表示高电平、第二发光状态表示低电平的规则,将发光状态采集装置采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
    所述采集所述路由器上的至少一个发光装置发出的光信号,包括:
    基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光装置信息,采集所述发光装置信息对应的所述路由器上的发光装置发出的光信号。
  24. 一种建立通信的装置,其特征在于,包括:
    接收模块、处理模块以及N个发光模块;其中,N为正整数;
    所述接收模块,用于接收触发指示,所述触发指示用于指示向终端发送所述终端接入路由器的接入信息;
    处理模块,用于在所述接收模块接收到所述触发指示后,将所述接入信息调制为光信号,并通过控制所述N个发光模块中的至少一个发光模块向所述终端发送所述光信号。
  25. 如权利要求24所述的装置,其特征在于,所述处理模块,具体用于在所述接收模块接收到所述触发指示后,将所述接入信息调制为高低电平形式表现的电信号;基于所述发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述电信号处理成为光信号。
  26. 如权利要求25所述的装置,其特征在于,所述处理模块,具体用于将所述接入信息通过二进制数据形式进行表示,并将二进制数据形式表示的接入信息,调制成基于高低电平形式表现的电信号。
  27. 如权利要求26所述的装置,其特征在于,所述处理模块,具体用于:
    将二进制数0调制为第一预设时长的低电平和第二预设时长的高电平组成的电信号,将二进制数1调制为第一预设时长的低电平和第三预设时长的高电平组成的电信号;或者,
    将二进制数0调制为第四预设时长的高电平和第五预设时长的低电平组成的电信号,将二进制数1调制为第四预设时长的高电平和第六预设时长的低电平组成的电信号。
  28. 如权利要求24~27任一项所述的装置,其特征在于,所述处理模块,还用于:
    在通过所述至少一个发光模块向所述终端发送所述光信号之前,通过所述路由器上的设定发光模块向所述终端发送前导光信号,所述前导光信号携带发送所述光信号的发光模块信息,用于指示终端在接收到所述前导光信号后,从所述发光模块信息对应的发光模块接收所述光信号。
  29. 一种建立通信的装置,其特征在于,包括:
    发光状态采集模块,用于采集路由器上的至少一个发光模块发出的光信号;
    处理模块,用于对所述发光状态采集模块采集到的所述光信号进行解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
  30. 如权利要求29所述的装置,其特征在于,所述处理模块,具体用于:
    基于所述路由器上的发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述光信号处理成为基于高低电平形式表现的电信号;并将处理成的电信号解调,并将解调后的信息作为接入所述路由器的接入信息,接入所述路由器。
  31. 如权利要求30所述的装置,其特征在于,所述处理模块,具体用于:
    将处理成的电信号解调为二进制数的形式;并将解调得到的二进制数对应的信息作为接入所述路由器的接入信息,接入所述路由器。
  32. 如权利要求31所述的装置,其特征在于,所述处理模块,具体用于:
    识别处理成的电信号中的各个低电平,分别对各个低电平和各个低电平后的高电平进行如下解调:
    若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数1,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数0;或者
    若经过该低电平后再延长第一预设时长阈值后为高电平,则将该低电平和该低电平后的高电平解调为二进制数0,若经过该低电平后再延长第一预设时长阈值后为低电平,则将该低电平和该低电平后的高电平解调为二进制数1。
  33. 如权利要求21所述的装置,其特征在于,所述处理模块,具体用于:
    识别处理成的电信号中的各个高电平,分别对各个高电平和各个高电平后的低电平进行如下解调:
    若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0;或者,
    若经过该高电平后再延长第二预设时长阈值后为高电平,则将该高电平和该高电平后的低电平解调为二进制数1,若经过该高电平后再延长第二预设时长阈值后为低电平,则将该高电平和该高电平后的低电平解调为二进制数0。
  34. 如权利要求29~33任一项所述的装置,其特征在于,所述发光状态采集模块,还用于:
    在采集路由器上的至少一个发光模块发出的所述光信号之前,采集所述路由器上的设定发光模块发出的前导光信号;
    所述处理模块,还用于基于所述路由器上的设定发光模块的第一发光状态表示高电平、第二发光状态表示低电平的规则,将所述发光状态采集模块采集到的前导光信号处理成为基于高低电平形式表现的前导电信号;将处理成的前导电信号解调为二进制数的形式;
    所述发光状态采集模块,具体用于采集在所述路由器上的至少一个发光模块发出的光信号时,基于所述前导电信号解调为的二进制数表示的前导信号中包含的发光模块信息,采集所述发光模块信息对应的所述路由器上的发光模块发出的光信号。
PCT/CN2015/074289 2015-03-16 2015-03-16 一种建立通信的方法、装置及终端、路由器 WO2016145592A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/074289 WO2016145592A1 (zh) 2015-03-16 2015-03-16 一种建立通信的方法、装置及终端、路由器
CN201580064320.6A CN107005917B (zh) 2015-03-16 2015-03-16 一种建立通信的方法、装置及终端、路由器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/074289 WO2016145592A1 (zh) 2015-03-16 2015-03-16 一种建立通信的方法、装置及终端、路由器

Publications (1)

Publication Number Publication Date
WO2016145592A1 true WO2016145592A1 (zh) 2016-09-22

Family

ID=56918263

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/074289 WO2016145592A1 (zh) 2015-03-16 2015-03-16 一种建立通信的方法、装置及终端、路由器

Country Status (2)

Country Link
CN (1) CN107005917B (zh)
WO (1) WO2016145592A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI684379B (zh) * 2018-07-19 2020-02-01 慶奇科技股份有限公司 無線上網設定系統
CN114996188A (zh) * 2022-05-12 2022-09-02 中国人民解放军国防科技大学 一种利用智能插座实现与计算机通信的方法和装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140208387A1 (en) * 2013-01-22 2014-07-24 Qualcomm Incorporated Device utilizing an optical signal to access an access point
CN104093191A (zh) * 2014-06-24 2014-10-08 深圳创维-Rgb电子有限公司 一种基于光敏传感器的设备联网方法及其系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673195B (zh) * 2009-09-25 2012-06-13 中兴通讯股份有限公司 一种射频识别中的信息传输方法、系统和装置
JP5729161B2 (ja) * 2010-09-27 2015-06-03 ヤマハ株式会社 通信端末、無線機、及び無線通信システム
CN103378923A (zh) * 2012-04-18 2013-10-30 北京鼎合远传技术有限公司 基于频率调制的基带传输编码方法及其装置
CN104284334B (zh) * 2013-07-01 2018-10-30 华为终端有限公司 一种WiFi保护设置的控制方法及设备
CN103987033A (zh) * 2014-04-23 2014-08-13 微梦创科网络科技(中国)有限公司 设备连接Wi-Fi网络的方法、设备及系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140208387A1 (en) * 2013-01-22 2014-07-24 Qualcomm Incorporated Device utilizing an optical signal to access an access point
CN104093191A (zh) * 2014-06-24 2014-10-08 深圳创维-Rgb电子有限公司 一种基于光敏传感器的设备联网方法及其系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI684379B (zh) * 2018-07-19 2020-02-01 慶奇科技股份有限公司 無線上網設定系統
CN114996188A (zh) * 2022-05-12 2022-09-02 中国人民解放军国防科技大学 一种利用智能插座实现与计算机通信的方法和装置
CN114996188B (zh) * 2022-05-12 2023-09-22 中国人民解放军国防科技大学 一种利用智能插座实现与计算机通信的方法和装置

Also Published As

Publication number Publication date
CN107005917B (zh) 2020-09-04
CN107005917A (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
CN107222372B (zh) 一种信息发送方法和设备
CN103929767A (zh) 一种基于声波或光波通信的无线网络设置方法
WO2015143807A1 (zh) 红外信号发送方法、装置和遥控器
CN102694597B (zh) 可见光信号的解码方法和控制方法
CN104093191A (zh) 一种基于光敏传感器的设备联网方法及其系统
CN104735274A (zh) 一种基于云平台和智能手机的学习型万能红外遥控方法
CN108628178A (zh) 一种控制方法及装置
WO2017140220A1 (zh) 数据发送方法及装置、接收方法及装置、传输方法及系统
CN108632117A (zh) 一种控制方法、设备及系统
WO2016145592A1 (zh) 一种建立通信的方法、装置及终端、路由器
CN207340230U (zh) 一种led灯同步控制装置
CN110492936B (zh) 基于可见光通信的添加好友方法、装置和移动终端
CN110583100A (zh) 通过分析设备控制信息形成设备的组
CN106716511B (zh) 遥控设备、用户设备及其系统,以及方法和识别信号
CN110380781B (zh) 信号增强方法和系统,及存储介质
WO2018119699A1 (zh) 发布配置信息的方法、接入设备的方法及装置
CN105187123A (zh) 一种结合wifi通讯与可见光通讯的智能家庭安全控制器
CN103986632A (zh) 一种利用可见光将设备加入到网络的方法
CN107231247A (zh) 用智能手机的led向其他设备传送信息的方法及装置
CN204425709U (zh) 照明设备、智能终端、照明设备组网系统
CN107257586B (zh) 智能终端连接WiFi时的移动网络连接方法和系统
CN104113820A (zh) Ios系统与蓝牙模块进行数据通信的方法
CN110149254B (zh) 无线开关的控制方法、无线开关及计算机可读存储介质
CN103236149A (zh) 多功能远距离无线点火遥控方法
Salvi et al. An Image Transmission Technique using Low-Cost Li-Fi Testbed

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15884976

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15884976

Country of ref document: EP

Kind code of ref document: A1