CN109102278B - Data interaction method and device, electronic equipment and portable equipment - Google Patents

Data interaction method and device, electronic equipment and portable equipment Download PDF

Info

Publication number
CN109102278B
CN109102278B CN201810663666.3A CN201810663666A CN109102278B CN 109102278 B CN109102278 B CN 109102278B CN 201810663666 A CN201810663666 A CN 201810663666A CN 109102278 B CN109102278 B CN 109102278B
Authority
CN
China
Prior art keywords
light
electronic equipment
electronic device
connection
data interaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810663666.3A
Other languages
Chinese (zh)
Other versions
CN109102278A (en
Inventor
韩喆
吴军
张鸿
覃瑶
孙健康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810663666.3A priority Critical patent/CN109102278B/en
Publication of CN109102278A publication Critical patent/CN109102278A/en
Priority to TW108107426A priority patent/TW202001720A/en
Priority to PCT/CN2019/080047 priority patent/WO2020001109A1/en
Application granted granted Critical
Publication of CN109102278B publication Critical patent/CN109102278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The present specification provides a data interaction method, an apparatus, an electronic device, and a portable device, where the data interaction scheme is based on light detection, the electronic device can emit light according to a target light-emitting frequency, the portable device can determine whether itself is close to the electronic device, and if the portable device is close to the electronic device, light emitted by the electronic device at the target light-emitting frequency can be detected, so that misconnection between the portable device and other electronic devices can be prevented. The electronic device and the portable device can perform data interaction after connection is established, and the embodiment has no requirement on a mobile communication network, and can also realize data interaction under the condition that the electronic device and the portable device are in an offline state.

Description

Data interaction method and device, electronic equipment and portable equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a data interaction method and apparatus, an electronic device, and a portable device.
Background
With the development of internet technology and terminal technology, online shopping, transportation and other scenes, mobile payment has become a common payment mode in people's daily life. With the public transit scene as an example, the user can use portable terminals such as smart mobile phones to install APP (application) that has the payment function, if need pay, APP can show the sign indicating number of taking a bus that is used for paying the fare, and the sign indicating number of taking a bus carries with the relevant data of payment. The payment process involves data interaction, the bus taking code can be identified by the money collecting device on the bus through the camera or the scanning device, and payment is completed by acquiring data carried in the bus taking code. Based on this, it is necessary to provide a more convenient and stable data interaction scheme.
Disclosure of Invention
In order to overcome the problems in the related art, the specification provides a data interaction method, a data interaction device, an electronic device and a portable device.
According to a first aspect of embodiments of the present specification, there is provided a data interaction method, the method including:
establishing a connection with the electronic device based on short-range wireless communication after determining that light emitted at the target light emitting frequency is detected;
and after the connection is established, performing data interaction with the electronic equipment.
Optionally, the light is detected by a light sensor.
Optionally, the light sensor detects the light, and is performed after determining that an object exists within a set distance range.
Optionally, before establishing a connection with the electronic device based on the short-range wireless communication, the method further includes: and determining that the object exists in the set distance range.
Optionally, the distance sensor detects whether an object exists in the set distance range.
Optionally, the target light emitting frequency is different from the light emitting frequency of the illumination lamp.
Optionally, the establishing a connection with an electronic device based on short-range wireless communication includes:
receiving a connection message based on short-range wireless communication broadcast by an electronic device, and establishing connection with the electronic device based on the connection message.
Optionally, the data interacted with the electronic device includes one or more of the following information:
payment voucher information, bus information, subway station information, bus ticket information, or train ticket information.
According to a second aspect of embodiments of the present specification, there is provided a data interaction apparatus, including:
a connection module for: establishing a connection with the electronic device based on short-range wireless communication after determining that light emitted at the target light emitting frequency is detected;
an interaction module to: and after the connection is established, performing data interaction with the electronic equipment.
According to a third aspect of embodiments herein, there is provided an electronic apparatus including:
a light emitting unit for: emitting light at a target emission frequency;
a short-range wireless communication unit to: establishing a connection with a portable device, wherein the portable device is configured to: establishing the connection upon detection of light emitted at the target lighting frequency;
a processing unit to: and carrying out data interaction with the portable equipment.
Optionally, the housing of the electronic device has a groove, and the light emitted by the light emitting unit passes through the groove.
Optionally, the light emitting unit includes: an LED.
Optionally, the processing unit is further configured to: and controlling the starting or the closing of the light-emitting unit based on whether an object exists in the set distance range.
The processing unit is further configured to: and controlling the short-distance wireless communication unit to be started or closed based on whether an object exists in the set distance range.
Optionally, the system further comprises a distance sensor for: it is determined whether an object is present within the set distance range.
Optionally, the processing unit is further configured to: and sending the data sent by the portable equipment to a server.
According to a fourth aspect of embodiments of the present specification, there is provided a data interaction method, including:
sending a control instruction of turning on or off to a light-emitting unit, wherein the light-emitting unit is used for: emitting light at a target emission frequency;
sending a control instruction to turn on or off a short-range wireless communication unit, the short-range wireless communication unit being configured to establish a connection with a portable device, wherein the portable device is configured to establish the connection upon detection of light emitted at the target light emission frequency;
and after the connection is established, performing data interaction with the portable equipment.
According to a fifth aspect of embodiments herein, there is provided a portable device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
establishing a connection with the electronic device based on short-range wireless communication after determining that light emitted at the target light emitting frequency is detected;
and after the connection is established, performing data interaction with the electronic equipment.
According to a sixth aspect of embodiments herein, there is provided an electronic device comprising a light emitting unit, a short-range wireless communication unit, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
sending a control instruction of turning on or off to the light emitting unit, wherein the light emitting unit is used for: emitting light at a target emission frequency;
sending a control instruction to turn on or off the short-range wireless communication unit, the short-range wireless communication unit being configured to establish a connection with a portable device, wherein the portable device is configured to establish the connection upon detection of light emitted at the target light emission frequency;
and after the connection is established, performing data interaction with the portable equipment.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
the embodiment of the specification is based on light detection, the electronic device can emit light according to the target light emitting frequency, the portable device can determine whether the portable device is close to the electronic device, and if the portable device is close to the electronic device, the light emitted by the electronic device at the target light emitting frequency can be detected, so that the portable device can be prevented from being connected with other electronic devices by mistake. The electronic device and the portable device can perform data interaction after connection is established, and the embodiment has no requirement on a mobile communication network, and can also realize data interaction under the condition that the electronic device and the portable device are in an offline state.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a diagram illustrating a data interaction method in accordance with an exemplary embodiment.
FIG. 2A is a data interaction diagram shown in accordance with an exemplary embodiment of the present specification.
FIG. 2B is a flow chart illustrating a method of data interaction according to an exemplary embodiment of the present description.
FIG. 3A is a block diagram of the hardware of an electronic device shown in accordance with an exemplary embodiment of the present description.
FIG. 3B is a flow chart illustrating another method of data interaction according to an exemplary embodiment of the present description.
Fig. 3C is a structural diagram of an electronic device shown in this specification according to an exemplary embodiment.
FIG. 4A is a flow chart illustrating another method of data interaction according to an exemplary embodiment of the present description.
FIG. 4B is a flow chart illustrating another method of data interaction according to an exemplary embodiment of the present description.
Fig. 5 is a hardware structure diagram of a portable device in which a data interaction device is located according to an embodiment of the present disclosure.
FIG. 6 is a block diagram of a data interaction device shown in accordance with an exemplary embodiment of the present specification.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In most mobile payment scenes, the payee device scans the payment code provided by the user by using the camera, so that a certain requirement is imposed on the quality of the camera, if the quality of the camera is poor and the focusing is slow, the condition that the payment code is slow to identify may be caused, the payment code may not be aligned with the camera, and the user is required to adjust the convenient device to better complete the payment. On the other hand, data is transmitted from the user portable device to the payee device by means of camera recognition.
Based on this, please refer to fig. 1, which is a scene diagram of a data interaction method according to an exemplary embodiment shown in this specification, for convenience of distinction, in this embodiment, a device held by a user is referred to as a portable device, and in fig. 1, a smart phone is taken as an example, and the portable device may also be a device such as smart glasses or a smart watch. Devices that interact with data from portable devices are referred to as electronic devices that may be owned by various service merchants, which may be deployed within the physical areas where the merchants provide commercial services. For example, in an online store-out scene, the electronic device may be deployed in a commodity settlement area, and in a traffic trip scene, the electronic device may be deployed on a bus, a subway entrance, a train entrance, and the like.
In order to realize mutual data transmission between the portable device and the electronic device, an alternative implementation manner is that both the electronic devices are connected to a server by using a network, and data is transmitted through the server, and this manner depends on the network signal strength. However, in a subway or other scenes, a situation that a network signal is unstable often occurs in many times, a situation that a transmission speed is very slow and even a transmission failure occurs when data is transmitted through a server, and a portable device of a user is in an off-line state for many reasons, so that a situation that the user cannot complete payment and exit due to the fact that data cannot be transmitted occurs.
Another alternative is to establish a connection between the portable device and the electronic device by means of a short-range wireless communication technology, such as bluetooth or near field communication. However, around the area where the electronic device is deployed, there may be many other users, each of whom holds the electronic device, and the electronic device may be misconnected to the other users. As an example, a plurality of electronic devices capable of controlling an access gate may be deployed at an entrance and an exit of a subway, where there may be many users at the entrance and the exit of the subway, and an electronic device of a certain gate should be connected to a portable device of a user a who is preparing to exit the gate, however, since a portable device of another user B near the user a is very close to the electronic device, the electronic device is connected to a portable device of the user B, so that the portable device of the user a cannot perform data interaction, and eventually, the user a cannot exit the gate in time.
Based on this, an embodiment of the present specification proposes a data interaction scheme based on light detection, as shown in fig. 2A, which is a data interaction schematic diagram shown in the present specification according to an exemplary embodiment, where the electronic device in fig. 2A is capable of emitting light according to a target light emitting frequency, and in an embodiment, the portable device may perform the steps shown in fig. 2B:
in step 202, upon determining that light emitted at the target light emitting frequency is detected, a connection is established with the electronic device based on short-range wireless communication.
In step 204, data interaction is performed with the electronic device after the connection is established.
In this embodiment, after detecting light emitted at the target light emitting frequency, the portable device can determine that the portable device is closer to the electronic device, and then establish a connection with the electronic device based on short-range wireless communication, so that the electronic device and the portable device can perform data interaction. In an alternative implementation, the hardware structure of the electronic device may be as shown in fig. 3A, and the electronic device includes:
a light emitting unit 310 for: light of a target light emitting frequency is emitted.
A short-range wireless communication unit 320 for: establishing a connection with a portable device, wherein the portable device is configured to: establishing the connection upon detection of light emitted at the target lighting frequency.
A processing unit 330 configured to: and carrying out data interaction with the portable equipment.
Fig. 3A shows a schematic diagram of a hardware structure of an electronic device, and fig. 3A illustrates a hardware implementation of the electronic device; in other examples, the light emitting unit and the short-range wireless communication unit built in the electronic device may be controlled by the processing unit, and the processing procedure of the processing unit may be implemented by software or programmable logic device, as shown in fig. 3B, the electronic device may perform the following steps to perform data interaction with the portable device:
in step 302, a control command for turning on or off is sent to a light emitting unit, where the light emitting unit is configured to: light of a target light emitting frequency is emitted.
In step 304, a control instruction to turn on or off is issued to a short-range wireless communication unit for establishing a connection with a portable device for establishing the connection upon detection of light emitted at the target light emitting frequency.
In step 306, after the connection is established, data interaction is performed with the portable device.
The Light Emitting unit may include Light Emitting devices such as an LED (Light Emitting Diode) and a fluorescent lamp, and the Light Emitting frequency of the Light Emitting devices may be set according to requirements, which is referred to as a target Light Emitting frequency in this embodiment. The purpose of setting the target light-emitting frequency is to allow the portable device to determine whether the portable device is approaching the electronic device, and if the portable device is approaching the electronic device, the light emitted by the electronic device at the target light-emitting frequency can be detected, so that the portable device can be prevented from being mistakenly connected with other electronic devices. The target light-emitting frequency can be flexibly configured according to actual needs, and because the daily life places are all provided with illuminating lamps, in order to improve the detection accuracy, the target light-emitting frequency can be different from the light-emitting frequency of the illuminating lamps, for example, the light-emitting frequency can be 120ms in one period, and the like, in the period, the light can be turned on for the first 60ms, and then turned off for the second 60 ms.
In a specific implementation, as an example, the light emitting unit may be disposed on a surface of a housing of the electronic device, and the portable device may detect light emitted by the electronic device after approaching the electronic device; in other examples, the light emitting unit may be disposed inside the electronic device, and the surface of the electronic device may have a transparent region so that the light of the light emitting unit can be emitted from the inside, so that the portable device can detect the light.
In another example, as shown in fig. 3C, which is a schematic structural diagram of an electronic device shown in this specification according to an exemplary embodiment, a housing of the electronic device may have a groove, and the light emitted by the light emitting unit passes through the groove, and the groove may limit a manner in which the portable device detects light, and the portable device may detect the light emitted by the electronic device after being inserted into the groove, so that interference of other light sources may be reduced, and the light detection accuracy may be improved. Optionally, the light emitting unit may also be disposed in the recess such that light emitted by the light emitting unit is detected by the portable device in the recess; in other examples, the light emitting unit may be disposed inside the electronic device, and the recess may have a transparent region therein so that light of the light emitting unit may be emitted from the inside and so that the portable device may detect the light after being inserted into the recess.
Other devices of electronic equipment can set up in the recess as required like bluetooth module, also can set up other positions such as electronic equipment's surface, and other conventional modules (like detecting the NFC module of public transit NFC card etc.) can set up other positions such as electronic equipment's surface as required.
Optionally, the light-emitting unit may continuously emit light, and in practical applications, for cost and lifetime considerations, the light-emitting unit may be turned on only when the light-emitting unit needs to be detected by the portable device, and the light-emitting unit may be turned off when the detection is not needed. Based on this, the present embodiment provides a distance-based light emitting unit control method, and the processing unit is further configured to: and controlling the starting or the closing of the light-emitting unit based on whether an object exists in the set distance range.
The set distance range can be determined through testing, and can be a set smaller distance to improve the accuracy of the light detected by the portable device. In other examples, if the groove is formed, the groove size may be determined based on the groove size; for example, where the distance from the portable device to the electronic device is below the size of the recess, the electronic device may determine that there is an object entering, which is very likely to be a portable device, and may notify the light emitting unit to activate for the portable device to detect light. Alternatively, the electronic device may be configured with a distance sensor, and determine whether an object exists within a set distance range according to a detection result of the distance sensor.
Accordingly, in the case of a portable device, the light may be detected by a light sensor, and the detection timing of the light sensor may be determined based on the distance, and the light sensor may be called to detect the light after the presence of an object within a set distance range is determined. In this case, the presence or absence of an object within a set distance range can be detected by a distance sensor built in the portable device.
On the other hand, considering that there are lights in many occasions in daily life, there is a possibility that the portable device may have an error detection, and there is a possibility that the portable device may detect light having the same frequency as the target light emission frequency, based on this, the method of the embodiment further includes, before establishing a connection with the electronic device based on short-range wireless communication: and determining that the object exists in the set distance range. The present embodiment is based on dual authentication of distance and light so that the portable device can establish a connection with a device that desires to connect with a high probability. For example, if the distance sensor on the portable device is blocked by another object but does not detect light having the same emission frequency as the target object, the connection is not necessary in such a case, and the erroneous connection can be avoided.
The short-range Wireless communication of the embodiment may include bluetooth, Wi-Fi (Wireless Fidelity), near field communication, UWB (Ultra wide band, a carrier-less communication technology), HomeRF (home radio frequency), or the like. Taking bluetooth as an example, the operating mode of bluetooth includes a master-slave mode, and the operating modes of the electronic device and the portable device can be flexibly determined according to the needs, which is not limited in this embodiment. As an example, it may be that the electronic device is operating in a slave mode, and the electronic device may broadcast a connection message based on short-range wireless communication for the portable device to connect; and when the portable device works in the master mode, the portable device can: receiving a connection message based on short-range wireless communication broadcast by the electronic equipment, and establishing connection with the electronic equipment according to the connection message.
Optionally, in this embodiment, the electronic device and the portable device may further be connected by combining Signal Strength, for example, when the electronic device and the portable device are closer, both of them may detect that the Signal Strength of the other is stronger, so that the connection may be established according to the RSSI (Received Signal Strength Indication) Strength, for example, the device with stronger Signal Strength may be selected to establish the connection. Based on this, both the electronic device and the portable device have some autonomous selection capability for connection, e.g., the electronic device may consider that no portable device is close after finding the distance above a threshold, and may stop or block the connection if there are devices attempting to connect.
Based on the above embodiments, the electronic device and the portable device may perform data interaction after establishing connection, and this embodiment does not require the electronic device to configure a device with a higher cost, does not require a mobile communication network, and may also achieve data interaction when the electronic device and the portable device are in an offline state.
The embodiment can be applied to various scenes, and the interacted data can comprise one or more of the following information: payment voucher information, bus information, subway station information, bus ticket information, train ticket information, or the like. Several application scenarios are listed below and illustrate data interacted between an electronic device and a portable device.
First, a public traffic scenario (fixed billing as an example)
The bus scene in this embodiment is described by taking fixed billing as an example, and the electronic device in this embodiment may be deployed on a bus, as an example, a processing flow in the electronic device may be as shown in fig. 4A, where a distance sensor built in the electronic device may continuously monitor, and if the monitoring distance is higher than a threshold, it is described that no mobile phone enters a groove to be connected, and the monitoring may be continuously performed. When the recognition distance is reduced and the distance is lower than the threshold value, a mobile phone can enter the groove, and an instruction is sent to the light-emitting unit to wake up the LED lamp to emit light (the light can be light in one period of 120ms, the light is on in the first 60ms in the period, and the light is off in the last 60 ms). When the distance sensor of the electronic device detects that the distance becomes large, for example, the distance is changed back to a default value or no object is detected, an instruction can be sent to turn off the light-emitting unit. The electronic device in this embodiment includes a BLE (bluetooth) module, and the module may continue to broadcast a message to wait for connection of the BLE module at the mobile phone end.
The user's portable device (this embodiment takes a mobile phone as an example) may be installed with APPs such as third party payment APPs and APPs for providing subway seating services. The portable device may perform the steps of the embodiment shown in fig. 4B, and after the user gets on the bus, the user may start the APP installed in the portable device to wake up the distance sensor built in the portable device. When the front half part of the mobile phone of a user extends into the groove of the electronic equipment, the distance sensor arranged in the mobile phone recognizes that the distance is close, and the light sensor on the mobile phone starts to detect whether light with the target light-emitting frequency exists. When the mobile phone recognizes the light with the period change of 120ms, the mobile phone considers that the mobile phone is already in the electronic equipment, and the BLE module is used for starting to be connected with the BLE module in the tool. The mobile phone can select the BLE module of the device with the highest RSSI strength for connection.
In this embodiment, the data interaction manner may include:
(1) the electronic device transmits data to the portable device:
the electronic device can send data representing the fare parameters to the portable device, and based on the data, the payment service party can deduct the fare from the payment account of the user. By way of example, a payment device APP may be installed in the portable device, the electronic device transmits data to the payment device, and the payment device may send the received data (or send other notification messages indicating fee deduction, etc.) to the payment device server. And after the payment bank server receives the payment bank, the payment bank server can deduct money from the payment account of the user, so that the transaction processing of the user on the bus fee is completed.
(2) The portable equipment transmits data to the electronic equipment:
the portable device can send data representing a payment certificate (token) such as a user identity to the electronic device, the electronic device receives the data transmitted by the portable device, and the riding fee of the user can be deducted based on the payment certificate. As an example, a payment apparatus APP may be installed in the portable device, the payment apparatus sends a payment credential to the electronic device, and the electronic device sends the received payment credential to the payment apparatus server (the electronic device may directly send to the payment apparatus server, or the electronic device may send to the payment apparatus server through another server). And after the payment bank server receives the payment bank, deduction can be carried out on the payment account of the user, so that payment processing of the user on the bus fee is completed.
Optionally, the electronic device may further transmit information such as bus routes to the portable device, so that the portable device displays the information for the user to look up.
Second, subway scenario (taking segmented charging as an example)
In some subway scenes, a segmented charging mode is adopted, and the method needs to know the inbound information and the outbound information of a user. In such a scenario, the electronic device of the embodiment may be configured at an entrance of a site, and the electronic device may be used as a device for controlling an entrance/exit gate; the portable equipment of the user can be provided with third-party payment APP or APP such as subway riding service. At an entrance, a user can start an APP installed in a portable device, the portable device can send data representing a payment certificate (token) such as a user identity to an electronic device, and the electronic device can control a gate to be released after receiving the data transmitted by the portable device and can also send the received data to a server; in other examples, the electronic device may transmit the site information to a portable device of the user, and optionally, the portable device may transmit the received data to the server.
When the user needs to exit the gate, the portable device of the user performs data interaction with the electronic device at the exit, and it can be understood that the portable device transmits the data to the electronic device, or the electronic device transmits the data to the portable device, and based on the entrance site information and the exit site information, the fee required to be paid by the user can be determined.
Third, non-payment scenario for high-speed rail
This embodiment is similar to the subway scenario, and can be used for gates at entrances and exits, but may not involve payment. For example, the user may buy a ticket (e.g., a train ticket, a subway ticket, a bus ticket, or a sight spot ticket, etc.) in advance, and the APP may store the ticket in the form of an electronic card, an electronic ticket, or the like, where the electronic ticket corresponds to inbound information, outbound information, user identity information, or cost information, etc.
The electronic device of the embodiment can be configured at the exit and/or entrance of the station, the electronic device can be used as a device for controlling the access gate, and the electronic ticket is stored in the installation APP of the portable device of the user. At the entrance and exit, a user can start an APP installed in the portable equipment, the portable equipment can send data containing ticket information to the electronic equipment, and after the electronic equipment receives the data transmitted by the portable equipment, information checking can be carried out, and whether the gate is released or not is controlled based on a checking result.
Fourth, offline payment
In this embodiment, the electronic device may be deployed in a settlement area of a store, the portable device of the user may be installed with payment APPs such as a third-party payment APP, the user starts the APP installed in the portable device, the portable device may send data representing payment credentials (token) such as a user identity to the electronic device, and after receiving the data transmitted by the portable device, the electronic device may send the received data to the server, so that the server deducts a payment account of the user.
As can be seen from the foregoing embodiments, data interaction between the electronic device and the portable device may involve some sensitive information, and optionally, for data security, the data interacted between the electronic device and the portable device may be encrypted to form an encrypted piece of data. By sharing the same encryption and decryption algorithm, the electronic equipment and the portable equipment can realize data interaction and improve the security of the data interaction.
The data interaction device of the present specification can be applied to portable devices, such as smart phones, smart watches, and the like. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a device in a logical sense, the device is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory through a processor in which the data is interacted, and running the computer program instructions. From a hardware aspect, as shown in fig. 5, which is a hardware structure diagram of a portable device in which a data interaction apparatus is located in the embodiment of the present disclosure, except for the processor 510, the memory 530, the network interface 520, and the nonvolatile memory 540 shown in fig. 5, the portable device in which the apparatus 531 is located in the embodiment may also include other hardware according to an actual function of the portable device, and details of this are not repeated.
As shown in fig. 6, fig. 6 is a block diagram of a data interaction device shown in the present specification according to an exemplary embodiment, the device including:
a connection module 61 for: establishing a connection with the electronic device based on short-range wireless communication after determining that light emitted at the target light emitting frequency is detected;
an interaction module 62 for: and after the connection is established, performing data interaction with the electronic equipment.
Optionally, the light is detected by a light sensor.
Optionally, the light sensor detects the light, and is performed after determining that an object exists within a set distance range.
Optionally, before establishing a connection with the electronic device based on short-range wireless communication, the connection module further includes: and determining that the object exists in the set distance range.
Optionally, the distance sensor detects whether an object exists in the set distance range.
Optionally, the target light emitting frequency is different from the light emitting frequency of the illumination lamp.
Optionally, the connection module is further configured to:
receiving a connection message based on short-range wireless communication broadcast by an electronic device, and establishing connection with the electronic device based on the connection message.
Optionally, the data interacted with the electronic device includes one or more of the following information:
payment voucher information, bus information, subway station information, bus ticket information, or train ticket information.
Accordingly, embodiments of the present specification also provide a portable device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
establishing a connection with the electronic device based on short-range wireless communication after determining that light emitted at the target light emitting frequency is detected;
and after the connection is established, performing data interaction with the electronic equipment.
Accordingly, embodiments of the present specification also provide an electronic device, including a light-emitting unit, a short-range wireless communication unit, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
sending a control instruction of turning on or off to the light emitting unit, wherein the light emitting unit is used for: emitting light at a target emission frequency;
sending a control instruction to turn on or off the short-range wireless communication unit, the short-range wireless communication unit being configured to establish a connection with a portable device, wherein the portable device is configured to establish the connection upon detection of light emitted at the target light emission frequency;
and after the connection is established, performing data interaction with the portable equipment.
The implementation process of the functions and actions of each module in the data interaction device is specifically detailed in the implementation process of the corresponding step in the data interaction method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (12)

1. A method of data interaction, the method comprising:
when an object is detected to exist in a set distance range, starting a light sensor, wherein the set distance is determined based on the size of a groove arranged in a shell of the electronic equipment;
after the light emitted at the target light-emitting frequency is detected by the light sensor, receiving a connection message based on short-distance wireless communication broadcast by the electronic equipment, and establishing connection with the electronic equipment based on the connection message; when the electronic equipment detects that an object exists in the groove, the electronic equipment controls the light-emitting unit to emit light at a target light-emitting frequency and controls the short-distance wireless communication unit to broadcast the connection message, wherein the light penetrates through the groove;
after the connection is established, performing data interaction with the electronic device, wherein the performing data interaction with the electronic device includes:
and receiving the site information sent by the electronic equipment, and determining the cost to be paid based on the site information so as to complete payment.
2. The method of claim 1, detecting the presence of an object within a set distance range by a distance sensor.
3. The method of claim 1, wherein the target lighting frequency is different from a lighting frequency of a lighting lamp.
4. The method of claim 1, the data interacting with the electronic device comprising one or more of:
payment voucher information, bus information, subway station information, bus ticket information, or train ticket information.
5. A data interaction device, comprising:
a connection module for: when an object is detected to exist in a set distance range, starting a light sensor, wherein the set distance is determined based on the size of a groove arranged in a shell of the electronic equipment; after the light emitted at the target light-emitting frequency is detected, receiving a connection message based on short-distance wireless communication broadcast by the electronic equipment, and establishing connection with the electronic equipment based on the connection message and establishing connection with the electronic equipment based on the short-distance wireless communication; when the electronic equipment detects that an object exists in the groove, the electronic equipment controls the light-emitting unit to emit light at a target light-emitting frequency and controls the short-distance wireless communication unit to broadcast the connection message, wherein the light penetrates through the groove;
an interaction module to: after the connection is established, performing data interaction with the electronic device, wherein the performing data interaction with the electronic device includes:
and receiving the site information sent by the electronic equipment, and determining the cost to be paid based on the site information so as to complete payment.
6. An electronic device, a housing of the electronic device being provided with a recess, comprising:
a light emitting unit for: emitting light of a target light-emitting frequency after starting, the light of the target light-emitting frequency penetrating through the groove;
a short-range wireless communication unit to: broadcasting a wireless connection message after the booting, and establishing a connection with a portable device, wherein the portable device is configured to: when an object is detected to exist in a set distance range, starting a light sensor, wherein the set distance is determined based on the size of a groove arranged in a shell of the electronic equipment, receiving a connection message based on short-distance wireless communication broadcast by the electronic equipment after the light sensor detects light emitted by the target light-emitting frequency, and establishing connection with the electronic equipment based on the connection message;
a processing unit to: when detecting that an object exists in the groove, controlling the light-emitting unit to be started and the short-distance wireless communication unit to be started, and performing data interaction with the portable equipment, wherein the step of performing data interaction with the portable equipment comprises the following steps:
and sending the site information to the portable equipment so that the portable equipment determines the fee to be paid based on the site information to complete the payment.
7. The electronic device according to claim 6, the light-emitting unit comprising: an LED.
8. The electronic device of claim 6, further comprising: a distance sensor for: it is determined whether an object is present within the set distance range.
9. The electronic device of claim 6, the processing unit to further: and sending the data sent by the portable equipment to a server.
10. A data interaction method is suitable for electronic equipment, a shell of the electronic equipment is provided with a groove, and the method comprises the following steps:
when detecting that there is an object in the groove, send a start control instruction to a light emitting unit, wherein the light emitting unit is configured to: emitting light at a target emission frequency;
sending a control instruction for starting to a short-distance wireless communication unit, wherein the short-distance wireless communication unit is used for broadcasting a wireless connection message after being started and establishing connection with a portable device, and the portable device is used for: when an object is detected to exist in a set distance range, starting a light sensor, wherein the set distance is determined based on the size of a groove arranged in a shell of the electronic equipment, receiving a connection message based on short-distance wireless communication broadcast by the electronic equipment after the light sensor detects light emitted by the target light-emitting frequency, and establishing connection with the electronic equipment based on the connection message;
after the connection is established, performing data interaction with the portable device, wherein the performing data interaction with the portable device includes:
and sending the site information to the portable equipment so that the portable equipment determines the fee to be paid based on the site information to complete the payment.
11. A portable device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
when an object is detected to exist in a set distance range, starting a light sensor, wherein the set distance is determined based on the size of a groove arranged in a shell of the electronic equipment;
after the light emitted at the target light-emitting frequency is detected by the light sensor, receiving a connection message based on short-distance wireless communication broadcast by the electronic equipment, and establishing connection with the electronic equipment based on the connection message; when the electronic equipment detects that an object exists in the groove, the electronic equipment controls the light-emitting unit to emit light at a target light-emitting frequency and controls the short-distance wireless communication unit to broadcast the connection message, wherein the light penetrates through the groove;
after the connection is established, performing data interaction with the electronic device, wherein the performing data interaction with the electronic device includes:
and receiving the site information sent by the electronic equipment, and determining the cost to be paid based on the site information so as to complete payment.
12. An electronic device comprising a light emitting unit, a short-range wireless communication unit, a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following method when executing the program:
when detecting that there is an object in the groove, send the control command of opening to the luminescence unit, wherein, the luminescence unit is used for: emitting light at a target emission frequency;
sending a control instruction for starting to the short-distance wireless communication unit, wherein the short-distance wireless communication unit is used for broadcasting a wireless connection message after being started and establishing connection with a portable device, and the portable device is used for: when an object is detected to exist in a set distance range, starting a light sensor, wherein the set distance is determined based on the size of a groove arranged in a shell of the electronic equipment, receiving a connection message based on short-distance wireless communication broadcast by the electronic equipment after the light sensor detects light emitted by the target light-emitting frequency, and establishing connection with the electronic equipment based on the connection message;
after the connection is established, performing data interaction with the portable device, wherein the performing data interaction with the portable device includes:
and sending the site information to the portable equipment so that the portable equipment determines the fee to be paid based on the site information to complete the payment.
CN201810663666.3A 2018-06-25 2018-06-25 Data interaction method and device, electronic equipment and portable equipment Active CN109102278B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201810663666.3A CN109102278B (en) 2018-06-25 2018-06-25 Data interaction method and device, electronic equipment and portable equipment
TW108107426A TW202001720A (en) 2018-06-25 2019-03-06 Data exchange method and apparatus, electronic device and portable device
PCT/CN2019/080047 WO2020001109A1 (en) 2018-06-25 2019-03-28 Data exchange method and apparatus, electronic device and portable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810663666.3A CN109102278B (en) 2018-06-25 2018-06-25 Data interaction method and device, electronic equipment and portable equipment

Publications (2)

Publication Number Publication Date
CN109102278A CN109102278A (en) 2018-12-28
CN109102278B true CN109102278B (en) 2020-08-25

Family

ID=64844984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810663666.3A Active CN109102278B (en) 2018-06-25 2018-06-25 Data interaction method and device, electronic equipment and portable equipment

Country Status (3)

Country Link
CN (1) CN109102278B (en)
TW (1) TW202001720A (en)
WO (1) WO2020001109A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109102278B (en) * 2018-06-25 2020-08-25 阿里巴巴集团控股有限公司 Data interaction method and device, electronic equipment and portable equipment
CN112822826A (en) * 2019-10-30 2021-05-18 厦门立达信照明有限公司 Light control method, system and signal transceiver
CN111210222B (en) * 2020-01-08 2022-04-29 支付宝实验室(新加坡)有限公司 Data display and payment method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7598870B2 (en) * 2004-05-12 2009-10-06 Telecom Italia S.P.A. System for and method of automating parking payment by using electronic tags
CN107155166A (en) * 2017-07-31 2017-09-12 湖南大学 The nfc communication apparatus communicated based on bluetooth and camera
CN107393071A (en) * 2017-07-20 2017-11-24 特斯联(北京)科技有限公司 A kind of current apparatus control method answered based on bluetooth distance perspective and control system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017030799A1 (en) * 2015-08-17 2017-02-23 Bytemark, Inc. Short range wireless translation methods and systems for hands-free fare validation
CN105894269B (en) * 2016-03-30 2019-09-06 努比亚技术有限公司 Payment code display device and method
CN106331376A (en) * 2016-09-30 2017-01-11 维沃移动通信有限公司 Power saving method and mobile terminal
CN109102278B (en) * 2018-06-25 2020-08-25 阿里巴巴集团控股有限公司 Data interaction method and device, electronic equipment and portable equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7598870B2 (en) * 2004-05-12 2009-10-06 Telecom Italia S.P.A. System for and method of automating parking payment by using electronic tags
CN107393071A (en) * 2017-07-20 2017-11-24 特斯联(北京)科技有限公司 A kind of current apparatus control method answered based on bluetooth distance perspective and control system
CN107155166A (en) * 2017-07-31 2017-09-12 湖南大学 The nfc communication apparatus communicated based on bluetooth and camera

Also Published As

Publication number Publication date
TW202001720A (en) 2020-01-01
CN109102278A (en) 2018-12-28
WO2020001109A1 (en) 2020-01-02

Similar Documents

Publication Publication Date Title
CN108811178B (en) Data interaction method, device and equipment
CN109102278B (en) Data interaction method and device, electronic equipment and portable equipment
KR102554813B1 (en) Short-Range Wireless Implementation Methods and Systems for Hands-Free Toll Approval
CN108701377B (en) Vehicle parking and mass transit beacon system
US20180061145A1 (en) Parking space management system and method
CN106104619B (en) Biometric solution to enable high throughput fare payment and system entry
US10438029B2 (en) Mobile device and reader for facilitating a transaction
CN111541996B (en) Data interaction method, device and equipment based on ultra wide band
US20170041856A1 (en) Electronic device and method for providing service in the electronic device
US20230281599A1 (en) Ultra-wideband-enabled devices and systems
US10482458B2 (en) User equipment, service providing device, payment system comprising the same, control method thereof and non-transitory computer-readable storage medium storing computer program recorded thereon
US20190087807A1 (en) Method and apparatus for payment using beacon
CN104850988A (en) Mobile payment system, method thereof and related equipment
AU2023203911A1 (en) Methods and systems for hands-free fare validation and gateless transit
TW201923565A (en) Quick enabling method and apparatus for service in application program and electronic device
US10635961B1 (en) Transaction token that exhibits indication-related detectable changes on the transaction token
WO2023011306A1 (en) Offline payment
JPWO2020066202A1 (en) Entry management system, entry management method, portable device, entry notification method, and program
KR20170039464A (en) User equipment, service providing device, lighting apparatus, payment system comprising the same, control method thereof and computer readable medium having computer program recorded thereon
US20190097803A1 (en) Encrypted reverse biometric token validation
US11568386B2 (en) Method and system for active NFC payment device management
CN108921543A (en) A kind of near field payment terminal based on mobile telephone network, system and method
US20220398563A1 (en) Method and system for active nfc payment device management
KR102526847B1 (en) Inaudible sound wave signal-based access recognition system, method, and apparatus therefor
US20230360020A1 (en) Communication processing device, communication processing system, communication control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40002116

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.