CN104753829B - Dimming method and dimming device - Google Patents

Dimming method and dimming device Download PDF

Info

Publication number
CN104753829B
CN104753829B CN201310746971.6A CN201310746971A CN104753829B CN 104753829 B CN104753829 B CN 104753829B CN 201310746971 A CN201310746971 A CN 201310746971A CN 104753829 B CN104753829 B CN 104753829B
Authority
CN
China
Prior art keywords
length
msdu
physical layer
unit
light source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310746971.6A
Other languages
Chinese (zh)
Other versions
CN104753829A (en
Inventor
吕宁
支周
禹忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201310746971.6A priority Critical patent/CN104753829B/en
Priority to EP14876388.1A priority patent/EP3091701B1/en
Priority to US15/108,630 priority patent/US9716550B2/en
Priority to PCT/CN2014/080227 priority patent/WO2015100961A1/en
Publication of CN104753829A publication Critical patent/CN104753829A/en
Application granted granted Critical
Publication of CN104753829B publication Critical patent/CN104753829B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Liquid Crystal Display Device Control (AREA)

Abstract

The invention discloses a kind of light-dimming method and dimming devices, which comprises in medium access control (MAC) layer, divides the sub- MSDU that MAC data service unit (MSDU) is multiple equal lengths;Sub- MSDU after segmentation is encapsulated into respectively in Medium Access Control (MAC) Protocol Data Unit independent (MPDU), and is respectively that each MPDU generates compensation frame (CF) according to the target brightness value of light source;It polymerize the MPDU and CF and is the physical layer service data (PSDU) of physical layer protocol data unit (PPDU), and transmits the PPDU.

Description

调光方法及调光装置Dimming method and dimming device

技术领域technical field

本发明涉及光通信领域的调光技术,尤其涉及一种调光方法及调光装置。The invention relates to a dimming technology in the field of optical communication, in particular to a dimming method and a dimming device.

背景技术Background technique

可见光通信(VLC,Visible Light Communication)技术,是指使用人肉眼可见的、波长在400纳米(nm)到700nm范围内的光介质进行短距离光无线通信的技术。VLC技术具有不受电磁干扰、不存在与射频(RF,Radio Frequency)系统相关的干扰等优点,并且其所使用的频谱范围是免许可频谱(Unlicensed Spectrum)。使用可见光进行数据传输时,在发送端,可以通过快速地打开和关闭可见光源(例如,发光二极管)或者对可见光源亮度进行调制;在接收端,接收到经过调制的光信号之后,将其转化为接收端可以处理的数据。Visible light communication (VLC, Visible Light Communication) technology refers to the technology of short-distance optical wireless communication using an optical medium with a wavelength in the range of 400 nanometers (nm) to 700 nm that is visible to the naked eye. The VLC technology has the advantages of being free from electromagnetic interference, and there is no interference related to radio frequency (RF, Radio Frequency) systems, and the spectrum range it uses is an unlicensed spectrum (Unlicensed Spectrum). When using visible light for data transmission, at the sending end, the visible light source (such as a light-emitting diode) can be turned on and off quickly or the brightness of the visible light source can be modulated; at the receiving end, after receiving the modulated optical signal, it is converted to Data that can be processed by the receiver.

在使用可见光进行通信时,首先必须保证在实现数据传输的同时,不影响到用户对照明设备的正常使用。这需要考虑以下两个问题:一是实现数据的传输功能;二是在保证在光源没有闪烁的前提下,支持对光源亮度进行调节即调光(Dimming)。When using visible light for communication, it must first ensure that the normal use of lighting equipment by users is not affected while realizing data transmission. This needs to consider the following two issues: one is to realize the data transmission function; the other is to support the adjustment of the brightness of the light source (Dimming) under the premise of ensuring that the light source does not flicker.

现有技术中,调光主要有以下两种方式:In the prior art, there are mainly two ways of dimming:

1)发送端在空闲/接收状态下,使用空闲模式(idle pattern),即通过独立地发送用于调节光亮度的帧来实现调光,但该方式缺乏实现调光功能的具体实现方案;1) In the idle/receiving state, the sender uses the idle pattern (idle pattern), that is, realizes dimming by independently sending frames for adjusting the brightness, but this method lacks a specific implementation plan for realizing the dimming function;

2)在物理层,使用与调制方式和信道编码方案密切相关的空闲模式进行调光,这种方式只能对光源进行既定幅度的亮度调节,无法对光源的亮度进行平滑调节,调光的灵活度不够。2) At the physical layer, the idle mode closely related to the modulation method and channel coding scheme is used for dimming. This method can only adjust the brightness of the light source with a predetermined range, but cannot smoothly adjust the brightness of the light source, and the dimming is flexible. Not enough.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种调光方法及调光装置,在实现通信功能的同时确保光源无闪烁,又实现了灵活的、根据用户需求的可见光通信系统中的调光。In view of this, the embodiments of the present invention provide a dimming method and a dimming device, which ensure no flickering of a light source while realizing a communication function, and realize flexible dimming in a visible light communication system according to user requirements.

为了达到上述目的,本发明实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present invention is achieved in this way:

本发明实施例提供一种调光方法,所述方法包括:An embodiment of the present invention provides a dimming method, the method comprising:

在介质访问控制(MAC,Media Access Control)层,分割MAC数据服务单元(MSDU,MAC Service Data Unit)为多个长度相等的子MSDU;At the media access control (MAC, Media Access Control) layer, split the MAC data service unit (MSDU, MAC Service Data Unit) into multiple sub-MSDUs of equal length;

将分割后的子MSDU分别封装到各自独立的MAC协议数据单元(MPDU,MAC ProtocolData Unit)中,并根据光源的目标亮度值分别为各MPDU生成补偿帧(CF,CompensatoryFrame);Encapsulate the divided sub-MSDUs into independent MAC protocol data units (MPDU, MAC ProtocolData Unit), and generate compensation frames (CF, CompensatoryFrame) for each MPDU according to the target brightness value of the light source;

聚合所述MPDU和所述CF为物理层协议数据单元(PPDU,Physical-layer ProtocolData Unit)中的物理层服务数据单元(PSDU,Physical-layer Service Data Unit),并传输所述PPDU。Aggregating the MPDU and the CF into a physical-layer service data unit (PSDU, Physical-layer Service Data Unit) in a physical-layer protocol data unit (PPDU, Physical-layer Protocol Data Unit), and transmitting the PPDU.

本发明实施例还提供一种调光装置,所述调光装置包括:An embodiment of the present invention also provides a dimming device, the dimming device comprising:

分割单元,用于在MAC层,分割MSDU为多个长度相等的子MSDU;The segmentation unit is used to segment the MSDU into multiple sub-MSDUs of equal length at the MAC layer;

补偿单元,用于将分割后的子MSDU分别封装到各自独立的MPDU中,并根据光源的目标亮度值分别为各MPDU生成CF;a compensation unit, configured to encapsulate the divided sub-MSDUs into respective independent MPDUs, and generate CF for each MPDU according to the target brightness value of the light source;

聚合单元,用于聚合所述MPDU和所述CF为PPDU的PSDU;an aggregation unit, configured to aggregate the MPDU and the PSDU in which the CF is a PPDU;

光驱动单元,用于传输所述PPDU。An optical drive unit, configured to transmit the PPDU.

本发明实施例中,所采用的调光的技术方案,独立于数据传输时的所采用的调制方式和信道编码方案,能够根据用户需求针对光通信系统实现灵活的调光。In the embodiment of the present invention, the adopted dimming technical solution is independent of the modulation mode and channel coding scheme adopted during data transmission, and can realize flexible dimming for the optical communication system according to user requirements.

附图说明Description of drawings

图1为本发明实施例中调光方法的实现流程示意图一;Fig. 1 is a schematic diagram of the implementation flow of the dimming method in the embodiment of the present invention;

图2为本发明实施例中调光方法的实现流程示意图二;Fig. 2 is a schematic diagram of the second implementation flow of the dimming method in the embodiment of the present invention;

图3为IEEE802.15.7标准的MAC层和物理层的帧结构示意图;FIG. 3 is a schematic diagram of a frame structure of the MAC layer and the physical layer of the IEEE802.15.7 standard;

图4为本发明实施例中PPDU的结构示意图;FIG. 4 is a schematic structural diagram of a PPDU in an embodiment of the present invention;

图5为IEEE802.15.7标准中的颜色/可见/调光(CVD,Color Visible Dimming)帧结构示意图;Figure 5 is a schematic diagram of the color/visible/dimming (CVD, Color Visible Dimming) frame structure in the IEEE802.15.7 standard;

图6为本发明实施例中调光装置的组成结构示意图。Fig. 6 is a schematic diagram of the composition and structure of the dimming device in the embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图及具体实施例对本发明作进一步详细说明,需要说明的是,在不冲突的情况下,本发明实施例及实施例中的特征可以相互组合。The present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

如图1所示,本发明实施例记载的调光方法包括以下步骤:As shown in Figure 1, the dimming method recorded in the embodiment of the present invention includes the following steps:

步骤101,在介质访问控制(MAC,Media Access Control)层,分割MAC数据服务单元(MSDU,MAC Service Data Unit)为多个长度相等的子MSDU。Step 101 , at a media access control (MAC, Media Access Control) layer, divide a MAC data service unit (MSDU, MAC Service Data Unit) into multiple sub-MSDUs of equal length.

步骤102,将每个分割后的子MSDU分别对应封装到相互独立的MAC协议数据单元(MPDU,MAC Protocol Data Unit)中,并根据光源亮度的目标值分别为所述MPDU生成补偿帧(CF,Compensatory Frame)。Step 102: Encapsulate each divided sub-MSDU into a mutually independent MAC protocol data unit (MPDU, MAC Protocol Data Unit), and generate a compensation frame (CF, CF) for the MPDU according to the target value of the light source brightness. Compensatory Frame).

步骤103,根据所述MPDU和与所述MPDU对应的CF,聚合生成物理层协议数据单元(PPDU,Physical-layer Protocol Data Unit)中的物理层服务数据单元(PSDU,Physical-layer Service Data Unit)。Step 103, aggregate and generate a physical-layer service data unit (PSDU, Physical-layer Service Data Unit) in a physical-layer protocol data unit (PPDU, Physical-layer Protocol Data Unit) according to the MPDU and the CF corresponding to the MPDU .

步骤104,传输所生成的PPDU。Step 104, transmit the generated PPDU.

在一个实施方式中,在MAC层分割MSDU为多个长度相等的子MSDU之前,所述方法还包括:In one embodiment, before the MAC layer divides the MSDU into multiple sub-MSDUs of equal length, the method further includes:

确定所述MSDU的长度小于等于最大数据长度依次与物理层开销长度、以及MAC层开销长度的差值。Determine that the length of the MSDU is less than or equal to the difference between the maximum data length, the physical layer overhead length, and the MAC layer overhead length in turn.

在一个实施方式中,所述最大数据长度为周期T与链路的数据速率的乘积,所述周期T为闪烁临界融合频率(CFF,Critical Flicker Frequency)的倒数。In one embodiment, the maximum data length is a product of a period T and a data rate of the link, and the period T is an inverse of a critical flicker fusion frequency (CFF, Critical Flicker Frequency).

在一个实施方式中,确定所述MSDU的长度大于最大数据长度依次与物理层开销长度、以及MAC层开销长度的差值时,所述方法还包括:In one embodiment, when it is determined that the length of the MSDU is greater than the difference between the maximum data length, the physical layer overhead length, and the MAC layer overhead length, the method further includes:

重新分割所述MSDU为多个长度相等的子MSDU,直至确定所得到的子MSDU的长度小于等于所述最大数据长度依次与物理层开销长度、以及MAC层开销长度的差值。Re-dividing the MSDU into multiple sub-MSDUs of equal length until it is determined that the length of the obtained sub-MSDU is less than or equal to the difference between the maximum data length and the physical layer overhead length and the MAC layer overhead length.

在一个实施方式中,所述根据光源的目标亮度值分别为各MPDU生成CF,包括:In one embodiment, the generating CF for each MPDU according to the target brightness value of the light source includes:

确定光源实际亮度值与光源目标亮度值不同时,根据光源的目标亮度值分别为各MPDU生成CF。When it is determined that the actual luminance value of the light source is different from the target luminance value of the light source, CF is generated for each MPDU according to the target luminance value of the light source.

在一个实施方式中,所述确定光源实际亮度值与光源目标亮度值不同时,根据光源的目标亮度值分别为各MPDU生成CF,包括:In one embodiment, when determining that the actual luminance value of the light source is different from the target luminance value of the light source, generating a CF for each MPDU according to the target luminance value of the light source, including:

根据下式确定所述CF的数据部分(CFD,Compensatory Frame Data)的序列的长度nCFThe length n CF of the sequence of the data part (CFD, Compensatory Frame Data) of the CF is determined according to the following formula:

其中,α表示光源的目标亮度值,ncost表示开销cost部分中“1”的个数,nMSDU表示MSDU中“1”的个数,nCF表示CFD中“1”的个数;sizecost表示所述cost部分的长度,sizeMSDU表示所述MSDU的长度,sizeCF表示所述CF的长度;所述cost包括MAC层首部(MHR,MAC-layerHeadeR)字段、MAC层的尾部字段、物理层前导码字段、物理层首部字段、CF的首部字段和填充(Pad)字段。Among them, α represents the target brightness value of the light source, n cost represents the number of "1" in the overhead cost part, n MSDU represents the number of "1" in MSDU, n CF represents the number of "1" in CFD; size cost Indicates the length of the cost part, size MSDU indicates the length of the MSDU, and size CF indicates the length of the CF; the cost includes the MAC layer header (MHR, MAC-layerHeadeR) field, the MAC layer tail field, and the physical layer Preamble field, physical layer header field, CF header field and padding (Pad) field.

在一个实施方式中,确定光源实际亮度值与光源目标亮度值相同时,所述方法还包括:将所述分割后的子MSDU分别封装到各自独立的MPDU中;In one embodiment, when it is determined that the actual luminance value of the light source is the same as the target luminance value of the light source, the method further includes: encapsulating the divided sub-MSDUs into respective independent MPDUs;

将所述MPDU作为PPDU的PSDU部分,并传输所述PPDU。The MPDU is used as the PSDU part of the PPDU, and the PPDU is transmitted.

即,将所述MPDU作为PPDU的数据部分进行封装,并传输封装有所述MPDU的PPDU。That is, the MPDU is encapsulated as the data part of the PPDU, and the PPDU encapsulated with the MPDU is transmitted.

在一个实施方式中,所述聚合所述MPDU和所述CF为PPDU的PSDU之后,所述方法还包括:In one embodiment, after the aggregation of the MPDU and the PSDU in which the CF is a PPDU, the method further includes:

确定聚合得到的所述PSDU的长度小于等于所述最大数据长度与物理层开销长度的差值。It is determined that the aggregated length of the PSDU is less than or equal to the difference between the maximum data length and the physical layer overhead length.

在一个实施方式中,所述确定聚合得到的所述PSDU的长度大于所述最大数据长度与物理层开销长度的差值时,所述方法还包括:In one embodiment, when the length of the PSDU obtained by determining the aggregation is greater than the difference between the maximum data length and the physical layer overhead length, the method further includes:

重新分割所述MSDU为多个长度相等的子MSDU,直至根据所述得到的子MSDU、以及根据与所述MSDU对应生成的CF,聚合得到的PSDU小于等于所述最大数据长度与物理层开销长度的差值。Re-dividing the MSDU into multiple sub-MSDUs of equal length until the aggregated PSDU is less than or equal to the maximum data length and physical layer overhead length based on the obtained sub-MSDUs and the CF generated corresponding to the MSDUs difference.

由于聚合得到的所述PSDU的长度小于等于最大数据长度与物理层开销长度的差值时,表示在数据传输时,不会出现用户可以感觉到的光源闪烁问题。When the aggregated length of the PSDU is less than or equal to the difference between the maximum data length and the physical layer overhead length, it means that during data transmission, there will be no light source flickering problem that users can feel.

下面对本发明实施例提供的调光方法作进一步详细说明,图2为本发明实施例中调光方法的实现流程示意图二,如图2所示,包括以下步骤:The dimming method provided by the embodiment of the present invention will be further described in detail below. FIG. 2 is a schematic diagram of the second implementation flow of the dimming method in the embodiment of the present invention. As shown in FIG. 2 , it includes the following steps:

步骤201,确定逻辑链路控制(LLC,Logical Link Control)子层的数据单元进入MAC层,成为MPDU的数据部分MSDU。Step 201, determine that the data unit of the Logical Link Control (LLC, Logical Link Control) sublayer enters the MAC layer and becomes the data part MSDU of the MPDU.

即,在LLC子层的数据单元进入MAC层,成为MPDU的数据部分MSDU时,执行步骤202。That is, when the data unit of the LLC sublayer enters the MAC layer and becomes the data part MSDU of the MPDU, step 202 is executed.

如图3所示,在MAC层传输的MPDU包括作为数据部分的MSDU、以及MAC首部和帧校验序列(FCS,Frame Check Sequence)。As shown in FIG. 3 , the MPDU transmitted at the MAC layer includes an MSDU as a data part, a MAC header and a Frame Check Sequence (FCS, Frame Check Sequence).

步骤202,判断MSDU的长度是否小于最大数据长度与物理层开销长度、以及MAC层开销长度的差值,如果是,则执行步骤203,否则,执行步骤210。Step 202, judging whether the length of the MSDU is smaller than the difference between the maximum data length, the physical layer overhead length, and the MAC layer overhead length, if yes, execute step 203, otherwise, execute step 210.

最大数据长度与物理层开销长度、以及MAC层开销长度的差值是指,将最大数据长度依次减去物理层开销长度、以及MAC层开销长度,所得到的差值。The difference between the maximum data length and the physical layer overhead length and the MAC layer overhead length refers to the difference obtained by sequentially subtracting the physical layer overhead length and the MAC layer overhead length from the maximum data length.

所述最大数据长度是指,在周期T内可见光通信的发送端可以传输的最大数据长度,设为sizemax,则sizemax的数值如公式(1)所示:The maximum data length refers to the maximum data length that can be transmitted by the sending end of the visible light communication within the period T, which is set to size max , and the value of size max is as shown in formula (1):

sizemax=T×data_rate (1)size max = T × data_rate (1)

公式(1)中,T是CFF的倒数,data_rate是链路的数据速率;闪烁临界融合频率是不引起闪烁感觉的最低重复频率;In formula (1), T is the reciprocal of CFF, data_rate is the data rate of the link; flicker critical fusion frequency is the lowest repetition frequency that does not cause flicker sensation;

所述物理层开销长度是指同步头(SHR,Synchronization HeadeR)字段长度、PHR字段长度的加和,MAC层开销长度是指MHR字段长度、MAC层尾部字段即FCS字段的加和。The physical layer overhead length refers to the sum of the synchronization header (SHR, Synchronization Header) field length and the PHR field length, and the MAC layer overhead length refers to the sum of the MHR field length and the MAC layer tail field, that is, the FCS field.

步骤203,判断光源的实际亮度值是否与光源目标亮度值相等,如果相等,则执行步骤204;否则,执行步骤205。Step 203, judging whether the actual luminance value of the light source is equal to the target luminance value of the light source, if they are equal, perform step 204; otherwise, perform step 205.

步骤204,传输PPDU。Step 204, transmit the PPDU.

将步骤201中的MPDU作为PPDU的数据部分,即PSDU封装到在物理层传输的PPDU中,并传输PPDU。The MPDU in step 201 is used as the data part of the PPDU, that is, the PSDU is encapsulated into the PPDU transmitted at the physical layer, and the PPDU is transmitted.

步骤203中,当光源的实际亮度值与光源目标亮度值相等时,不需要对光源的亮度值进行调节,从而,执行步骤204时,如图3所示,将步骤201中的MPDU作为PPDU的数据部分(即PSDU)封装到在物理层传输的PPDU中,PPDU还包括前导码和物理层首部。In step 203, when the actual luminance value of the light source is equal to the target luminance value of the light source, there is no need to adjust the luminance value of the light source. Therefore, when step 204 is executed, as shown in FIG. 3 , the MPDU in step 201 is used as the PPDU The data part (that is, PSDU) is encapsulated into the PPDU transmitted at the physical layer, and the PPDU also includes a preamble and a physical layer header.

步骤205,确定根据MSDU与CF聚合生成的聚合MPDU(A-MPDU,Aggregated-MPDU)的长度。Step 205, determine the length of the aggregated MPDU (A-MPDU, Aggregated-MPDU) generated according to the aggregation of the MSDU and the CF.

将补偿帧与数据帧MSDU聚合,生成A-MPDU的结构示意图如图4所示,所述A-MPDU封装入PPDU的数据部分(即PSDU)来进行传输,MPDU(1)和对应的CF(1)聚合为PPDU(1)的数据部分,即PSDU(1),MPDU(2)和对应的CF(2)聚合为PPDU(1)的数据部分,即PSDU(2),PPDU(1)、PPDU(2)均包括对应的同步头(SHR,Synchronization HeadeR)字段、物理层首部(PHR,Physical-layer HeadR)字段;MPDU(1)和MPDU(2)均包括对应的MHR字段、FCS字段和填充(Pad)字段。The compensation frame is aggregated with the data frame MSDU to generate a schematic diagram of the structure of the A-MPDU as shown in Figure 4. The A-MPDU is encapsulated into the data part of the PPDU (ie PSDU) for transmission, and the MPDU (1) and the corresponding CF ( 1) The data part aggregated into PPDU (1), namely PSDU (1), MPDU (2) and the corresponding CF (2) are aggregated into the data part of PPDU (1), namely PSDU (2), PPDU (1), PPDU (2) includes the corresponding synchronization header (SHR, Synchronization Header) field, physical layer header (PHR, Physical-layer HeadR) field; MPDU (1) and MPDU (2) include the corresponding MHR field, FCS field and Fill (Pad) field.

CF中的CFD用于对光源的亮度进行调节,当光源实际亮度值小于光源目标亮度值时,补偿帧CF用于调高光源亮度,此时CFD为全“1”序列,“1”的数量用nCF表示;当光源实际亮度值大于光源目标亮度值时,补偿帧CF用于调低光源亮度,此时的补偿帧数据部分CFD为全“0”序列,“0”的数量用nCF表示;nCF与光源的目标亮度值的关系如公式(2)所示:CFD in CF is used to adjust the brightness of the light source. When the actual brightness value of the light source is less than the target brightness value of the light source, the compensation frame CF is used to increase the brightness of the light source. At this time, CFD is a sequence of all "1", and the number of "1" It is represented by n CF ; when the actual brightness value of the light source is greater than the target brightness value of the light source, the compensation frame CF is used to lower the brightness of the light source. At this time, the compensation frame data part CFD is a sequence of all "0", and the number of "0" is represented by n CF Represents; the relationship between n CF and the target brightness value of the light source is shown in formula (2):

公式(2)中,参数α表示光源的目标亮度目标值,参数ncost表示开销(cost)部分中“1”的个数,nMSDU表示MSDU中“1”的个数,nCF表示补偿帧数据部分CFD中“1”的个数;所述cost表示有效数据之外的开销,包括MHR字段、MAC层的尾部字段SHR字段、物理层首部字段、CF的首部字段和Pad字段;sizecost表示所述cost部分的长度,sizeMSDU表示MSDU的长度,sizeCF表示CF的长度;所述Pad用于对齐32位字边界,由“0”、“1”序列组成;由于本实施例中对光源亮度的调节是通过不同长度的“1”或“0”序列来实现的,因此,支持对应光源的亮度进行平滑调节,即每次调节的幅度可以根据实际需要设置。In the formula (2), the parameter α represents the target brightness target value of the light source, the parameter n cost represents the number of "1" in the overhead (cost) part, n MSDU represents the number of "1" in the MSDU, and n CF represents the compensation frame The number of "1" in the CFD of the data part; the cost indicates the overhead other than valid data, including the MHR field, the MAC layer tail field SHR field, the physical layer header field, the CF header field and the Pad field; the size cost indicates The length of the cost part, size MSDU represents the length of MSDU, and size CF represents the length of CF; the Pad is used to align 32-bit word boundaries, and is composed of "0" and "1"sequences; since the light source in this embodiment The adjustment of brightness is realized through "1" or "0" sequences of different lengths. Therefore, it supports smooth adjustment of the brightness of the corresponding light source, that is, the range of each adjustment can be set according to actual needs.

本发明实施例中用于调光的CF,可以采用IEEE802.15.7标准中的颜色/可见/调光(CVD,Color Visible Dimming)帧格式,如图5所示,MHR字段包含CVD帧的控制信息,FCS字段包含MACMHR的校检信息,数据部分字段包含CVD帧的数据内容。对照图4,CVD帧的MHR字段和FCS字段,构成了CF的首部(CFH,CF,Compensatory Frame Header),CVD帧的数据部分字段对应CF的数据部分即CFD。The CF used for dimming in the embodiment of the present invention can adopt the color/visible/dimming (CVD, Color Visible Dimming) frame format in the IEEE802.15.7 standard, as shown in Figure 5, the MHR field contains the control information of the CVD frame , the FCS field contains the checking information of the MACMHR, and the data part field contains the data content of the CVD frame. Compared with Figure 4, the MHR field and the FCS field of the CVD frame constitute the header of the CF (CFH, CF, Compensatory Frame Header), and the data part field of the CVD frame corresponds to the data part of the CF, that is, CFD.

CF中CFD的确定,可以通过预先设置不同长度的全“1”和全“0”序列的实现。在生成CF时,直接将预设的相应长度的序列赋予补偿帧即可。如果序列的长度与所确定的补偿帧的长度不匹配,可以通过对预设序列进行组合,以得到所确定的补偿帧的数据部分。比如:预先设置有长度为100位、200位和400位的全“1”序列,在生成补偿帧时,除了可以生成CFD长度为100位、200位和400位的CF外,还可以生成CFD长度为300位(即100位加200位)、500位(即100位加400位)、600位(即200位加400位)和700位(即100位加200位加400位)的CF全“1”序列。The determination of CFD in CF can be realized by presetting all "1" and all "0" sequences of different lengths. When generating CF, it is sufficient to directly assign a preset sequence of corresponding length to the compensation frame. If the length of the sequence does not match the length of the determined compensation frame, the preset sequence can be combined to obtain the determined data part of the compensation frame. For example: all "1" sequences with a length of 100 bits, 200 bits and 400 bits are pre-set. When generating compensation frames, in addition to generating CFs with CFD lengths of 100 bits, 200 bits and 400 bits, you can also generate CFD CF with a length of 300 bits (ie 100 bits plus 200 bits), 500 bits (ie 100 bits plus 400 bits), 600 bits (ie 200 bits plus 400 bits) and 700 bits (ie 100 bits plus 200 bits plus 400 bits) All "1" sequences.

步骤206,判断A-MPDU的长度是否小于最大数据长度与物理层开销长度的差值,如果是,则执行步骤209;否则,执行步骤207。Step 206, judging whether the length of the A-MPDU is smaller than the difference between the maximum data length and the physical layer overhead length, if yes, execute step 209; otherwise, execute step 207.

实际应用中,由公式(2)计算得到的补偿帧长度sizeCF还需要满足如下公式:In practical applications, the compensation frame length size CF calculated by formula (2) also needs to satisfy the following formula:

sizecost+sizeMSDU+sizeCF≤sizemax (3)size cost + size MSDU + size CF ≤ size max (3)

公式(3)限定了在采用补偿帧CF调光时,每次可传输的最大数据长度。如果不满足公式(3),在传输PPDU时,会出现用户可以感觉到的光源闪烁问题。这说明,当A-MPDU的长度大于最大数据长度sizeMSDU与物理层开销长度ncost的差值时,MSDU或者子MSDU的长度过大,需要分割MSDU,或重新分割MSDU为长度更短的子MSDU。Formula (3) defines the maximum data length that can be transmitted each time when the compensation frame CF dimming is used. If the formula (3) is not satisfied, there will be a flickering problem of the light source that the user can feel when transmitting the PPDU. This shows that when the length of the A-MPDU is greater than the difference between the maximum data length size MSDU and the physical layer overhead length n cost , the length of the MSDU or sub-MSDU is too large, and it is necessary to split the MSDU or re-segment the MSDU into sub-MSDUs with shorter lengths. MSDU.

步骤207,分割MSDU为多个长度相等的子MSDU。Step 207, dividing the MSDU into multiple sub-MSDUs of equal length.

步骤208,判断子MSDU的长度是否小于最大数据长度与物理层开销长度、以及MAC层开销长度的差值,如果是,则执行步骤205;否则,执行步骤207。Step 208, judging whether the length of the sub-MSDU is smaller than the difference between the maximum data length, the physical layer overhead length, and the MAC layer overhead length, if yes, execute step 205; otherwise, execute step 207.

当步骤208的判断结果为否,重新执行步骤207时,分割MSDU得到的子MSDU的长度前次分割MSDU得到的子MSDU长度更短,即,当步骤207第m次执行时MSDU的分割为tm个长度相等的子MSDU,步骤207第n次执行时MSDU的分割为tn个长度相等的子MSDU,则当m小于n时,tn大于tmWhen the judgment result of step 208 is No, when step 207 is re-executed, the length of the sub-MSDU obtained by dividing the MSDU is shorter than the length of the sub-MSDU obtained by dividing the MSDU in the previous time, that is, when step 207 is executed for the m time, the division of the MSDU is t m sub-MSDUs of equal length, when step 207 is executed for the nth time, the MSDU is divided into t n sub-MSDUs of equal length, and when m is smaller than n, t n is greater than t m .

步骤209,传输PPDU。Step 209, transmit the PPDU.

将最后一次执行步骤207之后,得到的子MSDU分别封装到各自独立的MPDU中,并分别为各MPDU生成补偿帧;聚合MPDU和补偿帧为A-MPDU,将A-MPDU作为PPDU的数据部分(即PSDU),并传输PPDU。After the last execution of step 207, the sub-MSDUs obtained are encapsulated into separate MPDUs respectively, and compensation frames are generated for each MPDU respectively; the aggregation MPDU and the compensation frame are A-MPDU, and the A-MPDU is used as the data part of the PPDU ( ie PSDU), and transmit PPDU.

例如,当将步骤201的MSDU分割为图4所示的MSDU(1)和MSDU(2)后,且在步骤20聚合生成的A-MPDU的长度小于最大数据长度与物理层开销长度的差值时,则在本步骤中,传输图4所示的PPDU(1)和PPDU(2)。For example, after the MSDU in step 201 is divided into MSDU (1) and MSDU (2) shown in Figure 4, and the length of the A-MPDU aggregated and generated in step 20 is smaller than the difference between the maximum data length and the physical layer overhead length , then in this step, the PPDU (1) and PPDU (2) shown in Figure 4 are transmitted.

当步骤206中,A-MPDU的长度大于最大数据长度sizeMSDU与物理层开销长度ncost的差值时,表示在数据传输时,不会出现用户可以感觉到的光源闪烁问题,从而,步骤209中,将A-MPDU封装入PPDU的数据部分(即PSDU),并传输PPDU。When in step 206, the length of the A-MPDU is greater than the difference between the maximum data length size MSDU and the physical layer overhead length n cost , it means that during data transmission, there will be no light source flickering problem that the user can feel, thus, step 209 , encapsulate the A-MPDU into the data part of the PPDU (that is, the PSDU), and transmit the PPDU.

步骤210,分割MSDU为多个长度相等的子MSDU。Step 210, dividing the MSDU into multiple sub-MSDUs of equal length.

步骤211,确定子MSDU的长度是否小于最大数据长度与物理层开销长度、以及MAC层开销长度的差值,如果是,则执行步骤212;否则,执行步骤210。Step 211, determine whether the length of the sub-MSDU is smaller than the difference between the maximum data length, the physical layer overhead length, and the MAC layer overhead length, if yes, execute step 212; otherwise, execute step 210.

当步骤211的判断结果为否,重新执行步骤210时,分割MSDU得到的子MSDU的长度前次分割MSDU得到的子MSDU长度更短,即,当步骤210第m次执行时MSDU的分割为tm个长度相等的子MSDU,步骤210第n次执行时MSDU的分割为tn个长度相等的子MSDU,则当m小于n时,tn大于tmWhen the judgment result of step 211 is no, when step 210 is re-executed, the length of the sub-MSDU obtained by dividing the MSDU is shorter than the length of the sub-MSDU obtained by the previous division of the MSDU, that is, when step 210 is executed for the m time, the division of the MSDU is t m sub-MSDUs of equal length, when step 210 is executed for the nth time, the MSDU is divided into t n sub-MSDUs of equal length, and when m is smaller than n, t n is greater than t m .

步骤212,判断光源的实际亮度值是否与光源目标亮度值相等,如果相等,则执行步骤213;否则,执行步骤214。Step 212, judging whether the actual luminance value of the light source is equal to the target luminance value of the light source, if they are equal, perform step 213; otherwise, perform step 214.

步骤213,传输PPDU。Step 213, transmit the PPDU.

当光源的实际亮度值与光源目标亮度值相等时,不需要对光源的亮度值进行调节,从而,将最后一次执行步骤210得到的子MSDU分别封装到各自独立的MPDU中,无需为各MPDU生成补偿帧;将封装后的MPDU作为PPDU的PSDU部分,并传输PPDU。When the actual luminance value of the light source is equal to the target luminance value of the light source, there is no need to adjust the luminance value of the light source. Therefore, the sub-MSDUs obtained in the last execution of step 210 are respectively encapsulated into independent MPDUs, and there is no need to generate Compensation frame; use the encapsulated MPDU as the PSDU part of the PPDU, and transmit the PPDU.

步骤214,确定根据MSDU与CF聚合生成的A-MPDU的长度。Step 214, determine the length of the A-MPDU generated according to the aggregation of the MSDU and the CF.

步骤215,判断A-MPDU的长度是否小于最大数据长度与物理层开销长度的差值,如果是,则执行步骤216;否则,执行步骤217。Step 215, judge whether the length of the A-MPDU is smaller than the difference between the maximum data length and the physical layer overhead length, if yes, execute step 216; otherwise, execute step 217.

当A-MPDU的长度小于最大数据长度与物理层开销长度的差值时,表示将A-MPDU作为PPDU的数据部分及PSDU传输时,不会出现人眼能够觉察的光源闪烁问题。When the length of the A-MPDU is less than the difference between the maximum data length and the physical layer overhead length, it means that when the A-MPDU is used as the data part of the PPDU and the PSDU is transmitted, there will be no light source flickering problem that can be detected by human eyes.

步骤216,传输PPDU。Step 216, transmit the PPDU.

将A-MPDU作为PPDU的数据部分(即PSDU),传输所述PPDU。The A-MPDU is used as the data part of the PPDU (that is, the PSDU), and the PPDU is transmitted.

步骤217,分割MSDU为多个长度相等的子MSDU,并执行步骤215。Step 217, divide the MSDU into multiple sub-MSDUs of equal length, and execute step 215.

步骤217中分割MSDU所得到的MSDU的长度,小于步骤217之前分割MSDU所得到的MSDU的长度,并且,当步骤217重复执行时,每次执行步骤217所得到的子MSDU的长度,均小于之前步骤217执行时,所得到的子MSDU的长度,直至所得到的子MSDU与对应的CF聚合得到A-MPDU时,A-MPDU的长度小于最大数据长度与物理层开销长度的差值,以确保将所述A-MPDU作为PPDU的数据部分(即PSDU)进行传输时,不会发生光源闪烁的现象。The length of the MSDU obtained by splitting the MSDU in step 217 is less than the length of the MSDU obtained by splitting the MSDU before step 217, and when step 217 is repeatedly executed, the length of the sub-MSDU obtained by executing step 217 each time is smaller than the previous When step 217 is executed, the length of the obtained sub-MSDU until the obtained sub-MSDU is aggregated with the corresponding CF to obtain an A-MPDU, the length of the A-MPDU is less than the difference between the maximum data length and the physical layer overhead length, to ensure When the A-MPDU is transmitted as the data part of the PPDU (that is, the PSDU), the light source does not flicker.

本发明实施例还记载一种计算机可读介质,所述计算机可读介质中存储有计算机可执行指令,所述计算机可执行指令用于执行图1所示的调光方法,或执行图2所示的调光方法。The embodiment of the present invention also records a computer-readable medium, where computer-executable instructions are stored in the computer-readable medium, and the computer-executable instructions are used to execute the dimming method shown in FIG. 1 , or execute the dimming method shown in FIG. 2 dimming method shown.

图6为本发明实施例中调光装置的结构示意图,所述调光装置可以设置在可见光通信系统的发送端中,也可以设置于独立于所述发送端的设备中,如图6所示,所述调光装置包括:FIG. 6 is a schematic structural diagram of a dimming device in an embodiment of the present invention. The dimming device can be set in the transmitting end of the visible light communication system, or can be set in a device independent of the transmitting end, as shown in FIG. 6 , The dimming device includes:

分割单元10,用于在MAC层,分割MSDU为多个长度相等的子MSDU;The segmentation unit 10 is used to segment the MSDU into multiple sub-MSDUs of equal length at the MAC layer;

补偿单元20,用于将分割后的子MSDU分别封装到各自独立的MPDU中,并根据光源的目标亮度值分别为各MPDU生成CF;The compensation unit 20 is configured to encapsulate the divided sub-MSDUs into respective independent MPDUs, and generate CF for each MPDU according to the target brightness value of the light source;

聚合单元30,用于聚合所述MPDU和所述CF为PPDU的PSDU;An aggregation unit 30, configured to aggregate the MPDU and the PSDU in which the CF is a PPDU;

光驱动单元40,用于传输所述PPDU。The optical drive unit 40 is configured to transmit the PPDU.

其中,所述调光装置还包括:Wherein, the dimming device also includes:

确定单元50,用于在确定所述MSDU的长度小于等于最大数据长度依次与物理层开销长度、以及MAC层开销长度的差值时,触发所述分割单元10。The determination unit 50 is configured to trigger the segmentation unit 10 when it is determined that the length of the MSDU is less than or equal to the difference between the maximum data length and the physical layer overhead length and the MAC layer overhead length.

其中,所述最大数据长度为周期T与链路的数据速率的乘积,所述周期T为CFF的倒数。Wherein, the maximum data length is the product of the period T and the data rate of the link, and the period T is the reciprocal of CFF.

其中,所述确定单元50,还用于在确定所述MSDU的长度大于最大数据长度依次与物理层开销长度、以及MAC层开销长度的差值时,触发所述分割单元10重新分割所述MSDU为多个长度相等的子MSDU,直至确定所得到的子MSDU的长度小于等于所述最大数据长度依次与物理层开销长度、以及MAC层开销长度的差值;Wherein, the determining unit 50 is further configured to trigger the segmentation unit 10 to re-segment the MSDU when it is determined that the length of the MSDU is greater than the difference between the maximum data length, the physical layer overhead length, and the MAC layer overhead length in turn Be a plurality of sub-MSDUs of equal length until it is determined that the length of the obtained sub-MSDU is less than or equal to the difference between the maximum data length and the physical layer overhead length and the MAC layer overhead length in turn;

所述分割单元10,还用于重新分割所述MSDU为多个长度相等的子MSDU。The segmentation unit 10 is further configured to re-segment the MSDU into multiple sub-MSDUs of equal length.

其中,所述补偿单元20,还用于确定光源实际亮度值与光源目标亮度值不同时,根据光源的目标亮度值分别为各MPDU生成CF。Wherein, the compensation unit 20 is further configured to generate CF for each MPDU according to the target brightness value of the light source when determining that the actual brightness value of the light source is different from the target brightness value of the light source.

其中,所述补偿单元20,还用于根据下式确定所述CF的数据部分CFD的序列的长度nCFWherein, the compensation unit 20 is further configured to determine the length n CF of the sequence of the data part CFD of the CF according to the following formula:

其中,α表示光源的目标亮度值,ncost表示cost部分中“1”的个数,nMSDU表示MSDU中“1”的个数,nCF表示CFD中“1”的个数;sizecost表示所述cost部分的长度,sizeMSDU表示所述MSDU的长度,sizeCF表示所述CF的长度;所述cost包括MHR字段、MAC层的尾部字段、物理层前导码字段、物理层首部字段、CF的首部字段和Pad字段。Among them, α represents the target brightness value of the light source, n cost represents the number of "1" in the cost part, n MSDU represents the number of "1" in the MSDU, n CF represents the number of "1" in the CFD; size cost represents The length of the cost part, size MSDU indicates the length of the MSDU, size CF indicates the length of the CF; the cost includes the MHR field, the tail field of the MAC layer, the physical layer preamble field, the physical layer header field, the CF The header field and Pad field.

其中,所述调光装置还包括:Wherein, the dimming device also includes:

封装单元60,用于在所述补偿单元20确定光源实际亮度值与光源目标亮度值相同时,将所述分割后的子MSDU分别封装到各自独立的MPDU中;Encapsulation unit 60, configured to encapsulate the divided sub-MSDUs into respective independent MPDUs when the compensation unit 20 determines that the actual luminance value of the light source is the same as the target luminance value of the light source;

所述光驱动单元40,还用于将所述MPDU作为PPDU的PSDU部分,并传输所述PPDU。The optical drive unit 40 is further configured to use the MPDU as a PSDU part of a PPDU and transmit the PPDU.

其中,所述确定单元50,还用于在所述聚合单元30聚合所述MPDU和所述CF为PPDU的PSDU之后,确定聚合得到的所述PSDU的长度小于等于所述最大数据长度与物理层开销长度的差值。Wherein, the determining unit 50 is further configured to determine that the length of the aggregated PSDU is less than or equal to the maximum data length and the physical layer The difference in overhead length.

其中,所述确定单元50,还用于在确定所述聚合单元30聚合得到的所述PSDU的长度大于所述最大数据长度与物理层开销长度的差值时,触发所述分割单元10,重新分割所述MSDU为多个长度相等的子MSDU,直至所述聚合单元30根据所述分割单元10分割得到的子MSDU、以及根据与所述MSDU对应生成的CF,聚合得到的PSDU小于等于所述最大数据长度与物理层开销长度的差值。Wherein, the determining unit 50 is further configured to trigger the segmentation unit 10 to re-start when the length of the PSDU aggregated by the aggregation unit 30 is determined to be greater than the difference between the maximum data length and the physical layer overhead length. Segmenting the MSDU into a plurality of sub-MSDUs of equal length until the aggregated unit 30 obtains the sub-MSDUs obtained by segmenting the segmented unit 10 and the CF generated corresponding to the MSDUs, and the aggregated PSDU is less than or equal to the The difference between the maximum data length and the physical layer overhead length.

实际应用中,所述调光装置中的模块,均可由所述调光装置中的CPU、微处理器、或现场可编程逻辑阵列(FPGA)实现。In practical applications, the modules in the dimming device can be implemented by the CPU, microprocessor, or field programmable logic array (FPGA) in the dimming device.

本发明实施例还记载一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行图1或图2所示的调光方法。The embodiment of the present invention also records a computer storage medium, wherein computer executable instructions are stored in the computer storage medium, and the computer executable instructions are used to execute the dimming method shown in FIG. 1 or FIG. 2 .

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (14)

1. a kind of light-dimming method, which is characterized in that the described method includes:
Determine that the length of data service unit MSDU is greater than maximum data length and successively visits with physical layer overhead length and medium Ask the difference of control MAC layer overhead length;
In medium access control MAC layer, divide the sub- MSDU that MAC data service unit MSDU is multiple equal lengths;
Sub- MSDU after segmentation is encapsulated into respectively in Medium Access Control (MAC) Protocol Data Unit MPDU independent, and according to the mesh of light source Mark brightness value is respectively that each MPDU generates compensation frame CF;
It polymerize the MPDU and CF and is the physical layer service data PSDU of physical layer protocol data unit PPDU, and passes The defeated PPDU;
Wherein, the maximum data length is the product of the data rate of cycle T and link, and the cycle T is to flash critical melt The inverse of sum of fundamental frequencies rate CFF.
2. the method according to claim 1, wherein being multiple in the segmentation MAC data service unit MSDU After the sub- MSDU of equal length, the method also includes:
It is successively long with physical layer overhead length and MAC layer expense to determine that the length of the sub- MSDU is greater than maximum data length When the difference of degree, divide the sub- MSDU that the MSDU is multiple equal lengths again, until determining the length of obtained sub- MSDU Degree is less than or equal to the maximum data length successively difference with physical layer overhead length and MAC layer overhead length.
3. according to the method described in claim 2, it is characterized in that, the target brightness value according to light source is respectively each MPDU Generate compensation frame CF, comprising:
When determining light source intrinsic brilliance value and light source target brightness value difference, the target brightness value according to light source is respectively each MPDU Generate CF.
4. according to the method described in claim 3, it is characterized in that, the determining light source intrinsic brilliance value and light source target brightness When being worth different, the target brightness value according to light source is respectively that each MPDU generates CF, comprising:
The length n of the sequence of the data portion CFD of the CF is determined according to the following formulaCF:
Wherein, α indicates the target brightness value of light source, ncostIndicate the number of " 1 " in the part expense cost, nMSDUIt indicates in MSDU The number of " 1 ", nCFIndicate the number of " 1 " in CFD;sizecostIndicate the length of the part cost, sizeMSDUDescribed in expression The length of MSDU, sizeCFIndicate the length of the CF;The cost includes the tail portion word of the stem MHR field of MAC layer, MAC layer Section, physical layer preamble code field, physical layer header field, the header field of CF and filling Pad field.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
When determining that light source intrinsic brilliance value is identical as light source target brightness value, the sub- MSDU after the segmentation is encapsulated into respectively respectively From in independent Medium Access Control (MAC) Protocol Data Unit MPDU;
Using the MPDU as the part PSDU of PPDU, and transmit the PPDU.
6. according to the method described in claim 3, it is characterized in that, the polymerization MPDU and CF is physical layer protocol After the physical layer service data PSDU of data cell PPDU, the method also includes:
Determine that the length for the PSDU that polymerization obtains is less than or equal to the difference of the maximum data length and physical layer overhead length Value.
7. according to the method described in claim 6, it is characterized in that, determining the length for the PSDU that polymerization obtains greater than described When the difference of maximum data length and physical layer overhead length, the method also includes:
Again divide the sub- MSDU that the MSDU is multiple equal lengths, until according to obtained sub- MSDU and according to institute The corresponding CF generated of MSDU is stated, the PSDU polymerizeing is less than or equal to the difference of the maximum data length and physical layer overhead length Value.
8. a kind of dimming device, which is characterized in that the dimming device includes:
Determination unit, for the length for determining data service unit MSDU be greater than maximum data length successively with physical layer overhead When the difference of length and MAC layer overhead length, cutting unit is triggered;
Cutting unit, in medium access control MAC layer, dividing MAC data service unit MSDU to be multiple equal lengths Sub- MSDU;
Compensating unit, for the sub- MSDU after segmentation to be encapsulated into respectively in Medium Access Control (MAC) Protocol Data Unit MPDU independent, and Target brightness value according to light source is respectively that each MPDU generates compensation frame CF;
Polymerized unit, for polymerizeing the Physical Layer Service Data that the MPDU and CF is physical layer protocol data unit PPDU Unit PSDU;
Optical drive unit is used for transmission the PPDU;
Wherein, the maximum data length is the product of the data rate of cycle T and link, and the cycle T is to flash critical melt The inverse of sum of fundamental frequencies rate CFF.
9. dimming device according to claim 8, which is characterized in that
The determination unit, be also used to the length for determining the sub- MSDU be greater than maximum data length successively with physical layer overhead When the difference of length and MAC layer overhead length, triggers the cutting unit and divide the MSDU again for multiple equal lengths Sub- MSDU, until determine the length of obtained sub- MSDU be less than or equal to the maximum data length successively with physical layer overhead The difference of length and MAC layer overhead length;
The cutting unit is also used to divide again the sub- MSDU that the MSDU is multiple equal lengths.
10. dimming device according to claim 9, which is characterized in that
The compensating unit, when being also used to determine light source intrinsic brilliance value and light source target brightness value difference, according to the mesh of light source Mark brightness value is respectively that each MPDU generates CF.
11. dimming device according to claim 10, which is characterized in that
The compensating unit is also used to determine the length n of the sequence of the data portion CFD of the CF according to the following formulaCF:
Wherein, α indicates the target brightness value of light source, ncostIndicate the number of " 1 " in the part expense cost, nMSDUIt indicates in MSDU The number of " 1 ", nCFIndicate the number of " 1 " in CFD;sizecostIndicate the length of the part cost, sizeMSDUDescribed in expression The length of MSDU, sizeCFIndicate the length of the CF;The cost includes the tail portion word of the stem MHR field of MAC layer, MAC layer Section, physical layer preamble code field, physical layer header field, the header field of CF and filling Pad field.
12. dimming device according to claim 10, which is characterized in that the dimming device further include:
Encapsulation unit, for when the compensating unit determines that light source intrinsic brilliance value is identical as light source target brightness value, by institute Sub- MSDU after stating segmentation is encapsulated into respectively in Medium Access Control (MAC) Protocol Data Unit MPDU independent;
The optical drive unit is also used to transmit the PPDU using the MPDU as the part PSDU of PPDU.
13. dimming device according to claim 12, which is characterized in that
The determination unit is also used to after the PSDU that the polymerized unit polymerize that the MPDU and CF is PPDU, really The length for polymerizeing the obtained PSDU calmly is less than or equal to the difference of the maximum data length and physical layer overhead length.
14. dimming device according to claim 13, which is characterized in that
The determination unit is also used to be greater than the maximum in the length for determining the PSDU that the polymerized unit polymerize When the difference of data length and physical layer overhead length, triggers the cutting unit and divide the MSDU again for multiple length phases Deng sub- MSDU, until sub- MSDU that the polymerized unit is divided according to the cutting unit and according to it is described The MSDU corresponding CF generated, the PSDU polymerizeing are less than or equal to the difference of the maximum data length and physical layer overhead length Value.
CN201310746971.6A 2013-12-30 2013-12-30 Dimming method and dimming device Expired - Fee Related CN104753829B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201310746971.6A CN104753829B (en) 2013-12-30 2013-12-30 Dimming method and dimming device
EP14876388.1A EP3091701B1 (en) 2013-12-30 2014-06-18 Dimming method, dimming device and computer storage medium
US15/108,630 US9716550B2 (en) 2013-12-30 2014-06-18 Dimming method, dimming device and computer storage medium
PCT/CN2014/080227 WO2015100961A1 (en) 2013-12-30 2014-06-18 Dimming method, dimming device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310746971.6A CN104753829B (en) 2013-12-30 2013-12-30 Dimming method and dimming device

Publications (2)

Publication Number Publication Date
CN104753829A CN104753829A (en) 2015-07-01
CN104753829B true CN104753829B (en) 2019-08-30

Family

ID=53493105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310746971.6A Expired - Fee Related CN104753829B (en) 2013-12-30 2013-12-30 Dimming method and dimming device

Country Status (4)

Country Link
US (1) US9716550B2 (en)
EP (1) EP3091701B1 (en)
CN (1) CN104753829B (en)
WO (1) WO2015100961A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160262052A1 (en) * 2015-03-06 2016-09-08 Apple Inc. Aggregated data frame structures
WO2018076263A1 (en) * 2016-10-28 2018-05-03 华为技术有限公司 Transmission method based on light modulation control and related device
US20240146492A1 (en) * 2022-10-31 2024-05-02 Comcast Cable Communications, Llc Communications Using Millimeter Waves

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011034360A2 (en) * 2009-09-16 2011-03-24 Samsung Electronics Co., Ltd. Flexible and integrated frame structure design for supporting multiple topologies with visible light communication
CN102461017A (en) * 2009-05-08 2012-05-16 三星电子株式会社 Apparatus and method for supporting dimming in visible light communication
CN102577180A (en) * 2009-09-18 2012-07-11 交互数字技术公司 Method and apparatus for rate-controlled dimming of visible light communication (VLC)
CN102612810A (en) * 2009-09-16 2012-07-25 三星电子株式会社 Apparatus and method for generating high resolution frames for dimming and visibility support in visible light communication
WO2012123572A1 (en) * 2011-03-16 2012-09-20 Siemens Aktiengesellschaft A method and device for notification in a system for visible-light communication
CN104253652A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Dimming method and dimming device

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5611038A (en) 1991-04-17 1997-03-11 Shaw; Venson M. Audio/video transceiver provided with a device for reconfiguration of incompatibly received or transmitted video and audio information
KR100330241B1 (en) 1998-08-26 2002-10-04 삼성전자 주식회사 Apparatus and method for communicating wireless packet voice data
US7433314B2 (en) 2004-06-01 2008-10-07 Samsung Electronics Co., Ltd. Method and system for acknowledging the receipt of a transmitted data stream in a wireless personal area network
KR100631271B1 (en) 2004-08-07 2006-10-02 삼성전자주식회사 Packet aggregation transmission method
US7474676B2 (en) 2004-09-10 2009-01-06 Mitsubishi Electric Research Laboratories, Inc. Frame aggregation in wireless communications networks
US7729236B2 (en) 2005-11-10 2010-06-01 Nokia Corporation Use of timing information for handling aggregated frames in a wireless network
CN100479494C (en) 2006-03-08 2009-04-15 深圳Tcl新技术有限公司 Adjusting method for the image quality
TWI466518B (en) 2006-12-12 2014-12-21 Interdigital Tech Corp High-speed downlink packet access transmission and reception packet method and device
US8620154B2 (en) * 2009-07-31 2013-12-31 Samsung Electronics Co., Ltd. Methods and apparatus for fast and energy-efficient light recovery in a visible light communication (VLC) system
US9197736B2 (en) 2009-12-31 2015-11-24 Digimarc Corporation Intuitive computing methods and systems
KR101181494B1 (en) * 2010-05-25 2012-09-11 영남대학교 산학협력단 Transmitter of wireless light communication system using light source
US9337961B2 (en) 2010-06-15 2016-05-10 Qualcomm Incorporated Method and apparatus for sending very high throughput WLAN acknowledgment frames
US9112606B2 (en) * 2010-12-15 2015-08-18 Electronics And Telecommunications Research Institute Method and apparatus for transmitting and receiving data using visible light communication
US8879924B2 (en) * 2012-01-25 2014-11-04 Electronics And Telecommunications Research Institute Visible light communication method using DMX-512 network and apparatuses for the same
CN102595494A (en) * 2012-02-07 2012-07-18 北京新岸线无线技术有限公司 Data transmission method and data transmission device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461017A (en) * 2009-05-08 2012-05-16 三星电子株式会社 Apparatus and method for supporting dimming in visible light communication
WO2011034360A2 (en) * 2009-09-16 2011-03-24 Samsung Electronics Co., Ltd. Flexible and integrated frame structure design for supporting multiple topologies with visible light communication
CN102612810A (en) * 2009-09-16 2012-07-25 三星电子株式会社 Apparatus and method for generating high resolution frames for dimming and visibility support in visible light communication
CN102577180A (en) * 2009-09-18 2012-07-11 交互数字技术公司 Method and apparatus for rate-controlled dimming of visible light communication (VLC)
WO2012123572A1 (en) * 2011-03-16 2012-09-20 Siemens Aktiengesellschaft A method and device for notification in a system for visible-light communication
CN104253652A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Dimming method and dimming device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
可见光通信技术及应用初探;吴承治;《现代传输》;20120630;全文

Also Published As

Publication number Publication date
US20160329962A1 (en) 2016-11-10
US9716550B2 (en) 2017-07-25
WO2015100961A1 (en) 2015-07-09
CN104753829A (en) 2015-07-01
EP3091701A1 (en) 2016-11-09
EP3091701B1 (en) 2018-12-19
EP3091701A4 (en) 2017-01-11

Similar Documents

Publication Publication Date Title
TWI818142B (en) Method for wireless communication, and apparatus and computer-readable medium thereof
CN103547340B (en) Data transmission method, base station and user equipment
US10178582B2 (en) Apparatus and methods for frame control design
TWI757967B (en) Apparatus and methods for transmitting data
TWI663858B (en) Method of l2 layer data packet processing and electronic device using the same
CN104753829B (en) Dimming method and dimming device
JP7644459B2 (en) Wireless communication method using fragmentation and wireless communication terminal using the same
WO2019028848A1 (en) Method, device and system for resource allocation, and computer-readable storage medium
JP7264876B2 (en) Duplicate transmission activation/deactivation method, base station, terminal and device
CN106612245A (en) Message transmission method and system based on GTPU (GPRS Tunneling Protocol for the user plane) tunnel protocol
AU2016246714A1 (en) Processing time extension for high bandwidth wireless communications
US20200154306A1 (en) Terminal and base station in wireless communication system, and communication method thereof
CN104253652B (en) A kind of method and light modulating device for realizing light modulation
CN116491207A (en) Optionally perform a listen-before-speak operation
WO2023217009A1 (en) Data transmission method and apparatus and communication device
CN106936540A (en) User equipment and uplink data transmission method
CN103327565A (en) Method and device for connection control of terminal
CA3214889A1 (en) Information transmission method, apparatus, and system
CN105764143B (en) User terminal and its data transmission method for uplink and device under UM mode
CN106304312B (en) The method of timing advance order MAC CE is set in the carrier aggregation system of enhancing
CN104219031A (en) MAC (media access control) frame aggregation method and device
CN112996040B (en) Cache status report, resource configuration method, device, terminal and network side equipment
CN104081819B (en) Resource scheduling method and device
WO2017004779A1 (en) Method of transmitting data frame and device utilizing same
WO2018188510A1 (en) Method, apparatus and device for encapsulating and parsing data packet in data link layer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190830

Termination date: 20211230

CF01 Termination of patent right due to non-payment of annual fee