Communication method, device, equipment, medium and product
By designing a communication method that utilizes lamp bead arrays, multiple terminals access to visible light systems and routing maintenance problems are solved, terminal positioning and data mutual transmission are realized, and the maximum utilization rate of time slots is ensured.
Patent Information
- Application Number
- CN202411584639.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-18
AI Technical Summary
Under the conditions of taking into account both cost and engineering difficulty, how to solve the problems of multi-terminal access to visible light systems and routing maintenance, while implementing terminal positioning functions, and ensuring the maximum utilization rate of time slots.
A communication method is designed. By obtaining a preset time element structure, each time element consists of a network-dimensional time frame and a communication time slot set, and a network-dimensional time frame is sent to each mobile terminal using a lamp bead array to determine the terminal. Quantity and location information, and then the communication time slot allocation scheme is determined based on the number of terminals, and data is distributed through the lamp bead array.
The positioning of each mobile terminal is realized, and data mutual transmission with the mobile terminal is realized while the maximum bandwidth utilization is maximized.
Smart Images

Figure CN119485646A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of visible light mobile communications, and in particular, to a communication method, device, equipment, medium and product. Background Art
[0002] Visible light communication systems have developed rapidly due to their advantages such as no radio frequency electromagnetic radiation, no need for spectrum certification, low cost, good confidentiality, high modulation bandwidth, and high transmission rate. With the development of wireless communication technology, people are trying to build a fusion system to give full play to their respective technical advantages and enrich application scenarios. At present, great progress has been made in the integration with power line communication, WiFi, Ethernet, long-term evolution network, and fifth-generation / sixth-generation mobile communication technology (5G / 6G). However, in this process, how to solve the problem of multi-terminal access to the visible light system and route maintenance while taking into account the cost and engineering difficulty, and how to realize the terminal positioning function and how to ensure the maximum utilization of the time slot has become an urgent problem to be solved. Summary of the invention
[0003] The embodiments of the present invention provide a communication method, apparatus, device, medium and product, so as to realize the positioning of each mobile terminal and realize data transmission with the mobile terminal while ensuring the maximum bandwidth utilization.
[0004] According to one aspect of the present invention, there is provided a communication method, comprising:
[0005] Obtain a preset time unit structure, each time unit is composed of a network dimension time frame and a communication time slot set;
[0006] Sending the network dimension time frame to each mobile terminal through the lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network;
[0007] Determining a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network;
[0008] Receive the data to be distributed, and based on the communication time slot allocation scheme, distribute the data to be distributed to each mobile terminal on the network through the lamp bead array.
[0009] According to another aspect of the present invention, there is provided a communication device, the device comprising:
[0010] An acquisition module, used to acquire a preset time element structure, each time element is composed of a network dimension time frame and a communication time slot set;
[0011] A sending module, used to send the network dimension time frame to each mobile terminal through a lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network;
[0012] A determination module, used to determine a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network;
[0013] The receiving and distributing module is used to receive the data to be distributed, and based on the communication time slot allocation scheme, distribute the data to be distributed to each mobile terminal on the network through the lamp bead array.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the communication method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the communication method described in any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the communication method described in any embodiment of the present invention is implemented.
[0020] The embodiment of the present invention designs a time element structure for visible light mobile communication, each of which is composed of a network dimension time frame and a communication time slot set. The network dimension time frame is then sent to each mobile terminal through a lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network, thereby positioning each mobile terminal, and determining the communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network to ensure maximum bandwidth utilization. After that, the data to be distributed is received, and based on the determined communication time slot allocation scheme, the data to be distributed is distributed to each mobile terminal on the network through the lamp bead array to achieve data transmission between mobile terminals. Through the technical solution of the present invention, each mobile terminal can be located, and data transmission with the mobile terminal can be achieved while ensuring maximum bandwidth utilization.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 It is a schematic diagram of the data flow of a communication system;
[0024] Figure 2 is a flow chart of a communication method in an embodiment of the present invention;
[0025] Figure 3 is a structural schematic diagram of an epoch structure in an embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of the structure of a network dimension time slot in an embodiment of the present invention;
[0027] Figure 5 is a schematic diagram of a communication time slot allocation scheme in an embodiment of the present invention;
[0028] Figure 6 is a schematic structural diagram of a communication device in an embodiment of the present invention;
[0029] Figure 7 It is a schematic diagram of the structure of an electronic device for implementing the communication method of an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and their meanings are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0033] Embodiment 1
[0034] Figure 1 It is a schematic diagram of the data flow of a communication system. Figure 1 As shown, the communication system includes: a centralized processing unit, an LED lamp end array and a mobile terminal. The communication system data flow process can be described as:
[0035] First, the centralized processing unit receives the control instructions and data to be distributed from the host computer through the Ethernet port. The ARM (Advanced RISC Machine) and FPGA (Field-Programmable Gate Array) of the centralized processing unit parse and process the protocol data to change the original working mode, and distribute the data from the host computer to the mobile terminal through broadcast or directional transmission using the LED (Light Emitting Diode) lamp end array. The optical transceiver module of the mobile terminal restores the optical signal to an electrical signal, which is parsed and processed by the FPGA and ARM. At this time, the data can be saved to the SD (Secure Digital) card or distributed through the Ethernet port according to the control requirements.
[0036] At the same time, the mobile terminal can convert the storage data of the SD card or the data accessed by the network port (such as image and video data) into optical signals through ARM and FPGA and transmit them to the LED lamp end array according to the working mode selected by itself. After the centralized processing unit analyzes and processes the data of the LED lamp end array, it chooses to forward it within the local area network or hand it over to the host computer to access Ethernet to realize data interaction with the external network.
[0037] The design of data flow and processing is adopted because Ethernet has the advantages of flexible operation and easy implementation. ARM can use the protocol stack to quickly realize network connection, and there is a high-speed data bus between FPGA for information exchange. Then, the advantages of FPGA itself such as accurate timing and large concurrent data volume are utilized to realize the time integration and access function of the entire network.
[0038] However, in the above communication process, how to solve the problem of multi-terminal access to the visible light system and route maintenance while taking into account the cost and engineering difficulty, and at the same time realizing the terminal positioning function, and how to ensure the maximum utilization of time slots has become an urgent problem to be solved.
[0039] Figure 2 is a flow chart of a communication method in an embodiment of the present invention. This embodiment is applicable to the case of visible light mobile communication. The method can be executed by a communication device in an embodiment of the present invention. The device can be implemented in software and / or hardware, such as Figure 2 As shown, the method specifically comprises the following steps:
[0040] S101: Obtain a preset epoch structure.
[0041] Each time element consists of a network time frame and a set of communication time slots.
[0042] It can be known that the time element structure refers to dividing time into continuous time elements in the time division multiple access technology, and each time element can include one or more time slots. This structure allows multiple users to alternately send and receive signals on the same frequency, and each user is assigned to a non-overlapping time slot. In this embodiment, the time element structure can be preset by the user according to actual needs or experience values.
[0043] For example, Figure 3 Schematic diagram of a time unit structure in an embodiment of the present invention. Figure 3 As shown, a time unit includes a network time frame and a communication time slot set ( Figure 3 In the example, 24 communication time slots are used, namely, communication time slot 1, communication time slot 2, ..., communication time slot 23, and communication time slot 24). The network frame has a duration of 1 ms, each communication time slot has a duration of 1 ms, and the communication time slot set composed of 24 communication time slots has a total duration of 24 ms. Therefore, one time unit has 25 ms, and it can be sent repeatedly 40 times within 1 second by polling.
[0044] S102: Send a network time frame to each mobile terminal through the lamp array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network.
[0045] In this embodiment, the lamp bead array is the above-mentioned LED lamp end array, which is composed of a plurality of LED lamp beads and can be used as a medium for communication between the centralized processing unit and all mobile terminals.
[0046] It should be noted that the mobile terminal on the network can be understood as a mobile terminal in the network where the centralized processing unit is located. The location information of the mobile terminal on the network can be, for example, information such as which lamp bead in the lamp bead array the mobile terminal is specifically located under and how far it is from the lamp bead.
[0047] Specifically, the centralized processing unit sends a network maintenance time frame to each mobile terminal through the lamp bead array. The main purpose of the network maintenance time frame is to perform access processing for mobile terminals that are not connected to the network, and to perform RTT (Round-Trip Time) timing and ranging for mobile terminals on the network. At the same time, it can determine which LED lamp bead the mobile terminal is under. In addition, the number of mobile terminals on the network can be determined by sending network maintenance time frames to the mobile terminals.
[0048] S103. Determine a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals in the network.
[0049] In this embodiment, the communication time slot allocation scheme may be a scheme for specifically allocating which mobile terminal occupies which communication time slot.
[0050] Specifically, through the above steps, the number of mobile terminals on the network can be known, and it can be determined which LED lamp bead each mobile terminal communicates with. Therefore, the corresponding communication time slot allocation plan can be designed according to the number of mobile terminals on the network to ensure the maximum time slot utilization.
[0051] S104, receiving the data to be distributed, and distributing the data to be distributed to each mobile terminal on the network through the lamp bead array based on the communication time slot allocation scheme.
[0052] The data to be distributed may be data to be distributed sent by a host computer and received by the centralized processing unit through an Ethernet port, or may be data received from a mobile terminal through a lamp bead array.
[0053] During the implementation process, the centralized processing unit will control each time frame and time slot within the transmission time element of the timing cycle of the lamp bead array. First, the network maintenance time frame will be initiated. After that, the allocation plan of the mobile terminals and communication time slots is determined. All mobile terminals and the centralized processing unit will send data according to this time element structure.
[0054] The embodiment of the present invention designs a time element structure for visible light mobile communication, each of which is composed of a network dimension time frame and a communication time slot set. The network dimension time frame is then sent to each mobile terminal through a lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network, thereby positioning each mobile terminal, and determining the communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network to ensure maximum bandwidth utilization. After that, the data to be distributed is received, and based on the determined communication time slot allocation scheme, the data to be distributed is distributed to each mobile terminal on the network through the lamp bead array to achieve data transmission between mobile terminals. Through the technical solution of the present invention, each mobile terminal can be located, and data transmission with the mobile terminal can be achieved while ensuring maximum bandwidth utilization.
[0055] Optionally, a network dimension time frame is sent to each mobile terminal through a lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network, including:
[0056] Control each lamp bead in the lamp bead array to send a link remote control protocol message to each mobile terminal in a target manner in each network dimension time slot within the network dimension time frame.
[0057] It needs to be explained that the network dimension time slot may be a time slot included in the network dimension time frame.
[0058] Each network time slot includes: a downlink remote control protocol and an uplink telemetry command protocol.
[0059] It should be noted that the downlink remote control protocol is the protocol based on which the centralized processing unit controls the lamp array to send messages to the mobile terminal, and the uplink telemetry command protocol is the protocol based on which the mobile terminal sends messages to the lamp array.
[0060] In actual operation, the downlink remote control protocol and the uplink telemetry command protocol are basically the same except for the source address and destination address. When the centralized processing unit controls the lamp bead array to send a message to the mobile terminal, the source address is the address of the centralized processing unit, and the destination address is the mac_id of the mobile terminal; conversely, when the mobile terminal sends a message to the lamp bead array, the source address is the mac_id of the mobile terminal, and the destination address is the address of the centralized processing unit.
[0061] Table 1 is a downlink remote control protocol message structure. As shown in Table 1, the downlink remote control protocol message structure includes:
[0062] Table 1
[0063]
[0064] In this embodiment, the target mode may be a mode in which a centralized processing unit controls the lamp beads in the lamp bead array to send visible light carrying a link remote control protocol message to each mobile terminal, for example, several lamp beads may send to one mobile terminal at the same time.
[0065] In this embodiment, the link remote control protocol message may be a message sent by the centralized processing unit to control the lamp array to the mobile terminal, and is used to perform access processing on the mobile terminal that is not connected to the network and to locate the mobile terminal that is connected to the network.
[0066] Specifically, the centralized processing unit controls the lamp beads in the lamp bead array to send a link remote control protocol message to each mobile terminal in each network dimension time slot within the network dimension time frame through a determined sending method.
[0067] The control lamp bead array receives the link telemetry command protocol message returned by each mobile terminal.
[0068] Among them, the link telemetry command protocol message can be a message returned by the mobile terminal to the lamp bead array after receiving the link remote control protocol message, which can be used to confirm whether the mobile terminal is connected to the network and the distance between the mobile terminal and the lamp beads.
[0069] Specifically, after receiving the link remote control protocol message, the mobile terminal returns a link telemetry command protocol message to the lamp bead array, and the lamp bead array receives the link telemetry command protocol message returned by the mobile terminal.
[0070] The network access node table in the link remote control protocol message is updated according to the link telemetry instruction protocol message returned by each mobile terminal.
[0071] It should be noted that there is a network access node table of several bytes in the link remote control protocol message, in which it is known which nodes (ie mobile terminals) are on the network and how many nodes (ie mobile terminals) are on the network.
[0072] Specifically, if the link telemetry command protocol message received from the mobile terminal indicates that the mobile terminal is on the network, the information about the mobile terminal in the network access node table can remain unchanged; if the link telemetry command protocol message received from the mobile terminal indicates that the mobile terminal has applied for network access, the information about the mobile terminal can be added to the network access node table.
[0073] Determine the number of mobile terminals on the network based on the network access node table.
[0074] Specifically, the number of mobile terminals in the network can be obtained by directly querying the network access node table in the link remote control protocol message.
[0075] The location information of each mobile terminal in the network is determined according to the link remote control protocol message received by each mobile terminal and the link telemetry instruction protocol message returned by each mobile terminal.
[0076] Specifically, it is possible to determine which lamp bead the mobile terminal is located under based on which lamp bead the link remote control protocol message received by each mobile terminal comes from, and then determine how far the mobile terminal is from the lamp bead based on the time between sending the link remote control protocol message and receiving the link telemetry command protocol message returned by the mobile terminal.
[0077] Optionally, before controlling each lamp bead in the lamp bead array to send a link remote control protocol message to each mobile terminal in a target manner in each network dimension time slot within the network dimension time frame, the method further includes:
[0078] Get the number of lamp beads in the lamp bead array and the installation position of each lamp bead.
[0079] In actual operation, the determination of the target mode is related to the number of lamp beads contained in the lamp bead array and the arrangement position of the lamp beads. Therefore, it is necessary to first determine the number of lamp beads contained in the lamp bead array and the installation position of each lamp bead.
[0080] The target mode in which the lamp bead array sends visible light to each mobile terminal is determined according to the number of lamp beads and the installation position of each lamp bead.
[0081] Exemplarily, the lamp bead array is in a 3×3 matrix style, that is, the number of lamp beads contained in the lamp bead array is 9, and the lamp beads are arranged in 3 horizontal rows and 3 vertical columns. In order to reduce time consumption, multiple lamp beads can be controlled to send visible light to the same mobile terminal at the same time, and in order to ensure the accuracy of positioning and reduce the interference caused by the visible light emitted by the lamp beads at adjacent positions, the lamp beads with the farthest distance can be controlled to send visible light at the same time each time.
[0082] Exemplarily, mobile terminal 1 can first be polled to send from LED lamp beads 1 and 9 together until it reaches LED lamp bead 5, that is, the first time LED lamp beads 1 and 9 are controlled to send visible light to mobile terminal 1 together, the second time LED lamp beads 2 and 8 are controlled to send visible light to mobile terminal 1 together, and so on, and finally LED lamp bead 5 is controlled to send visible light to mobile terminal 1. In this way, according to which LED lamp bead mobile terminal 1 receives visible light sent by which LED lamp bead, it can be known which LED lamp bead mobile terminal 1 is under, and the distance between mobile terminal 1 and the LED lamp bead can be measured according to the time between the LED lamp bead emitting visible light and receiving the link telemetry command protocol message sent by mobile terminal 1, thereby realizing the positioning function of the mobile terminal.
[0083] Specifically, after the addressing of the mobile terminal 1 is completed based on the above process, the same process is repeated until each mobile terminal is located.
[0084] The number of network dimension time slots included in the network dimension time frame is determined according to the number of lamp beads and the preset maximum number of mobile terminals that can access the network.
[0085] Specifically, after obtaining the number of lamp beads and the target mode, the number of times each terminal needs to be polled can be determined. For example, a lamp bead array consists of 9 lamp beads, and two lamp beads are controlled each time to send visible light to the same mobile terminal, then polling is required 5 times. If the preset maximum number of mobile terminals that can access the network is 4 (a total of 4 network access nodes 16 to 19 in Table 1), that is, the network where the centralized processing unit is located can connect to a maximum of 4 mobile terminals at one time, then 4 cyclic positioning is required, and the number of network dimension time slots included in the network dimension time slot is 20.
[0086] For example, Figure 4 Schematic diagram of the structure of a network dimension time slot in an embodiment of the present invention. Figure 4 As shown in the figure, there are 20 network-dimensional time slots in a network-dimensional time frame, and each network-dimensional time slot has a total length of 500 symbols (indicated by the unit syb in the figure) and a duration of 50us. Each network-dimensional time slot is divided into a downlink remote control protocol and an uplink telemetry protocol. The downlink remote control protocol consists of a 63syb synchronization header, a 187syb link remote control command and a protection interval, and the uplink telemetry protocol consists of a 63syb synchronization header, a 187syb link telemetry command and a protection interval. Therefore, a network-dimensional time frame takes about 1ms to complete an RTT ranging and access process for all mobile terminals in all lamp beads.
[0087] Optionally, determining the location information of each mobile terminal on the network according to the link remote control protocol message received by each mobile terminal and the link telemetry command protocol message returned by each mobile terminal includes:
[0088] The position information of each mobile terminal on the network relative to the corresponding lamp bead is determined according to the lamp bead information of the link remote control protocol message received by each mobile terminal.
[0089] In this embodiment, the lamp bead to which the mobile terminal belongs can be understood as the mobile terminal being under the lamp bead.
[0090] Exemplarily, when the two farthest lamp beads are selected from the lamp bead array to send visible light to the same mobile terminal in a polling manner, the mobile terminal can determine which LED lamp bead is under which the mobile terminal receives the visible light.
[0091] Get the time interval between the lamp bead array sending the link remote control protocol message and receiving the link telemetry command protocol message.
[0092] Specifically, the time interval between the moment when the LED lamp bead sends visible light carrying the link remote control protocol message to the mobile terminal and the moment when the LED lamp bead receives the link telemetry command protocol message returned by the mobile terminal under the LED lamp bead is obtained.
[0093] The target distance between each mobile terminal on the network and its corresponding lamp bead is determined according to the time interval.
[0094] Specifically, the time interval can be multiplied by the message transmission speed to obtain the target distance between the mobile terminal and the corresponding lamp bead.
[0095] Optionally, after determining the number of mobile terminals in the network according to the network access node table, the method further includes:
[0096] If the number of mobile terminals in the network is less than the preset maximum number of mobile terminals that can access the network, the destination address in the link remote control protocol message is updated to a competition network access flag, and the updated link remote control protocol message is sent to each mobile terminal.
[0097] In this embodiment, the network access contention flag may be 0xff, which is used to indicate that the number of mobile terminals in the network has not reached the maximum number of mobile terminals that can access the network, and the mobile terminal may still be allowed to access the network.
[0098] Specifically, if the number of mobile terminals in the network is less than the maximum number of mobile terminals that can access the network, the centralized processing unit will send a link remote control protocol message containing a contention access flag in an unoccupied network time slot, that is, rewrite the destination address in the link remote control protocol message to 0xff.
[0099] After the mobile terminal receives the link remote control protocol message, if it detects that the destination address is the mobile terminal address, it determines that the mobile terminal is on the network, and controls the mobile terminal to return the link telemetry command protocol message.
[0100] Specifically, after receiving the link remote control protocol message, the mobile terminal detects the destination address therein, and if the destination address is the mac_id of the mobile terminal itself, the RTT ranging positioning process is performed.
[0101] If the destination address is detected as a competition network access mark, it is determined that the mobile terminal has not accessed the network, and the mobile terminal is controlled to determine whether to send a network access request message according to a random sequence.
[0102] The random sequence is generated by the local clock drive of the mobile terminal.
[0103] In this embodiment, the network access request message may be a message sent by the mobile terminal to the centralized processing unit to apply for joining the network.
[0104] Specifically, if the destination address is the contention network access flag 0xff, the mobile terminal first determines whether it is in the network access node table (see Table 1). If not, the mobile terminal determines whether to send a network access request message based on the random sequence generated by itself.
[0105] Optionally, controlling the mobile terminal to determine whether to send a network access request message according to the random sequence includes:
[0106] If the target bit of the random sequence is the first flag, the mobile terminal is controlled to send a network access request message, the network access request message sent by the mobile terminal is received, the address information of the mobile terminal is updated to the network access node table in the link remote control protocol, and the corresponding communication time slot is allocated to the mobile terminal.
[0107] It should be noted that the target bit may be the last bit of the random sequence. In this embodiment, the first flag may be 1, for example.
[0108] In the implementation process, the random sequence of the mobile terminal is a group of m sequences driven by the local clock. Because the power-on time of each mobile terminal is different and the local clock is from different sources, the phase of the generated m is also different. Moreover, over time, the phase of the m sequence of the two mobile terminals will continue to change. This is the basis for the competition network access decision condition.
[0109] Specifically, when a node that has not joined the network receives a message from the master station and passes the CRC check, it extracts the last 1 bit of the m sequence. If it is '1', it means that a network application message needs to be sent. After receiving the network access request message from the mobile terminal, the centralized processing unit controls the lamp bead array to update the address mac_id of the mobile terminal to the network access node table and allocate the corresponding communication time slot to the mobile terminal.
[0110] If the target bit of the random sequence is the second flag, the mobile terminal is controlled to remain silent.
[0111] In this embodiment, the second flag may be 0, for example.
[0112] Specifically, extract the last 1 bit of data of the m sequence, if it is '0', keep silent.
[0113] In actual operation, the network access is determined based on whether the last bit of the m sequence is 1 or 0. The probability of a mobile terminal applying for network access is changed to 1 / 2. When four mobile terminals participate in the competition, each network time slot has The probability of not being interfered by the same frequency is 1. Therefore, in the scenario where 4 mobile terminals compete for network access at the same time, 4 network time slots are required to ensure that the expected value of any node (i.e. mobile terminal) accessing the network is ≥ 1. By analogy, the probability of not being interfered in the scenario where 3 mobile terminals compete for network access is Therefore, 3 network time slots are needed to ensure that the expected value of any node accessing the network is ≥ 1. The probability of no interference when two mobile terminals compete for access to the network is Therefore, two network time slots are required. The probability of no interference when one mobile terminal competes for network access is Therefore, two network dimension time slots are needed. In summary, the network dimension time slots required for four mobile terminals to access the network in sequence are estimated to be 11. From the above time slot design structure, it can be seen that the network access time is much less than 1 second.
[0114] Optionally, the method further includes:
[0115] If the link telemetry instruction protocol message returned by the mobile terminal is not received within the target time period, the address information of the mobile terminal in the network access node table is updated to a contention network access flag.
[0116] The target time period may be a time period set by the user according to actual needs or experience, and this embodiment does not limit the specific length of the target time period.
[0117] In the actual operation process, the centralized processing unit not only needs to use the corresponding network maintenance time slot for competing for network access, but also needs to continuously maintain its own network access node table to achieve that if there are nodes (i.e. mobile terminals) that have been disconnected from the network, the network access node table can be updated in time so that nodes that have not been connected to the network can also have the opportunity to connect to the network. Therefore, in this embodiment, the watchdog method can be used to continuously update the network access node table. If the lamp bead array does not receive a reply from the mobile terminal within a certain period of time (target time period), it is considered that the mobile terminal has been disconnected from the network, and the centralized processing unit updates the network access node table and rewrites the corresponding field to 0xff, thereby realizing the functions of competitive network access and timeout network disconnection.
[0118] It can be known that the mobile terminal can obtain the MAC address of the mobile terminal on the network through the network access node table, and determine whether there is a forwarding or broadcasting requirement. The mobile terminal only needs to change and send the destination address to the MAC address or broadcast address of any terminal. The centralized processing unit detects the destination address of the link telemetry command protocol message of the mobile terminal through the lamp bead array and forwards it, thereby realizing the forwarding function of the mobile terminal within the network.
[0119] Optionally, determining a communication time slot allocation scheme corresponding to a communication time slot set according to the number of mobile terminals in the network includes:
[0120] All mobile terminals on the network are regarded as a group. The mobile terminals on the network in each group take turns to occupy the communication time slots corresponding to the number of mobile terminals on the network. Then, a group-by-group cyclic occupation method is adopted to control each mobile terminal on the network to occupy all communication time slots to ensure the maximum utilization of the communication time slots.
[0121] In this embodiment, there are three types of communication time slots: uplink communication time slots, downlink communication time slots, and downlink broadcast time slots. The structure of each communication time slot is composed of a synchronization header of 63 symbols, communication data of 9912 symbols, and a protection interval of 25 symbols. The synchronization header is used to allow the receiving end to perform frame synchronization, and the communication data part is used to transmit the content of each protocol frame, specifically the broadcast protocol, downlink communication protocol, and uplink communication protocol.
[0122] Table 2 is the broadcast protocol. As shown in Table 2, the broadcast protocol includes:
[0123] Table 2
[0124]
[0125] Table 3 is a downlink communication protocol. As shown in Table 3, the downlink communication protocol includes:
[0126] Table 3
[0127]
[0128] It should be explained that the group-based cyclic occupation may be to allocate a corresponding number of communication time slots according to the number of mobile terminals in the group, and the next group is allocated in the same way until all communication time slots are occupied.
[0129] Specifically, after determining the number of mobile terminals on the network and being able to determine which LED lamp bead the mobile terminal is located under, that is, which LED lamp bead the mobile terminal communicates with, a corresponding communication time slot allocation plan can be designed based on the number of mobile terminals on the network to ensure maximum time slot utilization.
[0130] Table 4 is an uplink communication protocol. As shown in Table 4, the uplink communication protocol includes:
[0131] Table 4
[0132]
[0133] For example, Figure 5 FIG. 1 is a schematic diagram of a communication time slot allocation scheme in an embodiment of the present invention. Figure 5 As shown, the 24 communication time slots are 24ms in total. The allocation scheme of the 24 communication time slots can be: when only one mobile terminal is connected, all communication time slots will be allocated to terminal 1; when the number of connected mobile terminals is greater than 1, all terminals occupy the 24 communication time slots in an alternating manner to ensure maximum utilization of the time slots.
[0134] For example, when there are two terminals, terminal 1 and terminal 2 can be regarded as a group, and two communication time slots are allocated to the first group of terminal 1 and terminal 2. Similarly, two communication time slots are allocated to the next group of terminal 1 and terminal 2, and so on. A total of 12 groups are allocated, and all 24 communication time slots are occupied.
[0135] For example, when there are three terminals, terminal 1, terminal 2 and terminal 3 can be regarded as a group, and 3 communication time slots are allocated to the first group of terminal 1, terminal 2 and terminal 3. Similarly, 3 communication time slots are allocated to the next group of terminal 1, terminal 2 and terminal 3, and so on. A total of 8 groups are allocated, and all 24 communication time slots are occupied.
[0136] For example, when there are four terminals, terminal 1, terminal 2, terminal 3 and terminal 4 can be regarded as a group, and 4 communication time slots are allocated to the first group of terminal 1, terminal 2, terminal 3 and terminal 4. Similarly, 4 communication time slots are allocated to the next group of terminal 1, terminal 2, terminal 3 and terminal 4, and so on. A total of 6 groups are allocated, and all 24 communication time slots are occupied.
[0137] The technical solution of the embodiment of the present invention, while utilizing visible light communication, designs a time element structure for visible light communication. This structure takes into account lighting while also being able to perform real-time positioning of each mobile terminal and monitor whether it is online, thereby ensuring maximum bandwidth utilization and realizing data transmission between a centralized processing unit and mobile terminals, as well as between mobile terminals.
[0138] Embodiment 2
[0139] Figure 6 is a schematic diagram of the structure of a communication device in an embodiment of the present invention. This embodiment is applicable to the case of visible light mobile communication. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides communication functions, such as Figure 6 As shown, the communication device specifically includes: an acquisition module 201, a sending module 202, a determination module 203 and a receiving and distributing module 204.
[0140] The acquisition module 201 is used to acquire a preset time element structure, each time element is composed of a network dimension time frame and a communication time slot set;
[0141] The sending module 202 is used to send the network dimension time frame to each mobile terminal through the lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network;
[0142] A determination module 203, configured to determine a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals in the network;
[0143] The receiving and distributing module 204 is used to receive the data to be distributed, and based on the communication time slot allocation scheme, distribute the data to be distributed to each mobile terminal on the network through the lamp bead array.
[0144] Optionally, the sending module 202 includes:
[0145] A first control unit is used to control each lamp bead in the lamp bead array to send a link remote control protocol message to each mobile terminal in each network dimension time slot within the network dimension time frame in a target manner, wherein each network dimension time slot includes: a downlink remote control protocol and an uplink telemetry command protocol;
[0146] A second control unit, used to control the lamp bead array to receive the link telemetry command protocol message returned by each mobile terminal;
[0147] A first updating unit, configured to update the network access node table in the link remote control protocol message according to the link telemetry instruction protocol message returned by each mobile terminal;
[0148] A first determining unit, configured to determine the number of mobile terminals in the network according to the network access node table;
[0149] The second determining unit is used to determine the location information of each mobile terminal in the network according to the link remote control protocol message received by each mobile terminal and the link telemetry instruction protocol message returned by each mobile terminal.
[0150] Optionally, the device further comprises:
[0151] An acquisition unit, used to acquire the number of lamp beads included in the lamp bead array and the installation position of each lamp bead;
[0152] A third determining unit, configured to determine a target mode for the lamp bead array to send visible light to each mobile terminal according to the number of lamp beads and the installation position of each lamp bead;
[0153] The fourth determining unit is used to determine the number of network dimension time slots included in the network dimension time frame according to the number of lamp beads and the preset maximum number of mobile terminals that can access the network.
[0154] Optionally, the second determining unit is specifically configured to:
[0155] Determine the position information of each mobile terminal on the network relative to the corresponding lamp bead according to the lamp bead information of the link remote control protocol message received by each mobile terminal;
[0156] Obtaining the time interval between the lamp bead array sending the link remote control protocol message and receiving the link telemetry command protocol message;
[0157] The target distance between each mobile terminal on the network and its corresponding lamp bead is determined according to the time interval.
[0158] Optionally, the device further comprises:
[0159] A second updating unit, configured to update the destination address in the link remote control protocol message to a competition network access flag if the number of mobile terminals in the network is less than a preset maximum number of mobile terminals that can access the network, and send the updated link remote control protocol message to each mobile terminal;
[0160] a fifth determining unit, configured to determine that the mobile terminal is on the network and control the mobile terminal to return a link telemetry command protocol message if it is detected that the destination address is the address of the mobile terminal after the mobile terminal receives the link remote control protocol message;
[0161] The sixth determination unit is used to determine that the mobile terminal has not accessed the network if it is detected that the destination address is a competition network access mark, and control the mobile terminal to determine whether to send a network access request message according to a random sequence, wherein the random sequence is generated by the local clock drive of the mobile terminal.
[0162] Optionally, the sixth determining unit is specifically configured to:
[0163] If the target bit of the random sequence is the first flag, controlling the mobile terminal to send a network access request message, receiving the network access request message sent by the mobile terminal, updating the address information of the mobile terminal into the network access node table in the link remote control protocol, and allocating a corresponding communication time slot to the mobile terminal;
[0164] If the target bit of the random sequence is the second flag, the mobile terminal is controlled to remain silent.
[0165] Optionally, the device further comprises:
[0166] The third updating unit is used to update the address information of the mobile terminal in the network access node table to a contention network access flag if the link telemetry instruction protocol message returned by the mobile terminal is not received within the target time period.
[0167] Optionally, the determining module 203 is specifically configured to:
[0168] All mobile terminals on the network are regarded as a group. The mobile terminals on the network in each group take turns to occupy the communication time slots corresponding to the number of mobile terminals on the network. Then, a group-by-group cyclic occupation method is adopted to control each mobile terminal on the network to occupy all communication time slots to ensure the maximum utilization of the communication time slots.
[0169] The above-mentioned product can execute the communication method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0170] Embodiment 3
[0171] Figure 7 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0172] like Figure 7 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.
[0173] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0174] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 31 performs the various methods and processes described above, such as the communication method:
[0175] Obtain a preset time unit structure, each time unit is composed of a network dimension time frame and a communication time slot set;
[0176] Sending the network dimension time frame to each mobile terminal through the lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network;
[0177] Determining a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network;
[0178] Receive the data to be distributed, and based on the communication time slot allocation scheme, distribute the data to be distributed to each mobile terminal on the network through the lamp bead array.
[0179] In some embodiments, the communication method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the communication method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the communication method in any other appropriate manner (e.g., by means of firmware).
[0180] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0181] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0182] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0183] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0184] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0185] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0186] In one embodiment, the present invention further includes a computer program product, the computer program product includes a computer program, and the computer program implements the communication method of any embodiment of the present invention when executed by a processor.
[0187] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0188] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0189] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A communication method, characterized in that: include: Obtain a preset time unit structure, each time unit is composed of a network dimension time frame and a communication time slot set; Sending the network dimension time frame to each mobile terminal through the lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network; Determining a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network; Receive the data to be distributed, and based on the communication time slot allocation scheme, distribute the data to be distributed to each mobile terminal on the network through the lamp bead array.
2. The method according to claim 1, characterized in that The network dimension time frame is sent to each mobile terminal through the lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network, including: Control each lamp bead in the lamp bead array to send a link remote control protocol message to each mobile terminal in each network dimension time slot within the network dimension time frame in a target manner, wherein each network dimension time slot includes: a downlink remote control protocol and an uplink telemetry command protocol; Controlling the lamp bead array to receive the link telemetry command protocol message returned by each mobile terminal; updating the network access node table in the link remote control protocol message according to the link telemetry instruction protocol message returned by each mobile terminal; Determine the number of mobile terminals in the network according to the network access node table; The location information of each mobile terminal in the network is determined according to the link remote control protocol message received by each mobile terminal and the link telemetry instruction protocol message returned by each mobile terminal.
3. The method according to claim 2, characterized in that Before controlling each lamp bead in the lamp bead array to send a link remote control protocol message to each mobile terminal in each network dimension time slot in the network dimension time frame in a target manner, the method further includes: Obtain the number of lamp beads contained in the lamp bead array and the installation position of each lamp bead; Determining a target mode for the lamp bead array to send visible light to each mobile terminal according to the number of lamp beads and the installation position of each lamp bead; The number of network dimension time slots included in the network dimension time frame is determined according to the number of lamp beads and the preset maximum number of mobile terminals that can access the network.
4. The method according to claim 2, characterized in that: Determining the location information of each mobile terminal on the network according to the link remote control protocol message received by each mobile terminal and the link telemetry command protocol message returned by each mobile terminal includes: Determine the position information of each mobile terminal on the network relative to the corresponding lamp bead according to the lamp bead information of the link remote control protocol message received by each mobile terminal; Obtaining the time interval between the lamp bead array sending the link remote control protocol message and receiving the link telemetry command protocol message; The target distance between each mobile terminal on the network and its corresponding lamp bead is determined according to the time interval.
5. The method according to claim 2, characterized in that: After determining the number of mobile terminals in the network according to the network access node table, the method further includes: If the number of mobile terminals on the network is less than the preset maximum number of mobile terminals that can access the network, the destination address in the link remote control protocol message is updated to a competition network access flag, and the updated link remote control protocol message is sent to each mobile terminal; After the mobile terminal receives the link remote control protocol message, if it is detected that the destination address is the address of the mobile terminal, it is determined that the mobile terminal is on the network, and the mobile terminal is controlled to return a link telemetry command protocol message; If it is detected that the destination address is a competition network access mark, it is determined that the mobile terminal has not accessed the network, and the mobile terminal is controlled to determine whether to send a network access request message according to a random sequence, wherein the random sequence is generated by the local clock drive of the mobile terminal.
6. The method according to claim 5, characterized in that Controlling the mobile terminal to determine whether to send a network access request message according to a random sequence includes: If the target bit of the random sequence is the first flag, controlling the mobile terminal to send a network access request message, receiving the network access request message sent by the mobile terminal, updating the address information of the mobile terminal into the network access node table in the link remote control protocol, and allocating a corresponding communication time slot to the mobile terminal; If the target bit of the random sequence is the second flag, the mobile terminal is controlled to remain silent.
7. The method according to claim 5, characterized in that Also includes: If the link telemetry instruction protocol message returned by the mobile terminal is not received within the target time period, the address information of the mobile terminal in the network access node table is updated to a contention network access flag.
8. The method according to claim 1, characterized in that: Determining a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals in the network includes: All mobile terminals on the network are regarded as a group. The mobile terminals on the network in each group take turns to occupy the communication time slots corresponding to the number of mobile terminals on the network. Then, a group-by-group cyclic occupation method is adopted to control each mobile terminal on the network to occupy all communication time slots to ensure the maximum utilization of the communication time slots.
9. A communication device, characterized in that: include: An acquisition module, used to acquire a preset time element structure, each time element is composed of a network dimension time frame and a communication time slot set; A sending module, used to send the network dimension time frame to each mobile terminal through a lamp bead array to determine the number of mobile terminals on the network and the location information of each mobile terminal on the network; A determination module, used to determine a communication time slot allocation scheme corresponding to the communication time slot set according to the number of mobile terminals on the network; The receiving and distributing module is used to receive the data to be distributed, and based on the communication time slot allocation scheme, distribute the data to be distributed to each mobile terminal on the network through the lamp bead array.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the communication method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the communication method according to any one of claims 1 to 8 when executed.
12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the communication method according to any one of claims 1 to 8.