Communication method, apparatus, mobile terminal, storage medium and computer program product

CN123021068APending Publication Date: 2026-10-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510560020.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2026-10-30

AI Technical Summary

Benefits of technology

[0060]本公开实施例提出的通信方法应用于移动终端时,通过电子围栏检测功能,可以在检测到移动终端进入目标区域对应的围栏区域后,调用超宽带功能,并建立移动终端与围栏区域中的目标闸机之间的超宽带通信连接,这样基于超宽带通信连接可以使移动终端靠近目标闸机时,目标闸机能够自动开闸。如此,由于电子围栏检测功能的运行功耗低,所以相较于通过一直调用超宽带功能搜索闸机或基于持续进行的蓝牙扫描功能来调用超宽带功能来说,进一步地减少了移动终端的不必要功耗,降低了电量损耗,有效增强了移动终端的续航能力。并且,通过电子围栏检测技术能够有效察觉到用户的出行需求,并在合适时机才调用超宽带模块,使得移动终端的功能启用和执行更加合理;另外,基于移动终端和闸机之间的超宽带通信,相较于二维码过闸和NFC接触过闸来说,节省了用户主动持有移动终端靠近闸机的动作,实现用户无感化过闸,精准度更高、过闸效率也更高。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123021068A_ABST
    Figure CN123021068A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a communication method, device, mobile terminal, storage medium and computer program product. The communication method comprises: in response to entering a fence area corresponding to a target area, calling an ultra-wideband function; wherein the fence area has at least one gate machine for controlling the access of the target area; establishing an ultra-wideband communication connection with a target gate machine in the at least one gate machine; and adjusting the working state of the target gate machine based on the ultra-wideband communication connection. The present disclosure applies an electronic fence detection function in a mobile terminal, detects whether the mobile terminal enters a fence area corresponding to a target area, and only after entering the fence area, calls an ultra-wideband module to establish an ultra-wideband connection with a target gate machine, so that the ultra-wideband function can be used with lower power consumption, and further realizes the non-sensing passing of the mobile terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to Internet of Things (IoT) technology, and more particularly to a communication method, device, mobile terminal, storage medium, and computer program product. Background Technology

[0002] Ultra-wideband (UWB) is a wireless communication technology that transmits data using nanosecond-level non-sinusoidal narrow pulses, enabling the transmission of extremely low-power signals over a wide frequency spectrum. Key features of UWB technology include high-precision positioning, strong anti-interference capabilities, and high-speed data transmission.

[0003] With the maturity of the technology and the reduction of costs, UWB has been widely used in more fields, becoming one of the key technologies for the Internet of Things and the smart world. Among them, the main application areas of UWB technology include consumer electronics, automotive, industrial automation, healthcare, logistics and transportation. Summary of the Invention

[0004] This disclosure provides a communication method, apparatus, mobile terminal, storage medium, and computer program product. The mobile terminal utilizes an electronic fence detection function, detecting whether it has entered the fenced area corresponding to the target area. Only after entering the fenced area is the ultra-wideband module invoked to establish an ultra-wideband connection with the target gate. This enables the use of ultra-wideband functionality with lower power consumption, further achieving seamless gate access for the mobile terminal.

[0005] According to a first aspect of the present disclosure, a communication method is provided, the method comprising:

[0006] In response to entering the fenced area corresponding to the target area, the ultra-wideband function is invoked; wherein, the fenced area has at least one gate, the gate being used to control entry and exit from the target area;

[0007] Establish an ultra-wideband communication connection with the target gate among the at least one gate;

[0008] Based on the ultra-wideband communication connection, the working status of the target gate is adjusted.

[0009] In some optional embodiments, the invocation of the ultra-wideband function in response to entering the fenced area corresponding to the target area includes:

[0010] In response to entering the fenced area corresponding to the target area, the ultra-wideband function is activated and invoked.

[0011] In some optional embodiments, activating the ultra-wideband function in response to entering the fenced area corresponding to the target area includes:

[0012] Upon entering the fenced area corresponding to the target area, the Bluetooth scanning function is invoked;

[0013] Based on the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function, a Bluetooth communication connection is established with the target gate among the at least one gate;

[0014] In response to establishing the Bluetooth communication connection, the ultra-wideband function is enabled.

[0015] In some optional embodiments, activating the ultra-wideband function in response to establishing the Bluetooth communication connection includes:

[0016] In response to establishing the Bluetooth communication connection, the ultra-wideband configuration parameters of the target gate are obtained based on the Bluetooth communication connection, and the ultra-wideband function is enabled.

[0017] In some optional embodiments, the method further includes:

[0018] In response to obtaining the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection, the Bluetooth scanning function is turned off, or the ultra-wideband information filtering function in the Bluetooth scanning function is turned off.

[0019] In some optional embodiments, establishing a Bluetooth communication connection between the target gate among the at least one gate and the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function includes:

[0020] In response to the inclusion of at least one UWB connection identifier in the Bluetooth broadcast signal, at least one gate corresponding to the at least one UWB connection identifier is determined; wherein, the UWB connection identifier is used to characterize a gate that supports UWB communication function;

[0021] A target gate is identified among at least one gate corresponding to at least one ultra-wideband connection identifier, and a Bluetooth communication connection is established with the target gate.

[0022] In some optional embodiments, establishing an ultra-wideband communication connection with the target gate among the at least one gate includes:

[0023] Obtain the ultra-wideband configuration parameters of the target gate among the at least one gate;

[0024] Based on the ultra-wideband configuration parameters, an ultra-wideband session is established with the target gate.

[0025] In some alternative embodiments, the target gate is determined in the following manner:

[0026] In response to being in a state of leaving the target area, and the at least one gate including an exit gate, one of the at least one gates is determined as the target gate;

[0027] In response to being in a state of entering the target area, and the at least one gate including an entrance gate, one of the at least one gates is determined as the target gate.

[0028] In some optional embodiments, the method further includes:

[0029] Obtain the entry and exit records of the target area;

[0030] When entering the fenced area corresponding to the target area, the entry and exit records determine whether the person is leaving the target area or entering the target area.

[0031] In some optional embodiments, the method further includes:

[0032] The system acquires the passage information sent by the target gate based on the ultra-wideband communication connection, updates the entry and exit record, and disables the ultra-wideband function; wherein the passage information is used to characterize the passage status of the target gate.

[0033] In some optional embodiments, the method further includes:

[0034] In response to entering the fenced area corresponding to the target area, the smart card corresponding to the target area is invoked, and the smart card information is sent to the target gate.

[0035] In some alternative embodiments, the smart card includes at least one of the following: an electronic transit card, an access card, or an electronic vehicle key.

[0036] According to a second aspect of the present disclosure, a communication device is provided, the device comprising:

[0037] The module is configured to invoke the ultra-wideband function in response to entering the fenced area corresponding to the target area; wherein, the fenced area has at least one gate, and the gate is used to control entry and exit from the target area;

[0038] A connection module is configured to establish an ultra-wideband communication connection with a target gate among the at least one gate;

[0039] The adjustment module is configured to adjust the working status of the target gate based on the ultra-wideband communication connection.

[0040] In some optional embodiments, the calling module is further configured to activate the ultra-wideband function in response to entering the fenced area corresponding to the target area.

[0041] In some optional embodiments, the calling module is further configured to call the Bluetooth scanning function in response to entering the fenced area corresponding to the target area; establish a Bluetooth communication connection with the target gate among the at least one gate based on the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function; and enable the ultra-wideband function in response to establishing the Bluetooth communication connection.

[0042] In some optional embodiments, the calling module is further configured to, in response to establishing the Bluetooth communication connection, obtain the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection, and enable the ultra-wideband function.

[0043] In some embodiments, the calling module is further configured to disable the Bluetooth scanning function or disable the ultra-wideband information filtering function in the Bluetooth scanning function in response to obtaining the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection.

[0044] In some optional embodiments, the calling module is further configured to, in response to the Bluetooth broadcast signal including at least one UWB connection identifier, determine at least one gate corresponding to the at least one UWB connection identifier; wherein the UWB connection identifier is used to characterize a gate that supports UWB communication function; determine a target gate among the at least one gate corresponding to the at least one UWB connection identifier, and establish a Bluetooth communication connection with the target gate.

[0045] In some optional embodiments, the connection module is further configured to obtain the ultra-wideband configuration parameters of the target gate among the at least one gate; and establish an ultra-wideband session with the target gate based on the ultra-wideband configuration parameters.

[0046] In some optional embodiments, the calling module is further configured to, in response to being in a state of leaving the target area and the at least one gate including an exit gate, determine one of the at least one gates as the target gate; and in response to being in a state of entering the target area and the at least one gate including an entrance gate, determine one of the at least one gates as the target gate.

[0047] In some optional embodiments, the calling module is further configured to obtain entry and exit records of the target area; and, in the case of entering the fenced area corresponding to the target area, determine, based on the entry and exit records, whether the user is in a state of leaving the target area or in a state of entering the target area.

[0048] In some optional embodiments, the connection module is further configured to acquire the passage information sent by the target gate based on the ultra-wideband communication connection, update the entry and exit record, and disable the ultra-wideband function; wherein the passage information is used to characterize the passage status of the target gate.

[0049] In some alternative embodiments, the apparatus further includes:

[0050] The smart card management module is configured to, in response to entering the fenced area corresponding to the target area, invoke the smart card corresponding to the target area and send the smart card information to the target gate.

[0051] In some alternative embodiments, the smart card includes at least one of the following: an electronic transit card, an access card, or an electronic vehicle key.

[0052] In some optional embodiments, the smart card management module is further configured to update the fence area corresponding to the smart card in response to the smart card binding operation; wherein the fence area corresponding to different types of smart cards is different.

[0053] According to a third aspect of the present disclosure, a mobile terminal is provided, the mobile terminal comprising:

[0054] processor;

[0055] Memory used to store computer programs or instructions;

[0056] The processor executes the computer program or instructions to implement the steps of the method in the first aspect described above.

[0057] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, the storage medium storing a computer program or instructions, wherein when the computer program or instructions in the storage medium are executed by a processor, the steps of the method in the first aspect are implemented.

[0058] According to a fourth aspect of the present disclosure, a computer program product is provided, wherein when the computer program or instructions are executed by a processor, the steps of the method in the first aspect described above are implemented.

[0059] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0060] When the communication method proposed in this embodiment is applied to a mobile terminal, the electronic fence detection function can activate the ultra-wideband (UWB) function after detecting that the mobile terminal has entered the fenced area corresponding to the target area, and establish an UWB communication connection between the mobile terminal and the target gate in the fenced area. Based on this UWB communication connection, the target gate can automatically open when the mobile terminal approaches it. Since the electronic fence detection function has low power consumption, compared to continuously calling the UWB function to search for gates or using continuous Bluetooth scanning, it further reduces unnecessary power consumption of the mobile terminal, lowers power consumption, and effectively enhances the mobile terminal's battery life. Furthermore, the electronic fence detection technology can effectively detect the user's travel needs and only call the UWB module at the appropriate time, making the activation and execution of mobile terminal functions more rational. In addition, based on the UWB communication between the mobile terminal and the gate, compared to QR code access and NFC contact access, it saves the user the action of actively holding the mobile terminal close to the gate, achieving seamless access with higher accuracy and efficiency.

[0061] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0062] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0063] Figure 1 This is a flowchart illustrating a communication method according to an exemplary embodiment. Figure 1 .

[0064] Figure 2 This is a schematic diagram illustrating a method for enabling ultra-wideband functionality according to an exemplary embodiment.

[0065] Figure 3 This is a schematic diagram illustrating the establishment of communication between a mobile terminal and a gate according to an exemplary embodiment.

[0066] Figure 4 This is a flowchart illustrating a communication method according to an exemplary embodiment. Figure 2 .

[0067] Figure 5 This is a structural block diagram of a communication device according to an exemplary embodiment.

[0068] Figure 6 This is a structural block diagram of a mobile terminal according to an exemplary embodiment. Detailed Implementation

[0069] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0070] In related technologies, with the continuous development and progress of wireless communication and Internet of Things (IoT) technologies, wireless communication technology faces greater opportunities and challenges in the field of intelligent transportation. In the traditional field of intelligent transportation, QR code scanning and Near Field Communication (NPF) contact are the conventional gate-passing methods. However, QR code gate-passing requires the user to actively open the QR code and bring it close to the recognition area of ​​the traffic gate, and NFC contact gate-passing also requires the user to hold the mobile terminal close to the recognition area of ​​the traffic gate. Therefore, conventional gate-passing methods are cumbersome and complex, affecting the user experience, increasing the time to pass through the traffic gate, and impacting the gate-passing speed and safety.

[0071] Due to the maturity and development of UWB technology, this disclosure provides a gate-passing method utilizing UWB technology. By integrating UWB technology into a mobile terminal and a traffic gate, and based on UWB communication between the mobile terminal and the traffic gate, it enables authentication of traffic card information and gate opening / closing control. Compared to QR code gate passage and NFC contact gate passage, it eliminates the need for users to actively hold their mobile terminals close to the gate, achieving contactless gate passage. Furthermore, because UWB technology can achieve centimeter-level or even sub-centimeter-level high-precision positioning and has ultra-wide bandwidth, it has less interference with other wireless communications. It can also achieve transmission speeds of hundreds of megabits per second over short distances. Therefore, compared to traditional NFC communication technologies such as Bluetooth and NFC wireless communication, it offers higher accuracy and efficiency when applied to gate-passing scenarios in the intelligent transportation field.

[0072] However, the continuous standby of the UWB module in a mobile terminal may lead to unnecessary power consumption, affecting the battery life of the mobile terminal. In view of this, this disclosure proposes a communication method that applies electronic fence technology in a mobile terminal. By using a lower-power electronic fence detection module to trigger the activation of the UWB module, it can not only improve the battery life of the mobile terminal, but also ensure the effective implementation of contactless gate passage in intelligent transportation scenarios.

[0073] in, Figure 1 This is a flowchart illustrating a communication method according to an exemplary embodiment. For example... Figure 1 As shown, the method mainly includes the following steps:

[0074] Step 101: In response to entering the fenced area corresponding to the target area, invoke the ultra-wideband function;

[0075] Within the fenced area, there is at least one turnstile, which is used to control access to the target area.

[0076] Step 102: Establish an ultra-wideband communication connection with at least one target gate.

[0077] Step 103: Adjust the working status of the target gate based on the ultra-wideband communication connection.

[0078] Here, the aforementioned communication method is applied to a mobile terminal equipped with an electronic fence detection module and a UWB module, to enable the mobile terminal to enter and exit the target area based on the target gate.

[0079] The fenced area is a larger spatial range than the target area and includes the target area. One or more turnstiles are set up in the fenced area. After the mobile terminal enters the fenced area, the mobile terminal enters the target area or leaves the target area through the opened turnstile.

[0080] In some examples, the target area can be an area inside a transportation platform, such as inside a subway station, bus station, or train / airport station, with the corresponding turnstiles being transportation turnstiles. In this case, the fenced area is the area surrounding the transportation platform.

[0081] Taking the target area as the subway platform as an example, the corresponding fenced area includes each exit / entry point, the passage area between the exit / entry point and the turnstile, the service counter, etc.; in actual scenarios, it can also be extended to some areas outside the platform; the corresponding turnstile is the subway turnstile.

[0082] Taking the area inside a bus as an example, the corresponding fenced area includes the bus stop area, which consists of the bus stop sign area, the pedestrian waiting area, and the bus parking area. In real-world scenarios, this can be extended to areas outside the bus stop. In this example, the turnstile is not a fixed turnstile, but a mobile turnstile on the bus. The mobile terminal's UWB module can only detect the turnstile after the bus has entered the fenced area.

[0083] The target area is a train / airport platform or airport area, and the turnstiles in this area can be ticket gates, security gates, etc. inside the platform. This disclosure does not limit this.

[0084] In other examples disclosed herein, the target area may also be an office, a home, a user's private vehicle, etc.; correspondingly, the fenced area corresponding to an office can be the area surrounding the office / office building, and the corresponding turnstile is the entrance or exit turnstile of the office building (or the entrance and exit turnstile of the office); the fenced area corresponding to a home is the community or building where the home is located, and the corresponding turnstile is the elevator turnstile or access control turnstile; the fenced area corresponding to a private vehicle is a parking lot or designated parking area, and the corresponding turnstile is the car door.

[0085] Here, in step 101, this embodiment of the present disclosure can detect whether the mobile terminal has entered the fenced area corresponding to the target area based on the electronic fence detection module activated by the mobile terminal.

[0086] The electronic fence detection module in the communication method proposed in this embodiment is applied in the system control processor (SCP) and modem of the mobile terminal, specifically including a positioning unit, a control unit, and a communication unit. The electronic fence detection module calls the BaseGeo EventWorker class in the SCP and modem, and listens for broadcasts in the BaseGeoEventWorker class to determine whether the mobile terminal is "entering the fenced area" (i.e., entering the fenced area) or "leaving the fenced area". Here, in the BaseGeoEventWorker class, the positioning unit operates at regular intervals to search for the real-time location of the mobile terminal and sends it to the control unit. The control unit compares the real-time location of the mobile terminal with the preset fenced area to determine whether the mobile terminal is "entering the fenced area" or "leaving the fenced area". When an "entering the fenced area" event occurs, the communication unit reports to the application processor (AP) of the mobile terminal and wakes up the AP, so that the AP executes the above communication method to activate the UWB module, further enabling the user to pass through the gate without being touched while carrying the mobile terminal.

[0087] It should be noted that because the electronic fence detection module operates on the SCP and MODEM side, rather than the AP side, and the positioning unit includes the underlying Global Positioning System (GPS) chip (which performs positioning approximately every few minutes, with other methods assisting in reducing the positioning frequency), the power consumption of the electronic fence detection module is lower than that of functional modules such as Bluetooth and UWB modules applied on the AP side. This further improves the battery life of mobile terminals and enables seamless gate access. Furthermore, electronic fence technology, with its high efficiency and intelligence, currently shows broad application prospects in various fields such as security, industrial production, smart homes, and environmental protection. With technological advancements and market demand, this disclosure introduces electronic fence technology into mobile terminals and applies it to seamless gate access scenarios, broadening the application scenarios of electronic fence technology and enhancing its practical value.

[0088] Here, the aforementioned mobile terminals include, but are not limited to, mobile phones, tablets, personal computer devices, and smart wearable devices such as watches or glasses.

[0089] Thus, after the AP terminal of the mobile terminal receives the "enter the fence" event corresponding to the fenced area detected by the electronic fence detection module, it calls the UWB function corresponding to the UWB module in the mobile terminal.

[0090] It should be noted that the electronic fence detection module can determine which fenced area the mobile terminal has entered for each of the aforementioned target areas. When this fenced area corresponds to a transportation station, it can be automatically updated by the transportation application's backend, or the user can actively select and confirm it within the application. When the fenced area does not correspond to a transportation station, the user needs to actively select or update it on the mobile terminal. In this way, the electronic fence detection module can perform "entry" and "exit" detection for different fenced areas.

[0091] Understandably, if the AP terminal of the mobile terminal receives the "enter the circle" event reported by the electronic fence detection module, it will determine that the mobile terminal may have a need to pass through the gate. In this case, the AP terminal can selectively call the UWB function in the UWB module.

[0092] In step 102 of this disclosure, when the processing module on the mobile terminal AP side calls the UWB module, a UWB communication connection can be established with the target gate in at least one gate in the fenced area based on the UWB module.

[0093] Here, all turnstiles in the fenced area are in a discoverable state, actively broadcasting UWB connection identifiers. When a mobile terminal has its UWB module enabled and the wireless signal communication distance is met, it can detect the signal containing the UWB connection identifier, that is, find the turnstile. Since the requirements for passing through turnstiles are different in different scenarios, after finding the turnstile, it is necessary to determine whether the user wants to enter this target area, or which turnstile to use to enter the target area.

[0094] For example, when the target area is a bus stop, it's necessary to determine whether the gate found in the search is the gate on the bus the user identifies as such or a gate on a bus the user frequently uses. If so, it's designated as the target gate; otherwise, the search result is ignored. Similarly, when the target area is a train station, it's necessary to determine whether the gate found in the search is the ticket gate associated with a purchased ticket. If so, it's designated as the target gate; otherwise, the search result is ignored. Of course, in other examples, the determination of whether a found gate is the target gate can be flexibly adjusted based on the actual scenario and the end-user's travel needs. In some scenarios, if several consecutive gates found are not the target gate, a prompt can be generated on the mobile device, indicating that the user's current location is outside the target area.

[0095] Here, after the target gate is identified, the UWB module can be controlled to broadcast UWB signals and receive UWB feedback signals from the target gate based on ranging and positioning technology. Then, when the UWB communication distance and / or communication angle are satisfied, UWB communication with the target gate can be established.

[0096] In step 103, based on the UWB communication connection established with the target gate, the working status of the target gate can be adjusted, such as adjusting the target gate to open automatically, so that users carrying mobile terminals can pass through the target gate.

[0097] Here, automatic gate opening control can be completed by the target gate after a successful UWB communication connection is established. Optionally, after establishing the UWB communication connection, the mobile terminal sends a gate-opening waiting message to the target gate. Upon receiving this message, the target gate continuously performs distance and orientation detection based on the UWB communication between the two parties to obtain the user's moving distance and angle relative to the gate. Therefore, when the mobile terminal is within the target gate's entry range, the target gate automatically opens to allow the user to pass. Additionally, during the passage process, the target gate can automatically close after a specified passage time and disconnect the UWB communication connection. The target gate can also continue distance and orientation detection through the UWB communication between the two parties to determine whether the user has completely passed through the target gate. Once it is determined that the user has left the target entry range, it automatically closes the gate and disconnects the UWB communication connection.

[0098] Of course, the aforementioned automatic gate opening control can also be controlled by a mobile terminal. For example, the mobile terminal can continuously measure distance and direction based on UWB communication between the two parties to obtain the user's moving distance and angle relative to the target gate. When the mobile terminal enters the target gate's entry range, it sends an opening control command to the target gate via wireless communication, causing the target gate to automatically open for the user to pass. Similarly, the mobile terminal can also send a closing control command to the target gate based on further detection, causing the target gate to automatically close.

[0099] When the communication method proposed in this embodiment is applied to a mobile terminal, the electronic fence detection function can activate the ultra-wideband (UWB) function after detecting that the mobile terminal has entered the fenced area corresponding to the target area, and establish an UWB communication connection between the mobile terminal and the target gate in the fenced area. Based on this UWB communication connection, the target gate can automatically open when the mobile terminal approaches it. Since the electronic fence detection function has low power consumption, compared to continuously calling the UWB function to search for gates or using continuous Bluetooth scanning, it further reduces unnecessary power consumption of the mobile terminal, lowers power consumption, and effectively enhances the mobile terminal's battery life. Furthermore, the electronic fence detection technology can effectively detect the user's travel needs and only call the UWB module at the appropriate time, making the activation and execution of mobile terminal functions more rational. In addition, based on the UWB communication between the mobile terminal and the gate, compared to QR code access and NFC contact access, it saves the user the action of actively holding the mobile terminal close to the gate, achieving seamless access with higher accuracy and efficiency.

[0100] In some optional embodiments of this disclosure, in response to entering the fenced area corresponding to the target area, the ultra-wideband function is invoked, including:

[0101] In response to entering the fenced area corresponding to the target area, the ultra-wideband function is activated and invoked.

[0102] It should be noted that the UWB function is turned off when the mobile terminal is not in the fenced area, which can reduce unnecessary power consumption of the UWB module during standby or operation.

[0103] In this embodiment of the disclosure, after determining that the mobile terminal has entered the fenced area, the UWB function can be activated immediately, or it can be triggered by other lower-power communication modules. Activating the UWB function immediately can accelerate the subsequent process of establishing a UWB communication connection, further increasing gate passage efficiency; while having other lower-power communication modules trigger the UWB function can reduce terminal power consumption.

[0104] After enabling the UWB function, this disclosure can either choose to control the UWB function to be in a waiting state first, and then call the UWB function when certain conditions are met; or it can call the UWB function immediately after enabling the UWB function.

[0105] In some examples, for calling the UWB function immediately after enabling the UWB function, this disclosure can search for gates capable of UWB communication by sending UWB signals and receiving UWB feedback signals, and after finding a gate, determine the target gate and establish a UWB session with the target gate.

[0106] In other examples, where the control UWB function is initially in a waiting state and then invoked when certain conditions are met, embodiments of this disclosure can use a lower-power communication module to first search for gates that support UWB communication, then determine the target gate, and after determining the target gate (or after the physical distance between the target gate and the target gate reaches a preset distance), invoke the UWB function. This reduces power consumption and the time spent establishing UWB communication, further improving gate passage efficiency.

[0107] Thus, in response to entering a fenced area, the ultra-wideband module can be activated and invoked in any of the above examples, which is highly flexible and can balance the need to reduce power consumption with the fast response of the ultra-wideband communication connection.

[0108] In some optional embodiments of this disclosure, in response to entering the fenced area corresponding to the target area, enabling the ultra-wideband function includes:

[0109] Upon entering the fenced area corresponding to the target area, the Bluetooth scanning function is invoked;

[0110] Based on the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function, a Bluetooth communication connection is established with at least one target gate in the gate system;

[0111] In response to establishing a Bluetooth communication connection, enable the ultra-wideband function.

[0112] Here, considering that current mobile terminals are equipped with Bluetooth Low Energy (BLE) modules, and that the power consumption of Bluetooth scanning based on the Bluetooth module is lower than that of continuously broadcasting and scanning UWB signals using a UWB module, this embodiment of the present disclosure can actively invoke the Bluetooth scanning function after entering the fenced area, establish a Bluetooth communication connection with the target gate based on the Bluetooth scanning function, and then activate the UWB function and complete the UWB communication connection when the UWB communication conditions with the target gate are met.

[0113] It should be noted that in traditional electronic devices, when electronic fence technology is not introduced or applied to automatic gate scenarios, the Bluetooth scanning function is typically activated after the mobile terminal is powered on, and then the gate is scanned based on the Bluetooth scanning function. This results in significant power consumption. Therefore, the embodiments of this disclosure can actively disable the Bluetooth module (i.e., disable the Bluetooth scanning function) when the Bluetooth module is not interacting with other functional modules or other devices. The Bluetooth module is only activated after the electronic fence detection module detects that the mobile terminal has entered the fenced area and reports an "entry into the fence" event, and the Bluetooth module is controlled to start the Bluetooth scanning function to obtain Bluetooth broadcast signals (advertising bytes). In this way, compared to the Bluetooth module scanning continuously, power consumption can be saved to a certain extent; compared to the user manually turning on Bluetooth after entering the subway station, it further reduces user operation steps and improves user experience.

[0114] The system continuously scans the surrounding environment for Bluetooth broadcast signals from other devices after invoking the Bluetooth scanning function. It then uses an information filtering function to identify the sender of the Bluetooth broadcast signal, such as a headset, a turnstile, or another mobile terminal. When the information filtering result is retrieved via the Bluetooth callback function, and a turnstile is identified within the Bluetooth scanning range, the target turnstile is determined from at least one of the scanned turnstiles.

[0115] Here, determining the target gate from at least one scanned gate can be done in two ways: if only one Bluetooth broadcast signal is detected at the same location, and the callback information filtering result indicates that the sender of this Bluetooth broadcast signal is a gate, then this gate can be designated as the target gate; alternatively, if multiple Bluetooth broadcast signals are detected at the same location, and the callback information filtering result indicates that the sender of at least two Bluetooth broadcast signals is a gate, then the gate closest to the mobile terminal can be designated as the target gate. The distance between the mobile terminal and the gate can be determined based on the signal strength (RSSI) of the Bluetooth broadcast signal.

[0116] In this embodiment of the disclosure, after the target gate is determined, a Bluetooth communication connection can be established with the target gate, and the real-time distance between the mobile terminal and the target gate can be determined based on the Bluetooth communication connection. If the real-time distance between the mobile terminal and the target gate meets the UWB communication distance with the target gate, the UWB module can be triggered to start, that is, the UWB function can be enabled, so that the terminal can call the UWB function to complete the UWB communication connection with the target gate.

[0117] Thus, this embodiment of the present disclosure uses a lower-power Bluetooth scanning function to control the activation of the ultra-wideband function, which can reduce the power consumption of the mobile terminal during the process compared to activating the ultra-wideband function when entering a fenced area.

[0118] In some optional embodiments of this disclosure, enabling the ultra-wideband function in response to establishing a Bluetooth communication connection includes:

[0119] In response to the establishment of a Bluetooth communication connection, the ultra-wideband configuration parameters of the target gate are obtained based on the Bluetooth communication connection, and the ultra-wideband function is enabled.

[0120] Here, after the mobile terminal identifies the target gate from at least one gate, a Bluetooth communication connection is established between the mobile terminal and the target gate, and UWB configuration parameters are exchanged between the mobile terminal and the target gate based on the BLE channel provided by the Bluetooth communication connection.

[0121] The UWB configuration parameters exchanged with the target gate include: UWB complex signal parameters (such as CHAN 5 or CHAN9), ranging interval (usually 20ms to 100ms), and encryption seed (used for data encryption processing during subsequent UWB communication).

[0122] In this way, after exchanging UWB configuration parameters, the mobile terminal can determine whether effective UWB communication can occur with the target gate based on these configuration parameters, and then enable the UWB function. This allows for the successful establishment of a UWB communication connection with the target gate with lower power consumption.

[0123] In some optional embodiments of this disclosure, establishing a Bluetooth communication connection with at least one target gate based on a Bluetooth broadcast signal obtained by calling the Bluetooth scanning function includes:

[0124] In response to a Bluetooth broadcast signal including at least one UWB connection identifier, at least one gate corresponding to the at least one UWB connection identifier is identified; wherein, the UWB connection identifier is used to characterize a gate that supports UWB communication functionality;

[0125] Identify the target gate among at least one gate corresponding to at least one ultra-wideband connection identifier, and establish a Bluetooth communication connection with the target gate.

[0126] In this embodiment of the disclosure, the Bluetooth scanning function has a UWB information filtering function. The received Bluetooth broadcast signal is filtered through the UWB information filter. Only after the UWB connection identifier is parsed and the identifier is called back via Bluetooth will the subsequent process of starting the UWB module begin. If the UWB connection identifier is not filtered, the subsequent process will not be triggered.

[0127] Here, the UWB connection identifier includes: UWB Service Identifier (UUID) and gate location identifier. The UUID indicates that the traffic gate that sends the Bluetooth broadcast signal supports UWB communication, and the gate location identifier indicates the corresponding gate device ID and geolocation code.

[0128] In this embodiment, after identifying the target gate, the mobile terminal establishes a Bluetooth communication connection with the target gate and exchanges UWB configuration parameters with the target gate through the BLE channel provided by the Bluetooth communication connection. Here, considering that some pedestrians may find it inconvenient to use short-range UWB communication to pass through the gate (for example, the terminal held by a wheelchair user generally cannot meet the UWB communication distance requirement with the target gate), some gates may support Bluetooth communication but not UWB functionality. In this case, Bluetooth may find the gate, but this gate does not support UWB functionality (i.e., the broadcast Bluetooth signal does not carry a UWB connection identifier). Therefore, in this embodiment, only after obtaining the UWB connection identifier through the Bluetooth scanning function can it be determined that the gate found by Bluetooth supports UWB communication. Further determination is then made as to whether this gate is the target gate to be connected, and then the subsequent steps of establishing a Bluetooth communication connection with the target gate are initiated.

[0129] It should be noted that when this disclosure detects multiple Bluetooth broadcast signals with UWB connection identifiers, indicating the presence of multiple turnstiles supporting UWB communication in the vicinity, this embodiment can select a target turnstile from these turnstiles. The target turnstile can be determined based on the actual distance to the mobile terminal, as described above, or it can be determined according to user needs; for example, if multiple cars are detected in a parking lot, it is necessary to confirm that it is the user's own car before establishing a Bluetooth communication connection.

[0130] Thus, after obtaining the UWB connection identifier based on the Bluetooth broadcast signal and confirming that the scanned gate supports the UWB function, a Bluetooth communication connection is established, and then a UWB communication connection is further established based on the Bluetooth communication connection. This can reduce the phenomenon of failure to establish a UWB communication connection after the Bluetooth communication connection is established, improve the success rate of the UWB communication connection, further improve the efficiency of automated gate passage, and also reduce terminal power consumption by reducing the ineffective consumption of Bluetooth / UWB connections.

[0131] In some optional embodiments of this disclosure, the above communication method further includes:

[0132] In response to obtaining the UWB configuration parameters of the target gate based on the Bluetooth communication connection, disable the Bluetooth scanning function, or disable the UWB information filtering function in the Bluetooth scanning function.

[0133] Here, having obtained the UWB configuration parameters of the target gate via Bluetooth communication, this disclosure allows the establishment of a subsequent UWB communication connection with the target gate using these parameters. At this point, it is no longer necessary to exchange information with the target gate via Bluetooth. Therefore, continuing to maintain the Bluetooth scanning function or the UWB information filtering function for UWB connection identifiers within the Bluetooth scanning function may result in some power consumption.

[0134] In view of this, this disclosure can adaptively adjust the operating state of the Bluetooth module based on whether the Bluetooth module is currently associated with other functions. Optionally, when the Bluetooth module interacts with other functional modules or other devices, other information filtering functions of the Bluetooth scanning function are generally used to filter Bluetooth broadcast signals (e.g., the Bluetooth identification filter is working). In this case, embodiments of this disclosure can choose to disable only the UWB information filtering function in the Bluetooth scanning function, thereby saving terminal power consumption to a certain extent. When the Bluetooth module does not interact with other functional modules or other devices, embodiments of this disclosure can choose to turn off the Bluetooth module, that is, turn off the entire Bluetooth scanning function (and the UWB information filtering function is also turned off), which helps to save unnecessary power consumption caused by the continuous operation of the Bluetooth module.

[0135] Thus, in this embodiment of the present disclosure, when the ultra-wideband configuration parameters of the target gate are obtained through the Bluetooth communication connection and it is determined that an ultra-wideband communication connection needs to be established, the Bluetooth function can be actively adjusted, thereby saving the power consumption of the terminal.

[0136] In some optional embodiments of this disclosure, establishing an ultra-wideband communication connection with a target gate in at least one gate includes:

[0137] Obtain the ultra-wideband configuration parameters of the target gate in at least one gate system;

[0138] Based on the ultra-wideband configuration parameters, establish an ultra-wideband session with the target gate.

[0139] Here, in this embodiment of the present disclosure, when the UWB function is enabled based on Bluetooth communication, the aforementioned UWB configuration parameters can be obtained based on the successfully established Bluetooth communication connection with the target gate. Upon obtaining the UWB configuration parameters, a UWB session can be established with the target gate using these parameters. Alternatively, in this embodiment of the present disclosure, if the UWB function is immediately activated and invoked after entering the fenced area, the UWB configuration parameters can be exchanged based on the broadcasting and scanning of UWB signals.

[0140] The process of initializing a UWB session can be as follows: Based on the UWB connection identifier and UWB configuration parameters of the target gate and the UWB configuration parameters of the mobile terminal, configure the radio frequency signal, pulse shaping filter, and clock synchronization offset compensation; configure the protocol stack, set the encryption seed, and generate a session key; then send UWB signals according to the ranging protocol and receive UWB feedback signals; calculate the time of flight based on the transmitted and received UWB signals and return the ranging result to determine the validity of the distance between the mobile terminal and the target gate (e.g., less than 30cm). After at least three consecutive valid rangings and successful authentication via the session key, a handshake confirmation is completed, at which point the UWB session is successfully established, and UWB communication between the terminal device and the target gate is completed.

[0141] In this embodiment of the disclosure, based on UWB communication, the mobile terminal or the target gate can continue to perform distance detection based on a ranging protocol. When the mobile terminal is detected to be at a suitable distance (e.g., less than 10cm) and at a suitable angle (within 60 degrees of the gate) relative to the target gate, the gate of the target gate is controlled to switch to the open state. This control command can be initiated by the target gate based on ranging, or it can be initiated by the mobile terminal based on ranging; this disclosure does not impose any restrictions on this.

[0142] Taking a subway turnstile as an example, the above control command is generally initiated by the target turnstile. Considering that there may be at least two mobile terminals preparing to pass through the turnstile at the same time, the target turnstile can measure the distance of each mobile terminal in an orderly manner according to the distance measurement result and open the turnstile accordingly.

[0143] It should be noted that during the actual initialization of a UWB session, a series of problems may occur, such as channel conflicts, key authentication failures, hardware malfunctions, or ranging interruptions, leading to the failure of UWB session initialization. In such cases, the UWB communication connection cannot be established. Therefore, this embodiment of the present disclosure can clear at least one UWB connection identifier and UWB configuration parameters from the cached data. Simultaneously, since the Bluetooth scanning function or UWB information filtering function was disabled when the UWB configuration parameters were received, it is necessary to restore the Bluetooth scanning function or restore the UWB information filtering function within the Bluetooth scan.

[0144] It should be noted that if the same or adjacent target gates are scanned multiple times in a row, but the initialization of the UWB session fails, a prompt message can be displayed on the mobile terminal to indicate that the user cannot pass through the gate at this time. Taking the subway travel scenario as an example, this prompt message can prompt the user to actively open the transportation card QR code on the mobile terminal or open the NFC function to use other payment methods to pass through the gate.

[0145] Here, in this embodiment of the disclosure, the mobile terminal can establish an ultra-wideband session with the target gate through the acquired configuration parameters, thereby completing the ultra-wideband communication connection with the target gate. Furthermore, based on the ultra-wideband communication connection, more precise positioning can be achieved, ensuring that the target gate only opens when the user carrying the mobile terminal approaches the target gate within the target passage range, guaranteeing the accuracy and efficiency of entry. Additionally, in the event of an initialization failure of the ultra-wideband session, occupied resources can be released promptly, saving power consumption, and Bluetooth functionality can be activated immediately to continue probing the gate, ensuring the smoothness of the seamless entry process.

[0146] In some optional embodiments of this disclosure, the target gate is determined in the following manner:

[0147] In response to being in a state of leaving the target area, and the at least one gate including an exit gate, one of the at least one gates is determined as the target gate;

[0148] In response to being in a state of entering the target area, and the at least one gate including an entrance gate, one of the at least one gates is determined as the target gate.

[0149] Here, specific target areas, such as subway platforms, airport / train station platforms, office buildings, and other public areas, typically use different turnstiles at different locations to control entry and exit. At the entrance of the public area, there is an entrance turnstile; users carrying mobile devices enter the target area by opening the entrance turnstile. At the exit of the public area, there is an exit turnstile; users carrying mobile devices leave the target area by opening the exit turnstile.

[0150] It should be noted that some target areas are not public areas, such as homes or private vehicles. In such cases, there may only be one gate, which controls both entry and exit from the target area.

[0151] Taking a target area corresponding to at least one entrance gate and one exit gate as an example, this disclosure, when scanning at least one gate, also needs to determine whether the mobile terminal is within the target area or has already left the target area. If it is within the target area, further scanning is required if the scanned gates do not include exit gates; only if the scanned gates include exit gates will that gate be considered as a target gate. Similarly, if the mobile terminal has already left the target area, i.e., is outside the target area, further scanning is required if the scanned gates do not include entrance gates; only if the scanned gates include entrance gates will that gate be considered as a target gate.

[0152] Determining whether the terminal is located within the target area can be done using a real-time positioning module.

[0153] Optionally, taking a subway travel scenario as an example, to ensure entry and exit management, users carrying mobile devices need to enter the station through the entrance gate and exit through an exit gate set up within the arrival subway platform. Specifically, if the mobile device is currently in the entry state and still within the current fenced area (or leaving one fenced area and entering another), it is determined whether the subway gate corresponding to the parsed UWB connection identifier includes an exit gate. Only when an exit gate is determined is the target gate further identified. It should be noted that if the same exit gate is detected several times consecutively at the same location, it is identified as the target gate. If two or three exit gates are detected, a target gate is selectively identified, such as the closest one. Similarly, if the current mobile terminal is in the exit state and the mobile terminal is still within the current fence range (or newly enters a fence range), it is determined whether the subway gate corresponding to the parsed UWB connection identifier includes the entrance gate. Only when the entrance gate is determined will the target gate be further determined. The method for determining the target gate is the same as the above method, which will not be repeated here.

[0154] Thus, the embodiments of this disclosure can determine the target gate based on the actual situation of entering and exiting the target area, thereby ensuring the effectiveness and rationality of automated gate passage.

[0155] In some optional embodiments of this disclosure, the above communication method further includes:

[0156] Retrieve entry and exit records for the target area;

[0157] When entering the fenced area corresponding to the target area, the system determines whether the user is leaving the target area or entering the target area based on the entry and exit records.

[0158] Here, after each gate is passed, the mobile terminal's processing module updates the entry / exit record corresponding to the target area in the system's cache data. Thus, in response to entering the fenced area of ​​the target area, the entry / exit record can be retrieved to determine whether the last updated status was entry or exit from the target area.

[0159] For example, taking the subway travel scenario mentioned above, if an entry occurs, the entry / exit record is updated to an entry status, and the name and location of the entry platform are recorded; if an exit occurs, the entry / exit record is updated to an exit status, and the name and location of the exit platform are recorded. It should be noted that the exit status can be the exit status after an entry has occurred within a preset time, or it can be the status after no entry / exit event has occurred within a preset time, where the preset time can be half a day or a day.

[0160] In this way, by using the entry and exit records cached in the mobile terminal, it is possible to quickly determine whether the terminal is in the target area. Compared with using a positioning module to obtain the real-time location, the response rate is faster and the power consumption is lower.

[0161] Following the example above, if the entry / exit record indicates that the mobile terminal is in the station entry state, considering that during the mobile terminal's walking process after entering the station or after entering the fenced area corresponding to the subway platform, the Bluetooth module may scan the UWB connection identifier corresponding to the entrance gate. In this case, the subway gate searched at this time is not the gate that should be passed through, so it is not used as the target gate. At the same time, the UWB connection identifier is cleared from the mobile terminal's cache data, and the Bluetooth broadcast signal is reacquired to further search for the UWB connection identifier of other exit gates.

[0162] Similarly, if the entry / exit record indicates that the mobile terminal is in the exit state, the user may find that they are at the wrong station after exiting the station, or enter the fenced area from outside the fenced area. In this case, they need to enter the station through the entrance gate. In this situation, the Bluetooth module may scan the UWB connection identifier corresponding to the exit gate. However, the subway gate searched at this time is not the gate that should be passed through. Therefore, it is not used as the target gate. At the same time, the UWB connection identifier is cleared from the cached data of the mobile terminal, and the Bluetooth broadcast signal is reacquired to further search for the UWB connection identifier of other entrance gates.

[0163] The embodiments disclosed herein can accurately determine the target gate based on the entry and exit records and promptly delete unnecessary search results, saving space and improving the rationality and reliability of the target gate scanning process.

[0164] In some optional embodiments of this disclosure, the communication method proposed in this disclosure further includes:

[0165] The system acquires the passage information sent by the target gate via the ultra-wideband communication connection, updates the entry and exit records, and disables the ultra-wideband function; the passage information is used to characterize the passage status of the target gate.

[0166] Here, the target gate sends a passage information to the mobile terminal via UWB communication, indicating that the mobile terminal has entered or left the target area. After receiving the passage information, the mobile terminal updates the entry and exit records in its cached data. If the target gate it passes through is an entrance gate, it will be updated to "entered target area" status; if the target gate it passes through is an exit gate, it will be updated to "left target area" status. Taking the subway as an example, after updating to "left target area" status, the payment function will also be invoked to complete the payment. Therefore, the passage information sent when passing through the exit gate also includes information such as the payment amount.

[0167] Considering that there is usually a waiting period after passing through one gate before passing through another, it would generate unnecessary power consumption if the UWB module were to continue operating during this time. Therefore, after the mobile terminal receives the pass information, it will also shut down the UWB module and release UWB-dependent resources. The release of UWB-dependent resources includes: ending the UWB session, restoring the initialization flag, unbinding the UWB callback function, and clearing the data of this UWB communication from the cache data. This data includes, but is not limited to, at least one of the above-mentioned UWB connection identifiers, the UWB configuration parameters of the target gate, the data exchanged in the UWB session, and the ranging information and authentication information exchanged with the target gate based on UWB communication.

[0168] Understandably, considering the possibility of accidental gate opening or incorrect user entry / exit during actual implementation, the Bluetooth scanning function can be used to scan the corresponding gate again after one passage has occurred. Continuing the example above, if the user does not exit at the designated platform, or only exits to buy something within the station, the Bluetooth function can be restored after receiving the passage information confirming that an exit gate has been passed, ensuring the reliability of seamless entry and exit.

[0169] If the Bluetooth module is not interacting with other modules or devices and is in a turned-off state when passing through the gate, the Bluetooth module can be turned on and controlled to continue Bluetooth scanning to filter UWB connection identifiers. Alternatively, if the Bluetooth module is interacting with other modules or devices when passing through the gate, and the UWB information filtering function was only turned off when the UWB module was turned on, then the UWB information filtering function can be turned on.

[0170] In this way, after receiving the pass information, the mobile terminal will update the entry and exit records in the cached data, turn off the UWB function, release the UWB resources, and restore the Bluetooth scanning function. This can flexibly handle the above-mentioned erroneous entry and exit issues while saving power as much as possible, and ensure the reliability of seamless entry and exit.

[0171] In some optional embodiments of this disclosure, the communication method proposed in this disclosure further includes:

[0172] In response to detecting that a mobile terminal has left the fenced area, disable the Bluetooth scanning function, or disable the ultra-wideband information filter in the Bluetooth scanning function.

[0173] Here, when the electronic fence detects that the mobile terminal has left the first fence area, it will report an "out of the fence" event to the AP. This disclosure can also adjust the working status of the Bluetooth module according to whether the Bluetooth module is associated with other functions.

[0174] If the Bluetooth module is interacting with other functional modules or other devices at this time, the UWB information filtering function is turned off, and the search for UWB-supporting communication devices such as the gate in this disclosure is no longer performed, thereby saving the power consumption of the terminal to a certain extent. If the Bluetooth module is not interacting with other functional modules or other devices at this time, the Bluetooth scanning function is turned off, thereby further saving unnecessary power consumption of the terminal.

[0175] In some optional embodiments of this disclosure, the communication method proposed in this disclosure further includes:

[0176] In response to entering the fenced area corresponding to the target area, the smart card corresponding to the target area is invoked, and the smart card information is sent to the target gate.

[0177] Here, the mobile terminal is equipped with a smart card function. The smart card contains authentication information. After obtaining the authentication information, the gate that manages the entry of the target area needs to authenticate the mobile terminal that sent the authentication information.

[0178] In some optional embodiments of this disclosure, the smart card includes at least one of the following: an electronic transportation card, an access card, or an electronic vehicle key.

[0179] Smart cards can include electronic transportation cards, electronic access cards, car keys, etc.; the information in electronic access cards includes authentication information for office buildings, residential communities, and designated building entrances; the information in electronic transportation cards includes authentication information for subway / bus stations; and the information in electronic car keys includes authentication information for all vehicles.

[0180] Of course, smart cards can also be electronic tickets, electronic airline tickets, etc., and this disclosure does not impose any restrictions on them.

[0181] In this embodiment of the disclosure, after the mobile terminal detects that it has entered a fenced area, it can call the smart card corresponding to the target area based on the target area corresponding to the fenced area. For example, if it is near an office building, it calls the electronic access card; if it is near a subway station platform, it calls the electronic transportation card.

[0182] It should be noted that this disclosure responds to the invocation of Bluetooth scanning and ultra-wideband functions upon entering the fenced area. Therefore, embodiments of this disclosure can send the information of the invoked smart card based on Bluetooth communication connection or based on ultra-wideband communication connection.

[0183] Thus, by integrating various smart card functions into a mobile terminal and applying these functions to an automated gate-passing scheme after entering a fenced area, the user experience of entering and exiting various target areas is improved.

[0184] Understandably, since different types of smart cards are used for authentication in different scenarios and through different target areas, when binding the smart card and electronic fence detection function of the mobile terminal, the fence area location corresponding to different smart cards is also specifically registered. In addition, it can be updated at any time during use.

[0185] In some optional embodiments of this disclosure, the communication method proposed in this disclosure further includes:

[0186] In response to the smart card binding operation, the fence area corresponding to the smart card is updated; the fence area corresponding to different types of smart cards is different.

[0187] In some examples, when an electronic transit card is configured in a smart card and bound to an electronic fence detection module, the location information of each first fenced area can be registered based on the location of each station accessible by the electronic transit card in the current city. This allows the electronic fence detection module to detect whether the mobile terminal's real-time location has entered (or left) the location range of the first fenced area. Since the mobile terminal has map software installed, the user can manually set the first fenced area on the map software, confirm it, associate it with the electronic transit card, and synchronize it with the electronic fence detection module. Alternatively, the map software's backend can automatically update the location information of the first fenced area based on the existing station locations in the city.

[0188] In other examples, when an electronic access card or electronic car key is configured in a smart card and the electronic access card is bound to an electronic fence detection module, an agreement can be made with the mobile terminal holder regarding the car doors, home doors, office gates, etc., that the user can enter. The location range of these locations is then determined as a second fenced area, so that the electronic fence detection module can detect whether the mobile terminal's real-time location has entered (or left) the location range of the second fenced area. In this embodiment of the disclosure, the aforementioned second fenced area can be set or deleted on the page for registering the electronic access card.

[0189] Thus, after setting up the first and second fence areas, the electronic fence detection module can implement corresponding gate opening (gate passage) control based on the detection results.

[0190] In this embodiment, if the electronic fence detection module detects that a mobile terminal has entered the first fenced area, the processing module controls the smart card to switch to an electronic transportation card (which may further include electronic bus cards, subway cards, etc.). Then, upon successfully establishing a Bluetooth or UWB communication connection with the target gate, the electronic transportation card's authentication information is sent to the target gate. Only after the target gate completes the information authentication can the gate opening process be further implemented. If authentication fails, an authentication failure message is sent to the mobile terminal, at which point the user needs to manually confirm the problem and make timely adjustments. If the electronic fence detection module detects that a mobile terminal has entered the second fenced area, the processing module controls the smart card to switch to an electronic access control card. Here, the mobile terminal can communicate wirelessly with the target gate using short-range wireless communication, such as Bluetooth or NFC, and naturally, UWB communication is also possible; this disclosure does not impose any limitations on this. After successfully establishing a wireless communication connection, the electronic access card's access authentication information is sent to the target gate. Once the target gate completes the information authentication, it opens to allow the user carrying the mobile terminal to pass through. Of course, if authentication fails, an authentication failure message is sent to the mobile terminal, at which point the user needs to manually confirm the problem and make timely adjustments.

[0191] Thus, by setting up an electronic fence detection module that is bound to different types of smart card functions and setting up different fence areas, this disclosure can automatically switch smart card types when entering and exiting different fence areas, enabling users to travel, enter their homes, and open car doors without being bothered, thereby improving the user experience.

[0192] This disclosure also proposes a mobile terminal, which includes:

[0193] The electronic fence detection module is used to detect whether a mobile terminal has entered the fenced area corresponding to the target area.

[0194] Ultra-wideband modules are used for transmitting and receiving ultra-wideband signals;

[0195] The processing module, connected to the electronic fence detection module and the ultra-wideband module, is used to respond to the mobile terminal entering the fenced area corresponding to the target area, activate the ultra-wideband module, and establish an ultra-wideband communication connection with the target gate in at least one gate based on the invoked ultra-wideband module.

[0196] In some optional embodiments of this disclosure, the mobile terminal further includes: a Bluetooth module;

[0197] The Bluetooth module is used to scan Bluetooth broadcast signals and filter out UWB connection identifiers in Bluetooth broadcast signals through the UWB information filtering function.

[0198] The processing module is also connected to a Bluetooth module and is used to identify the target gate when an UWB Bluetooth identifier is obtained; and to establish a Bluetooth communication connection with the target gate based on the Bluetooth module. Specifically, when the UWB configuration parameters of the target gate are obtained based on the Bluetooth communication connection, the processing module activates the UWB module and starts the UWB function.

[0199] It should be noted that the above-mentioned electronic fence detection module is also used to detect when a mobile terminal leaves the fence area; correspondingly, the processing module can also flexibly enable or disable the scanning function and ultra-wideband information filtering function of the Bluetooth module during the above process, flexibly control the opening and closing of the ultra-wideband module, the management of cached data, the establishment of ultra-wideband sessions, the transmission of data between the Bluetooth module and the ultra-wideband module, etc. For details, please refer to the communication method above in this disclosure, which will not be elaborated here.

[0200] This disclosure also proposes a communication method for the aforementioned target gate, the method comprising:

[0201] The Bluetooth broadcast signal is broadcast outward via the first Bluetooth antenna;

[0202] In response to a successful Bluetooth communication connection with the mobile terminal, the system interacts with the mobile terminal via the Bluetooth communication connection to exchange ultra-wideband configuration information.

[0203] In response to the successful establishment of an ultra-wideband communication connection with the mobile terminal, the location of the mobile terminal is determined based on a ranging protocol;

[0204] In response to the mobile terminal being located within the target entry range of the target gate, the target gate is controlled to open.

[0205] Of course, the target gate can also detect whether the mobile terminal has passed through the gate, and then send the passage information to the mobile terminal, etc. For details, please refer to the communication method disclosed above, which will not be repeated here.

[0206] The communication method provided in this disclosure is applied to the Internet of Things and the field of communication, and is specifically implemented by a mobile terminal. The following uses a mobile phone as the mobile terminal, a fenced area corresponding to the target area as the fenced area corresponding to the subway platform, and a subway turnstile as an example to illustrate the communication method proposed in this disclosure.

[0207] First, this disclosure provides a solution for achieving contactless gate access by using a Bluetooth module + UWB module to communicate with a traffic gate via UWB. See [link to relevant documentation]. Figure 2 , Figure 2 This is a schematic diagram illustrating a method for enabling ultra-wideband (UWB) functionality according to an exemplary embodiment. The method for enabling UWB functionality includes the following steps:

[0208] Step 201: Power on the mobile terminal.

[0209] Step 202: Invoke the Bluetooth scanning function.

[0210] After the mobile terminal is powered on, it starts the Bluetooth Low Energy (BLE) module, then initiates the Bluetooth scanning function and receives Bluetooth broadcast signals.

[0211] Step 203: Is an ultra-wideband connection identifier detected? If yes, proceed to step 204; otherwise, return to step 202.

[0212] Among them, the gate that supports UWB function will broadcast a Bluetooth broadcast signal carrying the UWB identifier to the outside via Bluetooth; the mobile terminal scans the Bluetooth broadcast signal based on the Bluetooth scanning function, filters the Bluetooth broadcast signal based on the UWB information function in the Bluetooth scanning function, and uses the Bluetooth callback method to call back the filtered UWB identifier. Based on the callback result, the target gate corresponding to the UWB identifier is determined, and then step 204 is executed.

[0213] Step 204: Invoke the ultra-wideband function to initialize the ultra-wideband session with the gate;

[0214] Step 205: Complete the ultra-wideband communication connection with the gate.

[0215] In the above steps, the Bluetooth Low Energy (BLE) module of the mobile terminal is always in working state. Even when there is a need to enter or leave the station without entering the fenced area, Bluetooth scanning and UWB identification filtering are still performed. This still has unnecessary power consumption and affects the user experience.

[0216] Thus, this embodiment of the disclosure allows for the installation of an electronic fence module in a mobile phone. Based on electronic fence detection technology, the fenced area corresponding to the target area is detected. Bluetooth scanning is only activated after the fenced area is detected, thereby saving power consumption. See also... Figure 3 , Figure 3This is a schematic diagram illustrating communication between a mobile terminal and a turnstile according to an exemplary embodiment. The turnstile 31 includes an ultra-wideband (UWB) chip, a Bluetooth chip, and a processing module. The UWB chip transmits and receives UWB signals via a first UWB antenna 311, and the Bluetooth chip broadcasts and receives Bluetooth signals via a first Bluetooth antenna 312. The processing module controls the turnstile state of the turnstile 31 based on the communication results from the UWB chip. The mobile terminal 32 includes an electronic fence detection module 321, and a Bluetooth module 322, an UWB module 323, and a processing module (not shown, which may be a central processing unit (CPU) or a separate processing chip) located at the access point (AP). The electronic fence detection module 321 detects "entering the fence" and "leaving the fence" events of the mobile terminal 32 and reports them to the processing module. In response to the "entering the fence" event, the processing module controls the Bluetooth module 322 to enable Bluetooth scanning via the second Bluetooth antenna 322a to acquire Bluetooth broadcast signals and monitor Bluetooth callbacks. Upon receiving an UWB connection identifier, the processing module controls the UWB module 323 to activate and sends the UWB connection identifier to it. This allows the UWB module to control the second UWB antenna 323a to transmit and receive UWB signals based on the UWB connection identifier. Then, based on the transmitted and received UWB signals, the processing module controls the mobile terminal 32 to establish an UWB session with the gate 31, completing the UWB communication connection. In the above specific embodiment of this disclosure, the gate 31 is the aforementioned target gate.

[0217] Thus, this embodiment of the disclosure uses an electronic fence detection module to detect whether a mobile terminal enters or leaves the fenced area, reporting user "entry" and "exit" events. After the electronic fence detection module reports a user "entering" the fence, Bluetooth data is set, and Bluetooth scanning begins. Once a Bluetooth broadcast signal with a UWB connection identifier is detected, a Bluetooth communication connection is established. After exchanging UWB configuration parameters through the Bluetooth communication connection, Bluetooth-related settings are deactivated, and the UWB module is activated to communicate with the designated target gate via UWB. This allows the target gate to adjust its state at an appropriate location, enabling users to pass through the gate seamlessly with their mobile devices. Furthermore, after the electronic fence detection module detects an "exit" event, Bluetooth-related settings can also be deactivated. This solution reduces the excessive power consumption caused by real-time Bluetooth scanning, increasing the phone's usage time.

[0218] See Figure 4 This is a flowchart illustrating a communication method according to an exemplary embodiment. Figure 2 This communication method is applied to mobile phones, and the specific steps are as follows:

[0219] Step 401: Enable the detection function of the electronic fence detection module and report the event;

[0220] After the mobile smart card APK is launched, it is associated with the electronic fence and the first fence area is registered. When the mobile phone is in use, the BaseGeoEventWorker class is called, and the "entering the fence" and "leaving the fence" events of the mobile phone relative to the first fence area are broadcast and listened for in the BaseGeoEventWorker class. When the event is listened for, it is reported to the processing module.

[0221] Step 402: Determine if it is an "entry into the circle" event; if yes, proceed to step 403; if no, the reported event is an "out of the circle" event; at this time, proceed to step 412.

[0222] Step 403: Control the Bluetooth module to call the Bluetooth scanning function and listen for Bluetooth callbacks;

[0223] When the mobile phone's electronic fence service detects that the mobile phone has entered the first fenced area, it reports the "entry into the fence" event to the processing module. The processing module controls the smart card program to change the smart card into an electronic transportation card; and controls the Bluetooth module to start Bluetooth scanning and listen for Bluetooth callbacks.

[0224] Step 404: Obtain the Bluetooth broadcast signal;

[0225] Here, when the Bluetooth broadcast signal is obtained, the Bluetooth broadcast signal is filtered by the UWB information filtering function. After the Bluetooth callback receives the UWB connection identifier, step 405 is executed.

[0226] Step 405: Determine if the mobile phone has entered the station; if yes, proceed to step 406; otherwise, proceed to step 407.

[0227] Specifically, based on the entry and exit records in the phone's cached data, it is determined whether the phone is currently in an entry or exit state. If it is in an entry state, step 406 is executed after the exit gate is found; if it is in an exit state, step 407 is executed after the entrance gate is found.

[0228] Step 406: Exchange UWB configuration parameters with the exit gate, initialize the outbound UWB session, listen for outbound UWB signal callbacks, and deregister Bluetooth.

[0229] Step 407: Exchange UWB configuration parameters with the entrance gate, initialize the inbound UWB session, listen for inbound UWB signal callbacks, and deregister Bluetooth.

[0230] Here, unregistering Bluetooth includes turning off the Bluetooth scanning function or turning off the UWB information filtering function within the Bluetooth scanning function.

[0231] The process of initializing an inbound or outbound UWB session requires configuring the UWB connection identifier returned by the Bluetooth callback and the exchanged UWB configuration parameters, and listening for UWB inbound / outbound result callbacks.

[0232] Step 408: Determine whether the initialization of the ultra-wideband session was successful. If successful, proceed to step 409. If unsuccessful, return to step 403.

[0233] Step 409: Establish an ultra-wideband communication connection.

[0234] Step 410: After receiving the pass information, shut down the ultra-wideband module, release the ultra-wideband resources, and return to step 403.

[0235] During this process, if the UWB session is successfully initialized, the mobile phone and the traffic gate will successfully establish UWB communication. After successful communication, the gate will open, receive the passage message sent by the target gate, and at the same time, the UWB module will be closed and UWB dependent resources will be released (including closing the session, restoring the initialization flag, and unbinding the UWB callback). If the UWB initialization fails, the current UWB dependent resources will be released. Specifically, the UWB connection flag and UWB configuration parameters will be cleared from the cached data, and the Bluetooth scanning function will continue.

[0236] Step 411: Update the inbound and outbound records in the cached data.

[0237] Step 412: Unregister Bluetooth, turn off the UWB module, and release UWB-dependent resources.

[0238] Here, after reporting the "out of bounds" event in step 402, Bluetooth registration can be deregistered.

[0239] Step 413: End control over the current event and return to step 401.

[0240] Thus, the electronic fence service-based monitoring of entry and exit can solve the problems of excessive power consumption and poor user experience when the Bluetooth module is continuously turned on. In particular, the Bluetooth scanning function will only be activated after a user is received entering the fence, which greatly reduces the unnecessary power consumption of the Bluetooth function.

[0241] This disclosure also provides a communication device. See also Figure 5 , Figure 5 This is a structural block diagram of a communication device according to an exemplary embodiment; wherein the communication device 500 includes:

[0242] Module 501 is configured to invoke the ultra-wideband function in response to entering the fenced area corresponding to the target area; wherein, the fenced area has at least one gate, which is used to control entry and exit from the target area;

[0243] Connection module 502 is configured to establish an ultra-wideband communication connection with at least one target gate in the gate system;

[0244] Adjust module 503, configure it to adjust the working status of the target gate based on ultra-wideband communication connection.

[0245] In some optional embodiments, the calling module 501 is also configured to activate the ultra-wideband function in response to entering the fenced area corresponding to the target area.

[0246] In some optional embodiments, the calling module 501 is further configured to call the Bluetooth scanning function in response to entering the fenced area corresponding to the target area; establish a Bluetooth communication connection with the target gate in at least one gate based on the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function; and enable the ultra-wideband function in response to establishing the Bluetooth communication connection.

[0247] In some optional embodiments, the calling module 501 is also configured to, in response to establishing a Bluetooth communication connection, obtain the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection and enable the ultra-wideband function.

[0248] In some embodiments, the calling module 501 is further configured to disable the Bluetooth scanning function or disable the ultra-wideband information filtering function in the Bluetooth scanning function in response to obtaining the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection.

[0249] In some optional embodiments, the calling module 501 is further configured to, in response to the Bluetooth broadcast signal including at least one UWB connection identifier, determine at least one gate corresponding to at least one UWB connection identifier; wherein the UWB connection identifier is used to characterize a gate that supports UWB communication function; determine a target gate among the at least one gate corresponding to at least one UWB connection identifier, and establish a Bluetooth communication connection with the target gate.

[0250] In some optional embodiments, the connection module 502 is further configured to acquire the ultra-wideband configuration parameters of the target gate in at least one gate; and establish an ultra-wideband session with the target gate based on the ultra-wideband configuration parameters.

[0251] In some optional embodiments, the calling module 501 is further configured to, in response to being in a state of leaving the target area and at least one gate including an exit gate, determine one of the at least one gates as the target gate; and in response to being in a state of entering the target area and at least one gate including an entrance gate, determine one of the at least one gates as the target gate.

[0252] In some optional embodiments, the calling module 501 is further configured to obtain the entry and exit records of the target area; in the case of entering the fenced area corresponding to the target area, the module determines whether the user is in the state of leaving the target area or in the state of entering the target area based on the entry and exit records.

[0253] In some optional embodiments, the connection module 502 is further configured to acquire passage information sent by the target gate based on the ultra-wideband communication connection, update the entry and exit records, and disable the ultra-wideband function; wherein, the passage information is used to characterize the passage status based on the target gate.

[0254] In some optional embodiments, the communication device 500 further includes:

[0255] The smart card management module is configured to, in response to entering the fenced area corresponding to the target area, call the smart card corresponding to the target area and send the smart card information to the target gate.

[0256] In some alternative embodiments, the smart card includes at least one of the following: an electronic transit card, an access card, or an electronic vehicle key.

[0257] In some optional embodiments, the smart card management module is further configured to update the fence area corresponding to the smart card in response to the smart card binding operation; wherein the fence area corresponding to different types of smart cards is different.

[0258] Regarding the test apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0259] Figure 6 This is a structural block diagram of a mobile terminal according to an exemplary embodiment. For example, the mobile terminal 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.

[0260] Reference Figure 6 The mobile terminal 600 may include one or more of the following components: processing component 602, memory 604, power supply component 606, multimedia component 608, audio component 610, input / output interface 612, sensor component 614, and communication component 616.

[0261] Processing component 602 typically controls the overall operation of mobile terminal 600, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602. The processing component disclosed herein includes the aforementioned processing modules.

[0262] Memory 604 is configured to store various types of data to support operation on mobile terminal 600. Examples of such data include at least one of the following: instructions for any application or method operating on mobile terminal 600, contact data, phonebook data, messages, pictures, and videos. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0263] The power supply component 606 provides power to various components of the mobile terminal 600. The power supply component 606 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the mobile terminal 600.

[0264] Multimedia component 608 includes a screen that provides an output interface between mobile terminal 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When mobile terminal 600 is in an operating mode, such as shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0265] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when mobile terminal 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

[0266] Input / output interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.

[0267] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of mobile terminal 600. For example, sensor assembly 614 can detect the on / off state of mobile terminal 600, the relative positioning of components, such as the display and keypad of mobile terminal 600, changes in position of mobile terminal 600 or one of its components, the presence or absence of user contact with mobile terminal 600, orientation or acceleration / deceleration of mobile terminal 600, and temperature changes of mobile terminal 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.

[0268] Communication component 616 is configured to facilitate wired or wireless communication between mobile terminal 600 and other devices. Mobile terminal 600 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes an NFC module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, UWB technology, Bluetooth (BT) technology (specifically Bluetooth Low Energy (BLE) technology), and other technologies.

[0269] In an exemplary embodiment, the mobile terminal 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0270] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including executable instructions or a computer program, which can be executed by the processor 620 of the mobile terminal 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, or optical data storage device, etc.

[0271] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a mobile terminal, enables the mobile terminal to perform any of the communication methods described in the embodiments of this disclosure.

[0272] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the communication methods described in this disclosure; wherein the computer device may be the aforementioned mobile terminal.

[0273] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0274] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A communication method, characterized in that, include: In response to entering the fenced area corresponding to the target area, the ultra-wideband function is invoked; wherein, the fenced area has at least one gate, the gate being used to control entry and exit from the target area; Establish an ultra-wideband communication connection with the target gate among the at least one gate; Based on the ultra-wideband communication connection, the working status of the target gate is adjusted.

2. The method according to claim 1, characterized in that, The response to entering the fenced area corresponding to the target area, invoking the ultra-wideband function, includes: In response to entering the fenced area corresponding to the target area, the ultra-wideband function is activated and invoked.

3. The method according to claim 2, characterized in that, The activation of the ultra-wideband function in response to entering the fenced area corresponding to the target area includes: Upon entering the fenced area corresponding to the target area, the Bluetooth scanning function is invoked; Based on the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function, a Bluetooth communication connection is established with the target gate among the at least one gate; In response to establishing the Bluetooth communication connection, the ultra-wideband function is enabled.

4. The method according to claim 3, characterized in that, The step of activating the ultra-wideband function in response to establishing the Bluetooth communication connection includes: In response to establishing the Bluetooth communication connection, the ultra-wideband configuration parameters of the target gate are obtained based on the Bluetooth communication connection, and the ultra-wideband function is enabled.

5. The method according to claim 4, characterized in that, The method further includes: In response to obtaining the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection, the Bluetooth scanning function is turned off, or the ultra-wideband information filtering function in the Bluetooth scanning function is turned off.

6. The method according to any one of claims 3 to 5, characterized in that, The step of establishing a Bluetooth communication connection between the Bluetooth broadcast signal obtained by calling the Bluetooth scanning function and the target gate among the at least one gate includes: In response to the inclusion of at least one UWB connection identifier in the Bluetooth broadcast signal, at least one gate corresponding to the at least one UWB connection identifier is determined; wherein, the UWB connection identifier is used to characterize a gate that supports UWB communication function; A target gate is identified among at least one gate corresponding to at least one ultra-wideband connection identifier, and a Bluetooth communication connection is established with the target gate.

7. The method according to any one of claims 1 to 5, characterized in that, Establishing an ultra-wideband communication connection with the target gate among the at least one gate includes: Obtain the ultra-wideband configuration parameters of the target gate among the at least one gate; Based on the ultra-wideband configuration parameters, an ultra-wideband session is established with the target gate.

8. The method according to any one of claims 1 to 5, characterized in that, The target turnstile is determined in the following way: In response to being in a state of leaving the target area, and the at least one gate including an exit gate, one of the at least one gates is determined as the target gate; In response to being in a state of entering the target area, and the at least one gate including an entrance gate, one of the at least one gates is determined as the target gate.

9. The method according to claim 8, characterized in that, The method further includes: Obtain the entry and exit records of the target area; When entering the fenced area corresponding to the target area, the entry and exit records determine whether the person is leaving the target area or entering the target area.

10. The method according to claim 9, characterized in that, The method further includes: The system acquires the passage information sent by the target gate based on the ultra-wideband communication connection, updates the entry and exit record, and disables the ultra-wideband function; wherein the passage information is used to characterize the passage status of the target gate.

11. The method according to any one of claims 1 to 5, characterized in that, The method further includes: In response to entering the fenced area corresponding to the target area, the smart card corresponding to the target area is invoked, and the smart card information is sent to the target gate.

12. The method according to claim 11, characterized in that, The smart card includes at least one of the following: electronic transportation card, access card, and electronic vehicle key.

13. The method according to claim 11, characterized in that, The method further includes: In response to the smart card binding operation, the fence area corresponding to the smart card is updated; wherein, the fence area corresponding to different types of smart cards is different.

14. A communication device, characterized in that, include: The module is configured to invoke the ultra-wideband function in response to entering the fenced area corresponding to the target area; wherein, the fenced area has at least one gate, and the gate is used to control entry and exit from the target area; A connection module is configured to establish an ultra-wideband communication connection with a target gate among the at least one gate; The adjustment module is configured to adjust the working status of the target gate based on the ultra-wideband communication connection.

15. The apparatus according to claim 14, characterized in that, The calling module is also configured to activate the ultra-wideband function and call the ultra-wideband function in response to entering the fenced area corresponding to the target area.

16. The apparatus according to claim 15, characterized in that, The calling module is further configured to invoke the Bluetooth scanning function in response to entering the fenced area corresponding to the target area; establish a Bluetooth communication connection with the target gate among the at least one gate based on the Bluetooth broadcast signal obtained by invoking the Bluetooth scanning function; and enable the ultra-wideband function in response to establishing the Bluetooth communication connection.

17. The apparatus according to claim 16, characterized in that, The calling module is also configured to, in response to establishing the Bluetooth communication connection, obtain the ultra-wideband configuration parameters of the target gate based on the Bluetooth communication connection, and enable the ultra-wideband function.

18. The apparatus according to any one of claims 14 to 17, characterized in that, The calling module is further configured to, in response to being in a state of leaving the target area and the at least one gate including an exit gate, determine one of the at least one gates as the target gate; In response to being in a state of entering the target area, and the at least one gate including an entrance gate, one of the at least one gates is determined as the target gate.

19. The apparatus according to claim 18, characterized in that, The calling module is further configured to obtain the entry and exit records of the target area; and, in the case of entering the fenced area corresponding to the target area, determine whether the user is in a state of leaving the target area or in a state of entering the target area based on the entry and exit records.

20. The apparatus according to any one of claims 14 to 17, characterized in that, The device further includes: The smart card management module is configured to, in response to entering the fenced area corresponding to the target area, invoke the smart card corresponding to the target area and send the smart card information to the target gate.

21. A mobile terminal, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the method according to any one of claims 1 to 13.

22. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.

23. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 13.