WO2023109366A1 - Data transmission method and apparatus, and electronic device, storage medium and computer program product - Google Patents

Data transmission method and apparatus, and electronic device, storage medium and computer program product Download PDF

Info

Publication number
WO2023109366A1
WO2023109366A1 PCT/CN2022/130346 CN2022130346W WO2023109366A1 WO 2023109366 A1 WO2023109366 A1 WO 2023109366A1 CN 2022130346 W CN2022130346 W CN 2022130346W WO 2023109366 A1 WO2023109366 A1 WO 2023109366A1
Authority
WO
WIPO (PCT)
Prior art keywords
peripheral device
target
information
identification information
data
Prior art date
Application number
PCT/CN2022/130346
Other languages
French (fr)
Chinese (zh)
Inventor
熊进辉
吴泽杰
Original Assignee
美的集团股份有限公司
广东美的制冷设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 美的集团股份有限公司, 广东美的制冷设备有限公司 filed Critical 美的集团股份有限公司
Publication of WO2023109366A1 publication Critical patent/WO2023109366A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Abstract

The present application relates to the technical field of mobile communications. Provided are a data transmission method and apparatus. The method comprises: associating identification information of peripheral devices with peripheral information of the peripheral devices and callback methods thereof; according to received identification information, determining a target peripheral device from among a plurality of peripheral devices, and determining at least one of the peripheral information and callback method of the target peripheral device; and performing data transmission between the target peripheral device and an application program according to at least one of the peripheral information and callback method of the target peripheral device. By means of the data transmission method and apparatus provided in the present application, a target peripheral device is accurately determined from among a plurality of peripheral devices by means of identification information of the peripheral devices, and peripheral information of the target peripheral device and a callback method thereof are also determined, such that accurate data transmission between an application program and the target peripheral device is realized, and the accuracy of data transmission in a scenario where a plurality of peripheral devices are connected is effectively achieved, thereby providing users with a good intelligent experience.

Description

数据传输方法、装置、电子设备、存储介质及计算机程序产品Data transmission method, device, electronic device, storage medium and computer program product
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年12月13日提交的申请号为202111515706.8,名称为“数据传输方法及装置”的中国专利申请的优先权,其通过引用方式全部并入本文。This application claims the priority of Chinese patent application No. 202111515706.8, filed on December 13, 2021, entitled "Data Transmission Method and Device", which is incorporated herein by reference in its entirety.
技术领域technical field
本申请涉及移动通信技术领域,尤其涉及数据传输方法及装置。The present application relates to the technical field of mobile communication, in particular to a data transmission method and device.
背景技术Background technique
低功耗蓝牙通讯技术作为手机与外设建立连接与数据通讯的重要手段,支持低功耗蓝牙的设备与手机建立连接的过程,状态的管理和数据的交互都需要程序员自己来管理。在手机与单个低功耗蓝牙设备的通讯上,不需要考虑数据传输的准确性和业务逻辑的稳定性。Bluetooth low-power communication technology is an important means of establishing connection and data communication between mobile phones and peripherals. The process of establishing a connection between devices that support low-power Bluetooth and mobile phones, state management and data interaction need to be managed by the programmer. In the communication between the mobile phone and a single low-power Bluetooth device, there is no need to consider the accuracy of data transmission and the stability of business logic.
而在手机与多个低功耗蓝牙设备连接的场景下如何管理连接过程,状态管理和数据交互,使之能更准确和稳定的完成相应的业务已经是必须要解决的问题了。How to manage the connection process, state management and data interaction in the scenario where the mobile phone is connected to multiple low-power Bluetooth devices, so that it can complete the corresponding business more accurately and stably is a problem that must be solved.
发明内容Contents of the invention
本申请旨在至少解决现有技术中存在的技术问题之一。为此,本申请提出一种数据传输方法,根据本申请实施例的数据传输方法,通过外设设备的标识信息在多个外设设备中准确确定出目标外设设备,和目标外设设备的外设信息以及回调方法,从而实现了应用程序与目标外设设备之间数据的准确传输,有效地解决了在连接多个外设设备场景下数据传输的准确性,为用户提供了良好的智能化体验。This application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a data transmission method. According to the data transmission method of the embodiment of the present application, the target peripheral device is accurately determined among multiple peripheral devices through the identification information of the peripheral device, and the target peripheral device Peripheral information and callback methods, so as to realize the accurate transmission of data between the application program and the target peripheral device, effectively solve the accuracy of data transmission in the scenario of connecting multiple peripheral devices, and provide users with good intelligence experience.
本申请还提出一种数据传输装置。The application also proposes a data transmission device.
根据本申请第一方面实施例的数据传输方法,包括:The data transmission method according to the embodiment of the first aspect of the present application includes:
将外设设备的标识信息与所述外设设备的外设信息以及回调方法进行关联;Associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
根据接收到的标识信息从多个所述外设设备中确定目标外设设 备,以及所述目标外设设备的外设信息与回调方法中的至少一个;Determining a target peripheral device from a plurality of peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
根据所述目标外设设备的外设信息与回调方法中的至少一个,进行所述目标外设设备与应用程序之间的数据传输。According to at least one of the peripheral information of the target peripheral device and the callback method, the data transmission between the target peripheral device and the application program is performed.
根据本申请实施例的数据传输方法,通过外设设备的标识信息在多个外设设备中准确确定出目标外设设备,和目标外设设备的外设信息以及回调方法,从而实现了应用程序与目标外设设备之间数据的准确传输,有效地解决了在连接多个外设设备场景下数据传输的准确性,为用户提供了良好的智能化体验。According to the data transmission method of the embodiment of the present application, the target peripheral device, the peripheral information of the target peripheral device and the callback method are accurately determined among multiple peripheral devices through the identification information of the peripheral device, thereby realizing the application program The accurate transmission of data with the target peripheral device effectively solves the problem of the accuracy of data transmission in the scenario of connecting multiple peripheral devices, and provides users with a good intelligent experience.
根据本申请第二方面实施例的数据传输装置,包括:The data transmission device according to the embodiment of the second aspect of the present application includes:
关联模块,用于将外设设备的标识信息与所述外设设备的外设信息以及回调方法进行关联;An associating module, configured to associate the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
确定模块,用于根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个;A determining module, configured to determine a target peripheral device from a plurality of peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
传输模块,用于根据所述目标外设设备的外设信息与回调方法中的至少一个,进行所述目标外设设备与应用程序之间的数据传输。A transmission module, configured to perform data transmission between the target peripheral device and an application program according to at least one of the peripheral information of the target peripheral device and a callback method.
根据本申请实施例的数据传输装置,通过外设设备的标识信息在多个外设设备中准确确定出目标外设设备,和目标外设设备的外设信息以及回调方法,从而实现了应用程序与目标外设设备之间数据的准确传输,有效地解决了在连接多个外设设备场景下数据传输的准确性,为用户提供了良好的智能化体验。According to the data transmission device of the embodiment of the present application, the target peripheral device, the peripheral information of the target peripheral device and the callback method are accurately determined among multiple peripheral devices through the identification information of the peripheral device, thereby realizing the application program The accurate transmission of data with the target peripheral device effectively solves the problem of the accuracy of data transmission in the scenario of connecting multiple peripheral devices, and provides users with a good intelligent experience.
根据本申请第三方面实施例的电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述数据传输方法的步骤。The electronic device according to the embodiment of the third aspect of the present application includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the program, any of the above-mentioned The steps of the data transfer method.
根据本申请第四方面实施例的非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述数据传输方法的步骤。According to the non-transitory computer-readable storage medium of the embodiment of the fourth aspect of the present application, a computer program is stored thereon, and when the computer program is executed by a processor, the steps of any one of the above-mentioned data transmission methods are implemented.
根据本申请第五方面实施例的计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一种所述数据传输方法的步骤。The computer program product according to the embodiment of the fifth aspect of the present application includes a computer program, and when the computer program is executed by a processor, the steps of any one of the data transmission methods described above are implemented.
本申请实施例中的上述一个或多个技术方案,至少具有如下技术效果之一:The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:
通过外设设备的标识信息在多个外设设备中准确确定出目标外设设备,和目标外设设备的外设信息以及回调方法,从而实现了应用程序与目标外设设备之间数据的准确传输,有效地解决了在连接多个外设设备场景下数据传输的准确性,为用户提供了良好的智能化体验。Accurately determine the target peripheral device, the peripheral information of the target peripheral device and the callback method among multiple peripheral devices through the identification information of the peripheral device, thereby realizing the accurate data exchange between the application program and the target peripheral device Transmission, effectively solves the problem of data transmission accuracy in the scenario of connecting multiple peripheral devices, and provides users with a good intelligent experience.
本申请的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本申请实施例提供的数据传输方法的流程示意图;FIG. 1 is a schematic flow diagram of a data transmission method provided in an embodiment of the present application;
图2是应用本申请实施例提供的数据传输方法的流程示意图之一;Fig. 2 is one of the schematic flow charts of applying the data transmission method provided by the embodiment of the present application;
图3是应用本申请实施例提供的数据传输方法的流程示意图之二;Fig. 3 is the second schematic flow diagram of applying the data transmission method provided by the embodiment of the present application;
图4是本申请实施例提供的数据传输装置的结构示意图;FIG. 4 is a schematic structural diagram of a data transmission device provided in an embodiment of the present application;
图5是本申请实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请的实施方式作进一步详细描述。以下实施例用于说明本申请,但不能用来限制本申请的范围。The implementation manner of the present application will be further described in detail below with reference to the drawings and embodiments. The following examples are used to illustrate the present application, but cannot be used to limit the scope of the present application.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请实施例的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材 料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structures, materials or features are included in at least one embodiment or example of the embodiments of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings in this application. Obviously, the described embodiments are part of the embodiments of this application , but not all examples. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
图1为本申请实施例提供的数据传输方法的流程示意图,参照图1,本申请实施例提供的数据传输方法包括以下步骤:Fig. 1 is a schematic flow chart of the data transmission method provided by the embodiment of the present application. Referring to Fig. 1, the data transmission method provided by the embodiment of the present application includes the following steps:
步骤110、将外设设备的标识信息与外设设备的外设信息以及回调方法进行关联; Step 110, associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
步骤120、根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个;Step 120: Determine the target peripheral device from multiple peripheral devices according to the received identification information, and at least one of the peripheral information and the callback method of the target peripheral device;
步骤130、根据目标外设设备的外设信息与回调方法中的至少一个,进行目标外设设备与应用程序之间的数据传输。Step 130: Perform data transmission between the target peripheral device and the application program according to at least one of the peripheral information of the target peripheral device and the callback method.
需要说明的是,本申请提供的数据传输方法的执行主体可以是移动电子设备,该移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,本申请不作具体限定。下面以手机执行本申请实施例提供的数据传输方法为例,详细说明本申请的技术方案。It should be noted that the execution subject of the data transmission method provided by this application may be a mobile electronic device, and the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted electronic device, a wearable device, a super mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., this application does not make specific limitations. The technical solution of the present application will be described in detail below by taking the mobile phone executing the data transmission method provided by the embodiment of the present application as an example.
可选地,在步骤110中,将外设设备的标识信息与外设设备的外设信息以及回调方法进行关联。Optionally, in step 110, the identification information of the peripheral device is associated with the peripheral device information and the callback method of the peripheral device.
手机在与外设设备建立蓝牙连接时,记录外设设备的标识信息(记为key),外设信息(记为peripheral)以及外设设备的回调方法等设备信息,并将每个外设设备的标识信息,外设信息以及外设设备的回调方法关联在一起,并存储起来。When the mobile phone establishes a Bluetooth connection with the peripheral device, it records the identification information of the peripheral device (recorded as key), the peripheral information (recorded as peripheral) and the callback method of the peripheral device and other device information, and records each peripheral device The identification information of the device, the peripheral information and the callback method of the peripheral device are associated and stored.
其中,标识信息指的是外设设备的唯一标识,例如可以是外设设备的地址,如:通用唯一识别码UUID或媒体接入控制MAC地址。Wherein, the identification information refers to a unique identifier of the peripheral device, for example, may be an address of the peripheral device, such as: a universal unique identification code UUID or a media access control MAC address.
可选地,手机作为中心设备扫描附近外设设备时,将外设设备的相关信息进行保存,iOS可以以外设设备的UUID作为外设的唯一标识(记为key),Android可以以外设设备的MAC地址作为key。Optionally, when the mobile phone is used as a central device to scan nearby peripheral devices, the relevant information of the peripheral devices is saved. iOS can use the UUID of the peripheral device as the unique identifier (marked as key) of the peripheral device, and Android can use the UUID of the peripheral device. The MAC address is used as the key.
外设信息是外设设备的参数信息,例如可以包括:设备的名称、设备的信号强度、设备的型号等。The peripheral device information is parameter information of the peripheral device, and may include, for example, a name of the device, a signal strength of the device, a model of the device, and the like.
回调方法是由业务层注册给连接层的,用于数据通信的函数。回调方法可以包括:状态回调方法、数据交互回调方法和断开连接回调方法等。通过将外设设备的key与回调方法进行关联,可以实现以key作为唯一标识将回调方法进行保存。The callback method is registered to the connection layer by the business layer and is used for data communication functions. The callback method may include: a status callback method, a data interaction callback method, a disconnection callback method, and the like. By associating the key of the peripheral device with the callback method, the callback method can be saved with the key as a unique identifier.
在步骤120中,根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个。In step 120, a target peripheral device, and at least one of peripheral information and a callback method of the target peripheral device are determined from multiple peripheral devices according to the received identification information.
在步骤110的基础上,已将外设设备的标识信息,外设信息以及外设设备的回调方法关联在一起。根据应用程序(application,APP)或外设设备发送的数据,从数据中确定外设设备的标识信息,即可从手机同时连接的多个外设设备中确定出目标外设设备,以及目标外设设备的外设信息和回调方法。On the basis of step 110, the identification information of the peripheral device, the peripheral device information and the callback method of the peripheral device have been associated together. According to the data sent by the application (application, APP) or peripheral device, the identification information of the peripheral device can be determined from the data, and the target peripheral device can be determined from the multiple peripheral devices connected to the mobile phone at the same time, and the target external device Peripheral information and callback method of the device.
在步骤130中,根据目标外设设备的外设信息与回调方法中的至少一个,进行目标外设设备与应用程序之间的数据传输。可以将APP发送的数据,通过目标外设设备的外设信息,发送给外设设备;也可以将目标外设设备发送的数据,通过目标外设设备的回调方法,发送给APP。从而实现了在目标外设设备与应用程序之间准确进行数据传输。In step 130, data transmission between the target peripheral device and the application is performed according to at least one of the peripheral information of the target peripheral device and the callback method. The data sent by the APP can be sent to the peripheral device through the peripheral information of the target peripheral device; the data sent by the target peripheral device can also be sent to the APP through the callback method of the target peripheral device. Thus, accurate data transmission between the target peripheral device and the application program is realized.
例如,图2是应用本申请实施例提供的数据传输方法的流程示意图之一,参照图2,For example, FIG. 2 is one of the schematic flow diagrams for applying the data transmission method provided by the embodiment of the present application. Referring to FIG. 2,
当手机开启蓝牙扫描时,扫描到设备A,设备B,设备C,分别记录设备的标识信息key,外设信息peripheral,回调方法callback。When the mobile phone turns on Bluetooth scanning, it scans device A, device B, and device C, and records the identification information key of the device, peripheral information peripheral, and the callback method callback respectively.
在向设备A发起连接请求时,将设备A的key1,peripheral1和callback1关联起来并存储;同理,向设备B发起连接请求时,将设 备B的key2,peripheral2,callback2关联起来并存储;向设备C发起连接请求时,将设备C的key3,peripheral3,callback3关联起来并存储。如表1所示:When initiating a connection request to device A, associate and store key1, peripheral1, and callback1 of device A; similarly, when initiating a connection request to device B, associate and store key2, peripheral2, and callback2 of device B; When C initiates a connection request, associate and store key3, peripheral3, and callback3 of device C. As shown in Table 1:
表1关联后的设备信息Table 1 Device information after association
设备ADevice A key1-peripheral1-callback1key1-peripheral1-callback1
设备Bdevice B key2-peripheral2-callback2key2-peripheral2-callback2
设备Cdevice C key3-peripheral3-callback3key3-peripheral3-callback3
设备…equipment… keyN-peripheralN-callbackNkeyN-peripheralN-callbackN
当手机在连接多个外设设备时,通过解析外设设备发送的数据,确定key,即可确定是哪个设备发出的数据,根据key,即可确定callback,可通过callback将数据发送给APP,实现了外设设备与APP的数据传输。When the mobile phone is connected to multiple peripheral devices, by analyzing the data sent by the peripheral devices and determining the key, it can be determined which device sent the data. According to the key, the callback can be determined, and the data can be sent to the APP through the callback. Realized the data transmission between peripheral equipment and APP.
通过解析APP发送的数据,确定key,即可确定是要将数据发送给哪个设备,根据key,即可确定peripheral,可通过peripheral将数据发送给目标外设设备,实现了外设设备与APP的数据传输。By analyzing the data sent by the APP and determining the key, you can determine which device to send the data to. According to the key, you can determine the peripheral, and send the data to the target peripheral device through the peripheral, realizing the connection between the peripheral device and the APP. data transmission.
本申请实施例提供的数据传输方法,通过外设设备的标识信息在多个外设设备中准确确定出目标外设设备,和目标外设设备的外设信息以及回调方法,从而实现了应用程序与目标外设设备之间数据的准确传输,有效地解决了在连接多个外设设备场景下数据传输的准确性,为用户提供了良好的智能化体验。The data transmission method provided by the embodiment of the present application accurately determines the target peripheral device among multiple peripheral devices through the identification information of the peripheral device, and the peripheral device information and the callback method of the target peripheral device, thereby realizing the application program The accurate transmission of data with the target peripheral device effectively solves the problem of the accuracy of data transmission in the scenario of connecting multiple peripheral devices, and provides users with a good intelligent experience.
在一个实施例中,本申请实施例提供的数据传输方法,还包括:In one embodiment, the data transmission method provided in the embodiment of the present application further includes:
将外设设备的标识信息与外设设备的加密方法以及解密方法进行关联。The identification information of the peripheral device is associated with the encryption method and the decryption method of the peripheral device.
可选地,在手机与外设设备连接成功的的情况下,手机和外设设备可进行密钥协商,以保证连接以及数据传输的准确性。因此,在手机与外设设备建立蓝牙连接时,可以与不同的外设设备设置不同的密钥,并记录下来,即可得到外设设备的加密方法和解密方法。Optionally, when the connection between the mobile phone and the peripheral device is successful, the mobile phone and the peripheral device can negotiate a key to ensure the accuracy of the connection and data transmission. Therefore, when the mobile phone establishes a bluetooth connection with the peripheral device, different keys can be set with different peripheral devices and recorded, and the encryption method and decryption method of the peripheral device can be obtained.
并将外设设备的加密方法和解密方法与外设设备的标识信息关联起来,就可以在得到标识信息后,确定目标外设设备,同时确定目 标外设设备的解密方法和加密方法。By associating the encryption method and decryption method of the peripheral device with the identification information of the peripheral device, the target peripheral device can be determined after obtaining the identification information, and the decryption method and encryption method of the target peripheral device can be determined at the same time.
本申请实施例提供的数据传输方法,通过将外设设备的标识信息与外设设备的加密方法以及解密方法进行关联,可以保证在连接多个外设备场景下数据传输的安全性。The data transmission method provided by the embodiment of the present application can ensure the security of data transmission in the scenario of connecting multiple external devices by associating the identification information of the peripheral device with the encryption method and decryption method of the peripheral device.
在一个实施例中,根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个,包括:In one embodiment, determining the target peripheral device from multiple peripheral devices according to the received identification information, and at least one of the peripheral information of the target peripheral device and the callback method, including:
接收目标外设设备发送的第一数据;receiving the first data sent by the target peripheral device;
从第一数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的解密方法以及目标外设设备的数据交互回调方法;Determine the identification information of the target peripheral device from the first data, and determine the decryption method of the target peripheral device and the data interaction callback method of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的解密方法用于对第一数据中的待发送数据进行解密;Wherein, the decryption method of the target peripheral device is used to decrypt the data to be sent in the first data;
目标外设设备的数据交互回调方法用于将解密后的待发送数据发送给应用程序。The data interaction callback method of the target peripheral device is used to send the decrypted data to be sent to the application program.
可选地,手机与外设设备建立蓝牙连接之后,即可进行数据交互。Optionally, after the Bluetooth connection is established between the mobile phone and the peripheral device, data interaction can be performed.
目标外设设备向APP发送数据时,首先将数据发送给手机。手机接收到目标外设设备发送的数据后,通过解析标外设设备发送的数据,得到目标外设设备的标识信息,即可从连接的多个外设设备中确定出目标外设设备,以及目标外设设备的解密方法,和数据交互回调方法。When the target peripheral device sends data to the APP, it first sends the data to the mobile phone. After the mobile phone receives the data sent by the target peripheral device, it can determine the target peripheral device from the multiple connected peripheral devices by analyzing the data sent by the target peripheral device to obtain the identification information of the target peripheral device, and The decryption method of the target peripheral device, and the data interaction callback method.
通过蓝牙协议以及目标外设设备的解密方法对接收的数据进行解密,并通过数据交互回调方法,将解密后的数据发送给APP。APP接收到数据后,即可进行后续的业务操作。APP也可以通过声音、文字或视频的方式,将目标外设设备发送的数据告知用户。Decrypt the received data through the Bluetooth protocol and the decryption method of the target peripheral device, and send the decrypted data to the APP through the data interaction callback method. After the APP receives the data, it can perform subsequent business operations. The APP can also inform the user of the data sent by the target peripheral device through sound, text or video.
本申请实施例提供的数据传输方法,通过外设设备的标识信息,确定目标外设设备的回调方法及解密方法,根据解密方法和回调方法将目标外设设备发送的数据发送至应用程序,实现了外设设备与应用程序之间数据传输的准确性和安全性。The data transmission method provided by the embodiment of the present application determines the callback method and decryption method of the target peripheral device through the identification information of the peripheral device, and sends the data sent by the target peripheral device to the application program according to the decryption method and the callback method to realize It ensures the accuracy and security of data transmission between peripheral devices and applications.
在一个实施例中,根据接收到的标识信息从多个外设设备中确定 目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个,包括:In one embodiment, determining the target peripheral device from multiple peripheral devices according to the received identification information, and at least one of the peripheral information and the callback method of the target peripheral device, including:
接收应用程序发送的第二数据;receiving the second data sent by the application;
从第二数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的加密方法以及目标外设设备的外设信息;Determine the identification information of the target peripheral device from the second data, and determine the encryption method of the target peripheral device and the peripheral information of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的加密方法用于对第二数据中的待发送数据进行加密;Wherein, the encryption method of the target peripheral device is used to encrypt the data to be sent in the second data;
目标外设设备的外设信息用于将加密后的待发送数据发送给目标外设设备。The peripheral information of the target peripheral device is used to send the encrypted data to be sent to the target peripheral device.
可选地,手机与外设设备建立蓝牙连接之后,即可进行数据交互。APP下发数据给外设设备时,首先将数据发送给手机,手机接收到APP发送的数据后,通过解析标APP发送的数据,得到目标外设设备的标识信息,即可从连接的多个外设设备中确定出目标外设设备,以及目标外设设备的加密方法和外设信息。Optionally, after the Bluetooth connection is established between the mobile phone and the peripheral device, data interaction can be performed. When the APP sends data to the peripheral device, it first sends the data to the mobile phone. After the mobile phone receives the data sent by the APP, it parses the data sent by the marked APP to obtain the identification information of the target peripheral device, and then the connected multiple A target peripheral device, an encryption method and peripheral information of the target peripheral device are determined from the peripheral device.
将APP下发的数据按蓝牙协议组装,再使用加密方法对数据进行加密,并根据目标外设设备的外设信息将数据发送给目标外设设备。The data sent by the APP is assembled according to the Bluetooth protocol, and then the encryption method is used to encrypt the data, and the data is sent to the target peripheral device according to the peripheral information of the target peripheral device.
本申请实施例提供的数据传输方法,通过外设设备的标识信息,确定目标外设设备的外设信息及加密方法,根据加密方法和外设信息将应用程序发送的数据发送至目标外设设备,实现了外设设备与应用程序之间数据传输的准确性和安全性。The data transmission method provided by the embodiment of the present application determines the peripheral information and encryption method of the target peripheral device through the identification information of the peripheral device, and sends the data sent by the application program to the target peripheral device according to the encryption method and peripheral information , to achieve the accuracy and security of data transmission between peripheral devices and applications.
在一个实施例中,根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个,包括:In one embodiment, determining the target peripheral device from multiple peripheral devices according to the received identification information, and at least one of the peripheral information of the target peripheral device and the callback method, including:
接收目标外设设备发送的第三数据;receiving third data sent by the target peripheral device;
从第三数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的断开连接回调方法;Determine the identification information of the target peripheral device from the third data, and determine the disconnection callback method of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的断开连接回调方法用于将目标外设备断开连接的信息上传至应用程序。Wherein, the disconnection callback method of the target peripheral device is used to upload the disconnection information of the target peripheral device to the application program.
可选地,当手机主动和目标外设设备断开连接时,根据外设设备 的标识信息确定目标外设设备,执行断开方法,等待断开成功的回调通知。Optionally, when the mobile phone actively disconnects from the target peripheral device, determine the target peripheral device according to the identification information of the peripheral device, execute the disconnection method, and wait for the callback notification of successful disconnection.
当接收到目标外设设备发送的被动断开成功的回调,或目标外设设备主动断开蓝牙连接的回调时,根据目标外设设备的标识信息,可以确定出目标外设设备的断开连接回调方法,通过调用断开连接回调方法,将设备断开连接的信息准确上报给APP。When the passive disconnection success callback sent by the target peripheral device is received, or the callback of the target peripheral device actively disconnecting the Bluetooth connection is received, the disconnection of the target peripheral device can be determined according to the identification information of the target peripheral device The callback method, by calling the disconnection callback method, accurately reports the device disconnection information to the APP.
同时,根据目标外设设备的标识信息,清除预先存储的该目标外设设备的外设信息和回调方法。At the same time, according to the identification information of the target peripheral device, the pre-stored peripheral information and callback method of the target peripheral device are cleared.
本申请实施例提供的数据传输方法,通过外设设备的标识信息,与目标外设设备断开连接,并且在接收目标外设设备发送的断开连接成功的信息后,调用断开连接回调方法,将目标外设备断开连接的信息上传至应用程序,保证了数据传输的准确性。The data transmission method provided by the embodiment of the present application disconnects the target peripheral device through the identification information of the peripheral device, and calls the disconnection callback method after receiving the message that the disconnection is successful sent by the target peripheral device , and upload the disconnection information of the off-target device to the application program, ensuring the accuracy of data transmission.
在一个实施例中,根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个,包括:In one embodiment, determining the target peripheral device from multiple peripheral devices according to the received identification information, and at least one of the peripheral information of the target peripheral device and the callback method, including:
接收目标外设设备发送的第四数据;receiving the fourth data sent by the target peripheral device;
从第四数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的状态回调方法;Determine the identification information of the target peripheral device from the fourth data, and determine the state callback method of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的状态回调方法用于将目标外设设备的状态信息上传至应用程序。Wherein, the state callback method of the target peripheral device is used to upload the state information of the target peripheral device to the application program.
可选地,在与外设设备连接的的过程中,可监听连接过程中目标外设设备的蓝牙状态和连接状态的改变,实时监听外设设备的状态信息。Optionally, during the process of connecting with the peripheral device, the Bluetooth status of the target peripheral device and the change of the connection state during the connection process can be monitored, and the status information of the peripheral device can be monitored in real time.
根据外设设备发送的数据,找到外设设备的状态回调方法,通过调用外设设备的回调方法,即可将当前外设设备的状态上报给APP,即可准确的得知当前设备的状态。According to the data sent by the peripheral device, find the status callback method of the peripheral device. By calling the callback method of the peripheral device, the current status of the peripheral device can be reported to the APP, and the status of the current device can be accurately known.
本申请实施例提供的数据传输方法,通过外设设备的标识信息,确定外设设备的状态回调方法,从而调用状态回调方法将外设设备的状态准确上传至应用程序,实现了对外设设备状态的精准监控。The data transmission method provided by the embodiment of the present application determines the state callback method of the peripheral device through the identification information of the peripheral device, thereby calling the state callback method to accurately upload the state of the peripheral device to the application program, and realizing the status of the peripheral device precise monitoring.
在一个实施例中,将外设设备的标识信息与外设设备的外设信息 以及回调方法进行关联,包括:In one embodiment, associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method includes:
将外设设备的标识信息作为key、外设设备的外设信息以及回调方法作为value形成键值对;Use the identification information of the peripheral device as the key, the peripheral information of the peripheral device, and the callback method as the value to form a key-value pair;
将键值对存储至预设的设备池中。Store key-value pairs in a preset device pool.
可选地,在向外设设备发起蓝牙连接时,创建设备池,以外设设备的标识信息为key,外设设备的外设信息以及回调方法为value,形成键值对,并将键值对存储在设备池中。Optionally, when initiating a Bluetooth connection to a peripheral device, a device pool is created, the identification information of the peripheral device is key, the peripheral information of the peripheral device and the callback method are value, a key-value pair is formed, and the key-value pair stored in the device pool.
本申请实施例提供的数据传输方法,通过以标识信息为key,外设设备的外设信息以及回调方法为value形成键值对,存储在设备池中,即可以直接在设备池中确定目标外设设备的外设信息和回调方法,保证了数据传输的准确性。In the data transmission method provided by the embodiment of the present application, by using the identification information as the key, the peripheral information of the peripheral device and the callback method as the value to form a key-value pair and store it in the device pool, that is, the target external device can be directly determined in the device pool. The peripheral information and callback method of the device ensure the accuracy of data transmission.
在一个实施例中,外设设备的标识信息通过以下方式确定:In one embodiment, the identification information of the peripheral device is determined in the following manner:
通过蓝牙扫描确定外设设备;Identify peripheral devices through Bluetooth scanning;
接收外设设备发送的广播包数据,并对广播包数据进行解析以确定外设设备的标识信息。The broadcast packet data sent by the peripheral device is received, and the broadcast packet data is parsed to determine the identification information of the peripheral device.
可选地,将外设设备上电,并将外设设备置为蓝牙广播发送状态,使外设设备可被以手机作为中心蓝牙管理者进行发现。打开APP,获取蓝牙权限并打开手机蓝牙;以手机作为蓝牙中心设备,并设置外设的服务UUID和发现外设设备的规则。Optionally, the peripheral device is powered on, and the peripheral device is set to the Bluetooth broadcast sending state, so that the peripheral device can be discovered by the mobile phone as the central Bluetooth manager. Open the APP, obtain the Bluetooth permission and turn on the Bluetooth of the mobile phone; use the mobile phone as the Bluetooth central device, and set the service UUID of the peripheral device and the rules for discovering peripheral devices.
手机开启蓝牙扫描发现附近外设设备,接收外设设备发送的广播包数据,通过解析外设广播包数据,即可获取外设对象的UUID或MAC,即外设设备的标识信息。The mobile phone turns on the Bluetooth scan to find nearby peripheral devices, receives the broadcast packet data sent by the peripheral device, and by analyzing the peripheral broadcast packet data, the UUID or MAC of the peripheral object can be obtained, that is, the identification information of the peripheral device.
本申请实施例提供的数据传输方法,通过解析外设设备发送的广播报数据,确定外设设备的唯一标识,保证了外设设备的标识信息的准确性。The data transmission method provided by the embodiment of the present application determines the unique identifier of the peripheral device by analyzing the broadcast data sent by the peripheral device, thereby ensuring the accuracy of the identification information of the peripheral device.
图2是应用本申请实施例提供的数据传输方法的流程示意图之一,图3是应用本申请实施例提供的数据传输方法的流程示意图之二,参照图2和图3,本申请实施例提供的数据传输方法包括以下步骤:Figure 2 is one of the schematic flow diagrams of the data transmission method provided by the embodiment of the application, and Figure 3 is the second schematic flow diagram of the data transmission method provided by the embodiment of the application. Referring to Figures 2 and 3, the embodiment of the application provides The data transfer method includes the following steps:
步骤1:手机作为中心设备扫描附近外设设备时,将外设设备的相关信息进行保存,iOS可以以外设的UUID作为外设的唯一标识(记 为key,下同),Android可以以外设的MAC作为key,具体步骤如下:Step 1: When the mobile phone is used as the central device to scan nearby peripheral devices, save the relevant information of the peripheral devices. iOS can use the UUID of the peripheral as the unique identifier of the peripheral (denoted as key, the same below), and Android can use the UUID of the peripheral MAC as the key, the specific steps are as follows:
1.将蓝牙设备上电,并将设备置为蓝牙广播发送状态,使设备可被以手机作为中心蓝牙管理者进行发现;1. Power on the Bluetooth device, and set the device to the Bluetooth broadcast sending state, so that the device can be discovered by the mobile phone as the central Bluetooth manager;
2.打开APP,获取蓝牙权限并打开手机蓝牙;以手机作为蓝牙中心设备,并设置外设的服务UUID和发现设备的规则;2. Open the APP, obtain the Bluetooth permission and turn on the Bluetooth of the mobile phone; use the mobile phone as the Bluetooth central device, and set the service UUID of the peripheral device and the rules for discovering the device;
3.手机开启蓝牙扫描发现附近外设,接收附近外设发送的广播包数据,并解析广播包数据,获取外设对象的UUID或MAC;3. The mobile phone turns on the Bluetooth scan to find nearby peripherals, receives the broadcast packet data sent by nearby peripherals, and parses the broadcast packet data to obtain the UUID or MAC of the peripheral object;
4.根据发现外设的规则确定目标设备,记录外设对象(记为peripheral),并记录外设对应的唯一标识key,停止扫描。4. Determine the target device according to the rules for discovering peripherals, record the peripheral object (denoted as peripheral), and record the unique identification key corresponding to the peripheral, and stop scanning.
步骤2:连接设备及数据通讯时,手机与外设建立蓝牙连接过程的状态回调和数据通讯要通过key在设备池找到对应的外设,以达到数据传输的准确性,具体步骤如下:Step 2: When connecting the device and data communication, the status callback and data communication of the Bluetooth connection process between the mobile phone and the peripheral device must find the corresponding peripheral device in the device pool through the key to achieve the accuracy of data transmission. The specific steps are as follows:
1.根据步骤1中获取的外设设备peripheral,中心设备发起对该外设设备的连接请求;1. According to the peripheral device obtained in step 1, the central device initiates a connection request to the peripheral device;
2.创建设备池,以外设设备的key和peripheral为键值对将peripheral和回调方法等设备信息存储到设备池;2. Create a device pool, and store peripheral and callback methods and other device information in the device pool with the key and peripheral of the peripheral device as key-value pairs;
3.监听连接过程中蓝牙状态和连接状态的改变,根据peripheral的key在设备池找到目标外设设备的状态回调方法,调用回调方法将目标外设设备的状态上报给上层业务;3. Monitor the changes of Bluetooth status and connection status during the connection process, find the status callback method of the target peripheral device in the device pool according to the peripheral key, and call the callback method to report the status of the target peripheral device to the upper-layer business;
4.连接成功后进行密钥协商,以保证蓝牙连接和数据交互的安全性;4. Carry out key negotiation after successful connection to ensure the security of Bluetooth connection and data interaction;
5.进入数据交互阶段,手机接收到目标外设设备发送的数据时,首先确定peripheral中的key,根据key在设备池中,确定设备信息中的数据交互的回调方法和解密方法,根据蓝牙协议及解密方法来解密数据,并通过数据交互回调方法将解密后的数据上报给APP;5. Enter the data interaction stage. When the mobile phone receives the data sent by the target peripheral device, it first determines the key in the peripheral, and determines the callback method and decryption method for the data interaction in the device information according to the key in the device pool. According to the Bluetooth protocol and the decryption method to decrypt the data, and report the decrypted data to the APP through the data interaction callback method;
6.APP需要下发数据给设备时,将数据按蓝牙协议组装,再使用加密方法对数据进行加密;根据传进来的key去设备池找到peripheral,蓝牙中心管理者将加密后的数据下发给目标外设设备。6. When the APP needs to send data to the device, it assembles the data according to the Bluetooth protocol, and then uses the encryption method to encrypt the data; according to the incoming key, it goes to the device pool to find the peripheral, and the Bluetooth center manager sends the encrypted data to target peripheral device.
步骤3:断开设备连接时,当手机与外设的连接断开时要通过key去设备池找到对应的peripheral,取消对应外设的连接并清空数据, 具体步骤如下:Step 3: When disconnecting the device, when the connection between the mobile phone and the peripheral is disconnected, find the corresponding peripheral in the device pool through the key, cancel the connection of the corresponding peripheral and clear the data. The specific steps are as follows:
1.当手机主动和外设断开连接时,根据key找到peripheral,执行断开方法,等待断开成功的回调通知;1. When the mobile phone actively disconnects from the peripheral device, find the peripheral according to the key, execute the disconnection method, and wait for the callback notification of successful disconnection;
2.当接收到被动断开成功的回调或设备主动断开蓝牙连接的回调时,根据peripheral的key,获取到设备池中的设备信息中的断开连接的回调方法,将设备断开连接的信息准确上报给APP;2. When receiving the callback of passive disconnection success or the callback of the device actively disconnecting the Bluetooth connection, according to the peripheral key, obtain the disconnection callback method in the device information in the device pool, and disconnect the device The information is accurately reported to the APP;
3.通过key清除设备池中的设备信息,一次设备连接结束。3. Clear the device information in the device pool through the key, and a device connection ends.
根据以上步骤,通过外设设备的唯一标识key保存外设、状态回调方法、数据交互回调方法和断开连接的回调方法等设备信息,即可在发现相应业务时准确的找到对应的设备信息的回调方法,将数据上报到上层的业务层,而上层的业务层即可准确的处理业务,以此来保证APP功能的稳定性了。此外,通过以上步骤,可保证手机在与多设备连接的情况下,在设备连接、数据传输和连接断开时能准确的通知到具体的设备,上层业务逻辑才能更加稳定。According to the above steps, save the device information such as the peripheral device, status callback method, data interaction callback method, and disconnection callback method through the unique identification key of the peripheral device, so that you can accurately find the corresponding device information when discovering the corresponding business. The callback method reports the data to the upper business layer, and the upper business layer can accurately process the business, so as to ensure the stability of the APP function. In addition, through the above steps, it can be ensured that when the mobile phone is connected to multiple devices, the specific device can be accurately notified when the device is connected, data is transmitted, and the connection is disconnected, so that the upper-layer business logic can be more stable.
图4为本申请实施例提供的数据传输装置的结构示意图。参照图4,本申请提供的数据传输装置包括:FIG. 4 is a schematic structural diagram of a data transmission device provided by an embodiment of the present application. Referring to Figure 4, the data transmission device provided by the present application includes:
关联模块410,用于将外设设备的标识信息与外设设备的外设信息以及回调方法进行关联;An associating module 410, configured to associate the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
确定模块420,用于根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个;A determining module 420, configured to determine a target peripheral device from a plurality of peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
传输模块430,用于根据目标外设设备的外设信息与回调方法中的至少一个,进行目标外设设备与应用程序之间的数据传输。The transmission module 430 is configured to perform data transmission between the target peripheral device and the application program according to at least one of the peripheral information of the target peripheral device and a callback method.
本申请实施例提供的数据传输装置,通过外设设备的标识信息在多个外设设备中准确确定出目标外设设备,和目标外设设备的外设信息以及回调方法,从而实现了应用程序与目标外设设备之间数据的准确传输,有效地解决了在连接多个外设设备场景下数据传输的准确性,为用户提供了良好的智能化体验。The data transmission device provided by the embodiment of the present application can accurately determine the target peripheral device among multiple peripheral devices through the identification information of the peripheral device, and the peripheral information of the target peripheral device and the callback method, thereby realizing the application program The accurate transmission of data with the target peripheral device effectively solves the problem of the accuracy of data transmission in the scenario of connecting multiple peripheral devices, and provides users with a good intelligent experience.
在一个实施例中,本申请实施例提供的数据传输装置,还包括:In one embodiment, the data transmission device provided in the embodiment of the present application further includes:
第二关联模块,用于将外设设备的标识信息与外设设备的加密方 法以及解密方法进行关联。The second association module is used to associate the identification information of the peripheral device with the encryption method and the decryption method of the peripheral device.
在一个实施例中,确定模块420具体用于:In one embodiment, the determining module 420 is specifically used to:
接收目标外设设备发送的第一数据;receiving the first data sent by the target peripheral device;
从第一数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的解密方法以及目标外设设备的数据交互回调方法;Determine the identification information of the target peripheral device from the first data, and determine the decryption method of the target peripheral device and the data interaction callback method of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的解密方法用于对第一数据中的待发送数据进行解密;Wherein, the decryption method of the target peripheral device is used to decrypt the data to be sent in the first data;
目标外设设备的数据交互回调方法用于将解密后的待发送数据发送给应用程序。The data interaction callback method of the target peripheral device is used to send the decrypted data to be sent to the application program.
在一个实施例中,确定模块420具体用于:In one embodiment, the determining module 420 is specifically used to:
接收应用程序发送的第二数据;receiving the second data sent by the application;
从第二数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的加密方法以及目标外设设备的外设信息;Determine the identification information of the target peripheral device from the second data, and determine the encryption method of the target peripheral device and the peripheral information of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的加密方法用于对第二数据中的待发送数据进行加密;Wherein, the encryption method of the target peripheral device is used to encrypt the data to be sent in the second data;
目标外设设备的外设信息用于将加密后的待发送数据发送给目标外设设备。The peripheral information of the target peripheral device is used to send the encrypted data to be sent to the target peripheral device.
在一个实施例中,确定模块420具体用于:In one embodiment, the determining module 420 is specifically used to:
接收目标外设设备发送的第三数据;receiving third data sent by the target peripheral device;
从第三数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的断开连接回调方法;Determine the identification information of the target peripheral device from the third data, and determine the disconnection callback method of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的断开连接回调方法用于将目标外设备断开连接的信息上传至应用程序。Wherein, the disconnection callback method of the target peripheral device is used to upload the disconnection information of the target peripheral device to the application program.
在一个实施例中,确定模块420具体用于:In one embodiment, the determining module 420 is specifically used to:
接收目标外设设备发送的第四数据;receiving the fourth data sent by the target peripheral device;
从第四数据中确定目标外设设备的标识信息,并根据目标外设设备的标识信息确定目标外设设备的状态回调方法;Determine the identification information of the target peripheral device from the fourth data, and determine the state callback method of the target peripheral device according to the identification information of the target peripheral device;
其中,目标外设设备的状态回调方法用于将目标外设设备的状态 信息上传至应用程序。Wherein, the state callback method of the target peripheral device is used to upload the state information of the target peripheral device to the application program.
在一个实施例中,关联模块410具体用于:In one embodiment, the association module 410 is specifically used to:
将外设设备的标识信息作为key、外设设备的外设信息以及回调方法作为value形成键值对;Use the identification information of the peripheral device as the key, the peripheral information of the peripheral device, and the callback method as the value to form a key-value pair;
将键值对存储至预设的设备池中。Store key-value pairs in a preset device pool.
在一个实施例中,外设设备的标识信息通过以下方式确定:In one embodiment, the identification information of the peripheral device is determined in the following manner:
通过蓝牙扫描确定外设设备;Identify peripheral devices through Bluetooth scanning;
接收外设设备发送的广播包数据,并对广播包数据进行解析以确定外设设备的标识信息。The broadcast packet data sent by the peripheral device is received, and the broadcast packet data is parsed to determine the identification information of the peripheral device.
图5示例了一种电子设备的实体结构示意图,如图5所示,该电子设备可以包括:处理器(processor)510、通信接口(Communications Interface)520、存储器(memory)530和通信总线540,其中,处理器510,通信接口520,存储器530通过通信总线540完成相互间的通信。处理器510可以调用存储器530中的逻辑指令,以执行如下方法:FIG. 5 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 5, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, Wherein, the processor 510 , the communication interface 520 , and the memory 530 communicate with each other through the communication bus 540 . The processor 510 can call logic instructions in the memory 530 to perform the following methods:
将外设设备的标识信息与外设设备的外设信息以及回调方法进行关联;Associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个;Determine a target peripheral device from multiple peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
根据目标外设设备的外设信息与回调方法中的至少一个,进行目标外设设备与应用程序之间的数据传输。According to at least one of the peripheral information of the target peripheral device and the callback method, data transmission between the target peripheral device and the application program is performed.
此外,上述的存储器530中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above logic instructions in the memory 530 may be implemented in the form of software function units and be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc and other media that can store program codes.
进一步地,本申请实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的数据传输方法,例如包括:Furthermore, the embodiment of the present application discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by the computer When executing, the computer can execute the data transmission method provided by the above method embodiments, for example including:
将外设设备的标识信息与外设设备的外设信息以及回调方法进行关联;Associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个;Determine a target peripheral device from multiple peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
根据目标外设设备的外设信息与回调方法中的至少一个,进行目标外设设备与应用程序之间的数据传输。According to at least one of the peripheral information of the target peripheral device and the callback method, data transmission between the target peripheral device and the application program is performed.
另一方面,本申请实施例还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的数据传输方法,例如包括:On the other hand, the embodiments of the present application also provide a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data transmission methods provided by the above-mentioned embodiments are implemented, for example include:
将外设设备的标识信息与外设设备的外设信息以及回调方法进行关联;Associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
根据接收到的标识信息从多个外设设备中确定目标外设设备,以及目标外设设备的外设信息与回调方法中的至少一个;Determine a target peripheral device from multiple peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
根据目标外设设备的外设信息与回调方法中的至少一个,进行目标外设设备与应用程序之间的数据传输。According to at least one of the peripheral information of the target peripheral device and the callback method, data transmission between the target peripheral device and the application program is performed.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative efforts.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光 盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
以上实施方式仅用于说明本申请,而非对本申请的限制。尽管参照实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,对本申请的技术方案进行各种组合、修改或者等同替换,都不脱离本申请技术方案的范围,均应涵盖在本申请的权利要求范围中。The above embodiments are only used to illustrate the present application, but not to limit the present application. Although the present application has been described in detail with reference to the embodiments, those of ordinary skill in the art should understand that various combinations, modifications or equivalent replacements of the technical solutions of the present application will not depart from the scope of the technical solutions of the present application, and should be covered in this application. within the scope of the claims of the application.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present application, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的机构、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent a mechanism, segment or portion of code comprising one or more executable instructions for implementing specific logical functions or steps of a process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(可以是个人计算机,服务器,网络设备或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何 可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For the use of instruction execution systems, devices or equipment (which may be personal computers, servers, network equipment or other systems that can fetch instructions from instruction execution systems, devices or devices and execute instructions), or in combination with these instruction execution systems, devices or devices And use. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transmit a program for use in or in conjunction with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, as it may be possible, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
以上所述仅为本申请的实施方式,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效机构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only the implementation of the application, and does not limit the patent scope of the application. Any equivalent mechanism or equivalent process conversion made by using the specification and drawings of the application, or directly or indirectly used in other related technologies fields, are all included in the scope of patent protection of this application in the same way.

Claims (12)

  1. 一种数据传输方法,包括:A data transmission method comprising:
    将外设设备的标识信息与所述外设设备的外设信息以及回调方法进行关联;Associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
    根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个;determining a target peripheral device from a plurality of peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
    根据所述目标外设设备的外设信息与回调方法中的至少一个,进行所述目标外设设备与应用程序之间的数据传输。According to at least one of the peripheral information of the target peripheral device and the callback method, the data transmission between the target peripheral device and the application program is performed.
  2. 根据权利要求1所述的数据传输方法,还包括:The data transmission method according to claim 1, further comprising:
    将所述外设设备的标识信息与所述外设设备的加密方法以及解密方法进行关联。Associating the identification information of the peripheral device with the encryption method and the decryption method of the peripheral device.
  3. 根据权利要求2所述的数据传输方法,其中,所述根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个,包括:The data transmission method according to claim 2, wherein the target peripheral device is determined from a plurality of peripheral devices according to the received identification information, and the peripheral device information and callback method of the target peripheral device at least one of, including:
    接收所述目标外设设备发送的第一数据;receiving first data sent by the target peripheral device;
    从所述第一数据中确定所述目标外设设备的标识信息,并根据所述目标外设设备的标识信息确定所述目标外设设备的解密方法以及所述目标外设设备的数据交互回调方法;Determine the identification information of the target peripheral device from the first data, and determine the decryption method of the target peripheral device and the data interaction callback of the target peripheral device according to the identification information of the target peripheral device method;
    其中,所述目标外设设备的解密方法用于对所述第一数据中的待发送数据进行解密;Wherein, the decryption method of the target peripheral device is used to decrypt the data to be sent in the first data;
    所述目标外设设备的数据交互回调方法用于将解密后的待发送数据发送给所述应用程序。The data interaction callback method of the target peripheral device is used to send the decrypted data to be sent to the application program.
  4. 根据权利要求2所述的数据传输方法,其中,所述根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个,包括:The data transmission method according to claim 2, wherein the target peripheral device is determined from a plurality of peripheral devices according to the received identification information, and the peripheral device information and callback method of the target peripheral device at least one of, including:
    接收所述应用程序发送的第二数据;receiving second data sent by the application;
    从所述第二数据中确定所述目标外设设备的标识信息,并根据所述目标外设设备的标识信息确定所述目标外设设备的加密方法以及所述目标外设设备的外设信息;Determine the identification information of the target peripheral device from the second data, and determine the encryption method of the target peripheral device and the peripheral information of the target peripheral device according to the identification information of the target peripheral device ;
    其中,所述目标外设设备的加密方法用于对所述第二数据中的待发送数据进行加密;Wherein, the encryption method of the target peripheral device is used to encrypt the data to be sent in the second data;
    所述目标外设设备的外设信息用于将加密后的待发送数据发送给所述目标外设设备。The peripheral information of the target peripheral device is used to send the encrypted data to be sent to the target peripheral device.
  5. 根据权利要求1所述的数据传输方法,其中,所述根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个,包括:The data transmission method according to claim 1, wherein the target peripheral device is determined from a plurality of peripheral devices according to the received identification information, and the peripheral device information and callback method of the target peripheral device at least one of, including:
    接收所述目标外设设备发送的第三数据;receiving third data sent by the target peripheral device;
    从所述第三数据中确定所述目标外设设备的标识信息,并根据所述目标外设设备的标识信息确定所述目标外设设备的断开连接回调方法;determining the identification information of the target peripheral device from the third data, and determining a disconnection callback method of the target peripheral device according to the identification information of the target peripheral device;
    其中,所述目标外设设备的断开连接回调方法用于将所述目标外设备断开连接的信息上传至所述应用程序。Wherein, the disconnection callback method of the target peripheral device is used to upload the disconnection information of the target peripheral device to the application program.
  6. 根据权利要求1所述的数据传输方法,其中,所述根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个,包括:The data transmission method according to claim 1, wherein the target peripheral device is determined from a plurality of peripheral devices according to the received identification information, and the peripheral device information and callback method of the target peripheral device at least one of, including:
    接收所述目标外设设备发送的第四数据;receiving fourth data sent by the target peripheral device;
    从所述第四数据中确定所述目标外设设备的标识信息,并根据所述目标外设设备的标识信息确定所述目标外设设备的状态回调方法;determining the identification information of the target peripheral device from the fourth data, and determining a state callback method of the target peripheral device according to the identification information of the target peripheral device;
    其中,所述目标外设设备的状态回调方法用于将所述目标外设设备的状态信息上传至所述应用程序。Wherein, the state callback method of the target peripheral device is used to upload the state information of the target peripheral device to the application program.
  7. 根据权利要求1-6任一项所述的数据传输方法,其中,所述将外设设备的标识信息与所述外设设备的外设信息以及回调方法进行关联,包括:The data transmission method according to any one of claims 1-6, wherein said associating the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method includes:
    将所述外设设备的标识信息作为key、所述外设设备的外设信息以及回调方法作为value形成键值对;Using the identification information of the peripheral device as key, the peripheral information of the peripheral device and the callback method as value to form a key-value pair;
    将所述键值对存储至预设的设备池中。The key-value pair is stored in a preset device pool.
  8. 根据权利要求1-6任一项所述的数据传输方法,其中,所述外设设备的标识信息通过以下方式确定:The data transmission method according to any one of claims 1-6, wherein the identification information of the peripheral device is determined in the following manner:
    通过蓝牙扫描确定所述外设设备;Determining the peripheral device through Bluetooth scanning;
    接收所述外设设备发送的广播包数据,并对所述广播包数据进行解析以确定所述外设设备的标识信息。The broadcast packet data sent by the peripheral device is received, and the broadcast packet data is parsed to determine the identification information of the peripheral device.
  9. 一种数据传输装置,包括:A data transmission device, comprising:
    关联模块,用于将外设设备的标识信息与所述外设设备的外设信息以及回调方法进行关联;An associating module, configured to associate the identification information of the peripheral device with the peripheral information of the peripheral device and the callback method;
    确定模块,用于根据接收到的标识信息从多个所述外设设备中确定目标外设设备,以及所述目标外设设备的外设信息与回调方法中的至少一个;A determining module, configured to determine a target peripheral device from a plurality of peripheral devices according to the received identification information, and at least one of peripheral information and a callback method of the target peripheral device;
    传输模块,用于根据所述目标外设设备的外设信息与回调方法中的至少一个,进行所述目标外设设备与应用程序之间的数据传输。A transmission module, configured to perform data transmission between the target peripheral device and an application program according to at least one of the peripheral information of the target peripheral device and a callback method.
  10. 一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如权利要求1至8任一项所述数据传输方法的步骤。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, the data transmission method according to any one of claims 1 to 8 is realized A step of.
  11. 一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述数据传输方法的步骤。A non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 8 are realized.
  12. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述数据传输方法的步骤。A computer program product, comprising a computer program, which implements the steps of the data transmission method according to any one of claims 1 to 8 when the computer program is executed by a processor.
PCT/CN2022/130346 2021-12-13 2022-11-07 Data transmission method and apparatus, and electronic device, storage medium and computer program product WO2023109366A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111515706.8 2021-12-13
CN202111515706.8A CN116264677A (en) 2021-12-13 2021-12-13 Data transmission method and device

Publications (1)

Publication Number Publication Date
WO2023109366A1 true WO2023109366A1 (en) 2023-06-22

Family

ID=86721881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/130346 WO2023109366A1 (en) 2021-12-13 2022-11-07 Data transmission method and apparatus, and electronic device, storage medium and computer program product

Country Status (2)

Country Link
CN (1) CN116264677A (en)
WO (1) WO2023109366A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160105866A1 (en) * 2013-05-20 2016-04-14 Ruckus Wireless Sngapore Pte. Ltd A method and apparatus for recording information from a plurality of mobile devices in an area
US20170099288A1 (en) * 2015-10-05 2017-04-06 Nintendo Co., Ltd. Information processing system, peripheral device, wireless communication chip, computer-readable non-transitory storage medium having application program stored therein, and information processing method
US20170171255A1 (en) * 2015-12-11 2017-06-15 Xiaomi Inc. Method and device for establishing a data connection and computer-readable medium
CN111935694A (en) * 2020-10-15 2020-11-13 飞天诚信科技股份有限公司 Bluetooth device connection method and device, electronic device and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160105866A1 (en) * 2013-05-20 2016-04-14 Ruckus Wireless Sngapore Pte. Ltd A method and apparatus for recording information from a plurality of mobile devices in an area
US20170099288A1 (en) * 2015-10-05 2017-04-06 Nintendo Co., Ltd. Information processing system, peripheral device, wireless communication chip, computer-readable non-transitory storage medium having application program stored therein, and information processing method
US20170171255A1 (en) * 2015-12-11 2017-06-15 Xiaomi Inc. Method and device for establishing a data connection and computer-readable medium
CN111935694A (en) * 2020-10-15 2020-11-13 飞天诚信科技股份有限公司 Bluetooth device connection method and device, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN116264677A (en) 2023-06-16

Similar Documents

Publication Publication Date Title
US20220303276A1 (en) Network connection method, hotspot terminal and management terminal
EP3005822B1 (en) Mac layer transport for wi-fi direct services application service platform without internet protocol
JP6219501B2 (en) Access control for wireless docking
JP5607655B2 (en) Unencrypted network operation solution
JP6293874B2 (en) Wireless docking architecture
JP6359646B2 (en) Use and configuration of wireless docking environment
CN102484655B (en) Public robot management method and system in private networks
CN104982021A (en) Authenticating a wireless dockee to a wireless docking service
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
WO2016155015A1 (en) Multi-group regrouping method and device
EP2158690B1 (en) System and method for network setup of wireless device for home network
EP2922325A1 (en) Method and apparatus for communication security processing
EP1575216B1 (en) Method to invoke service among devices in home network
KR20230107742A (en) Network function registration methods, discovery methods, devices, equipment and media
WO2020259691A1 (en) Device information management method, apparatus, and system
WO2023109366A1 (en) Data transmission method and apparatus, and electronic device, storage medium and computer program product
CN106130874B (en) enterprise integrated information processing method fusing multiple communication modes
TWI679870B (en) Information processing method and device
CN116545777B (en) User category switching method and device, storage medium and electronic equipment
US20070255827A1 (en) Termination of a security association between devices
WO2022033405A1 (en) Information processing method and apparatus, device, and readable storage medium
WO2016205998A1 (en) Data transmission method, device and system
KR100898734B1 (en) Method and system for initial connecting between media server and application server for call process service
WO2022213486A1 (en) Network function registration method and apparatus, network function discovery method and apparatus, and device and medium
KR100601045B1 (en) Authentication server system and authentication server management method using IPC

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: 22906118

Country of ref document: EP

Kind code of ref document: A1