WO2021237975A1 - 蓝牙数据封装通信方法及装置 - Google Patents

蓝牙数据封装通信方法及装置 Download PDF

Info

Publication number
WO2021237975A1
WO2021237975A1 PCT/CN2020/113493 CN2020113493W WO2021237975A1 WO 2021237975 A1 WO2021237975 A1 WO 2021237975A1 CN 2020113493 W CN2020113493 W CN 2020113493W WO 2021237975 A1 WO2021237975 A1 WO 2021237975A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
data
information
connection
tcp
Prior art date
Application number
PCT/CN2020/113493
Other languages
English (en)
French (fr)
Inventor
曾德炎
戴启军
陈烈
Original Assignee
拉卡拉支付股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 拉卡拉支付股份有限公司 filed Critical 拉卡拉支付股份有限公司
Publication of WO2021237975A1 publication Critical patent/WO2021237975A1/zh

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present disclosure relates to the field of wireless communication technology, and in particular to a Bluetooth data encapsulation communication method, device, electronic equipment and storage medium.
  • mobile communication technology has evolved multiple technical branches, such as 3G, 4G, and 5G cellular networks for long-distance and large-range wireless communication, and WIFI technology for medium-distance access.
  • Bluetooth technology to adapt to short-distance communication. Since there are essential differences in the specific implementation of each communication technology, network communication can only be achieved with the support of specific software and hardware. Therefore, the user equipment needs to add corresponding hardware units and software for each additional communication method supported. Modules have an extremely obvious impact on equipment costs.
  • the prior art In order to control costs, the prior art often designs user equipment according to the degree of user dependence, and only integrates multiple general communication modules in the core user terminal equipment, while only one communication module is used in the peripheral equipment according to a typical application scenario.
  • user mobile phones usually integrate multiple communication modes such as cellular communication, WIFI and Bluetooth; mobile terminals such as PAD or notebooks usually integrate WIFI and Bluetooth modules; and smart hardware such as bracelets, watches, earphones, and speakers often only Keep the Bluetooth module, and use it as a peripheral device to establish a Bluetooth connection with the core device.
  • the hardware cost of the device can be effectively controlled and the burden on users can be reduced.
  • the inventor found that the general Bluetooth connection method in the prior art has too low positioning of the peripheral device, and there is no control authority when accessing as a slave device, and it can only be accessed through the master.
  • the specific application (App) in the device passively accepts the user's input control, which brings a lot of trouble to the user and the system design.
  • mPOS Mobile Point of Sale
  • mPOS Mobile Point of Sale
  • mPOS Mobile Point of Sale
  • the first user (usually the payee) can only use the specific App in the mobile phone to issue specific setting information to the mPOS machine; the second user (usually the payer) swipes the card on the mPOS machine, because The mPOS machine does not have the ability to access the Internet. It can only send data to the mobile phone, and the mobile phone and the server background complete the message exchange; similarly, the signature of the second user can only be completed in the specific App of the mobile phone.
  • the above-mentioned whole process of mPOS machine is more like a card reader, which does not bring more convenience to users. On the contrary, due to the cumbersome operation process and the heavy workload of specific App development, operation and maintenance, it brings users and suppliers. More pressure came.
  • the embodiments of the present disclosure propose a Bluetooth data encapsulation communication method, device, electronic device, and computer-readable storage medium to solve the problem that Bluetooth slave devices cannot quickly access the Internet in the prior art .
  • the first aspect of the embodiments of the present disclosure provides a Bluetooth data encapsulation communication method, including:
  • the method further includes:
  • the method further includes:
  • the first thread to implement data processing at the application layer in the method includes:
  • the first thread determines that a BNEP connection needs to be established according to the current transaction information, uses the TCP protocol to encapsulate the current transaction information and user card swiping information, and initiates a TCP connection to send data;
  • the first thread also receives TCP data in the buffer, analyzes and processes the TCP data to obtain result information, and confirms the completion of the transaction according to the result information.
  • the implementation of the bottom layer Bluetooth communication in the method by the second thread includes:
  • the second thread receives Bluetooth data from the Bluetooth serial port and parses it according to the Bluetooth protocol
  • connection setting information If the specific connection setting information is parsed, the corresponding connection status is set;
  • the TCP data is put into the buffer.
  • a second aspect of the embodiments of the present disclosure provides a Bluetooth data encapsulation communication device, including:
  • the data encapsulation module is used to set the transaction information, receive the user's card swiping information, and perform TCP encapsulation and BNEP encapsulation to generate a Bluetooth data group package;
  • the BNEP connection module is used to initiate a BNEP connection request according to the Bluetooth data packet, and establish a BNEP connection with the first terminal as the master device;
  • the TCP sending module is used to call the mobile communication module of the first terminal through the BNEP connection, and send the current transaction information and user card swiping information encapsulated in the Bluetooth data packet to the background server via the Internet;
  • the receiving module is used to receive the result information returned by the background server through the first terminal;
  • the data processing module is used to confirm the completion of the transaction according to the result information obtained after receiving and parsing.
  • the device further includes:
  • the Bluetooth connection module is used to search for Bluetooth paired devices, as a slave device to establish a general Bluetooth connection with the first terminal.
  • the device further includes:
  • the thread management module is used to create two threads, where the first thread implements data processing at the application layer in the method, and the second thread implements the Bluetooth communication at the bottom of the method.
  • the thread management module includes:
  • the transaction thread sending module is used to determine the need to establish a BNEP connection based on the transaction information, use the TCP protocol to encapsulate the transaction information and user card swiping information, and initiate a TCP connection to send data;
  • the transaction thread receiving module is used to receive the TCP data in the buffer, analyze and process the TCP data to obtain the result information, and confirm the completion of the transaction according to the result information.
  • the thread management module includes:
  • the background thread receiving module is used to receive Bluetooth data from the Bluetooth serial port and parse it according to the Bluetooth protocol
  • connection setting module is used to set the corresponding connection status when the specific connection setting information is parsed
  • the data buffer module is used to put the TCP data into the buffer when parsing the received TCP data.
  • a third aspect of the embodiments of the present disclosure provides an electronic device, including:
  • Memory and one or more processors
  • the memory is in communication connection with the one or more processors, and the memory stores instructions executable by the one or more processors, and the instructions are executed by the one or more processors At this time, the electronic device is used to implement the methods described in the foregoing embodiments.
  • the fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium on which computer-executable instructions are stored.
  • the computer-executable instructions When executed by a computing device, they can be used to implement the Methods.
  • the fifth aspect of the embodiments of the present disclosure provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer At this time, it can be used to implement the methods described in the foregoing embodiments.
  • Bluetooth slave devices with only Bluetooth communication capabilities can achieve Internet access capabilities without increasing the cost of software and hardware, thereby effectively improving the applicability of the device and achieving fast and convenient The operation improves the user experience.
  • FIG. 1A is a schematic flowchart of a Bluetooth data encapsulation communication method according to some embodiments of the present disclosure
  • FIG. 1B is a schematic flowchart of a communication method in an application scenario of swiping a card with an mPOS machine according to some embodiments of the present disclosure
  • Figure 2 is a hierarchical architecture diagram of the BNEP protocol according to some embodiments of the present disclosure
  • Fig. 3 is a diagram showing a state change of the user interface of the mPOS machine according to some embodiments of the present disclosure
  • FIG. 4 is a schematic diagram of a module structure of a Bluetooth data encapsulation communication device according to some embodiments of the present disclosure
  • Fig. 5 is a schematic structural diagram of an electronic device according to some embodiments of the present disclosure.
  • the devices at both ends of the Bluetooth connection will be set as the master device and the slave device respectively.
  • the master device has absolute control, while the slave device usually can only passively send and receive files, which greatly limits the ability of the Bluetooth slave device to expand , Can not bring more convenience to users.
  • the embodiments of the present disclosure provide a Bluetooth data encapsulation communication method.
  • the Bluetooth data is encapsulated into a TCP message for transmission, so that peripheral devices with only Bluetooth communication capabilities can effectively call the core device 3G/4G/5G network, which simplifies user operations and reduces the complexity of system design.
  • the Bluetooth data encapsulation communication method includes:
  • S101 Set the transaction information, receive the user's card swiping information, and perform TCP encapsulation and BNEP encapsulation to generate a Bluetooth data group package;
  • S102 Initiate a BNEP connection request according to the Bluetooth data packet, and establish a BNEP connection with the first terminal as the master device;
  • S103 Invoke the mobile communication module of the first terminal through the BNEP connection, and send the current transaction information and user card swiping information encapsulated in the Bluetooth data packet to the background server via the Internet;
  • S104 Receive the result information returned by the background server through the first terminal
  • the above method starts from a Bluetooth peripheral device (usually as a slave device in a Bluetooth connection) that does not have other communication capabilities, and describes the process of achieving Internet access by means of the mobile communication module of the first terminal.
  • a Bluetooth peripheral device usually as a slave device in a Bluetooth connection
  • the technical solution of the embodiments of the present disclosure is a multi-device interactive communication method. Each device has its own corresponding data processing process.
  • the description of the unilateral processing process of the Bluetooth peripheral device should not It is regarded as a specific limitation to the realization of the technical solution of the present disclosure.
  • Fig. 1B in a preferred embodiment of the present disclosure, taking the application scenario of mPOS machine swiping as an example, the communication method in a complete task processing process is described in more detail:
  • the mPOS machine starts up, the first terminal searches for a Bluetooth paired device, and the mPOS machine acts as a slave device to establish a general Bluetooth connection with the first terminal.
  • the first terminal is preferably a mobile phone, but other devices with both Bluetooth and Internet communication capabilities (such as PADs, laptops, etc.) can be applied to the embodiments of the present disclosure, so the type of the first terminal is not described here. More specific restrictions.
  • the Bluetooth connection of the two devices may need to be initialized during the initial connection, requiring the user to manually select the device and confirm; after the first connection is successfully established, subsequent reconnections can be automatically completed by the two devices without user intervention.
  • the mPOS machine sets the transaction information, receives the user's card swiping information, performs TCP encapsulation and BNEP encapsulation to generate a Bluetooth data group package;
  • the mobile communication module of the first terminal is called through the BNEP connection, and the current transaction information and user card swiping information encapsulated in the Bluetooth data packet are sent to the background server via the Internet.
  • the mobile communication module of the first terminal receives the TCP encapsulation result information returned by the background server, adds BNEP encapsulation, and sends it to the mPOS machine through the BNEP connection. Furthermore, the mPOS machine may interact with the first terminal and the back-end server multiple times. After receiving the transaction result information, the payment user will then handwrite the signature on the mPOS machine; perform TCP encapsulation and BNEP encapsulation on the signature information, repeating the previous data In the sending and receiving process, the processing result information of the signature information is received from the background server, and then transmitted to the mPOS machine by the first terminal.
  • the mPOS machine obtains the result information after analysis, confirming the completion of the transaction (success or failure). If the transaction is successfully completed, the transaction receipt can be printed on demand to end the entire transaction process; if the transaction fails, the user will be notified to end the transaction, and the transaction operation can be initiated again when needed.
  • BNEP Bluetooth Network Encapsulation Protocol, Bluetooth Network Encapsulation Protocol
  • the network application layer of the upper layer of the BNEP protocol mainly encapsulates and processes data through the TCP protocol or UDP protocol, and transmits data through the IP protocol; while the middle layer encapsulates the TCP message into a format supported by Bluetooth through BNEP encapsulation, and finally passes through the bottom layer
  • the Bluetooth communication module (including but not limited to Bluetooth baseband and Bluetooth radio frequency, etc.) transmits data to another Bluetooth device.
  • the mPOS machine manages and implements the above process through two threads: a transaction thread and a background thread; among them, the transaction thread is responsible for data processing at the application layer, and the background thread is responsible for the underlying Bluetooth communication.
  • the background thread is responsible for receiving the Bluetooth data from the Bluetooth serial port and analyzing it according to the Bluetooth protocol. If the specific connection setting information is parsed, the corresponding connection state is set; if the analysis receives the TCP data, the TCP data is put into Buffer, waiting for the transaction thread of the upper layer of the protocol to get used.
  • the transaction thread is responsible for the upper-level data processing, such as determining to connect to BNEP according to the transaction information, TCP encapsulating information, initiating a TCP connection to send data (the subsequent Bluetooth interaction is completed by the background thread); and receiving the TCP data in the buffer, analyzing and processing the data to obtain the result Information, confirmation of transactions, etc.
  • the mobile terminal after receiving the Bluetooth data of the mPOS machine and analyzing the TCP data, it does not provide data to the upper network application layer (because there is no similar upper App application in the mobile terminal in the embodiment of the present disclosure), and It directly forwards TCP data to the background server on the other end of the Internet through the mobile communication module; after receiving the TCP data returned by the background server, it is also not processed locally in the mobile terminal, but is encapsulated in BNEP and sent to the mPOS machine through the Bluetooth communication module.
  • the mobile terminal in the embodiments of the present disclosure does not need to design and develop a specific App at all.
  • the work originally completed by the App is distributed to the mPOS machine and the two terminal backends, which reduces the complexity of system development and further reduces the overall cost.
  • all operations can be completed only through the interface of the mPOS machine.
  • the first user usually the payee
  • the second user usually the payer
  • swipes the card in the mPOS machine And enter the transaction password of the card accordingly
  • the mPOS machine completes the data interaction at the back end, and after receiving the transaction result information, the second user writes the signature on the mPOS machine
  • the mPOS machine completes the data interaction again at the back end and receives the signature After processing the result information, confirm the success of this transaction.
  • the user can complete the entire process only through the mPOS machine at the front end, without switching back and forth between the mPOS machine and the merchant’s mobile terminal; at the same time, the mPOS machine with only the Bluetooth communication module can also actively complete the Internet interaction.
  • the embodiments of the present disclosure implement fast and convenient applications of low-cost mPOS machines, further reduce system development and maintenance costs, and enhance user experience.
  • Bluetooth data encapsulation communication method proposed in the embodiments of the present disclosure, traditional Bluetooth slave devices with only Bluetooth communication capabilities can achieve Internet access capabilities without increasing the cost of software and hardware, thereby effectively improving the applicability of the device and achieving The quick and convenient operation improves the user experience.
  • Fig. 4 is a schematic diagram of a Bluetooth data encapsulation communication device according to some embodiments of the present disclosure.
  • the Bluetooth data encapsulation communication device 400 includes a data encapsulation module 401, a BNEP connection module 402, a TCP sending module 403, a receiving module 404, and a data processing module 405; among them,
  • the data encapsulation module is used to set the transaction information, receive the user's card swiping information, and perform TCP encapsulation and BNEP encapsulation to generate a Bluetooth data group package;
  • the BNEP connection module is used to initiate a BNEP connection request according to the Bluetooth data packet, and establish a BNEP connection with the first terminal as the master device;
  • the TCP sending module is used to call the mobile communication module of the first terminal through the BNEP connection, and send the current transaction information and user card swiping information encapsulated in the Bluetooth data packet to the background server via the Internet;
  • the receiving module is used to receive the result information returned by the background server through the first terminal;
  • the data processing module is used to confirm the completion of the transaction according to the result information obtained after receiving and parsing.
  • the device further includes:
  • the Bluetooth connection module is used to search for Bluetooth paired devices, as a slave device to establish a general Bluetooth connection with the first terminal.
  • the device further includes:
  • the thread management module is used to create two threads, where the first thread implements data processing at the application layer in the method, and the second thread implements the Bluetooth communication at the bottom of the method.
  • the thread management module includes:
  • the transaction thread sending module is used to determine the need to establish a BNEP connection based on the transaction information, use the TCP protocol to encapsulate the transaction information and user card swiping information, and initiate a TCP connection to send data;
  • the transaction thread receiving module is used to receive the TCP data in the buffer, analyze and process the TCP data to obtain the result information, and confirm the completion of the transaction according to the result information.
  • the thread management module includes:
  • the background thread receiving module is used to receive Bluetooth data from the Bluetooth serial port and parse it according to the Bluetooth protocol
  • connection setting module is used to set the corresponding connection status when the specific connection setting information is parsed
  • the data buffer module is used to put the TCP data into the buffer when parsing the received TCP data.
  • the electronic device 500 includes:
  • the memory 530 is in communication connection with the one or more processors 510, and the memory 530 stores instructions 532 executable by the one or more processors, and the instructions 532 are controlled by the one or more processors.
  • a plurality of processors 510 execute, so that the one or more processors 510 execute the method in the foregoing embodiment of the present disclosure.
  • the processor 510 and the memory 530 may be connected through a bus or in other ways. In FIG. 5, the connection through the bus 540 is taken as an example.
  • the processor 510 may be a central processing unit (CPU).
  • the processor 510 may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), or Chips such as other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, or a combination of the above types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Chips such as other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, or a combination of the above types of chips.
  • the memory 530 can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the cascaded progressive network in the embodiments of the present disclosure.
  • the processor 510 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions, and functional modules 532 stored in the memory 530.
  • the memory 530 may include a program storage area and a data storage area.
  • the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created by the processor 510 and the like.
  • the memory 530 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the memory 530 may optionally include memories remotely provided with respect to the processor 510, and these remote memories may be connected to the processor 510 through a network (for example, through a communication interface 520). Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • An embodiment of the present disclosure further provides a computer-readable storage medium having computer-executable instructions stored in the computer-readable storage medium, and the computer-executable instructions are executed to perform the method in the foregoing embodiment of the present disclosure.
  • the aforementioned computer-readable storage medium includes physical volatile and non-volatile, removable and non-removable realized by any method or technology that stores information such as computer-readable instructions, data structures, program modules, or other data.
  • Computer readable storage media include, but are not limited to, U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), erasable programmable read-only memory Memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid-state memory technology, CD-ROM, digital versatile disk (DVD), HD-DVD, Blu-ray (Blue-Ray) or other optical storage Device, tape, disk storage or other magnetic storage device, or any other medium that can be used to store the required information and that can be accessed by a computer.
  • ROM read-only memory
  • RAM random access memory
  • EPROM erasable programmable read-only memory Memory
  • EEPROM electrically erasable programmable read-only memory
  • program modules include routines, programs, components, data structures, and other types of structures that perform specific tasks or implement specific abstract data types.
  • program modules can be located in both local and remote memory storage devices.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present disclosure essentially or the part that contributes to the original technology 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 disclosure.
  • the present disclosure proposes a Bluetooth data encapsulation communication method, device, electronic equipment and computer-readable storage medium thereof.
  • the embodiments of the present disclosure encapsulate and transmit TCP data through the Bluetooth BNEP protocol, so that traditional Bluetooth slave devices with only Bluetooth communication capabilities can achieve Internet access capabilities without increasing the cost of software and hardware, thereby effectively improving the applicability of the device and achieving The quick and convenient operation improves the user experience.

Landscapes

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

Abstract

本公开实施例公开了一种蓝牙数据封装通信方法及装置。其中,该方法包括:设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器;通过第一终端接收后台服务器返回的结果信息;根据接收并解析后得到的结果信息确认本次交易完成。

Description

蓝牙数据封装通信方法及装置 技术领域
本公开涉及无线通信技术领域,具体涉及一种蓝牙数据封装通信方法、装置、电子设备及存储介质。
背景技术
为了满足不同场景下不同程度的应用需求,移动通讯技术演化出了多个技术分支,比如为适应远距离大范围无线通信的3G、4G、5G蜂窝网络,为适应中等距离接入的WIFI技术,以及为适应短距离通信的蓝牙技术。由于每种通信技术的具体实现方式存在着本质的差异,只能在特定的软硬件的支持下才可组网通信,因此用户设备每多支持一种通信方式就需要增设相应的硬件单元和软件模块,对设备成本有极为明显的影响。
为控制成本,现有技术往往会根据用户依赖程度来设计用户设备,仅在较为核心的用户终端设备中集成多种通用通信模块,而在周边设备中仅根据典型应用场景采用一种通信模块。比如,用户手机通常会集成蜂窝通信、WIFI和蓝牙等多种通信模式;PAD或笔记本等移动终端则通常会集成WIFI和蓝牙模块;而手环、手表、耳机、音箱等智能硬件则往往只会保留蓝牙模块,使用时作为周边设备与核心设备建立蓝牙连接。通过这种方式,可以有效控制设备的硬件成本,减轻用户负担。
然而,发明人在实现本公开实施例相关技术方案的过程中发现,现有技术中通用的蓝牙连接方式给周边设备的定位过低,作为从设备接入时没有任何控制权限,只能通过主设备中的特定应用程序(App)来被动接受用户的输入控制,给用户和系统设计均带来了不小的麻烦。举例来说,为了降低移动POS机的硬件成本,现有技术中出现了无需SIM卡不带蜂窝通信模块的mPOS(Mobile Point of Sale)机,一般通过蓝牙模块作为从设备与用户手机 连接。在使用过程中,第一用户(通常为收款方)只能使用手机中的特定App来向mPOS机下发具体的设置信息;第二用户(通常为付款方)在mPOS机刷卡后,由于mPOS机不具备访问互联网的能力,只能将数据发给手机,由手机与服务器后台完成报文交换;同样地,第二用户的签名也只能在手机的特定App中完成。上述整个过程mPOS机更像是个读卡器,并未给用户带来更多的便捷,相反由于操作过程繁琐,同时特定App的开发、运营和维护的工作量大,反而给用户和供应商带来了更大的压力。
发明内容
针对现有技术中的上述技术问题,本公开实施例提出了一种蓝牙数据封装通信方法、装置、电子设备及计算机可读存储介质,以解决现有技术中蓝牙从设备无法快捷访问互联网的问题。
本公开实施例的第一方面提供了一种蓝牙数据封装通信方法,包括:
设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;
通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器;
通过第一终端接收后台服务器返回的结果信息;
根据接收并解析后得到的结果信息确认本次交易完成。
在一些实施例中,所述方法还包括:
开机启动,搜索蓝牙配对设备,作为从设备与第一终端建立通用蓝牙连接。
在一些实施例中,所述方法还包括:
创建两个线程,其中,第一线程实现所述方法中应用层的数据处理,第二线程实现所述方法中底层的蓝牙通信。
在一些实施例中,所述第一线程实现所述方法中应用层的数据处理包括:
所述第一线程根据本次交易信息确定需要建立BNEP连接,使用TCP协议封装本次交易信息和用户刷卡信息,发起TCP连接发送数据;
所述第一线程还接收缓冲区的TCP数据,解析处理TCP数据获得结果信息,根据结果信息确认本次交易完成。
在一些实施例中,所述第二线程实现所述方法中底层的蓝牙通信包括:
所述第二线程从蓝牙串口接收蓝牙数据,按照蓝牙协议解析;
如果解析到具体的连接设置信息,则设置对应的连接状态;
如果解析收到TCP数据,则将TCP数据放入缓冲区。
本公开实施例的第二方面提供了一种蓝牙数据封装通信装置,包括:
数据封装模块,用于设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
BNEP连接模块,用于根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;
TCP发送模块,用于通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器;
接收模块,用于通过第一终端接收后台服务器返回的结果信息;
数据处理模块,用于根据接收并解析后得到的结果信息确认本次交易完成。
在一些实施例中,所述装置还包括:
蓝牙连接模块,用于搜索蓝牙配对设备,作为从设备与第一终端建立通用蓝牙连接。
在一些实施例中,所述装置还包括:
线程管理模块,用于创建两个线程,其中,第一线程实现所述方法中应用层的数据处理,第二线程实现所述方法中底层的蓝牙通信。
在一些实施例中,所述线程管理模块包括:
交易线程发送模块,用于根据本次交易信息确定需要建立BNEP连接,使用TCP协议封装本次交易信息和用户刷卡信息,发起TCP连接发送数据;
交易线程接收模块,用于接收缓冲区的TCP数据,解析处理TCP数据获得结果信息,根据结果信息确认本次交易完成。
在一些实施例中,所述线程管理模块包括:
后台线程接收模块,用于从蓝牙串口接收蓝牙数据,按照蓝牙协议解析;
连接设置模块,用于在解析到具体的连接设置信息时,设置对应的连接状态;
数据缓冲模块,用于在解析收到TCP数据时,将TCP数据放入缓冲区。
本公开实施例的第三方面提供了一种电子设备,包括:
存储器以及一个或多个处理器;
其中,所述存储器与所述一个或多个处理器通信连接,所述存储器中存储有可被所述一个或多个处理器执行的指令,所述指令被所述一个或多个处理器执行时,所述电子设备用于实现如前述各实施例所述的方法。
本公开实施例的第四方面提供了一种计算机可读存储介质,其上存储有计算机可执行指令,当所述计算机可执行指令被计算装置执行时,可用来实现如前述各实施例所述的方法。
本公开实施例的第五方面提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,可用来实现如前述各实施例所述的方法。
根据本公开实施例所提出的技术方案,可以使只具备蓝牙通信能力的传统蓝牙从设备可以在不增加软硬件成本的情况下实现互联网访问能力,因而有效提升了设备适用性,实现了快捷便利的操作,改善了用户体验。
附图说明
通过参考附图会更加清楚的理解本公开的特征和优点,附图是示意性的 而不应理解为对本公开进行任何限制,在附图中:
图1A是根据本公开的一些实施例所示的一种蓝牙数据封装通信方法流程示意图;
图1B是根据本公开的一些实施例所示的mPOS机刷卡的应用场景下的通信方法流程示意图;
图2是根据本公开的一些实施例所示的BNEP协议的层次架构图;
图3是根据本公开的一些实施例所示的mPOS机的用户界面使用状态变化图;
图4是根据本公开的一些实施例所示的一种蓝牙数据封装通信装置的模块结构示意图;
图5是根据本公开的一些实施例所示的一种电子设备的结构示意图。
具体实施方式
在下面的详细描述中,通过示例阐述了本公开的许多具体细节,以便提供对相关披露的透彻理解。然而,对于本领域的普通技术人员来讲,本公开显而易见的可以在没有这些细节的情况下实施。应当理解的是,本公开中使用“系统”、“装置”、“单元”和/或“模块”术语,是用于区分在顺序排列中不同级别的不同部件、元件、部分或组件的一种方法。然而,如果其他表达式可以实现相同的目的,这些术语可以被其他表达式替换。
应当理解的是,当设备、单元或模块被称为“在……上”、“连接到”或“耦合到”另一设备、单元或模块时,其可以直接在另一设备、单元或模块上,连接或耦合到或与其他设备、单元或模块通信,或者可以存在中间设备、单元或模块,除非上下文明确提示例外情形。例如,本公开所使用的术语“和/或”包括一个或多个相关所列条目的任何一个和所有组合。
本公开所用术语仅为了描述特定实施例,而非限制本公开范围。如本公开说明书和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括” 与“包含”仅提示包括已明确标识的特征、整体、步骤、操作、元素和/或组件,而该类表述并不构成一个排它性的罗列,其他特征、整体、步骤、操作、元素和/或组件也可以包含在内。
参看下面的说明以及附图,本公开的这些或其他特征和特点、操作方法、结构的相关元素的功能、部分的结合以及制造的经济性可以被更好地理解,其中说明和附图形成了说明书的一部分。然而,可以清楚地理解,附图仅用作说明和描述的目的,并不意在限定本公开的保护范围。可以理解的是,附图并非按比例绘制。
本公开中使用了多种结构图用来说明根据本公开的实施例的各种变形。应当理解的是,前面或下面的结构并不是用来限定本公开。本公开的保护范围以权利要求为准。
在蓝牙通信网络中,蓝牙连接两端的设备会被分别设置为主设备和从设备,主设备具有绝对的控制权,而从设备通常只能被动收发文件,这大大限制了蓝牙从设备的能力扩展,无法给用户带来更多的便利。
有鉴于此,本公开实施例提供了一种蓝牙数据封装通信方法,通过主从设备的动态切换,将蓝牙数据封装成TCP报文传输,使只具备蓝牙通信能力的周边设备可有效调用核心设备的3G/4G/5G网络,从而简化用户操作、降低系统设计的复杂度。在本公开的一个实施例中,如图1A所示,所述蓝牙数据封装通信方法包括:
S101,设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
S102,根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;
S103,通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器;
S104,通过第一终端接收后台服务器返回的结果信息;
S105,根据接收并解析后得到的结果信息确认本次交易完成。
上述方法从不具备其他通信能力的蓝牙周边设备(通常作为蓝牙连接中的从设备)出发,描述了其借助第一终端的移动通信模块实现互联网访问的过程。当然,本领域技术人员应当可以理解,本公开实施例的技术方案是一个多设备交互的通信方法,每个设备有其各自对应的数据处理过程,上述蓝牙周边设备单侧处理过程的描述不应视作对本公开技术方案实现的具体限制。进一步地,参见图1B,在本公开的一个优选实施例中,以mPOS机刷卡的应用场景为例,更详尽地描述了一次完整的任务处理过程中的通信方法:
mPOS机开机启动,第一终端搜索蓝牙配对设备,mPOS机作为从设备与第一终端建立通用蓝牙连接。其中,第一终端优选为手机,但其他同时具备蓝牙和互联网通信能力的设备(比如PAD、笔记本电脑等)均可适用于本公开的实施例中,故在此不对第一终端的类型做出更具体的限制。两设备的蓝牙连接在初次连接时可能需要初始化,需要用户手动选择设备并确认;在成功建立第一次连接之后,后续的再次连接可由两设备自动完成,无需用户介入。
mPOS机设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
根据蓝牙数据组包发起BNEP连接请求,mPOS机切换为主设备与第一终端建立BNEP连接;
通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器。
第一终端的移动通信模块接收后台服务器返回的TCP封装的结果信息,添加BNEP封装后通过BNEP连接发送给mPOS机。更进一步地,mPOS机可能会与第一终端及后台服务器有多次交互,接收交易结果信息后,再由支付用户在mPOS机上手写签名;对签名信息进行TCP封装和BNEP封装,重复之前的数据发送和接收过程,从后台服务器接收对签名信息的处理结果信息,再由第一终端传输给mPOS机。
mPOS机经解析后得到结果信息,确认本次交易完成(成功或失败)。 对于交易成功完成的,可按需打印交易小票,结束全部交易过程;对于交易失败的,通知用户,结束本次交易,在需要时可再次发起交易操作。
其中,BNEP(Bluetooth Network Encapsulation Protocol,蓝牙网络封装协议)为标准的蓝牙协议组件,其协议网络架构如图2所示。具体地,BNEP协议上层的网络应用层主要通过TCP协议或UDP协议封装和处理数据,通过IP协议进行数据传输;而中间层通过BNEP封装将TCP报文封装为蓝牙支持的格式,最后通过底层的蓝牙通信模块(包括但不限于蓝牙基带和蓝牙射频等)将数据传输给另一个蓝牙设备。
更具体地,mPOS机通过交易线程和后台线程两个线程来管理和实现上述过程;其中,交易线程负责应用层的数据处理,后台线程负责底层的蓝牙通信。在上述通信方法中,后台线程负责从蓝牙串口接收蓝牙数据,按照蓝牙协议解析,如果解析到具体的连接设置信息,就设置对应的连接状态;如果解析收到TCP数据,则将TCP数据放入缓冲区,等待协议上层的交易线程获取使用。而交易线程负责上层的数据处理,比如根据交易信息确定要连接BNEP,TCP封装信息,发起TCP连接发送数据(后续由后台线程完成蓝牙交互);以及接收缓冲区的TCP数据,解析处理数据获得结果信息、确认交易等。而手机终端中,在接收到mPOS机的蓝牙数据、解析得到TCP数据后,并不向上层的网络应用层提供数据(因为本公开实施例中手机终端并不存在类似的上层App应用),而是直接通过移动通信模块将TCP数据转发给互联网另一端的后台服务器;收到后台服务器返回的TCP数据后,同样不在手机终端本地处理,而是进行BNEP封装后通过蓝牙通信模块发送给mPOS机。通过这种方式,本公开的实施例中手机终端完全无需设计开发特定的App,原先由App完成的工作都分散给mPOS机和两终端后台完成,降低了系统开发的复杂度,进一步降低了整体成本。
在本公开的一个实施例中,在用户前端,可以仅通过mPOS机的界面完成全部操作。如图3的用户界面变化图所示,第一用户(通常为收款方)首先在mPOS机中选择操作类型,随后设置本次交易信息;第二用户(通常为 付款方)在mPOS机刷卡,并相应输入该卡的交易密码;mPOS机在后端完成数据交互,接收到交易结果信息后,再由第二用户在mPOS机手写签名;mPOS机在后端再次完成数据交互,接收到签名处理结果信息后,确认本次交易成功。
采用这种方式,用户在前端只通过mPOS机即可完成全部流程,无需在mPOS机和商户手机终端两个设备之间来回切换;同时只具备蓝牙通信模块的mPOS机也可主动完成互联网交互,无需专门针对商户手机终端开发特定App,因而本公开的实施例实现了低成本mPOS机快捷便利的应用,进一步降低了系统开发和维护成本,增强了用户体验。
以上方法步骤是从mPOS机刷卡的应用场景出发进行描述,本领域技术人员应当可以理解,本公开的实施例显然也可适用于其他交互场景,比如智能手表、蓝牙音箱、智能眼镜、智能手环等设备的互联网访问场景,故上述方法步骤不应视为对本公开实施例具体执行设备的限制。
根据本公开实施例所提出的蓝牙数据封装通信方法,可以使只具备蓝牙通信能力的传统蓝牙从设备可以在不增加软硬件成本的情况下实现互联网访问能力,因而有效提升了设备适用性,实现了快捷便利的操作,改善了用户体验。
图4是根据本公开的一些实施例所示的一种蓝牙数据封装通信装置示意图。如图4所示,蓝牙数据封装通信装置400包括数据封装模块401、BNEP连接模块402、TCP发送模块403、接收模块404和数据处理模块405;其中,
数据封装模块,用于设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
BNEP连接模块,用于根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;
TCP发送模块,用于通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送 给后台服务器;
接收模块,用于通过第一终端接收后台服务器返回的结果信息;
数据处理模块,用于根据接收并解析后得到的结果信息确认本次交易完成。
在一些实施例中,所述装置还包括:
蓝牙连接模块,用于搜索蓝牙配对设备,作为从设备与第一终端建立通用蓝牙连接。
在一些实施例中,所述装置还包括:
线程管理模块,用于创建两个线程,其中,第一线程实现所述方法中应用层的数据处理,第二线程实现所述方法中底层的蓝牙通信。
在一些实施例中,所述线程管理模块包括:
交易线程发送模块,用于根据本次交易信息确定需要建立BNEP连接,使用TCP协议封装本次交易信息和用户刷卡信息,发起TCP连接发送数据;
交易线程接收模块,用于接收缓冲区的TCP数据,解析处理TCP数据获得结果信息,根据结果信息确认本次交易完成。
在一些实施例中,所述线程管理模块包括:
后台线程接收模块,用于从蓝牙串口接收蓝牙数据,按照蓝牙协议解析;
连接设置模块,用于在解析到具体的连接设置信息时,设置对应的连接状态;
数据缓冲模块,用于在解析收到TCP数据时,将TCP数据放入缓冲区。
参考附图5,为本公开一个实施例提供的电子设备示意图。如图5所示,该电子设备500包括:
存储器530以及一个或多个处理器510;
其中,所述存储器530与所述一个或多个处理器510通信连接,所述存储器530中存储有可被所述一个或多个处理器执行的指令532,所述指令532被所述一个或多个处理器510执行,以使所述一个或多个处理器510执行本公开前述实施例中的方法。
具体地,处理器510和存储器530可以通过总线或者其他方式连接,图5中以通过总线540连接为例。处理器510可以为中央处理器(Central Processing Unit,CPU)。处理器510还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。
存储器530作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本公开实施例中的级联渐进网络等。处理器510通过运行存储在存储器530中的非暂态软件程序、指令以及功能模块532,从而执行处理器的各种功能应用以及数据处理。
存储器530可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器510所创建的数据等。此外,存储器530可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器530可选包括相对于处理器510远程设置的存储器,这些远程存储器可以通过网络(比如通过通信接口520)连接至处理器510。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
本公开的一个实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行后执行本公开前述实施例中的方法。
前述的计算机可读取存储介质包括以存储如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方式或技术来实现的物理易失性和非易失性、可移动和不可移动介质。计算机可读取存储介质具体包括,但不限于,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、可擦除可编程只读存储器(EPROM)、 电可擦可编程只读存储器(EEPROM)、闪存或其他固态存储器技术、CD-ROM、数字多功能盘(DVD)、HD-DVD、蓝光(Blue-Ray)或其他光存储设备、磁带、磁盘存储或其他磁性存储设备、或能用于存储所需信息且可以由计算机访问的任何其他介质。
尽管此处所述的主题是在结合操作系统和应用程序在计算机系统上的执行而执行的一般上下文中提供的,但本领域技术人员可以认识到,还可结合其他类型的程序模块来执行其他实现。一般而言,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、组件、数据结构和其他类型的结构。本领域技术人员可以理解,此处所述的本主题可以使用其他计算机系统配置来实践,包括手持式设备、多处理器系统、基于微处理器或可编程消费电子产品、小型计算机、大型计算机等,也可使用在其中任务由通过通信网络连接的远程处理设备执行的分布式计算环境中。在分布式计算环境中,程序模块可位于本地和远程存储器存储设备的两者中。
本领域普通技术人员可以意识到,结合本文中所本公开的实施例描述的各示例的单元及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对原有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。
综上所述,本公开提出了一种蓝牙数据封装通信方法、装置、电子设备及其计算机可读存储介质。本公开实施例通过蓝牙BNEP协议封装TCP数据并传输,可以使只具备蓝牙通信能力的传统蓝牙从设备可以在不增加软硬件 成本的情况下实现互联网访问能力,因而有效提升了设备适用性,实现了快捷便利的操作,改善了用户体验。
应当理解的是,本公开的上述具体实施方式仅仅用于示例性说明或解释本公开的原理,而不构成对本公开的限制。因此,在不偏离本公开的精神和范围的情况下所做的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。此外,本公开所附权利要求旨在涵盖落入所附权利要求范围和边界、或者这种范围和边界的等同形式内的全部变化和修改例。

Claims (10)

  1. 一种蓝牙数据封装通信方法,其特征在于,包括:
    设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
    根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;
    通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器;
    通过第一终端接收后台服务器返回的结果信息;
    根据接收并解析后得到的结果信息确认本次交易完成。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    开机启动,搜索蓝牙配对设备,作为从设备与第一终端建立通用蓝牙连接。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    创建两个线程,其中,第一线程实现所述方法中应用层的数据处理,第二线程实现所述方法中底层的蓝牙通信。
  4. 根据权利要求3所述的方法,其特征在于,所述第一线程实现所述方法中应用层的数据处理包括:
    所述第一线程根据本次交易信息确定需要建立BNEP连接,使用TCP协议封装本次交易信息和用户刷卡信息,发起TCP连接发送数据;
    所述第一线程还接收缓冲区的TCP数据,解析处理TCP数据获得结果信息,根据结果信息确认本次交易完成。
  5. 根据权利要求3所述的方法,其特征在于,所述第二线程实现所述方法中底层的蓝牙通信包括:
    所述第二线程从蓝牙串口接收蓝牙数据,按照蓝牙协议解析;
    如果解析到具体的连接设置信息,则设置对应的连接状态;
    如果解析收到TCP数据,则将TCP数据放入缓冲区。
  6. 一种蓝牙数据封装通信装置,其特征在于,包括:
    数据封装模块,用于设置本次交易信息,接收用户刷卡信息,进行TCP封装和BNEP封装生成蓝牙数据组包;
    BNEP连接模块,用于根据蓝牙数据组包发起BNEP连接请求,作为主设备与第一终端建立BNEP连接;
    TCP发送模块,用于通过BNEP连接调用第一终端的移动通信模块,将蓝牙数据组包中TCP封装的本次交易信息和用户刷卡信息通过互联网发送给后台服务器;
    接收模块,用于通过第一终端接收后台服务器返回的结果信息;
    数据处理模块,用于根据接收并解析后得到的结果信息确认本次交易完成。
  7. 根据权利要求6所述的装置,其特征在于,所述装置还包括:
    蓝牙连接模块,用于搜索蓝牙配对设备,作为从设备与第一终端建立通用蓝牙连接。
  8. 根据权利要求6所述的装置,其特征在于,所述装置还包括:
    线程管理模块,用于创建两个线程,其中,第一线程实现所述方法中应用层的数据处理,第二线程实现所述方法中底层的蓝牙通信。
  9. 根据权利要求8所述的装置,其特征在于,所述线程管理模块包括:
    交易线程发送模块,用于根据本次交易信息确定需要建立BNEP连接,使用TCP协议封装本次交易信息和用户刷卡信息,发起TCP连接发送数据;
    交易线程接收模块,用于接收缓冲区的TCP数据,解析处理TCP数据获得结果信息,根据结果信息确认本次交易完成。
  10. 根据权利要求8所述的装置,其特征在于,所述线程管理模块包括:
    后台线程接收模块,用于从蓝牙串口接收蓝牙数据,按照蓝牙协议解 析;
    连接设置模块,用于在解析到具体的连接设置信息时,设置对应的连接状态;
    数据缓冲模块,用于在解析收到TCP数据时,将TCP数据放入缓冲区。
PCT/CN2020/113493 2020-05-29 2020-09-04 蓝牙数据封装通信方法及装置 WO2021237975A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010481846.7A CN111741453A (zh) 2020-05-29 2020-05-29 蓝牙数据封装通信方法及装置
CN202010481846.7 2020-05-29

Publications (1)

Publication Number Publication Date
WO2021237975A1 true WO2021237975A1 (zh) 2021-12-02

Family

ID=72648018

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/113493 WO2021237975A1 (zh) 2020-05-29 2020-09-04 蓝牙数据封装通信方法及装置

Country Status (2)

Country Link
CN (1) CN111741453A (zh)
WO (1) WO2021237975A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330325B (zh) * 2020-11-23 2024-09-24 拉卡拉支付股份有限公司 交易数据获取方法、装置、设备、存储介质及程序产品
CN112291772B (zh) * 2020-12-30 2021-03-30 北京维普无限智能技术有限公司 一种蓝牙装置及其通信方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140096202A1 (en) * 2012-09-28 2014-04-03 Brother Kogyo Kabushiki Kaisha System, server, communication device and computer readable medium therefor
CN105050026A (zh) * 2015-05-29 2015-11-11 深圳市明星网络有限公司 一种经由第三方服务器进行短距离通信的装置及其信息交互方法
US20160094276A1 (en) * 2014-09-29 2016-03-31 Alibaba Group Holding Limited Transmitting and Receiving Packets
CN107221111A (zh) * 2017-05-26 2017-09-29 深圳飞人网络信息技术有限公司 近场无线pos装置、近场移动支付方法及系统
CN108390783A (zh) * 2018-02-13 2018-08-10 广东嘉泰智能技术有限公司 一种蓝牙设备的配置方法及装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8014339B1 (en) * 2003-02-25 2011-09-06 Hewlett-Packard Company Methods for providing universal network access within a wireless communication system
CN103268546A (zh) * 2013-03-27 2013-08-28 上海富友支付服务有限公司 基于移动通信终端的银行卡收单方法
CN104123645B (zh) * 2014-07-15 2018-08-31 北京金科联信数据科技有限公司 基于金融安全认证的移动互联网智能支付终端及支付系统
CN105184556A (zh) * 2015-08-12 2015-12-23 珠海保税区星汉智能卡股份有限公司 一种基于蓝牙的移动支付系统和支付方法
CN107274608A (zh) * 2017-07-07 2017-10-20 武汉天喻信息产业股份有限公司 具有电子签名功能的智能pos机、交易系统及交易方法
CN108460937B (zh) * 2018-04-25 2024-04-26 北京百汇安科技有限公司 一种智能pos系统及支付方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140096202A1 (en) * 2012-09-28 2014-04-03 Brother Kogyo Kabushiki Kaisha System, server, communication device and computer readable medium therefor
US20160094276A1 (en) * 2014-09-29 2016-03-31 Alibaba Group Holding Limited Transmitting and Receiving Packets
CN105050026A (zh) * 2015-05-29 2015-11-11 深圳市明星网络有限公司 一种经由第三方服务器进行短距离通信的装置及其信息交互方法
CN107221111A (zh) * 2017-05-26 2017-09-29 深圳飞人网络信息技术有限公司 近场无线pos装置、近场移动支付方法及系统
CN108390783A (zh) * 2018-02-13 2018-08-10 广东嘉泰智能技术有限公司 一种蓝牙设备的配置方法及装置

Also Published As

Publication number Publication date
CN111741453A (zh) 2020-10-02

Similar Documents

Publication Publication Date Title
US11457082B2 (en) Service processing method and apparatus of service-based architecture
US10848946B2 (en) Network access method, device, and system
EP3055978B1 (en) Systems, methods, and computer program products for managing communications
US20180310157A1 (en) Near field communication method and mobile terminal
WO2021237975A1 (zh) 蓝牙数据封装通信方法及装置
US20150154593A1 (en) Method, server and system for secure payment
TW201342984A (zh) 經由點對點鏈結存取的分享網路
CN110809255B (zh) 一种卡信息激活方法、装置及存储介质
US9459937B2 (en) Method for using shared device in apparatus capable of operating two operating systems
US9510378B2 (en) Systems and methods for implementing a peer-to-peer connection
EP3836619B1 (en) Direct connection communication method, access control and mobility management function entity and terminal
WO2020011026A1 (zh) 终端应用的控制方法、装置及系统
CN107005575A (zh) 一种具有动态令牌otp功能的智能卡及其工作方法
CN112001720B (zh) 一种mPOS机及其数据处理方法
EP2819375B1 (en) Method and device for data access
US20140038548A1 (en) Information processing apparatus and information processing method
CN117336346A (zh) 一种ippbx与pms对接状态转换方法、终端设备及介质
EP4411622A1 (en) Digital currency-based transaction method and apparatus
US20220052902A1 (en) Method for managing remote device through management device
CN115623057A (zh) 基于rdma的建连方法、装置、设备及存储介质
WO2022094899A1 (zh) 通信方法及装置
US8949476B2 (en) Method and apparatus for providing an interface between a UICC and a processor in an access terminal that supports asynchronous command processing by the UICC
CN113766435B (zh) 通信群组的建立方法、设备以及存储介质
WO2024130593A1 (en) Gatt solution for dual bluetooth stack
WO2018006599A1 (zh) 无线网关设备及其实现方法

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

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

Country of ref document: EP

Kind code of ref document: A1