WO2014044083A1 - 数据通信装置和数据通信方法 - Google Patents

数据通信装置和数据通信方法 Download PDF

Info

Publication number
WO2014044083A1
WO2014044083A1 PCT/CN2013/080654 CN2013080654W WO2014044083A1 WO 2014044083 A1 WO2014044083 A1 WO 2014044083A1 CN 2013080654 W CN2013080654 W CN 2013080654W WO 2014044083 A1 WO2014044083 A1 WO 2014044083A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
service
message
identifier bit
bits
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.)
Ceased
Application number
PCT/CN2013/080654
Other languages
English (en)
French (fr)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2014044083A1 publication Critical patent/WO2014044083A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of mobile communications, and in particular to a data communication apparatus and a data communication method. Background technique
  • NAN NAN network
  • devices are required to quickly discover other devices for association when they are close to each other; the search device needs to be able to discover a large number of simultaneous NAN devices; NAN broadcast devices should timely aggregate broadcast messages to ensure that the search devices are When a large number of NAN devices are found, there is no significant power consumption.
  • a device discovery frame is defined, which is periodically broadcasted in a Beacon frame, and some services can be communicated after the p2p network is established.
  • the existing Wi-Fi p2p technology obviously cannot meet the characteristics of the NAN network: 1.
  • the device discovery message in p2p is included in the Beacon frame, and the Beacon frame is too long. If frequent broadcast is not conducive to power saving of the device; Before the p2p device establishes an association, it does not know whether the associated object has the same hobby or business as itself.
  • the technical problem to be solved by the present invention is to provide a new device/service discovery mechanism, so that the time during which the device is sent is not too long, the power consumption is reduced, and the association can be established before the association is established. You can know if the associated object has the same hobbies or business as you do to avoid unnecessary connections.
  • the present invention provides a data communication apparatus, including: a message generating module, which generates a message frame, where the message frame includes a message frame identifier bit and a service information identifier bit, and the value of the message frame identifier bit identifies the And the type of the message frame includes the service information identifier bit, where the value of the service information identifier bit indicates related information of the service; and the data interaction module sends the message frame.
  • the data communication device is used as the terminal, and the data interaction module can be implemented by the signal transmitting and receiving device of the terminal, the antenna, and the like.
  • the message generating module can be implemented by a processing unit that generates a message internally by the terminal, and the message frame is utilized by the technical solution.
  • the notification of the service related information is notified, and the type of the message frame of the receiver is notified, so that the receiver can judge whether to analyze according to the type of the message frame, for example, from the viewpoint of power saving, for some message frames that are not interested, Do the analysis, for example, if a mobile terminal device parses the message frame identifier bit and finds that the frame is not interested in itself, it can directly discard the rest of the message frame and no longer parse it, which is beneficial to power saving;
  • the party provides service-related information for the receiver to determine whether it is necessary to connect to the sender to conduct business based on the service-related information.
  • the message frame is a broadcast message frame, a multicast message frame or a unicast message frame.
  • the message frame can be sent out in different manners such as broadcast, multicast, unicast, etc.
  • the destination address in the broadcast message frame is the broadcast message address; if the message frame is a group Broadcast message frame, then the destination address in the multicast message frame is the multicast message address.
  • the multicast message address can be a special identifier of a group. The special identifier can be 48 bits or other bits.
  • the message frame is a unicast message frame
  • the destination address in the unicast message frame is a unicast message address, specifically, the unicast message address is the MAC address of a certain terminal device.
  • the message frame is a control frame, a management frame or a common action frame.
  • the message frame may be sent in the form of a control frame, a management frame or a common action frame.
  • the message frame may also be sent in other forms of frames.
  • the frame identifier bit when the message frame is the control frame, includes one or more bits of a frame header portion of the medium access control frame in the control frame;
  • the message frame identifier bit when the message frame is the management frame, includes one or more bits of a frame header portion of the medium access control frame in the management frame;
  • the message frame when the message frame is the public action frame
  • the message frame identification bit includes one or more bits of a frame header portion or a frame body portion of the medium access control frame of the common action frame.
  • the message identifier bit may be set in the frame header portion of the management frame and the control frame, and for the common action frame, the message identifier bit may be set in the frame header portion or the frame body portion, which can effectively indicate The existence of the service information identifier bit and the type of the outbound frame, and the frame length are short, which is conducive to power saving and suitable for frequent transmission and reception.
  • the message frame identifier bit when the message frame is the control frame, includes a type subfield and a sub-frame in a frame control field of a frame header portion of the media access control frame of the control frame.
  • One or more bits of the type subfield when the message frame is the management frame, the message frame identification bit includes a type subfield of a frame control field of a frame header portion of a medium access control frame of the management frame And one or more bits of the subtype subfield; when the message frame is the public action frame, the message frame identification bit includes a frame control field of a frame header portion of the media access control frame of the common action frame
  • the service information identifier bit when the message frame is the control frame, includes one or more bits of a frame header portion of the medium access control frame in the control frame;
  • the service information identifier bit when the message frame is the management frame, includes one or more bits of a frame header portion of the medium access control frame in the management frame;
  • the service information flag when the message frame is the public action frame, includes one or more bits of a frame body portion of a media access control frame of the public action frame.
  • the frame body part can be used to record the service related information. Specifically, it can be set in the frame body part order 1 position field, and of course, it can also be set in other order position fields.
  • the service information identifier bit includes an order 1 location field of a frame body part of the media access control frame of the common action frame.
  • the service information may be recorded in a part of the frame body, and the frame body part may be composed of a plurality of domains, and the service information may be recorded in the frame body part order 1 location domain, so that the receiver only needs to be parsed.
  • the service information identifier bit when the message frame is the control frame, includes a service type identifier bit and a service detail information identifier bit, where the value of the service type identifier bit indicates the The type of the service, the value of the service detail information identifier bit indicates the detailed information of the service; when the message frame is the management frame, the service information identifier bit includes a service type identifier bit and a service detail information identifier bit.
  • the value of the service type identifier bit indicates the type of the service, and the value of the service detail information identifier bit indicates detailed information of the service; when the message frame is the public action frame, the service information
  • the identification includes the industry a service type identifier bit, an action frame identifier bit, and the service detail information identifier bit, where the value of the service type identifier bit indicates a type of the service, and the value of the action frame identifier bit indicates that the receiver receives the public
  • the action frame may be associated with the sender, and the value of the service detail information flag indicates the detailed information of the service.
  • the service related information domain is composed of a service type information domain and a service detailed information domain, for example, the type information domain identifies the type of the service, for example: game, chat or other services.
  • the business detail field identifies which specific service in the business type category, for example, the detailed information may be the CS game in the game, or may include other information of the CS game, such as game level information, service type information domain and service.
  • the detailed information field may be a sub-domain of the service information domain; for the public action frame, the service type information domain, the service detailed information domain, and the action frame information domain, where the service type information domain and the service detailed information domain are in the management frame and
  • the control frame has the same function and will not be described here.
  • the action frame information field is used to identify that the frame is a NAN discovery message frame.
  • the service information identifier bit when the message frame is the control frame, the service information identifier bit includes 48 or other digit bits, and the service type identifier bit includes 8 or other digits. Bits, the service detail information identifier bit includes the remaining bits of the service information identifier bit; when the message frame is the management frame, the service information identifier bit includes 48 or other digit bits.
  • the service type identifier bit includes 8 or other digits, and the service detail information identifier bit includes the remaining bits of the service information identifier bit; when the message frame is the public action frame, the The service information identifier bit includes 10 or other digits, the service type identifier bit includes 1 or another number of digits, and the action identifier bit includes 1 byte or other number of digits, and the service detail information identifier bit Contains 6 or other digits of the service information flag.
  • 8 bytes can be used to identify the type of service information, for example, the value "00000000" is used to identify the large type of war game, and the value is CS game, and can also include CS.
  • the service is a service performed by the data communication device at a current time or other time.
  • the information of the current service can be recorded in the message frame, and the service performed at other times can also be recorded to notify the receiver, so that when other potential users parse the data, the current or upcoming service can be known. , to quickly establish an association with the sender.
  • a mobile terminal device parses the message frame identifier bit and finds that the frame is not of interest to itself, it may directly discard the remaining part of the message frame and no longer parse, which is beneficial to Power saving;
  • the message frame also provides service related information for the receiver, and the receiver determines whether it is necessary to connect to the sender to perform the service according to the service related information.
  • the message frame is a broadcast message frame, a multicast message frame or a unicast message frame.
  • the message frame can be sent out in different manners such as broadcast, multicast, unicast, etc.
  • the destination address in the broadcast message frame is the broadcast message address; if the message frame is a group Broadcast message frame, then the destination address in the multicast message frame is the multicast message address.
  • the multicast message address can be a special identifier of a group. The special identifier can be 48 bits or other bits.
  • the message frame is a unicast message frame
  • the destination address in the unicast message frame is a unicast message address, specifically, the unicast message address is the MAC address of a certain terminal device.
  • the message frame is a control frame, a management frame or a common action frame.
  • the message frame may be sent in the form of a control frame, a management frame or a common action frame.
  • the message frame may also be sent in other forms of frames.
  • the frame identifier bit when the message frame is the control frame, includes one or more bits of a frame header portion of the medium access control frame in the control frame;
  • the message frame identifier bit when the message frame is the management frame, includes one or more bits of a frame header portion of the medium access control frame in the management frame;
  • the message frame when the message frame is the public action frame
  • the message frame identification bit includes one or more bits of a frame header portion or a frame body portion of the medium access control frame of the common action frame.
  • the message identifier bit may be set in the frame header portion of the management frame and the control frame, and for the common action frame, the message identifier bit may be set in the frame header portion or the frame body portion, which can effectively indicate The existence of the service information identifier bit and the type of the outbound frame, and the frame length are short, which is conducive to power saving and suitable for frequent transmission and reception.
  • the value of the reserved bit can be used to indicate whether the service information identifier exists, for example,
  • the value of Type can be "1 1 ", the value of subtype can take "0000" to identify the type of the frame and the frame contains the service information identifier.
  • the Type and Subtype subfields can also take other values to identify the type of the frame. And indicating that the frame contains the service information identifier bit; and for the public action frame, whether using the type and subtype subfield or using the frame body part position, the method is the same as the management frame and the control frame, and here no longer Narration.
  • the message frame is a neighbor-aware network discovery message frame, and the neighbor-aware network discovery message frame is used for simultaneous execution.
  • the identifier bit can more specifically identify that the message frame is a NAN discovery message frame, and simultaneously indicates that the NAN discovery disappears.
  • the information frame contains the service information identifier. For example, when the receiver resolves the value of the identifier to "110000", it knows that the frame is a neighbor-aware network discovery message frame. If you want to perform neighbor-aware network-related services, continue to parse this. The remaining part of the frame, and vice versa, does not parse the rest of the frame, which is conducive to power saving.
  • the service information identifier bit when the message frame is the control frame, includes one or more bits of a frame header portion of the medium access control frame in the control frame;
  • the service information identifier bit when the message frame is the management frame, includes one or more bits of a frame header portion of the medium access control frame in the management frame;
  • the service information flag when the message frame is the public action frame, includes one or more bits of a frame body portion of a media access control frame of the public action frame.
  • the frame body part can be used to record the service related information. Specifically, it can be set in the frame body part order 1 position field, and of course, it can also be set in other order position fields.
  • the service related information domain is composed of a service type information domain and a service detailed information domain, for example, the type information domain identifies the type of the service, for example: game, chat or other services.
  • the business detail field identifies which specific service in the business type category, for example, the detailed information may be the CS game in the game, or may include other information of the CS game, such as game level information, service type information domain and service.
  • the detailed information field may be a sub-domain of the service information domain; for the public action frame, the service type information domain, the service detailed information domain, and the action frame information domain, where the service type information domain and the service detailed information domain are in the management frame and
  • the control frame has the same function and will not be described here.
  • the action frame information field is used to identify that the frame is a NAN discovery message frame.
  • the service type identifier bit includes 8 or other digits, and the service detail information identifier bit includes the remaining bits of the service information identifier bit; when the message frame is the public action frame, the The service information identifier bit includes 10 or other digits, the service type identifier bit includes 1 or another number of digits, and the action identifier bit includes 1 byte or other number of digits, and the service detail information identifier bit Contains 6 or other digits of the service information flag.
  • 8 bytes can be used to identify the type of service information, for example, the value "00000000" is used to identify the large type of war game, and the value is CS game, and can also include CS.
  • Other information of the game such as game level and other information, of course, other bits can be used to identify the type of service information and business details; in the action frame, the identification method of the service type information and the service detailed information and the management frame and The same is true in the control frame, and will not be described here.
  • the value of the action frame information field is set to "00000111", this is identified.
  • the frame is a neighbor-aware network discovery message frame.
  • the value of the action information field may be set to other values to identify the frame as a neighbor-aware network discovery message frame.
  • the service is a service performed by a sender of the message frame at a current or other time.
  • the information of the current service can be recorded in the message frame, and the service performed at other times can also be recorded to notify the receiver, so that when other potential users parse the data, the current or upcoming service can be known. , to quickly establish an association with the sender.
  • the receiving device can First, the type of the message frame is known, and whether the parsing is performed according to the type of the message frame. For example, from the viewpoint of power saving, the message frame that is not interested may be parsed, for example, if a mobile terminal device parses the message frame identifier bit. If the frame is found to be uninteresting, it can directly discard the rest of the message frame and no longer parse it, which is conducive to power saving.
  • the message frame also provides service related information for the receiver, and the receiver judges whether it is based on the service related information. Need to connect to the sender to conduct business.
  • the message frame is a broadcast message frame, a multicast message frame or a unicast message frame.
  • the message frame can be sent out in different manners such as broadcast, multicast, unicast, etc.
  • the destination address in the broadcast message frame is the broadcast message address; if the message frame is a group Broadcast message frame, then the destination address in the multicast message frame is the multicast message address.
  • the multicast message address can be a special identifier of a group. The special identifier can be 48 bits or other bits.
  • the message frame is a unicast message frame
  • the destination address in the unicast message frame is a unicast message address, specifically, the unicast message address is the MAC address of a certain terminal device.
  • the message frame is a control frame, a management frame, or a public motion. Frame.
  • the message frame may be sent in the form of a control frame, a management frame or a common action frame.
  • the message frame may also be sent in other forms of frames.
  • the message processing module determines a type sub-domain and a sub-type in a frame control domain of a frame header portion of the media access control frame of the control frame.
  • One or more bits of the subfield are the message frame identification bits;
  • the message processing module determines frame control of a frame header portion of the media access control frame of the management frame
  • One or more bits of the type subdomain and the subtype subfield in the domain are the message frame identification bits;
  • the message processing module determines media access of the common action frame
  • a plurality of bits are the message frame identification bits.
  • the receiver can determine whether the service information identifier exists according to the value of the reserved bit.
  • the value of Type can take "11”
  • the value of subtype can take "0000” to identify the type of frame and the frame contains the service information identifier.
  • the Type and Subtype subfields can also take other values to identify the frame.
  • the type indicates that the frame contains the service information flag.
  • the receiver can determine whether the service information flag is based on the type and subtype subfield or the value of the frame body position. Exist, the method is the same as the method of processing management frames and control frames, here no longer Narration.
  • the message processing module determines that the message frame is a neighbor-aware network discovery message frame, and the neighbor-aware network, when the value of the type sub-domain and the sub-type sub-domain is the first value.
  • Discovery message frames are used for device discovery and service discovery at the same time.
  • the receiver may determine, according to the identifier bit, that the message frame is a NAN discovery message frame, and determine that the NAN discovery message frame includes a service information identifier bit, for example, when the receiver resolves the value of the identifier bit to "110000".
  • this frame is a neighbor-aware network discovery message frame
  • you want to perform neighbor-aware network-related services you will continue to parse the rest of the frame. Otherwise, the rest of the frame will not be parsed, which is conducive to power saving.
  • the message processing module determines that one or more bits of a frame header portion of the medium access control frame in the control frame are the service An information identifier bit; when the message frame is the management frame, the message processing module determines that one or more bits of a frame header portion of the medium access control frame in the management frame is the service information identifier bit; When the message frame is the public action frame, the message processing module determines that one or more bits of the frame body part of the media access control frame of the common action frame is the service information identifier bit.
  • the service related information needs to be recorded by using the frame header portion, for example, in the control frame and the management frame, the location of the service information identification bit can be set at the source.
  • the frame body part can be used to record the service related information. Specifically, it can be set in the frame body part order 1 position field, of course, it can also be set in other order position fields, and the receiver is controlled according to the control.
  • the characteristics of the frame and the common action frame, and the service related information is obtained from the corresponding position in the frame.
  • the message processing module determines the type of the service according to the value of the service type identifier bit, and determines the detailed information of the service according to the value of the service detail information identifier bit;
  • the service information identifier bit includes the service type identifier bit, the action frame identifier bit, and the service detail information identifier bit, and the message processing module is configured according to the service type identifier bit. Determining a type of the service, determining, according to a value of the action frame identifier bit, that the recipient is receiving the Co-operation may be a time frame associated with the sender, determining the details of the service according to the service detail identification information bit values.
  • the message frame is a broadcast message frame, a multicast message frame or a unicast message frame.
  • the message frame can be broadcast, multicast, unicast, etc. If the message frame is a broadcast message frame, the destination address in the broadcast message frame is the broadcast message address. If the message frame is a multicast message frame, the destination address in the multicast message frame is the multicast message. Address, specifically, the multicast message address may be a special identifier of a group, and the special identifier may be 48 bits or other bits; if the message frame is a unicast message frame, then in the unicast message frame The destination address is a unicast message address. Specifically, the unicast message address is the MAC address of a terminal device.
  • the receiver can according to the value of the reserved bit.
  • the value of Type can be "11”
  • the value of subtype can take "0000” to identify the type of the frame and indicate that the frame contains the service information identifier
  • the Type and Subtype subdomains Other values may be used to identify the type of the frame and indicate that the frame contains the service information identification bit
  • the receiver may use the frame type according to the type and subtype subfields.
  • the value of the service information identifier is determined to be the same as the method for processing the management frame and the control frame, and details are not described herein again.
  • the method further includes: determining, when the message frame is the control frame, one or more bits of a frame header portion of the medium access control frame in the control frame as the service information identifier. Determining, when the message frame is the management frame, determining one or more bits of a frame header portion of the medium access control frame in the management frame as the service information identifier bit; In the public action frame, determining one or more bits of the frame body portion of the medium access control frame of the common action frame is the service information identifier bit.
  • FIG. 1 is a block diagram of a data communication device in accordance with one embodiment of the present invention.
  • the message identifier bit may be set in the frame header portion of the management frame and the control frame, and for the common action frame, the message identifier bit may be set in the frame header portion or the frame body portion, which can effectively indicate The existence of the service information identifier bit and the type of the outbound frame, and the frame length are short, which is conducive to power saving and suitable for frequent transmission and reception.
  • the business detail field identifies which specific service in the service type category, for example, the detailed information may be a CS game in the game, or may include other information of the CS game, such as game level information, service type information domain and service.
  • the detailed information field may be a sub-domain of the service information domain; for the public action frame, the service type information domain, the service detailed information domain, and the action frame information domain, where the service type information domain and the service detailed information domain are in the management frame and
  • the control frame has the same function and will not be described here.
  • the action frame information field is used to identify that the frame is a NAN discovery message frame.
  • 8 bytes can be used to identify the type of service information, for example, the value of "00000000" is used to identify the specific information of the game of the war game as a CS game, and can also include a CS game.
  • Other information such as game level and other information, of course, other bit numbers can be used to identify the service information type and business detailed information; in the action frame, the service type information and the service detailed information identification method and the management frame and control The same as in the frame, it will not be described here.
  • the value of the action frame information field is set to "000001 11"
  • the frame is identified as the neighbor-aware network discovery message frame.
  • the value of the action information field can be set to other values to identify This frame is a neighbor aware network discovery message frame.
  • the message frame identifier bit when the message frame is the control frame, includes a type subfield and a subtype subfield in a frame control domain of a frame header portion of the medium access control frame of the control frame.
  • the message frame identification bit when the message frame is the management frame, includes a type sub-field and a sub-type sub-frame in a frame control field of a frame header portion of the media access control frame of the management frame.
  • the message frame identifier bit includes a header portion of a medium access control frame of the common action frame
  • the frame controls one or more bits of the type subdomain and the subtype subfield in the domain, or the order of the frame body part
  • the message frame is a neighbor-aware network discovery message frame, and the neighbor-aware network discovery message frame is used for device discovery and Business discovery.
  • the service information identifier bit when the message frame is the control frame, includes one or more bits of a frame header portion of the medium access control frame in the control frame;
  • the service information identifier bit when the frame is the management frame, includes one or more bits of a frame header portion of the medium access control frame in the management frame;
  • the service The information flag when the message frame is the public action frame, includes one or more bits of the body portion of the media access control frame of the common action frame.
  • the service related information needs to be recorded by using the frame header portion, for example, in the control frame and the management frame, the location of the service information identification bit can be set at the source.
  • the frame body part can be used to record the service related information. Specifically, it can be set in the frame body part order 1 position field, and of course, it can also be set in other order position fields.
  • the service information identifier bit when the message frame is the control frame, the service information identifier bit includes a service type identifier bit and a service detail information identifier bit, and the value of the service type identifier bit indicates the type of the service. And the value of the service detail information identifier bit indicates the detailed information of the service;
  • the service information identifier bit when the message frame is the management frame, the service information identifier bit includes a service type identifier bit and a service detail information identifier bit, where The value of the service type identifier bit indicates the type of the service, and the value of the service detail information identifier bit indicates the detailed information of the service;
  • the service information identifier bit when the message frame is the public action frame, the service information identifier bit includes The service type identifier bit, the action frame identifier bit, and the service detail information identifier bit, the value of the service type identifier bit indicates the type of the service, and the value of the action frame identifier bit indicates that the receiver is receiving the location
  • 8 bytes can be used to identify the type of service information, for example, the value of "00000000" is used to identify the specific information of the game of the war game as a CS game, and can also include a CS game.
  • Other information such as game level and other information, of course, other bit numbers can be used to identify the service information type and business detailed information; in the action frame, the service type information and the service detailed information identification method and the management frame and control The same as in the frame, it will not be described here.
  • the value of the action frame information field is set to "000001 11"
  • the frame is identified as the neighbor-aware network discovery message frame.
  • the value of the action information field can be set to other values to identify This frame is a neighbor aware network discovery message frame.
  • the service is a service performed by a sender of the message frame at a current or other time.
  • the information of the current service can be recorded in the message frame, and the service performed at other times can also be recorded to notify the receiver, so that when other potential users parse the data, the current or upcoming service can be known. , to quickly establish an association with the sender.
  • the message processing module 304 can be implemented by the processing unit that processes the message internally by the terminal, and receives the solution through the technical solution. First, you can know the type of the message frame first, and judge whether it is based on the type of the message frame. For analysis, for example, from the perspective of power saving, some message frames that are not of interest may not be parsed. For example, if a mobile terminal device parses the message frame identifier and finds that the frame is not interested in itself, it can directly discard it. The rest of the message frame is no longer parsed, which is conducive to power saving.
  • the message frame also provides service related information for the receiver, and the receiver determines whether it is necessary to connect to the sender to perform the service according to the service related information.
  • the message frame is a broadcast message frame, a multicast message frame or a unicast message frame.
  • the receiver can receive the message frame sent by different means such as broadcast, multicast, unicast, etc.
  • the message frame is a broadcast message frame
  • the destination address in the broadcast message frame is the broadcast message address;
  • the frame is a multicast message frame.
  • the destination address in the multicast message frame is the multicast message address.
  • the multicast message address can be a special identifier of a group.
  • the special identifier can be 48 bits or other. The number of bits; if the message frame is a unicast message frame, the destination address in the unicast message frame is the unicast message address, specifically, the unicast message address is the MAC address of a certain terminal device.
  • the message frame is a control frame, a management frame or a common action frame.
  • the message frame may be sent in the form of a control frame, a management frame or a common action frame.
  • the message frame may also be sent in other forms.
  • the message processing module 304 determines that one or more bits of a frame header portion of the medium access control frame in the control frame is the message frame identifier.
  • the message processing module 304 determines that one or more bits of the header portion of the medium access control frame in the management frame are the cancellation, frame identification bits;
  • the message processing module 304 determines that one or more bits of the frame header portion or the frame body portion of the media access control frame of the common action frame are the message frame identifier bits. .
  • the receiver can determine whether the service information flag is based on the type and subtype subfield or the value of the frame body position.
  • the method is the same as the method for processing the management frame and the control frame, and will not be described here.
  • the service related information needs to be recorded by using the frame header portion, for example, in the control frame and the management frame, the location of the service information identification bit can be set at the source.
  • the frame body part can be used to record the service related information. Specifically, it can be set in the frame body part order 1 position field, of course, it can also be set in other order position fields, and the receiver is controlled according to the control.
  • the characteristics of the frame and the common action frame, and the service related information is obtained from the corresponding position in the frame.
  • the service is a service performed by a sender of the message frame at a current or other time.
  • the receiver can parse out the current service of the sender or the service performed at other times from the message frame, and select whether to carry out the service according to its own needs, so that the receiver can know the current after parsing the data. Or the business to be carried out, easy to fast Speed association with the sender.
  • the message frame that is not interested can be parsed, for example, if A mobile terminal device parses the message frame identifier bit, and finds that the frame is not interested in itself, and can directly discard the remaining part of the message frame and no longer parse, which is beneficial for power saving; and the message frame also provides service related information for the receiver.
  • the receiver determines whether it is necessary to connect to the sender to conduct business based on the service related information.
  • the message frame is a broadcast message frame, a multicast message frame or a unicast message frame.
  • the message frame can be sent out in different manners such as broadcast, multicast, unicast, etc.
  • the destination address in the broadcast message frame is the broadcast message address; if the message frame is a group Broadcast message frame, then the destination address in the multicast message frame is the multicast message address.
  • the multicast message address can be a special identifier of a group.
  • the special identifier can be 48 bits or other bits.
  • the message frame is a unicast message frame
  • the destination address in the unicast message frame is a unicast message address, specifically, the unicast message address is the MAC address of a certain terminal device.
  • the message frame is a control frame, a management frame or a common action frame.
  • the message frame may be sent in the form of a control frame, a management frame or a common action frame.
  • the message frame may also be sent in other forms.
  • the service related information domain is composed of a service type information domain and a service detailed information domain, for example, the type information domain identifies the type of the service, for example: game, chat or other services.
  • Type the receiver determines which specific service in the service type category according to the service detailed information field, for example, the detailed information may be a CS game in the game, or may include other information of the CS game, such as game level information, service type information
  • the domain and the service detail domain may be subdomains of the service information domain; for the public action frame, the service type information domain, the service detail information domain, and the action frame information domain, where the service type information domain and the service detailed information domain are
  • the management frame has the same function as the control frame, and is not described here.
  • the receiver determines that the frame is a NAN discovery message frame according to the action frame information field.

Landscapes

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

Description

说 明 书
数据通信装置和数据通信方法
技术领域
本发明涉及移动通信领域, 具体而言, 涉及一种数据通信装置和一种 数据通信方法。 背景技术
在 WFA ( Wi-Fi Alliance ) 中, 成立了新的研究组 NAN ( Neighbor Awareness Networking, 邻居感知网络) , 它研究的内容是社交网络, 主 要是 STA (终端) 怎样发现其它的 STA 并进行兴趣共享, 快速发现以及 发现过程中如何省电。
在 NAN 网络中, 要求用户间在相互靠近时, 设备能够快速发现其他 设备以进行关联; 搜索设备需要能够发现大量的同时进行广播的 NAN 设 备; NAN 广播设备应当及时汇集广播消息以保证搜索设备在发现大量 NAN设备时不会大量耗电。
在现有的 Wi-Fi p2p 技术中, 定义了一种设备发现帧, 是通过在 Beacon 帧中周期性的广播出来的, 在建立 p2p 网络后可以进行一些业务 的通信。
考虑到 NAN 网络的特点是为了让有共同爱好或是共同业务的设备能 够组成 NAN 网络, 进行业务通信。 而现有的 Wi-Fi p2p技术显然是不能 够满足 NAN 网络的特点的: 1、 p2p 中的设备发现消息包含在 Beacon帧 中, Beacon 帧过长, 如果频繁广播不利于设备省电; 2、 p2p 设备在建立 关联之前, 是不知道关联对象是否与自己有同样的爱好或是业务。
因此, 需要一种新的设备 /业务发现机制, 使得设备在发现的过程 中, 消息发送的时间不至于过长, 减少电量的消耗, 以及能够在建立关联 之前, 就能够知道关联对象是否与自己有同样的爱好或是业务, 以避免进 行不必要的连接。 发明内容
本发明所要解决的技术问题在于, 提供一种的新的设备 /业务发现机 制, 使得设备在发现的过程中, 消息发送的时间不至于过长, 减少电量的 消耗, 以及能够在建立关联之前, 就能够知道关联对象是否与自己有同样 的爱好或是业务, 以避免进行不必要的连接。
有鉴于此, 本发明提供一种数据通信装置, 包括: 消息生成模块, 生 成消息帧, 所述消息帧中包括消息帧标识位和业务信息标识位, 所述消息 帧标识位的值标识所述消息帧的类型以及表示所述消息帧中包括所述业务 信息标识位, 所述业务信息标识位的值表示业务的相关信息; 数据交互模 块, 发送所述消息帧。 在该技术方案中, 数据通信装置作为终端, 数据交 互模块可以通过终端的信号收发装置以及天线等实现, 消息生成模块可以 由终端内部生成消息的处理单元来实现, 通过本技术方案, 利用消息帧来 进行业务相关信息的通知, 并通知接收方消息帧的类型, 使得接收方可以 根据消息帧的类型来判断是否进行解析, 例如, 从省电角度考虑, 对于某 些不感兴趣的消息帧可以不做解析, 譬如如果一个移动终端设备解析消息 帧标识位, 发现这个帧是自己不感兴趣的, 就可以直接丟弃这个消息帧的 剩余部分不再解析, 有利于省电; 另外消息帧还为接收方提供业务相关信 息, 供接收方根据业务相关信息判断是否需要连接发送方来开展业务。
在上述技术方案中, 优选地, 所述消息帧为广播消息帧、 组播消息帧 或单播消息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不 同方式发送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的 地址就是广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中 的目的地址就是组播消息地址, 具体来说这个组播消息地址可以是一个组 的特殊标识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消 息帧为单播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 优选地, 所述消息帧为控制帧、 管理帧或公共动 作帧。 在该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形 式发送出来, 当然这个消息帧也可以以其它形式帧发送出来。 在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 , 帧标识位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个 位; 在所述消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧中 媒介访问控制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共动 作帧时, 所述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头 部分或帧体部分的一个或多个位。 在该技术方案中, 可以将消息标识位设 置在管理帧和控制帧的帧头部分, 而对于公共动作帧, 可以将消息标识位 设置在其帧头部分或帧体部分, 皆能有效地指示出业务信息标识位的存在 以及表示出帧的类型, 且帧长度均较短, 利于省电, 适合频繁收发。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 息帧标识位包括所述控制帧的媒介访问控制帧的帧头部分的帧控制域中类 型子域和子类型子域的一个或多个位; 在所述消息帧为所述管理帧时, 所 述消息帧标识位包括所述管理帧的媒介访问控制帧的帧头部分的帧控制域 中类型子域和子类型子域的一个或多个位; 在所述消息帧为所述公共动作 帧时, 所述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头部 分的帧控制域中类型子域和子类型子域的一个或多个位, 或帧体部分的秩 序 1位置域中的一个或多个位或其它位置秩序域中的一个或多个位。 在该 技术方案中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype 两个子域还存在着未定义的保留位, 可以利用保留位的值来指示业务信息 标识位是否存在, 譬如, Type 的值可以取 " 11 " , subtype 的值可以取 " 0000 " 来标识帧的类型以及表示这个帧包含业务信息标识位, 当然 Type和 Subtype子域也可以取其它的值来标识帧的类型以及表示这个帧包 含业务信息标识位; 而对于公共动作帧, 无论是使用 type和 subtype子域 还是利用帧体部分位置, 都是可以的, 方法与管理帧和控制帧的方法一 样, 这里不再赘述。
在上述技术方案中, 优选地, 所述类型子域和子类型子域的值为第一 值时表示所述消息帧为邻居感知网络发现消息帧, 所述邻居感知网络发现 消息帧用于同时进行设备发现和业务发现。 在该技术方案中, 标识位可以 更具体地标识出消息帧是 NAN发现消息帧, 同时表示这个 NAN 发现消 息帧包含业务信息标识位, 譬如当接收方解析到标识位的值为 " 110000" 时, 就知道这个帧为邻居感知网络发现消息帧, 如果自己要进行邻居感知 网络相关的业务就继续解析这个帧剩余的部分, 反之则不解析这个帧剩余 部分, 利于省电。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个 位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包括所述管理帧 中媒介访问控制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共 动作帧时, 所述业务信息标识位包括所述公共动作帧的媒介访问控制帧的 帧体部分的一个或多个位。 在该技术方案中, 基于不同帧结构的特点, 对 于控制帧和管理帧, 需要利用帧头部分记录业务相关信息, 譬如在控制帧 和管理帧中, 可以将业务信息标识位的位置设置在源地址的后面, 而对于 公共动作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设 置在帧体部分秩序 1位置域, 当然也可以设置在其它秩序位置域。
在上述技术方案中, 优选地, 在所述消息帧为所述公共动作帧时, 所 述业务信息标识位包括所述公共动作帧的媒介访问控制帧的帧体部分的秩 序 1位置域中的一个或多个位或其它秩序位置域中的一个或多个位。 在该 技术方案中, 业务信息可以记录在帧体的部分, 帧体部分可以由很多域组 成, 可以将业务信息记录在帧体部分秩序 1位置域, 这样接收方只需解析
Orderl 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关联, 不用再解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设置在 帧体部分其它秩序位置域。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包括业务类型标识位和业务详细信息标识位, 所述业务类型 标识位的值表示所述业务的类型, 所述业务详细信息标识位的值表示所述 业务的详细信息; 在所述消息帧为所述管理帧时, 所述业务信息标识位包 括业务类型标识位和业务详细信息标识位, 所述业务类型标识位的值表示 所述业务的类型, 所述业务详细信息标识位的值表示所述业务的详细信 息; 在所述消息帧为所述公共动作帧时, 所述业务信息标识位包括所述业 务类型标识位、 动作帧标识位和所述业务详细信息标识位, 所述业务类型 标识位的值表示所述业务的类型, 所述动作帧标识位的值表示接收方在接 收到所述公共动作帧时可与发送方进行关联, 所述业务详细信息标识位的 值表示所述业务的详细信息。 在该技术方案中, 对于控制帧和管理帧, 业 务相关信息域由业务类型信息域和业务详细信息域两部分组成, 譬如类型 信息域标识业务的种类, 例如: 游戏、 聊天或是其它的业务种类, 业务详 细信息域标识业务类型种类里面的哪一种具体业务, 例如详细信息可以是 游戏里面的 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信 息, 业务类型信息域和业务详细信息域可以是业务信息域的子域; 对于公 共动作帧, 包含了业务类型信息域, 业务详细信息域以及动作帧信息域, 其中, 业务类型信息域和业务详细信息域与在管理帧和控制帧的作用一 样, 这里不再赘述, 动作帧信息域用来标识这个帧是 NAN发现消息帧。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特位, 所述业务详细信息标识位包含所述业务信息标识位 的其余比特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特 位, 所述业务详细信息标识位包含所述业务信息标识位的其余比特位; 在 所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它 个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位 包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信 息标识位的 6 个或其它个数字节。 在该技术方案中, 在控制帧和管理帧 中, 可以用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战 争 游 戏 这 个 大 的 类 型 , 用 值 为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信息, 当然 也可以用其它的比特位数来标识业务信息类型以及业务详细信息; 在动作 帧中, 业务类型信息和业务详细信息的标识方法与在管理帧和控制帧中一 样, 这里不再赘述, 同时动作帧信息域的值设置为 "00000111 " 时标识这 个帧为邻居感知网络发现消息帧, 当然也可以将动作信息域的值设置为其 它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 优选地, 所述业务为所述数据通信装置当前或其 它时间进行的业务。 在该技术方案中, 消息帧中可以记录当前业务的信 息, 也可以记录其他时间进行的业务, 以通知给接收方, 这样当其它潜在 用户解析这个数据后, 就能够知道当前或将要进行的业务, 便于快速与发 送方建立关联。
本发明还提供一种数据通信方法, 包括: 生成消息帧, 所述消息帧中 包括消息帧标识位和业务信息标识位, 所述消息帧标识位的值标识所述消 息帧的类型以及表示所述消息帧的类型中包含所述业务信息标识位, 所述 业务信息标识位的值表示业务的相关信息; 发送所述消息帧。 在该技术方 案中, 利用消息帧来进行业务相关信息的通知, 并通知接收方消息帧的类 型, 使得接收方可以根据消息帧的类型来判断是否进行解析, 例如, 从省 电角度考虑, 对于某些不感兴趣的消息帧可以不做解析, 譬如如果一个移 动终端设备解析消息帧标识位, 发现这个帧是自己不感兴趣的, 就可以直 接丟弃这个消息帧的剩余部分不再解析, 有利于省电; 另外消息帧还为接 收方提供业务相关信息, 供接收方根据业务相关信息判断是否需要连接发 送方来开展业务。
在上述技术方案中, 优选地, 所述消息帧为广播消息帧、 组播消息帧 或单播消息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不 同方式发送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的 地址就是广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中 的目的地址就是组播消息地址, 具体来说这个组播消息地址可以是一个组 的特殊标识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消 息帧为单播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 优选地, 所述消息帧为控制帧、 管理帧或公共动 作帧。 在该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形 式发送出来, 当然这个消息帧也可以以其它形式帧发送出来。 在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 , 帧标识位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个 位; 在所述消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧中 媒介访问控制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共动 作帧时, 所述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头 部分或帧体部分的一个或多个位。 在该技术方案中, 可以将消息标识位设 置在管理帧和控制帧的帧头部分, 而对于公共动作帧, 可以将消息标识位 设置在其帧头部分或帧体部分, 皆能有效地指示出业务信息标识位的存在 以及表示出帧的类型, 且帧长度均较短, 利于省电, 适合频繁收发。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 息帧标识位包括所述控制帧的媒介访问控制帧的帧头部分的帧控制域中类 型子域和子类型子域的一个或多个位; 在所述消息帧为所述管理帧时, 所 述消息帧标识位包括所述管理帧的媒介访问控制帧的帧头部分的帧控制域 中类型子域和子类型子域的一个或多个位; 在所述消息帧为所述所述公共 动作帧时, 所述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧 头部分的帧控制域中类型子域和子类型子域的一个或多个位, 或帧体部分 的秩序 1位置域中的一个或多个位或其它位置秩序域中的一个或多个位。 在该技术方案中, 对于控制帧和管理帧, 在 frame control 域的 type 和 subtype 两个子域还存在着未定义的保留位, 可以利用保留位的值来指示 业务信息标识位是否存在, 譬如, Type 的值可以取 " 1 1 " , subtype 的值 可以取 "0000" 来标识帧的类型以及表示这个帧包含业务信息标识位, 当 然 Type 和 Subtype 子域也可以取其它的值来标识帧的类型以及表示这个 帧包含业务信息标识位; 而对于公共动作帧, 无论是使用 type和 subtype 子域还是利用帧体部分位置, 都是可以的, 方法与管理帧和控制帧的方法 一样, 这里不再赘述。
在上述技术方案中, 优选地, 所述类型子域和子类型子域的值为第一 值时表示所述消息帧为邻居感知网络发现消息帧, 所述邻居感知网络发现 消息帧用于同时进行设备发现和业务发现。 在该技术方案中, 标识位可以 更具体地标识出消息帧是 NAN发现消息帧, 同时表示这个 NAN 发现消 息帧包含业务信息标识位, 譬如当接收方解析到标识位的值为 " 110000" 时, 就知道这个帧为邻居感知网络发现消息帧, 如果自己要进行邻居感知 网络相关的业务就继续解析这个帧剩余的部分, 反之则不解析这个帧剩余 部分, 利于省电。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个 位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包括所述管理帧 中媒介访问控制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共 动作帧时, 所述业务信息标识位包括所述公共动作帧的媒介访问控制帧的 帧体部分的一个或多个位。 在该技术方案中, 基于不同帧结构的特点, 对 于控制帧和管理帧, 需要利用帧头部分记录业务相关信息, 譬如在控制帧 和管理帧中, 可以将业务信息标识位的位置设置在源地址的后面, 而对于 公共动作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设 置在帧体部分秩序 1位置域, 当然也可以设置在其它秩序位置域。
在上述技术方案中, 优选地, 在所述消息帧为所述公共动作帧时, 所 述业务信息标识位包括所述公共动作帧的媒介访问控制帧的帧体部分的秩 序 1位置域中的一个或多个位或其它秩序位置域中的一个或多个位。 在该 技术方案中, 业务信息可以记录在帧体的部分, 帧体部分可以由很多域组 成, 可以将业务信息记录在帧体部分秩序 1位置域, 这样接收方只需解析
Orderl 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关联, 不用再解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设置在 帧体部分其它秩序位置域。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包括业务类型标识位和业务详细信息标识位, 所述业务类型 标识位的值表示所述业务的类型, 所述业务详细信息标识位的值表示所述 业务的详细信息; 在所述消息帧为所述管理帧时, 所述业务信息标识位包 括业务类型标识位和业务详细信息标识位, 所述业务类型标识位的值表示 所述业务的类型, 所述业务详细信息标识位的值表示所述业务的详细信 息; 在所述消息帧为所述公共动作帧时, 所述业务信息标识位包括所述业 务类型标识位、 动作帧标识位和所述业务详细信息标识位, 所述业务类型 标识位的值表示所述业务的类型, 所述动作帧标识位的值表示接收方在接 收到所述公共动作帧时可与发送方进行关联, 所述业务详细信息标识位的 值表示所述业务的详细信息。 在该技术方案中, 对于控制帧和管理帧, 业 务相关信息域由业务类型信息域和业务详细信息域两部分组成, 譬如类型 信息域标识业务的种类, 例如: 游戏、 聊天或是其它的业务种类, 业务详 细信息域标识业务类型种类里面的哪一种具体业务, 例如详细信息可以是 游戏里面的 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信 息, 业务类型信息域和业务详细信息域可以是业务信息域的子域; 对于公 共动作帧, 包含了业务类型信息域, 业务详细信息域以及动作帧信息域, 其中, 业务类型信息域和业务详细信息域与在管理帧和控制帧的作用一 样, 这里不再赘述, 动作帧信息域用来标识这个帧是 NAN发现消息帧。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特位, 所述业务详细信息标识位包含所述业务信息标识位 的其余比特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特 位, 所述业务详细信息标识位包含所述业务信息标识位的其余比特位; 在 所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它 个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位 包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信 息标识位的 6 个或其它个数字节。 在该技术方案中, 在控制帧和管理帧 中, 可以用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战 争 游 戏 这 个 大 的 类 型 , 用 值 为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信息, 当然 也可以用其它的比特位数来标识业务信息类型以及业务详细信息; 在动作 帧中, 业务类型信息和业务详细信息的标识方法与在管理帧和控制帧中一 样, 这里不再赘述, 同时动作帧信息域的值设置为 "00000111 " 时标识这 个帧为邻居感知网络发现消息帧, 当然也可以将动作信息域的值设置为其 它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 优选地, 所述业务为所述消息帧的发送方当前或 其它时间进行的业务。 在该技术方案中, 消息帧中可以记录当前业务的信 息, 也可以记录其他时间进行的业务, 以通知给接收方, 这样当其它潜在 用户解析这个数据后, 就能够知道当前或将要进行的业务, 便于快速与发 送方建立关联。
本发明还提供一种数据通信装置, 包括: 数据交互模块, 接收消息 帧, 所述消息帧中包括消息帧标识位和业务信息标识位; 消息处理模块, 根据所述消息帧标识位的值确定所述消息帧的类型以及确定所述消息帧中 包含所述业务信息标识位, 以及根据所述业务信息标识位的值确定业务的 相关信息。 在该技术方案中, 数据通信装置作为终端, 数据交互模块可以 通过终端的信号收发装置以及天线等实现, 消息处理模块可以由终端内部 处理消息的处理单元来实现, 通过本技术方案, 接收方能首先获知消息帧 的类型, 根据消息帧的类型来判断是否进行解析, 例如, 从省电角度考 虑, 对于某些不感兴趣的消息帧可以不做解析, 譬如如果一个移动终端设 备解析消息帧标识位, 发现这个帧是自己不感兴趣的, 就可以直接丟弃这 个消息帧的剩余部分不再解析, 有利于省电; 另外消息帧还为接收方提供 业务相关信息, 接收方根据业务相关信息判断是否需要连接发送方来开展 业务。
在上述技术方案中, 优选地, 所述消息帧为广播消息帧、 组播消息帧 或单播消息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不 同方式发送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的 地址就是广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中 的目的地址就是组播消息地址, 具体来说这个组播消息地址可以是一个组 的特殊标识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消 息帧为单播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 优选地, 所述消息帧为控制帧、 管理帧或公共动 作帧。 在该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形 式发送出来, 当然这个消息帧也可以以其它形式帧发送出来。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 息处理模块确定所述控制帧中媒介访问控制帧的帧头部分的一个或多个位 为所述消息帧标识位; 在所述消息帧为所述管理帧时, 所述消息处理模块 确定所述管理帧中媒介访问控制帧的帧头部分的一个或多个位为所述消, 帧标识位; 在所述消息帧为所述公共动作帧时, 所述消息处理模块确定所 述公共动作帧的媒介访问控制帧的帧头部分或帧体部分的一个或多个位为 所述消息帧标识位。 在该技术方案中, 消息标识位可能设置在管理帧和控 制帧的帧头部分, 而对于公共动作帧, 消息标识位可能设置在其帧头部分 或帧体部分, 接收方根据不同帧的结构, 能及时发现业务信息标识位的存 在以及确定帧的类型, 且帧长度均较短, 利于省电, 适合频繁收发。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 息处理模块确定所述控制帧的媒介访问控制帧的帧头部分的帧控制域中类 型子域和子类型子域的一个或多个位为所述消息帧标识位; 在所述消息帧 为所述管理帧时, 所述消息处理模块确定所述管理帧的媒介访问控制帧的 帧头部分的帧控制域中类型子域和子类型子域的一个或多个位为所述消息 帧标识位; 在所述消息帧为所述公共动作帧时, 所述消息处理模块确定所 述公共动作帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类 型子域的一个或多个位, 或帧体部分的秩序 1位置域中的一个或多个位或 其它位置秩序域中的一个或多个位为所述消息帧标识位。 在该技术方案 中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype两个子域 还存在着未定义的保留位, 接收方可以根据保留位的值来确定业务信息标 识位是否存在, 譬如, Type 的值可以取 " 11 " , subtype 的值可以取 " 0000 " 来标识帧的类型以及表示这个帧包含业务信息标识位, 当然 Type和 Subtype子域也可以取其它的值来标识帧的类型以及表示这个帧包 含业务信息标识位; 而对于公共动作帧, 取决于公共动作帧的具体结构, 接收方可以根据 type和 subtype子域或利用帧体部分位置的值, 确定业务 信息标识位是否存在, 方法与处理管理帧和控制帧的方法一样, 这里不再 赘述。
在上述技术方案中, 优选地, 在所述类型子域和子类型子域的值为第 一值时, 所述消息处理模块确定所述消息帧为邻居感知网络发现消息帧, 所述邻居感知网络发现消息帧用于同时进行设备发现和业务发现。 在该技 术方案中, 接收方根据标识位可以更具体地确定消息帧是 NAN 发现消息 帧, 同时确定这个 NAN 发现消息帧包含业务信息标识位, 譬如当接收方 解析到标识位的值为 " 110000" 时, 就知道这个帧为邻居感知网络发现消 息帧, 如果自己要进行邻居感知网络相关的业务就继续解析这个帧剩余的 部分, 反之则不解析这个帧剩余部分, 利于省电。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述消 息处理模块确定所述控制帧中媒介访问控制帧的帧头部分的一个或多个位 为所述业务信息标识位; 在所述消息帧为所述管理帧时, 所述消息处理模 块确定所述管理帧中媒介访问控制帧的帧头部分的一个或多个位为所述业 务信息标识位; 在所述消息帧为所述公共动作帧时, 所述消息处理模块确 定所述公共动作帧的媒介访问控制帧的帧体部分的一个或多个位为所述业 务信息标识位。 在该技术方案中, 基于不同帧结构的特点, 对于控制帧和 管理帧, 需要利用帧头部分记录业务相关信息, 譬如在控制帧和管理帧 中, 可以将业务信息标识位的位置设置在源地址的后面, 而对于公共动作 帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设置在帧体 部分秩序 1位置域, 当然也可以设置在其它秩序位置域, 接收方根据控制 帧和公共动作帧的特点, 从帧中相应的位置取得业务相关信息。
在上述技术方案中, 优选地, 在所述消息帧为所述公共动作帧时, 确 定所述公共动作帧的媒介访问控制帧的帧体部分的秩序 1位置域中的一个 或多个位或其它秩序位置域中的一个或多个位为所述业务信息标识位。 在 该技术方案中, 业务信息可以记录在帧体的部分, 帧体部分可以由很多域 组成, 可以将业务信息记录在帧体部分秩序 1位置域, 这样接收方只需解 析 Orderl 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关 联, 不用再解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设 置在帧体部分其它秩序位置域, 接收方解析后可以根据业务信息确定是否 需要开展业务。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包括业务类型标识位和业务详细信息标识位, 所述消息处理 模块根据所述业务类型标识位的值确定所述业务的类型, 根据所述业务详 细信息标识位的值确定所述业务的详细信息; 在所述消息帧为所述管理帧 时, 所述业务信息标识位包括业务类型标识位和业务详细信息标识位, 所 述消息处理模块根据所述业务类型标识位的值确定所述业务的类型, 根据 所述业务详细信息标识位的值确定所述业务的详细信息; 在所述消息帧为 所述公共动作帧时, 所述业务信息标识位包括所述业务类型标识位、 动作 帧标识位和所述业务详细信息标识位, 所述消息处理模块根据所述业务类 型标识位的值确定所述业务的类型, 根据所述动作帧标识位的值确定接收 方在接收到所述公共动作帧时可与发送方进行关联, 根据所述业务详细信 息标识位的值确定所述业务的详细信息。 在该技术方案中, 对于控制帧和 管理帧, 业务相关信息域由业务类型信息域和业务详细信息域两部分组 成, 譬如类型信息域标识业务的种类, 例如: 游戏、 聊天或是其它的业务 种类, 接收方根据业务详细信息域确定业务类型种类里面的哪一种具体业 务, 例如详细信息可以是游戏里面的 CS 游戏, 也可包含 CS 游戏的其它 信息, 例如游戏等级等信息, 业务类型信息域和业务详细信息域可以是业 务信息域的子域; 对于公共动作帧, 包含了业务类型信息域, 业务详细信 息域以及动作帧信息域, 其中, 业务类型信息域和业务详细信息域与在管 理帧和控制帧的作用一样, 这里不再赘述, 接收方根据动作帧信息域确定 这个帧是 NAN发现消息帧。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特位, 所述业务详细信息标识位包含所述业务信息标识位 的其余比特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特 位, 所述业务详细信息标识位包含所述业务信息标识位的其余比特位; 在 所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它 个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位 包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信 息标识位的 6 个或其它个数字节。 在该技术方案中, 在控制帧和管理帧 中, 可以用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战 争 游 戏 这 个 大 的 类 型 , 用 值 为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信息, 当然 也可以用其它的比特位数来标识业务信息类型以及业务详细信息; 在动作 帧中, 业务类型信息和业务详细信息的标识方法与在管理帧和控制帧中一 样, 这里不再赘述, 同时动作帧信息域的值设置为 "00000111 " 时标识这 个帧为邻居感知网络发现消息帧, 当然也可以将动作信息域的值设置为其 它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 优选地, 所述业务为所述消息帧的发送方当前或 其它时间进行的业务。 在该技术方案中, 接收方可以从消息帧中解析出发 送方的当前业务或是其他时间进行的业务, 并根据自身需要选择是否开展 该业务, 这样接收方解析这个数据后, 就能够知道当前或将要进行的业 务, 便于快速与发送方建立关联。
本发明还提供一种数据通信方法, 包括: 接收消息帧, 所述消息帧中 包括消息帧标识位和业务信息标识位; 根据所述消息帧标识位的值确定所 述消息帧的类型以及确定所述消息帧中包含所述业务信息标识位, 以及根 据所述业务信息标识位的值确定业务的相关信息。 在该技术方案中, 接收 方能首先获知消息帧的类型, 根据消息帧的类型来判断是否进行解析, 例 如, 从省电角度考虑, 对于某些不感兴趣的消息帧可以不做解析, 譬如如 果一个移动终端设备解析消息帧标识位, 发现这个帧是自己不感兴趣的, 就可以直接丟弃这个消息帧的剩余部分不再解析, 有利于省电; 另外消息 帧还为接收方提供业务相关信息, 接收方根据业务相关信息判断是否需要 连接发送方来开展业务。
在上述技术方案中, 优选地, 所述消息帧为广播消息帧、 组播消息帧 或单播消息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不 同方式发送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的 地址就是广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中 的目的地址就是组播消息地址, 具体来说这个组播消息地址可以是一个组 的特殊标识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消 息帧为单播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 优选地, 所述消息帧为控制帧、 管理帧或公共动 作帧。 在该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形 式发送出来, 当然这个消息帧也可以以其它形式帧发送出来。
在上述技术方案中, 优选地, 还包括: 在所述消息帧为所述控制帧 时, 确定所述控制帧中媒介访问控制帧的帧头部分的一个或多个位为所述 消息帧标识位; 在所述消息帧为所述管理帧时, 确定所述管理帧中媒介访 问控制帧的帧头部分的一个或多个位为所述消息帧标识位; 在所述消息帧 为所述公共动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧头部分 或帧体部分的一个或多个位为所述消息帧标识位。 在该技术方案中, 消息 标识位可能设置在管理帧和控制帧的帧头部分, 而对于公共动作帧, 消息 标识位可能设置在其帧头部分或帧体部分, 接收方根据不同帧的结构, 能 及时发现业务信息标识位的存在以及确定帧的类型, 且帧长度均较短, 利 于省电, 适合频繁收发。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 确定所 述控制帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子 域的一个或多个位为所述消息帧标识位; 在所述消息帧为所述管理帧时, 确定所述管理帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子 类型子域的一个或多个位为所述消息帧标识位; 在所述消, 帧为所述公共 动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧头部分的帧控制域 中类型子域和子类型子域的一个或多个位, 或帧体部分的秩序 1位置域中 的一个或多个位或其它秩序位置域中的一个或多个位为所述消息帧标识 位。 在该技术方案中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype 两个子域还存在着未定义的保留位, 接收方可以根据保留位的值 来确定业务信息标识位是否存在, 譬如, Type 的值可以取 " 11 " , subtype 的值可以取 "0000" 来标识帧的类型以及表示这个帧包含业务信 息标识位, 当然 Type 和 Subtype 子域也可以取其它的值来标识帧的类型 以及表示这个帧包含业务信息标识位; 而对于公共动作帧, 取决于公共动 作帧的具体结构, 接收方可以根据 type和 subtype子域或利用帧体部分位 置的值, 确定业务信息标识位是否存在, 方法与处理管理帧和控制帧的方 法一样, 这里不再赘述。
在上述技术方案中, 优选地, 还包括: 在所述类型子域和子类型子域 的值为第一值时, 确定所述消息帧为邻居感知网络发现消息帧, 所述邻居 感知网络发现消息帧用于同时进行设备发现和业务发现。 在该技术方案 中, 接收方根据标识位可以更具体地确定消息帧是 NAN 发现消息帧, 同 时确定这个 NAN 发现消息帧包含业务信息标识位, 譬如当接收方解析到 标识位的值为 " 1 10000" 时, 就知道这个帧为邻居感知网络发现消息帧, 如果自己要进行邻居感知网络相关的业务就继续解析这个帧剩余的部分, 反之则不解析这个帧剩余部分, 利于省电。
在上述技术方案中, 优选地, 还包括: 在所述消息帧为所述控制帧 时, 确定所述控制帧中媒介访问控制帧的帧头部分的一个或多个位为所述 业务信息标识位; 在所述消息帧为所述管理帧时, 确定所述管理帧中媒介 访问控制帧的帧头部分的一个或多个位为所述业务信息标识位; 在所述;肖 息帧为所述公共动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧体 部分的一个或多个位为所述业务信息标识位。 在该技术方案中, 基于不同 帧结构的特点, 对于控制帧和管理帧, 需要利用帧头部分记录业务相关信 息, 譬如在控制帧和管理帧中, 可以将业务信息标识位的位置设置在源地 址的后面, 而对于公共动作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设置在帧体部分秩序 1位置域, 当然也可以设置在其它秩 序位置域, 接收方根据控制帧和公共动作帧的特点, 从帧中相应的位置取 得业务相关信息。
在上述技术方案中, 优选地, 在所述消息帧为所述公共动作帧时, 确 定所述公共动作帧的媒介访问控制帧的帧体部分的秩序 1位置域中的一个 或多个位或其它秩序位置域中的一个或多个位为所述业务信息标识位。 在 该技术方案中, 业务信息可以记录在帧体的部分, 帧体部分可以由很多域 组成, 可以将业务信息记录在帧体部分秩序 1位置域, 这样接收方只需解 析 Orderl 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关 联, 不用再解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设 置在帧体部分其它秩序位置域, 接收方解析后可以根据业务信息确定是否 需要开展业务。
在上述技术方案中, 优选地, 所述根据所述业务信息标识位的值确定 业务的相关信息包括: 在所述消息帧为所述控制帧时, 所述业务信息标识 位包括业务类型标识位和业务详细信息标识位, 根据所述业务类型标识位 的值确定所述业务的类型, 根据所述业务详细信息标识位的值确定所述业 务的详细信息; 在所述消息帧为所述管理帧时, 所述业务信息标识位包括 业务类型标识位和业务详细信息标识位, 根据所述业务类型标识位的值确 定所述业务的类型, 根据所述业务详细信息标识位的值确定所述业务的详 细信息; 在所述消息帧为所述公共动作帧时, 所述业务信息标识位包括所 述业务类型标识位、 动作帧标识位和所述业务详细信息标识位, 根据所述 业务类型标识位的值确定所述业务的类型, 根据所述动作帧标识位的值确 定接收方在接收到所述公共动作帧时可与发送方进行关联, 根据所述业务 详细信息标识位的值确定所述业务的详细信息。 在该技术方案中, 对于控 制帧和管理帧, 业务相关信息域由业务类型信息域和业务详细信息域两部 分组成, 譬如类型信息域标识业务的种类, 例如: 游戏、 聊天或是其它的 业务种类, 接收方根据业务详细信息域确定业务类型种类里面的哪一种具 体业务, 例如详细信息可以是游戏里面的 CS 游戏, 也可包含 CS 游戏的 其它信息, 例如游戏等级等信息, 业务类型信息域和业务详细信息域可以 是业务信息域的子域; 对于公共动作帧, 包含了业务类型信息域, 业务详 细信息域以及动作帧信息域, 其中, 业务类型信息域和业务详细信息域与 在管理帧和控制帧的作用一样, 这里不再赘述, 接收方根据动作帧信息域 确定这个帧是 NAN发现消息帧。
在上述技术方案中, 优选地, 在所述消息帧为所述控制帧时, 所述业 务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特位, 所述业务详细信息标识位包含所述业务信息标识位 的其余比特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它位数比特 位, 所述业务详细信息标识位包含所述业务信息标识位的其余比特位; 在 所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它 个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位 包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信 息标识位的 6 个或其它个数字节。 在该技术方案中, 在控制帧和管理帧 中, 可以用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战 争 游 戏 这 个 大 的 类 型 , 用 值 为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信息, 当然 也可以用其它的比特位数来标识业务信息类型以及业务详细信息; 在动作 帧中, 业务类型信息和业务详细信息的标识方法与在管理帧和控制帧中一 样, 这里不再赘述, 同时动作帧信息域的值设置为 "00000111 " 时标识这 个帧为邻居感知网络发现消息帧, 当然也可以将动作信息域的值设置为其 它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 优选地, 所述业务为所述消息帧的发送方当前或 其它时间进行的业务。 在该技术方案中, 接收方可以从消息帧中解析出发 送方的当前业务或是其他时间进行的业务, 并根据自身需要选择是否开展 该业务, 这样接收方解析这个数据后, 就能够知道当前或将要进行的业 务, 便于快速与发送方建立关联。
通过以上技术方案, 可以实现数据通信装置和数据通信方法, 使得设 备在发现的过程中, 消息发送的时间不至于过长, 减少电量的消耗, 以及 能够在建立关联之前, 就能够知道关联对象是否与自己有同样的爱好或是 业务, 以避免进行不必要的连接。 附图说明
图 1是根据本发明的一个实施例的数据通信装置的框图;
图 2是根据本发明的一个实施例的数据通信方法的流程图;
图 3是根据本发明的一个实施例的数据通信装置的框图;
图 4是根据本发明的一个实施例的数据通信方法的流程图;
图 5是根据本发明的一个实施例的数据通信方法中的帧结构图; 图 6是根据本发明的一个实施例的数据通信方法中的帧结构图; 图 7是根据本发明的一个实施例的数据通信方法中的帧结构图; 图 8是根据本发明的一个实施例的数据通信方法中的帧结构图。 具体实施方式
为了能够更清楚地理解本发明的上述目的、 特征和优点, 下面结合附 图和具体实施方式对本发明进行进一步的详细描述。 需要说明的是, 在不 沖突的情况下, 本申请的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明, 但是, 本发明还可以采用其它不同于在此描述的其它方式来实施, 因此, 本发明 的保护范围并不受下面公开的具体实施例的限制。
图 1是根据本发明的一个实施例的数据通信装置的框图。
如图 1 所示, 本发明提供一种数据通信装置 100, 包括: 消息生成模 块 102 , 生成消息帧, 所述消息帧中包括消息帧标识位和业务信息标识 位, 所述消息帧标识位的值标识所述消息帧的类型以及表示所述消息帧中 包括所述业务信息标识位, 所述业务信息标识位的值表示业务的相关信 息; 数据交互模块 104 , 发送所述消息帧。 在该技术方案中, 数据通信装 置作为终端, 数据交互模块 104可以通过终端的信号收发装置以及天线等 实现, 消息生成模块 102 可以由终端内部生成消息的处理单元来实现, 通 过本技术方案, 利用消息帧来进行业务相关信息的通知, 并通知接收方消 息帧的类型, 使得接收方可以根据消息帧的类型来判断是否进行解析, 例 如, 从省电角度考虑, 对于某些不感兴趣的消息帧可以不做解析, 譬如如 果一个移动终端设备解析消息帧标识位, 发现这个帧是自己不感兴趣的, 就可以直接丟弃这个消息帧的剩余部分不再解析, 有利于省电; 另外消息 帧还为接收方提供业务相关信息, 供接收方根据业务相关信息判断是否需 要连接发送方来开展业务。
在上述技术方案中, 所述消息帧为广播消息帧、 组播消息帧或单播消 息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不同方式发 送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的地址就是 广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中的目的地 址就是组播消息地址, 具体来说这个组播消息地址可以是一个组的特殊标 识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消息帧为单 播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说 这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 所述消息帧为控制帧、 管理帧或公共动作帧。 在 该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形式发送出 来, 当然这个消息帧也可以以其它形式帧发送出来。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息帧标识 位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个位; 在所述 消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧中媒介访问控 制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共动作帧时, 所 述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头部分或帧体 部分的一个或多个位。 在该技术方案中, 可以将消息标识位设置在管理帧 和控制帧的帧头部分, 而对于公共动作帧, 可以将消息标识位设置在其帧 头部分或帧体部分, 皆能有效地指示出业务信息标识位的存在以及表示出 帧的类型, 且帧长度均较短, 利于省电, 适合频繁收发。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息帧标识 位包括所述控制帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和 子类型子域的一个或多个位; 在所述消息帧为所述管理帧时, 所述消息帧 标识位包括所述管理帧的媒介访问控制帧的帧头部分的帧控制域中类型子 域和子类型子域的一个或多个位; 在所述消息帧为所述公共动作帧时, 所 述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头部分的帧控 制域中类型子域和子类型子域的一个或多个位, 或帧体部分的秩序 1位置 域中的一个或多个位或其它位置秩序域中的一个或多个位。 在该技术方案 中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype两个子域 还存在着未定义的保留位, 可以利用保留位的值来指示业务信息标识位是 否存在, 譬如, Type 的值可以取 " 11 " , subtype 的值可以取 "0000" 来 标识帧的类型以及表示这个帧包含业务信息标识位, 当然 Type和 Subtype 子域也可以取其它的值来标识帧的类型以及表示这个帧包含业务信息标识 位; 而对于公共动作帧, 无论是使用 type和 subtype子域还是利用帧体部 分位置, 都是可以的, 方法与管理帧和控制帧的方法一样, 这里不再赘 述。
在上述技术方案中, 所述类型子域和子类型子域的值为第一值时表示 所述消息帧为邻居感知网络发现消息帧, 所述邻居感知网络发现消息帧用 于同时进行设备发现和业务发现。 在该技术方案中, 标识位可以更具体地 标识出消息帧是 NAN发现消息帧, 同时表示这个 NAN发现消息帧包含 业务信息标识位, 譬如当接收方解析到标识位的值为 " 1 10000" 时, 就知 道这个帧为邻居感知网络发现消息帧, 如果自己要进行邻居感知网络相关 的业务就继续解析这个帧剩余的部分, 反之则不解析这个帧剩余部分, 利 于省电。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个位; 在所 述消息帧为所述管理帧时, 所述业务信息标识位包括所述管理帧中媒介访 问控制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共动作帧 时, 所述业务信息标识位包括所述公共动作帧的媒介访问控制帧的帧体部 分的一个或多个位。 在该技术方案中, 基于不同帧结构的特点, 对于控制 帧和管理帧, 需要利用帧头部分记录业务相关信息, 譬如在控制帧和管理 帧中, 可以将业务信息标识位的位置设置在源地址的后面, 而对于公共动 作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设置在帧 体部分秩序 1位置域, 当然也可以设置在其它秩序位置域。
在上述技术方案中, 在所述消息帧为所述公共动作帧时, 所述业务信 息标识位包括所述公共动作帧的媒介访问控制帧的帧体部分的秩序 1位置 域中的一个或多个位或其它秩序位置域中的一个或多个位。 在该技术方案 中, 业务信息可以记录在帧体的部分, 帧体部分可以由 4艮多域组成, 可以 将业务信息记录在帧体部分秩序 1 位置域, 这样接收方只需解析 Orderl 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关联, 不用再 解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设置在帧体部 分其它秩序位置域。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包括业务类型标识位和业务详细信息标识位, 所述业务类型标识位的 值表示所述业务的类型, 所述业务详细信息标识位的值表示所述业务的详 细信息; 在所述消息帧为所述管理帧时, 所述业务信息标识位包括业务类 型标识位和业务详细信息标识位, 所述业务类型标识位的值表示所述业务 的类型, 所述业务详细信息标识位的值表示所述业务的详细信息; 在所述 消息帧为所述公共动作帧时, 所述业务信息标识位包括所述业务类型标识 位、 动作帧标识位和所述业务详细信息标识位, 所述业务类型标识位的值 表示所述业务的类型, 所述动作帧标识位的值表示接收方在接收到所述公 共动作帧时可与发送方进行关联, 所述业务详细信息标识位的值表示所述 业务的详细信息。 在该技术方案中, 对于控制帧和管理帧, 业务相关信息 域由业务类型信息域和业务详细信息域两部分组成, 譬如类型信息域标识 业务的种类, 例如: 游戏、 聊天或是其它的业务种类, 业务详细信息域标 识业务类型种类里面的哪一种具体业务, 例如详细信息可以是游戏里面的 CS游戏, 也可包含 CS游戏的其它信息, 例如游戏等级等信息, 业务类型 信息域和业务详细信息域可以是业务信息域的子域; 对于公共动作帧, 包 含了业务类型信息域, 业务详细信息域以及动作帧信息域, 其中, 业务类 型信息域和业务详细信息域与在管理帧和控制帧的作用一样, 这里不再赘 述, 动作帧信息域用来标识这个帧是 NAN发现消息帧。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它 位数比特位, 所述业务详细信息标识位包含所述业务信息标识位的其余比 特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或 其它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述 业务详细信息标识位包含所述业务信息标识位的其余比特位; 在所述消息 帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它个数字 节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信息标识 位的 6个或其它个数字节。 在该技术方案中, 在控制帧和管理帧中, 可以 用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战争游戏这 识游戏的具体信息为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏 等级等信息, 当然也可以用其它的比特位数来标识业务信息类型以及业务 详细信息; 在动作帧中, 业务类型信息和业务详细信息的标识方法与在管 理帧和控制帧中一样, 这里不再赘述, 同时动作帧信息域的值设置为 "000001 11 " 时标识这个帧为邻居感知网络发现消息帧, 当然也可以将动 作信息域的值设置为其它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 所述业务为所述数据通信装置当前或其它时间进 行的业务。 在该技术方案中, 消息帧中可以记录当前业务的信息, 也可以 记录其他时间进行的业务, 以通知给接收方, 这样当其它潜在用户解析这 个数据后, 就能够知道当前或将要进行的业务, 便于快速与发送方建立关 联。
图 2是根据本发明的一个实施例的数据通信方法的流程图。
如图 2所示, 本发明还提供一种数据通信方法, 包括: 步骤 202 , 生 成消息帧, 所述消息帧中包括消息帧标识位和业务信息标识位, 所述消息 帧标识位的值标识所述消息帧的类型以及表示所述消息帧的类型中包含所 述业务信息标识位, 所述业务信息标识位的值表示业务的相关信息; 步骤 204 , 发送所述消息帧。 在该技术方案中, 利用消息帧来进行业务相关信 息的通知, 并通知接收方消息帧的类型, 使得接收方可以根据消息帧的类 型来判断是否进行解析, 例如, 从省电角度考虑, 对于某些不感兴趣的消 息帧可以不做解析, 譬如如果一个移动终端设备解析消息帧标识位, 发现 这个帧是自己不感兴趣的, 就可以直接丟弃这个消息帧的剩余部分不再解 析, 有利于省电; 另外消息帧还为接收方提供业务相关信息, 供接收方根 据业务相关信息判断是否需要连接发送方来开展业务。
在上述技术方案中, 所述消息帧为广播消息帧、 组播消息帧或单播消 息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不同方式发 送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的地址就是 广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中的目的地 址就是组播消息地址, 具体来说这个组播消息地址可以是一个组的特殊标 识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消息帧为单 播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说 这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 所述消息帧为控制帧、 管理帧或公共动作帧。 在 该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形式发送出 来, 当然这个消息帧也可以以其它形式帧发送出来。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息帧标识 位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个位; 在所述 消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧中媒介访问控 制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共动作帧时, 所 述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头部分或帧体 部分的一个或多个位。 在该技术方案中, 可以将消息标识位设置在管理帧 和控制帧的帧头部分, 而对于公共动作帧, 可以将消息标识位设置在其帧 头部分或帧体部分, 皆能有效地指示出业务信息标识位的存在以及表示出 帧的类型, 且帧长度均较短, 利于省电, 适合频繁收发。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息帧标识 位包括所述控制帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和 子类型子域的一个或多个位; 在所述消息帧为所述管理帧时, 所述消息帧 标识位包括所述管理帧的媒介访问控制帧的帧头部分的帧控制域中类型子 域和子类型子域的一个或多个位; 在所述消息帧为所述所述公共动作帧 时, 所述消息帧标识位包括所述公共动作帧的媒介访问控制帧的帧头部分 的帧控制域中类型子域和子类型子域的一个或多个位, 或帧体部分的秩序
1 位置域中的一个或多个位或其它位置秩序域中的一个或多个位。 在该技 术方案中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype两 个子域还存在着未定义的保留位, 可以利用保留位的值来指示业务信息标 识位是否存在, 譬如, Type 的值可以取 " 11 " , subtype 的值可以取 " 0000 " 来标识帧的类型以及表示这个帧包含业务信息标识位, 当然 Type和 Subtype子域也可以取其它的值来标识帧的类型以及表示这个帧包 含业务信息标识位; 而对于公共动作帧, 无论是使用 type和 subtype子域 还是利用帧体部分位置, 都是可以的, 方法与管理帧和控制帧的方法一 样, 这里不再赘述。
在上述技术方案中, 所述类型子域和子类型子域的值为第一值时表示 所述消息帧为邻居感知网络发现消息帧, 所述邻居感知网络发现消息帧用 于同时进行设备发现和业务发现。 在该技术方案中, 标识位可以更具体地 标识出消息帧是 NAN发现消息帧, 同时表示这个 NAN发现消息帧包含 业务信息标识位, 譬如当接收方解析到标识位的值为 " 1 10000" 时, 就知 道这个帧为邻居感知网络发现消息帧, 如果自己要进行邻居感知网络相关 的业务就继续解析这个帧剩余的部分, 反之则不解析这个帧剩余部分, 利 于省电。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包括所述控制帧中媒介访问控制帧的帧头部分的一个或多个位; 在所 述消息帧为所述管理帧时, 所述业务信息标识位包括所述管理帧中媒介访 问控制帧的帧头部分的一个或多个位; 在所述消息帧为所述公共动作帧 时, 所述业务信息标识位包括所述公共动作帧的媒介访问控制帧的帧体部 分的一个或多个位。 在该技术方案中, 基于不同帧结构的特点, 对于控制 帧和管理帧, 需要利用帧头部分记录业务相关信息, 譬如在控制帧和管理 帧中, 可以将业务信息标识位的位置设置在源地址的后面, 而对于公共动 作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设置在帧 体部分秩序 1位置域, 当然也可以设置在其它秩序位置域。
在上述技术方案中, 在所述消息帧为所述公共动作帧时, 所述业务信 息标识位包括所述公共动作帧的媒介访问控制帧的帧体部分的秩序 1位置 域中的一个或多个位或其它秩序位置域中的一个或多个位。 在该技术方案 中, 业务信息可以记录在帧体的部分, 帧体部分可以由 4艮多域组成, 可以 将业务信息记录在帧体部分秩序 1 位置域, 这样接收方只需解析 Orderl 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关联, 不用再 解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设置在帧体部 分其它秩序位置域。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包括业务类型标识位和业务详细信息标识位, 所述业务类型标识位的 值表示所述业务的类型, 所述业务详细信息标识位的值表示所述业务的详 细信息; 在所述消息帧为所述管理帧时, 所述业务信息标识位包括业务类 型标识位和业务详细信息标识位, 所述业务类型标识位的值表示所述业务 的类型, 所述业务详细信息标识位的值表示所述业务的详细信息; 在所述 消息帧为所述公共动作帧时, 所述业务信息标识位包括所述业务类型标识 位、 动作帧标识位和所述业务详细信息标识位, 所述业务类型标识位的值 表示所述业务的类型, 所述动作帧标识位的值表示接收方在接收到所述公 共动作帧时可与发送方进行关联, 所述业务详细信息标识位的值表示所述 业务的详细信息。 在该技术方案中, 对于控制帧和管理帧, 业务相关信息 域由业务类型信息域和业务详细信息域两部分组成, 譬如类型信息域标识 业务的种类, 例如: 游戏、 聊天或是其它的业务种类, 业务详细信息域标 识业务类型种类里面的哪一种具体业务, 例如详细信息可以是游戏里面的 CS游戏, 也可包含 CS游戏的其它信息, 例如游戏等级等信息, 业务类型 信息域和业务详细信息域可以是业务信息域的子域; 对于公共动作帧, 包 含了业务类型信息域, 业务详细信息域以及动作帧信息域, 其中, 业务类 型信息域和业务详细信息域与在管理帧和控制帧的作用一样, 这里不再赘 述, 动作帧信息域用来标识这个帧是 NAN发现消息帧。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它 位数比特位, 所述业务详细信息标识位包含所述业务信息标识位的其余比 特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或 其它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述 业务详细信息标识位包含所述业务信息标识位的其余比特位; 在所述消息 帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它个数字 节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信息标识 位的 6个或其它个数字节。 在该技术方案中, 在控制帧和管理帧中, 可以 用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战争游戏这 识游戏的具体信息为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏 等级等信息, 当然也可以用其它的比特位数来标识业务信息类型以及业务 详细信息; 在动作帧中, 业务类型信息和业务详细信息的标识方法与在管 理帧和控制帧中一样, 这里不再赘述, 同时动作帧信息域的值设置为 "000001 11 " 时标识这个帧为邻居感知网络发现消息帧, 当然也可以将动 作信息域的值设置为其它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 所述业务为所述消息帧的发送方当前或其它时间 进行的业务。 在该技术方案中, 消息帧中可以记录当前业务的信息, 也可 以记录其他时间进行的业务, 以通知给接收方, 这样当其它潜在用户解析 这个数据后, 就能够知道当前或将要进行的业务, 便于快速与发送方建立 关联。
图 3是根据本发明的一个实施例的数据通信装置的框图。
如图 3 所示, 本发明还提供一种数据通信装置 300 , 包括: 数据交互 模块 302 , 接收消息帧, 所述消息帧中包括消息帧标识位和业务信息标识 位; 消息处理模块 304 , 根据所述消息帧标识位的值确定所述消息帧的类 型以及确定所述消息帧中包含所述业务信息标识位, 以及根据所述业务信 息标识位的值确定业务的相关信息。 在该技术方案中, 数据通信装置作为 终端, 数据交互模块 302可以通过终端的信号收发装置以及天线等实现, 消息处理模块 304可以由终端内部处理消息的处理单元来实现, 通过本技 术方案, 接收方能首先获知消息帧的类型, 根据消息帧的类型来判断是否 进行解析, 例如, 从省电角度考虑, 对于某些不感兴趣的消息帧可以不做 解析, 譬如如果一个移动终端设备解析消息帧标识位, 发现这个帧是自己 不感兴趣的, 就可以直接丟弃这个消息帧的剩余部分不再解析, 有利于省 电; 另外消息帧还为接收方提供业务相关信息, 接收方根据业务相关信息 判断是否需要连接发送方来开展业务。
在上述技术方案中, 所述消息帧为广播消息帧、 组播消息帧或单播消 息帧。 在该技术方案中, 接收方可以接收通过广播、 组播、 单播等不同方 式发送的消息帧, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的 地址就是广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中 的目的地址就是组播消息地址, 具体来说这个组播消息地址可以是一个组 的特殊标识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消 息帧为单播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 所述消息帧为控制帧、 管理帧或公共动作帧。 在 该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形式发送出 来, 当然这个消息帧也可以以其它形式帧发送出来。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息处理模 块 304确定所述控制帧中媒介访问控制帧的帧头部分的一个或多个位为所 述消息帧标识位; 在所述消息帧为所述管理帧时, 所述消息处理模块 304 确定所述管理帧中媒介访问控制帧的帧头部分的一个或多个位为所述消, 帧标识位; 在所述消息帧为所述公共动作帧时, 所述消息处理模块 304确 定所述公共动作帧的媒介访问控制帧的帧头部分或帧体部分的一个或多个 位为所述消息帧标识位。 在该技术方案中, 消息标识位可能设置在管理帧 和控制帧的帧头部分, 而对于公共动作帧, 消息标识位可能设置在其帧头 部分或帧体部分, 接收方根据不同帧的结构, 能及时发现业务信息标识位 的存在以及确定帧的类型, 且帧长度均较短, 利于省电, 适合频繁收发。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息处理模 块 304确定所述控制帧的媒介访问控制帧的帧头部分的帧控制域中类型子 域和子类型子域的一个或多个位为所述消息帧标识位; 在所述消, 帧为所 述管理帧时, 所述消息处理模块 304确定所述管理帧的媒介访问控制帧的 帧头部分的帧控制域中类型子域和子类型子域的一个或多个位为所述消息 帧标识位; 在所述消息帧为所述公共动作帧时, 所述消息处理模块 304确 定所述公共动作帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和 子类型子域的一个或多个位, 或帧体部分的秩序 1位置域中的一个或多个 位或其它位置秩序域中的一个或多个位为所述消息帧标识位。 在该技术方 案中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype两个子 域还存在着未定义的保留位, 接收方可以根据保留位的值来确定业务信息 标识位是否存在, 譬如, Type 的值可以取 " 11 " , subtype 的值可以取 " 0000 " 来标识帧的类型以及表示这个帧包含业务信息标识位, 当然 Type和 Subtype子域也可以取其它的值来标识帧的类型以及表示这个帧包 含业务信息标识位; 而对于公共动作帧, 取决于公共动作帧的具体结构, 接收方可以根据 type和 subtype子域或利用帧体部分位置的值, 确定业务 信息标识位是否存在, 方法与处理管理帧和控制帧的方法一样, 这里不再 赘述。
在上述技术方案中, 在所述类型子域和子类型子域的值为第一值时, 所述消息处理模块 304确定所述消息帧为邻居感知网络发现消息帧, 所述 邻居感知网络发现消息帧用于同时进行设备发现和业务发现。 在该技术方 案中, 接收方根据标识位可以更具体地确定消息帧是 NAN 发现消息帧, 同时确定这个 NAN 发现消息帧包含业务信息标识位, 譬如当接收方解析 到标识位的值为 " 110000" 时, 就知道这个帧为邻居感知网络发现消息 帧, 如果自己要进行邻居感知网络相关的业务就继续解析这个帧剩余的部 分, 反之则不解析这个帧剩余部分, 利于省电。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述消息处理模 块 304确定所述控制帧中媒介访问控制帧的帧头部分的一个或多个位为所 述业务信息标识位; 在所述消息帧为所述管理帧时, 所述消息处理模块 304 确定所述管理帧中媒介访问控制帧的帧头部分的一个或多个位为所述 业务信息标识位; 在所述消息帧为所述公共动作帧时, 所述消息处理模块 304 确定所述公共动作帧的媒介访问控制帧的帧体部分的一个或多个位为 所述业务信息标识位。 在该技术方案中, 基于不同帧结构的特点, 对于控 制帧和管理帧, 需要利用帧头部分记录业务相关信息, 譬如在控制帧和管 理帧中, 可以将业务信息标识位的位置设置在源地址的后面, 而对于公共 动作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以将其设置在 帧体部分秩序 1位置域, 当然也可以设置在其它秩序位置域, 接收方根据 控制帧和公共动作帧的特点, 从帧中相应的位置取得业务相关信息。
在上述技术方案中, 在所述消息帧为所述公共动作帧时, 确定所述公 共动作帧的媒介访问控制帧的帧体部分的秩序 1位置域中的一个或多个位 或其它秩序位置域中的一个或多个位为所述业务信息标识位。 在该技术方 案中, 业务信息可以记录在帧体的部分, 帧体部分可以由很多域组成, 可 以将业务信息记录在帧体部分秩序 1位置域, 这样接收方只需解析 Order 1 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关联, 不用再 解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设置在帧体部 分其它秩序位置域, 接收方解析后可以根据业务信息确定是否需要开展业 务。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包括业务类型标识位和业务详细信息标识位, 所述消息处理模块 304 根据所述业务类型标识位的值确定所述业务的类型, 根据所述业务详细信 息标识位的值确定所述业务的详细信息; 在所述消息帧为所述管理帧时, 所述业务信息标识位包括业务类型标识位和业务详细信息标识位, 所述消 息处理模块 304根据所述业务类型标识位的值确定所述业务的类型, 根据 所述业务详细信息标识位的值确定所述业务的详细信息; 在所述消息帧为 所述公共动作帧时, 所述业务信息标识位包括所述业务类型标识位、 动作 帧标识位和所述业务详细信息标识位, 所述消息处理模块 304根据所述业 务类型标识位的值确定所述业务的类型, 根据所述动作帧标识位的值确定 接收方在接收到所述公共动作帧时可与发送方进行关联, 根据所述业务详 细信息标识位的值确定所述业务的详细信息。 在该技术方案中, 对于控制 帧和管理帧, 业务相关信息域由业务类型信息域和业务详细信息域两部分 组成, 譬如类型信息域标识业务的种类, 例如: 游戏、 聊天或是其它的业 务种类, 接收方根据业务详细信息域确定业务类型种类里面的哪一种具体 业务, 例如详细信息可以是游戏里面的 CS 游戏, 也可包含 CS 游戏的其 它信息, 例如游戏等级等信息, 业务类型信息域和业务详细信息域可以是 业务信息域的子域; 对于公共动作帧, 包含了业务类型信息域, 业务详细 信息域以及动作帧信息域, 其中, 业务类型信息域和业务详细信息域与在 管理帧和控制帧的作用一样, 这里不再赘述, 接收方根据动作帧信息域确 定这个帧是 NAN发现消息帧。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它 位数比特位, 所述业务详细信息标识位包含所述业务信息标识位的其余比 特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或 其它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述 业务详细信息标识位包含所述业务信息标识位的其余比特位; 在所述消息 帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它个数字 节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信息标识 位的 6个或其它个数字节。 在该技术方案中, 在控制帧和管理帧中, 可以 用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战争游戏这 识游戏的具体信息为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏 等级等信息, 当然也可以用其它的比特位数来标识业务信息类型以及业务 详细信息; 在动作帧中, 业务类型信息和业务详细信息的标识方法与在管 理帧和控制帧中一样, 这里不再赘述, 同时动作帧信息域的值设置为 "000001 11 " 时标识这个帧为邻居感知网络发现消息帧, 当然也可以将动 作信息域的值设置为其它的值来标识这个帧为邻居感知网络发现消息帧。
在上述技术方案中, 所述业务为所述消息帧的发送方当前或其它时间 进行的业务。 在该技术方案中, 接收方可以从消息帧中解析出发送方的当 前业务或是其他时间进行的业务, 并根据自身需要选择是否开展该业务, 这样接收方解析这个数据后, 就能够知道当前或将要进行的业务, 便于快 速与发送方建立关联。
图 4是根据本发明的一个实施例的数据通信方法的流程图。
如图 4所示, 本发明还提供一种数据通信方法, 包括: 步骤 402 , 接 收消息帧, 所述消息帧中包括消息帧标识位和业务信息标识位; 步骤 404 , 根据所述消息帧标识位的值确定所述消息帧的类型以及确定所述消 息帧中包含所述业务信息标识位, 以及根据所述业务信息标识位的值确定 业务的相关信息。 在该技术方案中, 接收方能首先获知消息帧的类型, 根 据消息帧的类型来判断是否进行解析, 例如, 从省电角度考虑, 对于某些 不感兴趣的消息帧可以不做解析, 譬如如果一个移动终端设备解析消息帧 标识位, 发现这个帧是自己不感兴趣的, 就可以直接丟弃这个消息帧的剩 余部分不再解析, 有利于省电; 另外消息帧还为接收方提供业务相关信 息, 接收方根据业务相关信息判断是否需要连接发送方来开展业务。
在上述技术方案中, 所述消息帧为广播消息帧、 组播消息帧或单播消 息帧。 在该技术方案中, 消息帧可以通过广播、 组播、 单播等不同方式发 送出去, 如果消息帧为广播消息帧, 那么在广播消息帧中的目的地址就是 广播消息地址; 如果消息帧为组播消息帧, 那么在组播消息帧中的目的地 址就是组播消息地址, 具体来说这个组播消息地址可以是一个组的特殊标 识, 这个特殊标识可以是 48 比特位或是其它比特位数; 如果消息帧为单 播消息帧, 那么在单播消息帧中的目的地址就是单播消息地址, 具体来说 这个单播消息地址为某个终端设备的 MAC地址。
在上述技术方案中, 所述消息帧为控制帧、 管理帧或公共动作帧。 在 该技术方案中, 消息帧可以以控制帧、 管理帧或公共动作帧的形式发送出 来, 当然这个消息帧也可以以其它形式帧发送出来。
在上述技术方案中, 还包括: 在所述消息帧为所述控制帧时, 确定所 述控制帧中媒介访问控制帧的帧头部分的一个或多个位为所述消息帧标识 位; 在所述消息帧为所述管理帧时, 确定所述管理帧中媒介访问控制帧的 帧头部分的一个或多个位为所述消息帧标识位; 在所述消, 帧为所述公共 动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧头部分或帧体部分 的一个或多个位为所述消息帧标识位。 在该技术方案中, 消息标识位可能 设置在管理帧和控制帧的帧头部分, 而对于公共动作帧, 消息标识位可能 设置在其帧头部分或帧体部分, 接收方根据不同帧的结构, 能及时发现业 务信息标识位的存在以及确定帧的类型, 且帧长度均较短, 利于省电, 适 合频繁收发。
在上述技术方案中, 在所述消息帧为所述控制帧时, 确定所述控制帧 的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域的一个 或多个位为所述消息帧标识位; 在所述消息帧为所述管理帧时, 确定所述 管理帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域 的一个或多个位为所述消息帧标识位; 在所述消, ¾帧为所述公共动作帧 时, 确定所述公共动作帧的媒介访问控制帧的帧头部分的帧控制域中类型 子域和子类型子域的一个或多个位, 或帧体部分的秩序 1位置域中的一个 或多个位或其它秩序位置域中的一个或多个位为所述消息帧标识位。 在该 技术方案中, 对于控制帧和管理帧, 在 frame control域的 type和 subtype 两个子域还存在着未定义的保留位, 接收方可以根据保留位的值来确定业 务信息标识位是否存在, 譬如, Type 的值可以取 " 1 1 " , subtype 的值可 以取 "0000" 来标识帧的类型以及表示这个帧包含业务信息标识位, 当然 Type和 Subtype子域也可以取其它的值来标识帧的类型以及表示这个帧包 含业务信息标识位; 而对于公共动作帧, 取决于公共动作帧的具体结构, 接收方可以根据 type和 subtype子域或利用帧体部分位置的值, 确定业务 信息标识位是否存在, 方法与处理管理帧和控制帧的方法一样, 这里不再 赘述。
在上述技术方案中, 还包括: 在所述类型子域和子类型子域的值为第 一值时, 确定所述消息帧为邻居感知网络发现消息帧, 所述邻居感知网络 发现消息帧用于同时进行设备发现和业务发现。 在该技术方案中, 接收方 根据标识位可以更具体地确定消息帧是 NAN 发现消息帧, 同时确定这个 NAN 发现消息帧包含业务信息标识位, 譬如当接收方解析到标识位的值 为 " 110000" 时, 就知道这个帧为邻居感知网络发现消息帧, 如果自己要 进行邻居感知网络相关的业务就继续解析这个帧剩余的部分, 反之则不解 析这个帧剩余部分, 利于省电。 在上述技术方案中, 还包括: 在所述消息帧为所述控制帧时, 确定所 述控制帧中媒介访问控制帧的帧头部分的一个或多个位为所述业务信息标 识位; 在所述消息帧为所述管理帧时, 确定所述管理帧中媒介访问控制帧 的帧头部分的一个或多个位为所述业务信息标识位; 在所述消, 帧为所述 公共动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧体部分的一个 或多个位为所述业务信息标识位。 在该技术方案中, 基于不同帧结构的特 点, 对于控制帧和管理帧, 需要利用帧头部分记录业务相关信息, 譬如在 控制帧和管理帧中, 可以将业务信, 标识位的位置设置在源地址的后面, 而对于公共动作帧, 可以利用帧体部分来记录业务相关信息, 具体的可以 将其设置在帧体部分秩序 1位置域, 当然也可以设置在其它秩序位置域, 接收方根据控制帧和公共动作帧的特点, 从帧中相应的位置取得业务相关 信息。
在上述技术方案中, 在所述消息帧为所述公共动作帧时, 确定所述公 共动作帧的媒介访问控制帧的帧体部分的秩序 1位置域中的一个或多个位 或其它秩序位置域中的一个或多个位为所述业务信息标识位。 在该技术方 案中, 业务信息可以记录在帧体的部分, 帧体部分可以由很多域组成, 可 以将业务信息记录在帧体部分秩序 1位置域, 这样接收方只需解析 Order 1 域的信息之后, 看自己是否感兴趣, 如果感兴趣则与之建立关联, 不用再 解析这个帧的剩余部分, 有利于省电; 当然也可将业务信息设置在帧体部 分其它秩序位置域, 接收方解析后可以根据业务信息确定是否需要开展业 务。
在上述技术方案中, 所述步骤 404 包括: 在所述消息帧为所述控制帧 时, 所述业务信息标识位包括业务类型标识位和业务详细信息标识位, 根 据所述业务类型标识位的值确定所述业务的类型, 根据所述业务详细信息 标识位的值确定所述业务的详细信息; 在所述消息帧为所述管理帧时, 所 述业务信息标识位包括业务类型标识位和业务详细信息标识位, 根据所述 业务类型标识位的值确定所述业务的类型, 根据所述业务详细信息标识位 的值确定所述业务的详细信息; 在所述消息帧为所述公共动作帧时, 所述 业务信息标识位包括所述业务类型标识位、 动作帧标识位和所述业务详细 信息标识位, 根据所述业务类型标识位的值确定所述业务的类型, 根据所 述动作帧标识位的值确定接收方在接收到所述公共动作帧时可与发送方进 行关联, 根据所述业务详细信息标识位的值确定所述业务的详细信息。 在 该技术方案中, 对于控制帧和管理帧, 业务相关信息域由业务类型信息域 和业务详细信息域两部分组成, 譬如类型信息域标识业务的种类, 例如: 游戏、 聊天或是其它的业务种类, 接收方根据业务详细信息域确定业务类 型种类里面的哪一种具体业务, 例如详细信息可以是游戏里面的 CS 游 戏, 也可包含 CS 游戏的其它信息, 例如游戏等级等信息, 业务类型信息 域和业务详细信息域可以是业务信息域的子域; 对于公共动作帧, 包含了 业务类型信息域, 业务详细信息域以及动作帧信息域, 其中, 业务类型信 息域和业务详细信息域与在管理帧和控制帧的作用一样, 这里不再赘述, 接收方根据动作帧信息域确定这个帧是 NAN发现消息帧。
在上述技术方案中, 在所述消息帧为所述控制帧时, 所述业务信息标 识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8 个或其它 位数比特位, 所述业务详细信息标识位包含所述业务信息标识位的其余比 特位; 在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或 其它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述 业务详细信息标识位包含所述业务信息标识位的其余比特位; 在所述消息 帧为所述公共动作帧时, 所述业务信息标识位包含 10 个或其它个数字 节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述业务信息标识 位的 6个或其它个数字节。 在该技术方案中, 在控制帧和管理帧中, 可以 用 8个字节来标识业务信息类型, 例如用值 "00000000" 标识战争游戏这 识游戏的具体信息为 CS 游戏, 也可包含 CS 游戏的其它信息, 例如游戏 等级等信息, 当然也可以用其它的比特位数来标识业务信息类型以及业务 详细信息; 在动作帧中, 业务类型信息和业务详细信息的标识方法与在管 理帧和控制帧中一样, 这里不再赘述, 同时动作帧信息域的值设置为 "000001 11 " 时标识这个帧为邻居感知网络发现消息帧, 当然也可以将动 作信息域的值设置为其它的值来标识这个帧为邻居感知网络发现消息帧。 在上述技术方案中, 所述业务为所述消息帧的发送方当前或其它时间 进行的业务。 在该技术方案中, 接收方可以从消息帧中解析出发送方的当 前业务或是其他时间进行的业务, 并根据自身需要选择是否开展该业务, 这样接收方解析这个数据后, 就能够知道当前或将要进行的业务, 便于快 速与发送方建立关联。
在本发明的一个实施例中, 为了在设备发现过程中, 既能省电又能够 快速的建立关联, 本实施例中提供了数据通信的技术方案中, 其中涉及两 种帧的结构, 定义为新的发现机制, 这里称为混合发现机制, 同时进行设 备发现和业务发现。
根据本实施例的技术方案, 在发现过程中, 能够知道设备是支持
NAN功能的设备, 又能够知道设备关联之后将要进行的业务。
第一种帧的结构, 具体如图 5所示。
第一种帧为控制帧, Al , A2 分别为目的地址和源地址, 其中 A3 为 新增加的域——业务信息域, 定义了业务类型以及业务类型的具体信息, 这样新定义这个帧的总长度为 24个字节, 相对于 Beacon帧来说, 长度只 有 Beacon 帧的几十分之一左右, 这样在传输过程中大大节省了时间, 有 利于设备省电以及加快了设备发现, 适应 NAN 网络中数据频繁交互的特 点, 保证设备之间可以频繁交互业务信息, 有共同兴趣的设备可以建立连 接以开展业务。
对于第一种帧结构, 如图 6 所示, 可以用 FC 域中的 Type 和 Subtype共同标识这个帧的类型为 NAN控制帧, 如下表所示, type域的值 设置为 11 , subtype域的值设置为 0000, 表示该控制帧为 NAN混合发现 消息。
Figure imgf000038_0001
则接收方在收到控制帧后, 根据 type和 subtype的值可判断出该控制 帧为混合 NAN 发现消息, 进而从业务信息域中解析出业务相关信息, 如 果接收方对业务感兴趣, 则可以与发送方进行连接, 而如果接收的消息 type和 subtype的值不为 11 和 0000 , 则可以判断出消息中没有业务相关 信息, 可以不必对其进行解析而直接放弃。
由于管理帧的结构与控制帧相似, 所以按照上述的控制帧的结构来定 义管理帧, 即利用 Al、 A2之后的 A3 业务信息域记录业务相关信息, 以 及通过 FC域中的 type和 subtype的值来标识管理帧的类型—— NAN发现 消息, 并指示帧中包含业务信息。 则发送方可以生成并发送管理帧给接收 方, 则接收方接收管理帧后, 可以根据自己的兴趣爱好, 来判断是否与发 送方连接并开展业务。
第二种帧结构如下:
第二种帧为新的公共动作帧结构, 在 MAC 帧的帧体部分封装公共动 作帧, 公共动作帧结构如图 7所示。
其中, 用 Category (类别) 这个域标识这个消息是 NAN发现消息, 其值可以设置为 5 , 接收方设备根据 Category的值, 可判断帧中是否存在 业务相关信息, 有则继续解析帧体, 没有则不需继续解析, 具体如下:
Figure imgf000039_0001
或是采用上个实施例中的方法来标识所发帧为 NAN发现帧。
Action Value (业务类型) 这个域设置可以为 1 或 2个字节来标识将 要进行业务的类型。
Dialog Token (会话标记) 这个域设置为 1 , 标识收到混合发现消息 帧的接收方可以继续下一步动作, 与发送方建立关联。
Details of action value (业务类型的具体信息) 这个域是可变的, 可以 为 48个比特位, 用来标识业务类型的具体信息。
整个消息帧的长度为 28 个字节, 公共动作帧封装在这个帧的源地址 后面, 作为消息帧的帧体部分, 最终如图 8 所示, 相对于 Beacon 帧来 说, 只有 Beacon 帧长度的几十分之一左右, 对收发双方来说, 单次的收 发占用时间非常短暂, 非常省电, 适于 NAN 网络中频繁交互的特点, 接 收方如果对业务相关信息有兴趣, 则可与发送方进行连接, 以开展业务。
综上所述, 通过本发明的技术方案, 可以实现数据通信装置和数据通 信方法, 满足了 NAN 网络特点的需求, 同时在发现过程中有利于设备省 电, 同时由于发现消息本身长度减小, 也加快了发现和关联。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于 本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精 神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 的保护范围之内。

Claims

权 利 要 求 书
1. 一种数据通信装置, 其特征在于, 包括:
消息生成模块, 生成消息帧, 所述消息帧中包括消息帧标识位和业务 信息标识位, 所述消息帧标识位的值标识所述消息帧的类型以及表示所述 消息帧中包括所述业务信息标识位, 所述业务信息标识位的值表示业务的 相关信息;
数据交互模块, 发送所述消息帧。
2. 根据权利要求 1 所述的数据通信装置, 其特征在于, 所述消息帧 为广播消息帧、 组播消息帧或单播消息帧, 和 /或所述消息帧为控制帧、 管理帧或公共动作帧。
3. 根据权利要求 2 所述的数据通信装置, 其特征在于, 在所述消息 帧为所述控制帧时, 所述消息帧标识位包括所述控制帧中媒介访问控制帧 的帧头部分的一个或多个位;
在所述消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧中 媒介访问控制帧的帧头部分的一个或多个位;
在所述消息帧为所述公共动作帧时, 所述消息帧标识位包括所述公共 动作帧的媒介访问控制帧的帧头部分或帧体部分的一个或多个位。
4. 根据权利要求 2 所述的数据通信装置, 其特征在于, 在所述消息 帧为所述控制帧时, 所述消息帧标识位包括所述控制帧的媒介访问控制帧 的帧头部分的帧控制域中类型子域和子类型子域的一个或多个位;
在所述消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧的 媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域的一个或 多个位;
在所述消息帧为所述公共动作帧时, 所述消息帧标识位包括所述公共 动作帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域 的一个或多个位, 或帧体部分的秩序 1位置域中的一个或多个位或其它位 置秩序域中的一个或多个位。
5. 根据权利要求 4 所述的数据通信装置, 其特征在于, 所述类型子 域和子类型子域的值为第一值时表示所述消息帧为邻居感知网络发现消息 帧, 所述邻居感知网络发现消息帧用于同时进行设备发现和业务发现。
6. 根据权利要求 2 所述的数据通信装置, 其特征在于, 在所述消息 帧为所述控制帧时, 所述业务信息标识位包括所述控制帧中媒介访问控制 帧的帧头部分的一个或多个位, 所述业务信息标识位包括业务类型标识位 和业务详细信息标识位, 所述业务类型标识位的值表示所述业务的类型, 所述业务详细信息标识位的值表示所述业务的详细信息;
在所述消息帧为所述管理帧时, 所述业务信息标识位包括所述管理帧 中媒介访问控制帧的帧头部分的一个或多个位, 所述业务信息标识位包括 业务类型标识位和业务详细信息标识位, 所述业务类型标识位的值表示所 述业务的类型, 所述业务详细信息标识位的值表示所述业务的详细信息; 在所述消息帧为所述公共动作帧时, 所述业务信息标识位包括所述公 共动作帧的媒介访问控制帧的帧体部分的一个或多个位, 所述业务信息标 识位包括所述业务类型标识位、 动作帧标识位和所述业务详细信息标识 位, 所述业务类型标识位的值表示所述业务的类型, 所述动作帧标识位的 值表示接收方在接收到所述公共动作帧时可与发送方进行关联, 所述业务 详细信息标识位的值表示所述业务的详细信息。
7. 根据权利要求 6 所述的数据通信装置, 其特征在于, 在所述消息 帧为所述公共动作帧时, 所述业务信息标识位包括所述公共动作帧的媒介 访问控制帧的帧体部分的秩序 1位置域中的一个或多个位或其它秩序位置 域中的一个或多个位。
8. 根据权利要求 6 所述的数据通信装置, 其特征在于, 在所述消息 帧为所述控制帧时, 所述业务信息标识位包含 48 个或其它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业务详细信息标识 位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其 它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业 务详细信息标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个 或其它个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作 标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述 业务信息标识位的 6个或其它个数字节。
9. 根据权利要求 1 至 8 中任一项所述的数据通信装置, 其特征在 于, 所述业务为所述数据通信装置当前或其它时间进行的业务。
10. 一种数据通信方法, 其特征在于, 包括:
生成消息帧, 所述消息帧中包括消息帧标识位和业务信息标识位, 所 述消息帧标识位的值标识所述消息帧的类型以及表示所述消息帧的类型中 包含所述业务信息标识位, 所述业务信息标识位的值表示业务的相关信 息;
发送所述消息帧。
11. 根据权利要求 10 所述的数据通信方法, 其特征在于, 所述消息 帧为广播消息帧、 组播消息帧或单播消息帧, 和 /或所述消息帧为控制 帧、 管理帧或公共动作帧。
12. 根据权利要求 11 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述控制帧时, 所述消息帧标识位包括所述控制帧中媒介访问控制 帧的帧头部分的一个或多个位;
在所述消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧中 媒介访问控制帧的帧头部分的一个或多个位;
在所述消息帧为所述公共动作帧时, 所述消息帧标识位包括所述公共 动作帧的媒介访问控制帧的帧头部分或帧体部分的一个或多个位。
13. 根据权利要求 12 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述控制帧时, 所述消息帧标识位包括所述控制帧的媒介访问控制 帧的帧头部分的帧控制域中类型子域和子类型子域的一个或多个位;
在所述消息帧为所述管理帧时, 所述消息帧标识位包括所述管理帧的 媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域的一个或 多个位;
在所述消息帧为所述所述公共动作帧时, 所述消息帧标识位包括所述 公共动作帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型 子域的一个或多个位, 或帧体部分的秩序 1位置域中的一个或多个位或其 它位置秩序域中的一个或多个位。
14. 根据权利要求 13 所述的数据通信方法, 其特征在于, 所述类型 子域和子类型子域的值为第一值时表示所述消息帧为邻居感知网络发现消 息帧, 所述邻居感知网络发现消息帧用于同时进行设备发现和业务发现。
15. 根据权利要求 11 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述控制帧时, 所述业务信息标识位包括所述控制帧中媒介访问控 制帧的帧头部分的一个或多个位, 所述业务信息标识位包括业务类型标识 位和业务详细信息标识位, 所述业务类型标识位的值表示所述业务的类 型, 所述业务详细信息标识位的值表示所述业务的详细信息;
在所述消息帧为所述管理帧时, 所述业务信息标识位包括所述管理帧 中媒介访问控制帧的帧头部分的一个或多个位, 所述业务信息标识位包括 业务类型标识位和业务详细信息标识位, 所述业务类型标识位的值表示所 述业务的类型, 所述业务详细信息标识位的值表示所述业务的详细信息; 在所述消息帧为所述公共动作帧时, 所述业务信息标识位包括所述公 共动作帧的媒介访问控制帧的帧体部分的一个或多个位, 所述业务信息标 识位包括所述业务类型标识位、 动作帧标识位和所述业务详细信息标识 位, 所述业务类型标识位的值表示所述业务的类型, 所述动作帧标识位的 值表示接收方在接收到所述公共动作帧时可与发送方进行关联, 所述业务 详细信息标识位的值表示所述业务的详细信息。
16. 根据权利要求 15 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述公共动作帧时, 所述业务信息标识位包括所述公共动作帧的媒 介访问控制帧的帧体部分的秩序 1位置域中的一个或多个位或其它秩序位 置域中的一个或多个位。
17. 根据权利要求 15 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述控制帧时, 所述业务信息标识位包含 48 个或其它位数比特 位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业务详细信息 标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其 它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业 务详细信息标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个 或其它个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作 标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述 业务信息标识位的 6个或其它个数字节。
18. 根据权利要求 10至 17中任一项所述的数据通信方法, 其特征在 于, 所述业务为所述消息帧的发送方当前或其它时间进行的业务。
19. 一种数据通信装置, 其特征在于, 包括:
数据交互模块, 接收消息帧, 所述消息帧中包括消息帧标识位和业务 信息标识位;
消息处理模块, 根据所述消息帧标识位的值确定所述消息帧的类型以 及确定所述消息帧中包含所述业务信息标识位, 以及根据所述业务信息标 识位的值确定业务的相关信息。
20. 根据权利要求 19 所述的数据通信装置, 其特征在于, 所述消息 帧为广播消息帧、 组播消息帧或单播消息帧, 和 /或所述消息帧为控制 帧、 管理帧或公共动作帧。
21. 根据权利要求 20 所述的数据通信装置, 其特征在于, 在所述消 息帧为所述控制帧时, 所述消息处理模块确定所述控制帧中媒介访问控制 帧的帧头部分的一个或多个位为所述消息帧标识位;
在所述消息帧为所述管理帧时, 所述消息处理模块确定所述管理帧中 媒介访问控制帧的帧头部分的一个或多个位为所述消息帧标识位;
在所述消息帧为所述公共动作帧时, 所述消息处理模块确定所述公共 动作帧的媒介访问控制帧的帧头部分或帧体部分的一个或多个位为所述消 息帧标识位。
22. 根据权利要求 21 所述的数据通信装置, 其特征在于, 在所述消 息帧为所述控制帧时, 所述消息处理模块确定所述控制帧的媒介访问控制 帧的帧头部分的帧控制域中类型子域和子类型子域的一个或多个位为所述 消息帧标识位; 在所述消息帧为所述管理帧时, 所述消息处理模块确定所述管理帧的 媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域的一个或 多个位为所述消息帧标识位;
在所述消息帧为所述公共动作帧时, 所述消息处理模块确定所述公共 动作帧的媒介访问控制帧的帧头部分的帧控制域中类型子域和子类型子域 的一个或多个位, 或帧体部分的秩序 1位置域中的一个或多个位或其它位 置秩序域中的一个或多个位为所述消息帧标识位。
23. 根据权利要求 22 所述的数据通信装置, 其特征在于, 在所述类 型子域和子类型子域的值为第一值时, 所述消息处理模块确定所述;肖 , ^帧 为邻居感知网络发现消息帧, 所述邻居感知网络发现消息帧用于同时进行 设备发现和业务发现。
24. 根据权利要求 20 所述的数据通信装置, 其特征在于, 在所述消 息帧为所述控制帧时, 所述消息处理模块确定所述控制帧中媒介访问控制 帧的帧头部分的一个或多个位为所述业务信息标识位, 所述业务信息标识 位包括业务类型标识位和业务详细信息标识位, 所述消息处理模块根据所 述业务类型标识位的值确定所述业务的类型, 根据所述业务详细信息标识 位的值确定所述业务的详细信息;
在所述消息帧为所述管理帧时, 所述消息处理模块确定所述管理帧中 媒介访问控制帧的帧头部分的一个或多个位为所述业务信息标识位, 所述 业务信息标识位包括业务类型标识位和业务详细信息标识位, 所述消息处 理模块根据所述业务类型标识位的值确定所述业务的类型, 根据所述业务 详细信息标识位的值确定所述业务的详细信息;
在所述消息帧为所述公共动作帧时, 所述消息处理模块确定所述公共 动作帧的媒介访问控制帧的帧体部分的一个或多个位为所述业务信息标识 位, 所述业务信息标识位包括所述业务类型标识位、 动作帧标识位和所述 业务详细信息标识位, 所述消息处理模块根据所述业务类型标识位的值确 定所述业务的类型, 根据所述动作帧标识位的值确定接收方在接收到所述 公共动作帧时可与发送方进行关联, 根据所述业务详细信息标识位的值确 定所述业务的详细信息。
25. 根据权利要求 24 所述的数据通信装置, 其特征在于, 在所述消 息帧为所述公共动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧体 部分的秩序 1位置域中的一个或多个位或其它秩序位置域中的一个或多个 位为所述业务信息标识位。
26. 根据权利要求 24 所述的数据通信装置, 其特征在于, 在所述消 息帧为所述控制帧时, 所述业务信息标识位包含 48 个或其它位数比特 位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业务详细信息 标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其 它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业 务详细信息标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个 或其它个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作 标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述 业务信息标识位的 6个或其它个数字节。
27. 根据权利要求 19至 26中任一项所述的数据通信装置, 其特征在 于, 所述业务为所述消息帧的发送方当前或其它时间进行的业务。
28. 一种数据通信方法, 其特征在于, 包括:
接收消息帧, 所述消息帧中包括消息帧标识位和业务信息标识位; 根据所述消息帧标识位的值确定所述消息帧的类型以及确定所述消息 帧中包含所述业务信息标识位, 以及根据所述业务信息标识位的值确定业 务的相关信息。
29. 根据权利要求 28 所述的数据通信方法, 其特征在于, 所述消息 帧为广播消息帧、 组播消息帧或单播消息帧, 和 /或所述消息帧为控制 帧、 管理帧或公共动作帧。
30. 根据权利要求 29所述的数据通信方法, 其特征在于, 还包括: 在所述消息帧为所述控制帧时, 确定所述控制帧中媒介访问控制帧的 帧头部分的一个或多个位为所述消息帧标识位;
在所述消息帧为所述管理帧时, 确定所述管理帧中媒介访问控制帧的 帧头部分的一个或多个位为所述消息帧标识位;
在所述消息帧为所述公共动作帧时, 确定所述公共动作帧的媒介访问 控制帧的帧头部分或帧体部分的一个或多个位为所述消息帧标识位。
31. 根据权利要求 30 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述控制帧时, 确定所述控制帧的媒介访问控制帧的帧头部分的帧 控制域中类型子域和子类型子域的一个或多个位为所述消息帧标识位; 在所述消息帧为所述管理帧时, 确定所述管理帧的媒介访问控制帧的 帧头部分的帧控制域中类型子域和子类型子域的一个或多个位为所述消息 帧标识位;
在所述消息帧为所述公共动作帧时, 确定所述公共动作帧的媒介访问 控制帧的帧头部分的帧控制域中类型子域和子类型子域的一个或多个位, 或帧体部分的秩序 1位置域中的一个或多个位或其它秩序位置域中的一个 或多个位为所述消息帧标识位。
32. 根据权利要求 31所述的数据通信方法, 其特征在于, 还包括: 在所述类型子域和子类型子域的值为第一值时, 确定所述消息帧为邻 居感知网络发现消息帧, 所述邻居感知网络发现消息帧用于同时进行设备 发现和业务发现。
33. 根据权利要求 29所述的数据通信方法, 其特征在于, 还包括: 在所述消息帧为所述控制帧时, 确定所述控制帧中媒介访问控制帧的 帧头部分的一个或多个位为所述业务信息标识位, 所述业务信息标识位包 括业务类型标识位和业务详细信息标识位, 根据所述业务类型标识位的值 确定所述业务的类型, 根据所述业务详细信息标识位的值确定所述业务的 详细信息;
在所述消息帧为所述管理帧时, 确定所述管理帧中媒介访问控制帧的 帧头部分的一个或多个位为所述业务信息标识位, 所述业务信息标识位包 括业务类型标识位和业务详细信息标识位, 根据所述业务类型标识位的值 确定所述业务的类型, 根据所述业务详细信息标识位的值确定所述业务的 详细信息;
在所述消息帧为所述公共动作帧时, 确定所述公共动作帧的媒介访问 控制帧的帧体部分的一个或多个位为所述业务信息标识位, 所述业务信息 标识位包括所述业务类型标识位、 动作帧标识位和所述业务详细信息标识 位, 根据所述业务类型标识位的值确定所述业务的类型, 根据所述动作帧 标识位的值确定接收方在接收到所述公共动作帧时可与发送方进行关联, 根据所述业务详细信息标识位的值确定所述业务的详细信息。
34. 根据权利要求 33 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述公共动作帧时, 确定所述公共动作帧的媒介访问控制帧的帧体 部分的秩序 1位置域中的一个或多个位或其它秩序位置域中的一个或多个 位为所述业务信息标识位。
35. 根据权利要求 33 所述的数据通信方法, 其特征在于, 在所述消 息帧为所述控制帧时, 所述业务信息标识位包含 48 个或其它位数比特 位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业务详细信息 标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述管理帧时, 所述业务信息标识位包含 48 个或其 它位数比特位, 所述业务类型标识位包含 8个或其它位数比特位, 所述业 务详细信息标识位包含所述业务信息标识位的其余比特位;
在所述消息帧为所述公共动作帧时, 所述业务信息标识位包含 10 个 或其它个数字节, 所述业务类型标识位包含 1 或其它个数字节, 所述动作 标识位包含 1 个字节或其它个数字节, 所述业务详细信息标识位包含所述 业务信息标识位的 6个或其它个数字节。
36. 根据权利要求 28至 35中任一项所述的数据通信方法, 其特征在 于, 所述业务为所述消息帧的发送方当前或其它时间进行的业务。
PCT/CN2013/080654 2012-09-24 2013-08-01 数据通信装置和数据通信方法 Ceased WO2014044083A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210359249.2 2012-09-24
CN201210359249.2A CN102833837B (zh) 2012-09-24 2012-09-24 数据通信装置和数据通信方法

Publications (1)

Publication Number Publication Date
WO2014044083A1 true WO2014044083A1 (zh) 2014-03-27

Family

ID=47336740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/080654 Ceased WO2014044083A1 (zh) 2012-09-24 2013-08-01 数据通信装置和数据通信方法

Country Status (2)

Country Link
CN (1) CN102833837B (zh)
WO (1) WO2014044083A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833837B (zh) * 2012-09-24 2015-09-30 东莞宇龙通信科技有限公司 数据通信装置和数据通信方法
US9338798B2 (en) * 2013-04-03 2016-05-10 Qualcomm Incorporated Systems and methods for collision management in a neighborhood aware network
CN104488349A (zh) * 2013-05-15 2015-04-01 英特尔公司 无线通信系统中管理连接能力信息的技术
US9763228B2 (en) * 2014-04-01 2017-09-12 Qualcomm Incorporated Methods and apparatus for independent basic service set based data paths for neighbor aware networks
US9955421B2 (en) * 2014-07-09 2018-04-24 Qualcomm Incorporated Traffic advertisement and scheduling in a neighbor aware network data link
CN105228252B (zh) * 2015-08-25 2018-09-25 魅族科技(中国)有限公司 无线局域网的通信方法及通信装置
CN105007632B (zh) * 2015-08-25 2018-09-25 魅族科技(中国)有限公司 无线局域网的通信方法及通信装置
CN109068370A (zh) * 2018-06-27 2018-12-21 努比亚技术有限公司 通信方法、移动终端及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960560A (zh) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 频道切换方法
CN102652424A (zh) * 2009-12-23 2012-08-29 苹果公司 对等式联网环境中采用基于操作条件的动态宣告和发现周期的有效服务宣告和发现
WO2012118326A2 (en) * 2011-02-28 2012-09-07 Samsung Electronics Co., Ltd. A method for random access of machine to machine (m2m) terminals
CN102833837A (zh) * 2012-09-24 2012-12-19 东莞宇龙通信科技有限公司 数据通信装置和数据通信方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960560A (zh) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 频道切换方法
CN102652424A (zh) * 2009-12-23 2012-08-29 苹果公司 对等式联网环境中采用基于操作条件的动态宣告和发现周期的有效服务宣告和发现
WO2012118326A2 (en) * 2011-02-28 2012-09-07 Samsung Electronics Co., Ltd. A method for random access of machine to machine (m2m) terminals
CN102833837A (zh) * 2012-09-24 2012-12-19 东莞宇龙通信科技有限公司 数据通信装置和数据通信方法

Also Published As

Publication number Publication date
CN102833837A (zh) 2012-12-19
CN102833837B (zh) 2015-09-30

Similar Documents

Publication Publication Date Title
WO2014044083A1 (zh) 数据通信装置和数据通信方法
JP6174055B2 (ja) アクセス識別子ベースマルチキャスト通信のための装置および方法
EP2952025B1 (en) Monitoring the size of a wireless network
CN104871601B (zh) 用于无线网络上的改进的通信的系统和方法
JP5231582B2 (ja) ホップデータシグナリングと組合せた直接呼出を含む無線通信の方法および装置
CN106850140B (zh) 数据通信的方法、装置及系统
CN105308992A (zh) 具有安全性的高效基础设施服务发现
US9119020B2 (en) Method and apparatus for discovering wireless devices
RU2012149951A (ru) Предоставление нескольких уровней обслуживания для беспроводной связи
JP2017518697A (ja) 高価なメッシュピアリングを伴わずに信頼性の高いルートを確立すること
CN103297461B (zh) Nat会话保活时长设置方法以及客户端和服务器
KR20040094260A (ko) 에드 혹 네트워크에서의 패스 엠티유 발견 시스템 및 방법
JP2011525313A (ja) マルチキャスト・グループ管理のための方法及び装置
WO2017031816A1 (zh) 一种数据传输的方法、相关设备及系统
CN103930876A (zh) 用于直接多用户传输的系统和方法
CN102186261A (zh) 一种WLAN中IPv6邻居发现协议的实现方法和装置
TWI410161B (zh) 路徑連結
CN106792450A (zh) 一种电器的路由信息的获取方法及装置
CN101978655A (zh) 嵌入在单播波形中的广播-组播波形的信令和管理
CN102859947B (zh) 一种邻居发现的方法,装置和系统
CN104852771B (zh) 一种适用于水声局域网的多跳接入方法
CN105247842A (zh) 用于选择通信接口的方法和设备
WO2009105981A1 (zh) 组业务加密密钥更新方法及系统
CN103001778A (zh) 一种组播包传送方法、站点装置及服务集系统
US20100232309A1 (en) Methods and systems for dynamic call blocking in wimax idle mode

Legal Events

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

Ref document number: 13838992

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13838992

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 02/06/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13838992

Country of ref document: EP

Kind code of ref document: A1