Electronic equipment, terminal accessory, positioning system and positioning method thereof
By introducing a gate control component and an external second positioning component in the electronic device, the problem of insufficient accuracy of the positioning function of the electronic device is solved, and the flexibility and accuracy are improved. Users can choose to use different positioning information sources according to their needs. , solves the problem of damage or insufficient accuracy of the first positioning component, and provides higher precision positioning services.
Patent Information
- Application Number
- CN202411208892.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-13
AI Technical Summary
The positioning function of existing electronic devices has poor accuracy and cannot meet the user's high-precision positioning needs, especially when the first positioning component is damaged or the accuracy is insufficient, a flexible solution is lacking.
By introducing a gate control component and an external second positioning component in the electronic device, the control component is allowed to selectively conduct with the first positioning component or the second positioning component, performing the positioning function based on different positioning information, providing higher accuracy Positioning services.
The flexibility and accuracy of the positioning function of electronic equipment are improved. Users can choose to use the first positioning component or the second positioning component according to their needs, and even positioning through the second positioning component without disassembly when the first positioning component is damaged, improving Positioning accuracy and user experience.
Smart Images

Figure CN119126171A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic equipment, and in particular to an electronic equipment, a terminal accessory, a positioning system and a positioning method thereof. Background Art
[0002] Electronic devices refer to devices with certain data processing capabilities, such as mobile phones and tablets.
[0003] Current electronic devices generally have the need and function for satellite positioning, and the satellite positioning function can provide users with high-precision positioning support.
[0004] Figure 1 A circuit logic schematic diagram of an electronic device in the related art is shown in FIG. Figure 1 As shown, the electronic device generally includes a control component 3A and a first positioning component 1A. The control component 3A is used to process data, such as a central processing unit, etc. The first positioning component 1A generally includes a positioning chip and an antenna, etc., which are used to receive positioning signals and decode the signals into position information that can be processed by the control component 3A. The control component 3A is connected to the first positioning component 1A in communication. The positioning information obtained by the first positioning component 1A is transmitted to the control component 3A and the positioning function is finally realized.
[0005] Due to the high integration and cost of electronic devices in related technologies, as well as the market positioning of the electronic devices themselves, the positioning function configured by the electronic devices themselves may have poor accuracy and cannot meet the needs of users. Summary of the invention
[0006] In order to overcome the problems existing in the related art, the present disclosure provides an electronic device, a terminal accessory, a positioning system and a positioning method thereof.
[0007] According to a first aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0008] It includes a first positioning component, a gating control component and a control component:
[0009] The first positioning component is used to obtain first positioning information;
[0010] The gating control component is used to communicate with the first positioning component or a second positioning component externally connected to the electronic device, wherein the second positioning component is used to obtain second positioning information;
[0011] The control component is communicatively connected to the gating control component, and is used to perform a positioning function based on first positioning information when the gating control component is communicatively connected to the first positioning component, and to perform a positioning function based on second positioning information when the gating control component is communicatively connected to the second positioning component.
[0012] In some embodiments, the electronic device further comprises an external conductive component, one end of which is conductively connected to the gating control component, and the other end of which is used for contacting and conducting with the second positioning component, so that the gating control component is communicatively connected with the second positioning component.
[0013] In some embodiments, the electronic device further includes a first housing, the first positioning component, the control component and the strobe control component are arranged in the first housing, and at least part of the external conductive component passes through the first housing to connect to the second positioning component.
[0014] In some embodiments, the external conductive component includes a conductive part and a plurality of conductive main contacts; one end of the conductive part is electrically connected to the selection control component, and the other end of the conductive part is electrically connected to the plurality of conductive main contacts respectively; the plurality of conductive main contacts are located outside the first housing, and the plurality of conductive main contacts are at least used to transmit an enable signal, an uplink data signal and a downlink data signal, and each signal is transmitted separately using a different conductive main contact.
[0015] In some embodiments, the electronic device also includes a first magnetic attraction structure arranged in the first shell, the first magnetic attraction structure includes the two bar-shaped magnetic bodies arranged in parallel, the multiple conductive main contacts are arranged linearly, the length direction of the two bar-shaped magnetic bodies is the same as the arrangement direction of the multiple conductive main contacts, and the multiple conductive main contacts are arranged between the two bar-shaped magnetic bodies.
[0016] According to a second aspect of an embodiment of the present disclosure, there is provided a terminal accessory, comprising a second positioning component, the second positioning component being used to obtain second positioning information, the second positioning component being configured to have a function of communicating and connecting with any of the electronic devices described above.
[0017] In some embodiments, the terminal accessory also includes a plurality of conduction auxiliary contacts; the plurality of conduction auxiliary contacts are electrically connected to the second positioning component respectively, the number of the plurality of conduction auxiliary contacts is the same as the number of conduction main contacts of the electronic device, the plurality of conduction auxiliary contacts are at least used to transmit enable signals, uplink data signals and downlink data signals, and each signal is transmitted separately using a different conduction auxiliary contact.
[0018] In some embodiments, the terminal accessory also includes a second magnetic structure arranged in the second shell, the second magnetic structure includes two bar-shaped magnetic bodies arranged in parallel, the multiple conduction auxiliary contacts are arranged linearly, the two bar-shaped magnetic bodies and the multiple conduction auxiliary contacts are located on the same side of the second positioning component, the length direction of the two bar-shaped magnetic bodies is the same as the arrangement direction of the multiple conduction auxiliary contacts, and the multiple conduction auxiliary contacts are arranged between the two bar-shaped magnetic bodies.
[0019] According to a third aspect of an embodiment of the present disclosure, a positioning system is provided, comprising an electronic device as described in any one of the above and a terminal accessory as described in any one of the above, wherein a second positioning component of the terminal accessory is configured as a gating control component externally connected to the electronic device,
[0020] The electronic device is used for, when the gating control component is connected to the first positioning component of the electronic device for communication, the control component of the electronic device performs a positioning function based on the first positioning information provided by the first positioning component; when the gating control component is connected to the second positioning component for communication, the control component performs a positioning function based on the second positioning information provided by the second positioning component;
[0021] The terminal accessory is used to provide the second positioning information to the electronic device when the gating control component of the electronic device is communicatively connected with the second positioning component.
[0022] According to a fourth aspect of an embodiment of the present disclosure, a positioning method is provided, which is applied to the positioning system as described above, and the method includes:
[0023] In response to determining that the control component of the electronic device detects that the gate control component is externally connected to a second positioning component of the terminal accessory, determining the positioning component currently connected to the control component;
[0024] If the positioning component currently connected to the control component is the first positioning component of the electronic device, the first positioning component outputs first positioning information to the control component, and the control component performs a positioning function based on the positioning information provided by the first positioning component;
[0025] If the positioning component currently connected to the control component is the second positioning component, the second positioning component outputs second positioning information to the control component, and the control component performs a positioning function based on the positioning information provided by the second positioning component.
[0026] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: the control component can selectively conduct with the first positioning component of the electronic device and the second positioning component externally connected to the electronic device through the gating control component, so as to select to perform the positioning function based on the first positioning information of the first positioning component or the second positioning information of the second positioning component according to the needs of the user, so that the positioning function of the electronic device is more flexible and meets the various positioning needs of the user. For example, when the first positioning component of the electronic device is damaged, the positioning can be performed through the second positioning component of the terminal accessory without disassembling the electronic device, or an electronic device without a positioning function or with low positioning accuracy can obtain a high-precision positioning effect.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0029] Figure 1 It is a circuit logic schematic diagram of an electronic device in the related art.
[0030] Figure 2 The diagram is a circuit logic diagram of an electronic device according to an exemplary embodiment.
[0031] Figure 3 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment.
[0032] Figure 4 The diagram is a system architecture diagram of an electronic device according to an exemplary embodiment.
[0033] Figure 5 The present invention is a control logic block diagram of an electronic device according to an exemplary embodiment.
[0034] Figure 6 The present invention is a flow chart of a method for controlling a positioning function of an electronic device according to an exemplary embodiment.
[0035] Figure 7 The present invention is a flow chart of a method for controlling a positioning function of an electronic device according to an exemplary embodiment.
[0036] Figure 8 The present invention is a flow chart of a method for controlling a positioning function of an electronic device according to an exemplary embodiment.
[0037] Fig. 9 The figure is a schematic diagram of the structure of a terminal accessory according to an exemplary embodiment.
[0038] Fig.10 The figure is a schematic diagram of the structure of a terminal accessory according to an exemplary embodiment.
[0039] Fig.11 The present invention is a flow chart of a method for controlling a terminal accessory according to an exemplary embodiment.
[0040] Fig.12 The diagram is a circuit logic diagram of a positioning system according to an exemplary embodiment.
[0041] Fig.13 The figure is a flow chart of a positioning method according to an exemplary embodiment.
[0042] Fig.14 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0044] The present disclosure provides an electronic device, including a first positioning component, a gating control component and a control component. The first positioning component is used to obtain first positioning information; the gating control component is used to communicate with the first positioning component or a second positioning component externally connected to the electronic device, wherein the second positioning component is used to obtain second positioning information; the control component is communicated with the gating control component, and is used to perform a positioning function based on the first positioning information when the gating control component is communicated with the first positioning component, and to perform a positioning function based on the second positioning information when the gating control component is communicated with the second positioning component.
[0045] In an embodiment of the present disclosure, the control component can selectively communicate with the first positioning component of the electronic device and the second positioning component externally connected to the electronic device by selecting the control component, and perform positioning through the first positioning information of the first positioning component or the second positioning information of the second positioning component, so that the user can choose between the first positioning component and the second positioning component. In particular, when the first positioning component cannot meet the positioning accuracy requirements, the user can select the second positioning component as the source of positioning information, thereby obtaining a higher-precision positioning service.
[0046] Electronic devices refer to devices with certain data processing capabilities, such as mobile phones and tablet computers. Electronic devices generally have positioning functions and requirements.
[0047] Figure 2 is a circuit logic diagram of an electronic device according to an exemplary embodiment. Figure 2 As shown, the electronic device includes a first positioning component 1, a strobe control component 4 and a control component 3. The first positioning component 1 is used to obtain first positioning information; the strobe control component 4 is used to communicate with the first positioning component 1 or a second positioning component externally connected to the electronic device, wherein the second positioning component is used to obtain second positioning information; the control component 3 is communicated with the strobe control component 4, and is used to perform a positioning function based on the first positioning information when the strobe control component 4 is communicated with the first positioning component 1, and to perform a positioning function based on the second positioning information when the strobe control component 4 is communicated with the second positioning component.
[0048] In the embodiment of the present disclosure, the control component 3 can selectively communicate with the first positioning component 1 of the electronic device and the second positioning component externally connected to the electronic device, so as to select to perform the positioning function based on the first positioning information of the first positioning component 1 or the second positioning information of the second positioning component according to the needs of the user, so that the positioning function of the electronic device is more flexible and meets the various positioning needs of the user. For example, when the first positioning component 1 of the electronic device is damaged, the positioning can be performed through the second positioning component of the terminal accessory without disassembling the electronic device.
[0049] In some embodiments, the first positioning component 1 includes a first positioning chipset and a first antenna. The first antenna receives the positioning signal and transmits it to the first positioning chipset, which decodes the positioning signal and obtains a variety of positioning information required for positioning. The control component 3 finally completes the positioning by analyzing and processing the positioning information.
[0050] In some embodiments, the second positioning component can obtain positioning information with higher accuracy than the first positioning component 1. For example, the second positioning component can support the L5 / B5 frequency band, while the first positioning component 1 may only support the L1 / B1 frequency band. The electronic device can significantly improve the positioning accuracy by connecting the second positioning component to the gating control component 4.
[0051] In some embodiments, the control component 3 and the first positioning component 1 and the second positioning component may be connected by wired communication, such as a wire, etc., or by wireless communication, such as Bluetooth, a data signal, etc.
[0052] In some embodiments, the control component 3 may be a central processing unit.
[0053] In some embodiments, the gate control component 4 includes a gate control chip, and the control component 3 can control the gate control chip to connect the control component 3 to the first positioning component 1 or the second positioning component.
[0054] In some embodiments, Figure 2 As shown, the electronic device also includes an external conductive component 2, one end of which is conductively connected to the gate control component 4, and the other end is used to contact and conduct with the second positioning component to enable the gate control component 4 to communicate with the second positioning component.
[0055] In the embodiment of the present disclosure, the communication connection between the gating control component 4 and the second positioning component is realized by providing an external conductive component 2.
[0056] Figure 3 is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. Figure 2 , Figure 3 As shown, in some embodiments, the electronic device also includes a first housing 5, a first positioning component 1, a control component 3 and a selection control component 4 are arranged in the first housing 5, and at least part of the external conductive component 2 passes through the first housing 5 to connect to the second positioning component.
[0057] In the embodiment of the present disclosure, the first housing 5 of the electronic device is connected to the inside and outside through the external conductive component 2, and the gating control component 4 of the electronic device can realize wired communication connection with the terminal accessories through the external conductive component 2. Compared with wireless communication connection, the wired communication connection realized by the gating control component 4 through the external conductive component 2 is more stable, and the operation is also simpler and more convenient. In addition, the external conductive component 2 passes through the first housing 5, and the second positioning component does not need to be installed in the electronic device, and can be connected to the external conductive component 2 outside the electronic device, which is more convenient to use.
[0058] In some embodiments, Figure 3 As shown, the external conductive component 2 includes a conductive part and a plurality of conductive main contacts 211, one end of the conductive part is electrically connected to the selection control component 2, and the other end of the conductive part is electrically connected to the plurality of conductive main contacts 211 respectively; the plurality of conductive main contacts 211 are located outside the first housing, and the plurality of conductive main contacts 211 are at least used to transmit an enable signal, an uplink data signal and a downlink data signal, and each signal is transmitted separately using a different conductive main contact 211.
[0059] In the embodiment of the present disclosure, by transmitting signals respectively through at least three independent conductive main contacts 211, interference between signals can be avoided and stability can be improved. Among them, the enable signal is generally used to control the start and stop of the terminal accessories, and the uplink data signal and the downlink data signal are used to transmit data between the control component 3 and the first control component 3 or the second control component 3. For example, the control component 3 injects data information such as ephemeris and almanac into the first control component 3 or the second control component 3, and the first control component 3 or the second control component 3 transmits one or more data information of latitude and longitude, satellite status information, altitude, altitude, and speed to the control component 3.
[0060] In some embodiments, at least two of the enable signal, the uplink data signal, and the downlink data signal may be connected via one conductive main contact 211 .
[0061] In some embodiments, the external conductive component 2 also includes a grounding main contact for connecting the second positioning component to the ground of the electronic device, so that the electronic device and the second positioning component of the terminal accessory share a common ground, avoiding voltage confusion caused by inconsistent grounding, thereby affecting signal quality.
[0062] In some embodiments, the external conducting component 2 may further include a main power contact for conducting the power of the electronic device to the terminal accessory to provide energy for the terminal accessory.
[0063] In some embodiments, the strobe control component 4 includes pins a, b, and c for transmitting data signals with the control component 3, pins a1, b1, and c1 for transmitting data signals with the first positioning component 1, and pins a2, b2, and c2 for transmitting data signals with the second positioning component. When the strobe control component 4 is connected to the first positioning component 1 for communication, pin a is connected to pin a1, pin b is connected to pin b1, and pin c is connected to pin c1. When the strobe control component 4 is connected to the second positioning component for communication, pin a is connected to pin a2, pin b is connected to pin b2, and pin c is connected to pin c2.
[0064] In some embodiments, the first housing 5 is provided with a through hole for the main conductive contact 211 to pass through, and a seal is provided between the main conductive contact 211 and the through hole on the first housing 5. This sealing effect can be achieved through assembly accuracy, or by using waterproof coatings, glue, etc., or by combining multiple methods.
[0065] In some embodiments, Figure 3 As shown, the electronic device further includes a first magnetic attraction structure 6 arranged on the first housing 5 .
[0066] In the embodiment of the present disclosure, the first magnetic attraction structure 6 is used to adsorb the terminal accessory on the first housing 5 of the electronic device, so that the terminal accessory and the external conductive component 2 of the electronic device are more firmly in contact, which is conducive to stable data transmission. At the same time, it is also conducive to fixing the posture between the electronic device and the terminal accessory, which is more conducive to use.
[0067] In some embodiments, the first magnetic attraction structure 6 includes two bar-shaped magnetic bodies arranged in parallel, and multiple conductive main contacts 211 are arranged linearly. The length direction of the two bar-shaped magnetic bodies is the same as the arrangement direction of the multiple conductive main contacts 211, and the multiple conductive main contacts 211 are arranged between the two bar-shaped magnetic bodies.
[0068] In the embodiment of the present disclosure, a plurality of main conduction contacts 211 are arranged between two bar-shaped magnetic bodies. After the two bar-shaped magnetic bodies are adsorbed with the second positioning component, the main conduction contacts 211 are closely connected with the second positioning component, thereby improving the stability of communication and playing a certain positioning role for the main conduction contacts 211, so that the electronic device and the second positioning component are more accurately aligned. At the same time, it avoids the magnetic body and the main conduction contacts 211 being arranged in the same direction and occupying too much space, and the setting of the magnetic body will not hinder the main conduction contacts 211. After the setting method of the magnetic body is determined, the position and number of the main conduction contacts 211 can still be changed, thereby improving the flexibility of the structural design.
[0069] In the embodiments of the present disclosure, the magnetic body may be made of a magnetic material such as a magnet.
[0070] In some embodiments, the electronic device further includes a screen, and the main conductive contact 211 is disposed on a side of the first housing 5 that is away from the screen.
[0071] In the embodiment of the present disclosure, the main conduction contact 211 is arranged on the side of the first housing 5 away from the screen, and the terminal accessories are correspondingly assembled on the side of the first housing 5 away from the screen to avoid the terminal accessories blocking the screen of the electronic device during use.
[0072] In some embodiments, the electronic device further includes a rear camera 51 disposed on the first housing 5 , and the main contact 211 and the first magnetic attraction structure 6 need to be disposed away from the rear camera 51 .
[0073] Based on the same concept, an embodiment of the present disclosure further provides a method for controlling a positioning function of the electronic device using the above-mentioned electronic device, for realizing the positioning function of the electronic device.
[0074] The positioning function control method provided by the embodiment of the present disclosure is applied to Figure 4 The system architecture is shown. Figure 4 is a system architecture diagram of an electronic device according to an exemplary embodiment. Figure 4As shown, the system architecture of the positioning function control method application can be a learning management system (LMS) service architecture. The LMS service architecture involves a hardware abstraction layer (HAL). The interface design mode of the HAL layer successfully isolates the software side and the hardware side. Therefore, when the positioning function is controlled based on the above-mentioned electronic device in the embodiment of the present disclosure, the LMS service architecture of the system itself does not need to be changed. When the LMS calls the interface of the HAL layer, it is driven according to the positioning component of the required gating control. The HAL layer is provided with implementation logic by the positioning chip supplier of the positioning component. The logic inherits the interface implementation of the Android layer and calls the lower-level driving logic to interact with the positioning chip. In this way, the LMS architecture on the Android system side does not need to be changed, and it can provide support for the Android Package Kit (APK for short). The implementation of the HAL layer can be customized according to the module and freely switched to the corresponding HAL layer driver implementation logic.
[0075] In some embodiments, the Figure 4The system architecture diagram shown in the figure is used to realize the positioning function control. By realizing the gating of the first positioning component and the second positioning component at the hardware abstraction layer and the application layer, accurate positioning can be realized through the external second positioning component when needed. For example, APK requests and uses the location service from the location manager service (Location Manager Service.java, LMS) through the interface provided by the location manager (LocationManager.java, LM). Among them, the location manager and the location manager service are both located in the architecture layer (Framework). The Java code in the location manager service interacts with the local code at the system layer (JIN Native), for example, the Java code in the location manager service interacts with the application written in C language or C++ language in the code file through JIN (Java Native Interface, JIN), and then the hardware interface of the first positioning component and the second positioning component is selected through the hardware abstraction layer (HAL). Different hardware abstraction layers should be set to adapt the first positioning component and the second positioning component. If the first positioning component is turned on, the first positioning component integrated with the global satellite navigation system (GNSS Hardware Module) is driven by the Linux kernel (Linux Kernel) and the first positioning component driver (Driver); if the second positioning component is turned on, the second positioning component integrated with the global satellite navigation system (GNSS) is driven by the Linux kernel (Linux Kernel) and the second positioning component driver (Driver). After the first positioning component or the second positioning component obtains the positioning information, it is fed back to the Android application package, thereby realizing the positioning function. The gating of the first positioning component and the second positioning component is also realized by the selection in the hardware abstraction layer.
[0076] Figure 4 The two-way arrows in the figure represent the two-way interaction of data. Figure 4 As shown in the figure, the underlying logic needs to correspond to the implementation of the HAL layer, but the implementation of the matching hardware abstraction layer supports customization and can be switched. Therefore, if the module is expanded by adding peripherals, it is only necessary to adapt the hardware abstraction layer logic of the module, and make the connection selection on the module side through the "selection logic" when the hardware port of the central processor remains unchanged. For example, the Android system supports a set of LMS logic, but by customizing the hardware abstraction layer, the connection selection of the "selection logic" can be realized when the hardware port of the central processor remains unchanged.
[0077] In terms of control logic, Figure 5 is a control logic block diagram of an electronic device according to an exemplary embodiment. Figure 5 As shown, a new extended location manager service (generally written as Extend-Location-Manager-Service) is added, and the switch* functions are opened to the outside through a proxy, which can directly drive the system hardware to switch the positioning components. When the set_* function input enable is true, it is determined that the selection control component is switched to the second communication mode, otherwise it is determined that the selection control component is switched to the first communication mode.
[0078] In some embodiments, in the implementation of functions, such as Figure 5As shown, by judging the state of a specific pin of a control component, the positioning component connected to the control component can be known. For example, an application (app) requests and uses location services from an extended location manager service (Extend-Location-Manager-Service) through the interface provided by the Extended Location Manager (Extend-Location-Manager), where both the Extended Location Manager and the Extended Location Manager Service are located in the Framework layer. The Java code in the extended location manager service interacts with the native code (Native), for example, the Java code in the extended location manager service interacts with the java file in the native code (such as com_android_extend_location_xxx_xxx_*.java) through JIN (Java Native Interface, referred to as JIN) at the system layer (Native), interacts with the hardware abstraction layer (HAL), and drives the Linux kernel (Linux Kernel) and the driver (Driver and others) through the hardware abstraction layer. At this time, the application has controlled the control component of the electronic device to switch to the connected positioning component (that is, switching based on the void switch To Attached Location Module () function), and then determines the current state of the specific pin (that is, based on boolean set_Pin_*_Enabled (boolean enable), where * refers to the specific pin), to determine whether the positioning component currently turned on by the control component is the first positioning component or the second positioning component. Then select the hardware abstraction layer that is compatible with the positioning component. Among them, the Linux kernel and driver, and the determination of the current state of the specific pin are all within the software development kit. In this way, the first positioning component and the second positioning component can be directly called in the user interface of the application.
[0079] Through the driver function reserved in the Android application layer, it can be called directly through the Binder on the user interface (UI) side, so that it can be coordinated with the design of the user interface.
[0080] The present disclosure embodiment describes a method for controlling a positioning function of an electronic device.
[0081] Figure 6 is a flow chart of a method for controlling a positioning function of an electronic device according to an exemplary embodiment of the present disclosure. Figure 6As shown, the positioning function control method of the electronic device includes:
[0082] In step S101, in response to determining that the control component of the electronic device detects that the external conductive component is externally connected to a second positioning component of a terminal accessory, the positioning component currently connected to the control component is determined.
[0083] The currently connected positioning component is the first positioning component or the second positioning component.
[0084] In step S102a, if the component currently connected to the control component is a first positioning component, a positioning function is performed based on first positioning information provided by the first positioning component.
[0085] In step S102b, if the component currently connected to the control component is a second positioning component, the positioning function is performed based on the second positioning information provided by the second positioning component.
[0086] In the embodiments of the present disclosure, after detecting that the electronic device is externally connected to a second positioning component of a terminal accessory, the positioning function is performed by controlling the positioning information provided by the positioning component currently connected to the component, so that the positioning function of the electronic device can be performed by using the second positioning component of the terminal accessory external to the electronic device, thereby increasing the flexibility of the positioning function of the electronic device. In particular, when the first positioning component of the electronic device itself is damaged, the positioning function can be performed directly using the external terminal accessory without repair. Or when the first positioning component of the electronic device cannot meet the positioning accuracy, the external terminal accessory is used to improve the positioning accuracy.
[0087] In some embodiments, when determining the positioning component to which the control component is currently connected, the following method may be used: Figure 7 The method flow chart is shown. Figure 7 is a flow chart of a method for controlling a positioning function of an electronic device according to an exemplary embodiment. Figure 7 As shown, the following steps are included.
[0088] In step S201, the communication mode of the gate control component is detected.
[0089] In the embodiment of the present disclosure, by judging the communication mode of the gate control component, the positioning component to which the control component is currently connected can be determined.
[0090] The communication mode of the conduction control component includes a first communication mode between the conduction control component and the first positioning component, and a second communication mode between the conduction control component and an external conduction component.
[0091] In step S202a, if it is detected that the gate control component is in the first communication mode between the gate control component and the first positioning component, it is determined that the positioning component currently connected to the control component is the first positioning component;
[0092] In step S202b, if it is detected that the gate control component is in the second communication mode between the conduction control component and the external conduction component, it is determined that the positioning component currently connected to the control component is the second positioning component.
[0093] In the embodiments of the present disclosure, the positioning component currently connected to the control component is determined by selecting the communication mode of the control component. The implementation is simple and only requires signal detection on specific pins without setting a complex physical trigger structure.
[0094] In some embodiments, in the embodiments of the present disclosure, when the external conductive component detects that the terminal accessory is connected to the electronic device, a prompt message can be displayed to prompt the user to select the positioning component to be used.
[0095] Figure 8 FIG. 1 is a flow chart of a method for controlling a positioning function of an electronic device according to an exemplary embodiment. Figure 8 As shown, the positioning function control method of the electronic device also includes:
[0096] S301: In response to determining that a control component of the electronic device detects that the external conductive component is externally connected to a second positioning component of a terminal accessory, a prompt message is displayed.
[0097] The prompt information is used to prompt the user that the electronic device is externally connected to a second positioning component and to prompt the user to select the first communication mode or the second communication mode.
[0098] S302: Based on the communication mode selected by the user, control the gating control component to switch to the first communication mode or the second communication mode.
[0099] In an embodiment of the present disclosure, after the electronic device is connected to a terminal accessory, a prompt message is displayed, allowing the user to select whether the electronic device performs a positioning function based on the first positioning component or the second positioning component, thereby enabling the user to select a positioning mode more flexibly and improving the flexibility and convenience of using the electronic device.
[0100] In some embodiments, the second positioning component of the electronic device in the embodiment of the present disclosure determines that the control component of the electronic device detects that the external conductive component is externally connected to the terminal accessory, including:
[0101] If it is determined that the conduction main contact is in conduction with the second positioning component, it is determined that the external conduction component is externally connected to the second positioning component, wherein the conduction main contact is communicatively connected with the strobe control component through the conduction portion.
[0102] In some embodiments, if it is determined that the first magnetic attraction structure included in the electronic device attracts the second positioning component, it is determined that the external conductive component is externally connected to the second positioning component.
[0103] In some embodiments, there are multiple ways to determine whether the main contact is conductive and the second positioning component is conductive. For example, the second positioning component can emit a special signal for the selection control component or the control component to judge. When the selection control component or the control component receives the special signal, it can determine that the main contact is conductive and the second positioning component is conductive.
[0104] In some embodiments, if it is determined that the first magnetic attraction structure of the electronic device attracts the second positioning component, it is determined that the external conductive component is externally connected to the second positioning component.
[0105] Among them, whether the first magnetic structure of the electronic device adsorbs the second positioning component can be determined in a variety of ways. For example, a specific structure is set in the first magnetic structure. When the first magnetic structure adsorbs or is adsorbed, a partial structure inside the first magnetic structure will move, thereby generating a physical signal for determining whether the first magnetic structure of the electronic device adsorbs the second positioning component.
[0106] The present disclosure also proposes a terminal accessory, which is used in conjunction with an electronic device to assist the electronic device in performing a positioning function.
[0107] Fig. 9 is a schematic diagram of the structure of a terminal accessory according to an exemplary embodiment. Fig. 9 As shown, the terminal device includes a second positioning component 7, and the second positioning component 7 is used to obtain second positioning information. The second positioning component 7 is configured to have a function of communicating with the electronic device of the present disclosure.
[0108] In the embodiments of the present disclosure, the terminal accessories can be connected to the electronic device to provide positioning information for the electronic device, thereby enabling the electronic device without positioning function or with low positioning accuracy to have a high-precision positioning function.
[0109] In some embodiments, the communication connection between the second positioning component 7 and the electronic device may be a wireless communication connection or a wired communication connection.
[0110] In some embodiments, the second positioning component includes a second antenna 71 and a second positioning chip 72. The second antenna 71 is used to receive positioning signals, and the second positioning chip 72 is used to decode and process the positioning signals received by the second antenna 71, and output location information that can be analyzed and processed by the control component.
[0111] Fig.10 is a schematic diagram of the structure of a terminal accessory according to an exemplary embodiment. Fig.10 As shown, the terminal accessory further includes a plurality of conducting auxiliary contacts 811 .
[0112] Multiple conductive auxiliary contacts 811 are electrically connected to the second positioning component respectively, the number of the multiple conductive auxiliary contacts 811 is the same as the number of conductive main contacts 211 of the electronic device, and the multiple conductive auxiliary contacts 811 are at least used to transmit enable signals, uplink data signals and downlink data signals, and each signal is transmitted separately using a different conductive auxiliary contact 811.
[0113] In the embodiment of the present disclosure, the enable signal, the uplink data signal and the downlink data signal are transmitted separately using different conduction sub-contacts 811, which can avoid interference between different signals and improve the quality and stability of the data signal.
[0114] In some embodiments, two or three of the enable signal, the uplink data signal, and the downlink data signal may be connected via one conductive auxiliary contact 811 to simplify the structure.
[0115] In some embodiments, the plurality of conducting sub-contacts 811 also include a grounding sub-contact for grounding, so that the terminal accessory is grounded through the electronic device, so that the terminal accessory and the electronic device share a common ground, thereby avoiding voltage imbalance between the terminal accessory and the electronic device and affecting signal quality.
[0116] In some embodiments, a separate power source (such as a battery) may be provided in the terminal accessory, or a power source may not be provided, but a power supply auxiliary contact for power supply is added to conduct the power from the electronic device.
[0117] In some embodiments, Fig.10 As shown, the terminal accessory also includes a second magnetic attraction structure 9.
[0118] In the embodiment of the present disclosure, the terminal accessory can be adsorbed on the electronic device through the second magnetic attraction structure 9, so that the multiple conductive auxiliary contacts 811 of the terminal accessory and the conductive main contacts of the electronic device are stably connected, making the data signal more stable, and also conducive to the stability of the relative posture between the terminal accessory and the electronic device.
[0119] In some embodiments, Fig.10 As shown, the second magnetic attraction structure 9 includes two bar-shaped magnetic bodies arranged in parallel, and a plurality of conductive auxiliary contacts 811 are arranged linearly. The two bar-shaped magnetic bodies and the plurality of conductive auxiliary contacts 811 are located on the same side of the second positioning component. The length direction of the two bar-shaped magnetic bodies is the same as the arrangement direction of the plurality of conductive auxiliary contacts 811, and the plurality of conductive auxiliary contacts 811 are arranged between the two bar-shaped magnetic bodies.
[0120] The second magnetic attraction structure can be provided on the second housing 8 of the terminal accessory.
[0121] In the embodiment of the present disclosure, by arranging the conduction auxiliary contact 811 to intersect with the arrangement direction of the magnetic body, the conduction auxiliary contact 811 and the magnetic body will not interfere with each other, which can have greater flexibility in the early design.
[0122] The present disclosure embodiment describes a method for controlling the positioning function of a terminal accessory as follows:
[0123] Fig.11 is a flow chart of a control method of a terminal accessory according to an exemplary embodiment. In some embodiments, Fig.11 As shown, the control method of the terminal accessories includes:
[0124] In step S401, in response to determining that the terminal accessory is externally connected to the electronic device, it is determined whether a second positioning component of the terminal accessory is connected to a control component of the electronic device.
[0125] In step S402a, if the second positioning component is connected to the control component of the electronic device, the second positioning component obtains second positioning information and sends the second positioning information to the control component of the electronic device.
[0126] In step S402b, if the second positioning component is not connected to the control component of the electronic device, the first positioning component obtains the first positioning information and sends the first positioning information to the control component of the electronic device.
[0127] In the embodiments of the present disclosure, after determining that the second positioning component is connected to the control component of the electronic device, the second positioning component is controlled to obtain the second positioning information and send it to the control component of the electronic device, so that the electronic device can perform the positioning function based on the second positioning information of the terminal accessory. This enables electronic devices without positioning functions or with low positioning accuracy to obtain high-precision positioning effects.
[0128] In some embodiments, there are multiple methods for determining whether the terminal accessory is connected to an electronic device in step S401, such as detecting whether a signal from the electronic device is received, or setting a special physical trigger structure. If the terminal accessory does not have an independent power supply, it is also possible to determine whether the terminal accessory is connected to an electronic device by whether current flows in.
[0129] In some embodiments, there may be multiple methods for determining whether the second positioning component of the terminal accessory is connected to the control component of the electronic device in step S401, such as determining by a signal from the electronic device.
[0130] In the present disclosure, a terminal accessory with a second positioning component is configured for an electronic device with a positioning function, and a first positioning component inside the electronic device, a second positioning component externally connected to the electronic device, and a control component are selectively selected through a selection control component, thereby ultimately providing positioning support for the electronic device with the first positioning component through the external terminal accessory, greatly improving the positioning accuracy of the electronic device and improving the user experience.
[0131] The electronic device involved in the present disclosure may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc., which is a device that provides voice and / or data connectivity to users. For example, the terminal may be a handheld device with wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals are: smart phones (Mobile Phone), pocket computers (Pocket Personal Computer, PPC), PDAs, personal digital assistants (Personal Digital Assistant, PDA), laptops, tablet computers, wearable devices, or vehicle-mounted devices, etc. In addition, when it is a vehicle-to-everything (V2X) communication system, the electronic device may also be a vehicle-mounted device. It should be understood that the embodiments of the present disclosure do not limit the specific technology and specific device form adopted by the terminal.
[0132] Fig.12 is a circuit logic diagram of a positioning system according to an exemplary embodiment. Fig.12 As shown, the present disclosure also proposes a positioning system, including the electronic device of the present disclosure and the terminal accessory of the present disclosure, wherein the second positioning component 7 of the terminal accessory is configured to be externally connected to the gating control component 4 of the electronic device, and the electronic device is used for when the gating control component 4 is connected in communication with the first positioning component 1 of the electronic device, the control component 3 of the electronic device performs a positioning function based on the first positioning information provided by the first positioning component 1; when the gating control component 4 is connected in communication with the second positioning component 7, the control component 3 performs a positioning function based on the second positioning information provided by the second positioning component 7. The terminal accessory is used for when the gating control component 4 of the electronic device is connected in communication with the second positioning component 7, to provide the second positioning information to the electronic device.
[0133] In the embodiments of the present disclosure, by providing a terminal accessory with a second positioning component 7, when the first positioning component 1 of the electronic device itself is damaged or the positioning accuracy cannot meet the requirements, an external second positioning component 7 can be used for positioning, thereby obtaining a higher-precision positioning effect using a relatively simple method.
[0134] Fig.13 is a flow chart of a positioning method according to an exemplary embodiment. Fig.13 As shown, the present disclosure also proposes a positioning method, which is applied to the positioning system of the present disclosure. The positioning method includes:
[0135] In step S501, in response to determining that the control component of the electronic device detects that the gate control component is externally connected to a second positioning component of the terminal accessory, the positioning component currently connected to the control component is determined.
[0136] In step S502a, if the positioning component currently connected to the control component is the first positioning component of the electronic device, the first positioning component outputs first positioning information to the control component, and the control component performs a positioning function based on the first positioning information.
[0137] In step S502b, if the positioning component currently connected to the control component is the second positioning component, the first positioning component outputs the first positioning information to the control component, and the control component performs the positioning function based on the second positioning information.
[0138] In the embodiments of the present disclosure, after detecting that the electronic device is externally connected to a second positioning component of a terminal accessory, the positioning function is performed by controlling the positioning information provided by the positioning component currently connected to the component, so that the positioning function of the electronic device can be performed by using the second positioning component of the terminal accessory external to the electronic device, thereby increasing the flexibility of the positioning function of the electronic device. In particular, when the first positioning component of the electronic device itself is damaged, the positioning function can be performed directly using the external terminal accessory without repair. Or when the first positioning component of the electronic device cannot meet the positioning accuracy, the external terminal accessory is used to improve the positioning accuracy.
[0139] Fig.14 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0140] Reference Fig.14 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0141] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more components to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia component to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0142] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory component (SRAM), an electrically erasable programmable read-only memory component (EEPROM), an erasable programmable read-only memory component (EPROM), a programmable read-only memory component (PROM), a read-only memory component (ROM), a magnetic memory component, a flash memory component, a magnetic disk, or an optical disk.
[0143] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0144] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display component (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensing components to sense touch, slide, and gestures on the touch panel. The touch sensing component may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0145] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker component for outputting an audio signal.
[0146] I / O interface 812 provides an interface between processing component 802 and peripheral interface components, such as a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0147] The sensor assembly 814 includes one or more sensing components for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display component and the keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensing component configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensing component, such as a CMOS or CCD image sensing component, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensing component, a gyroscope sensing component, a magnetic sensing component, a pressure sensing component, or a temperature sensing component.
[0148] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) component to facilitate short-range communication. For example, the NFC component can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0149] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processing components (DSPs), digital signal processing devices (DSPDs), programmable logic components (PLDs), field programmable gate arrays (FPGAs), control components, micro-control components, micro-processing components or other electronic components to perform the above methods.
[0150] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory component (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0151] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0152] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0153] It will be further understood that the terms “center”, “longitudinal”, “lateral”, “front”, “back”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation.
[0154] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0155] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order or serial order shown, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0156] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0157] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An electronic device, characterized in that: It includes a first positioning component, a gating control component and a control component: The first positioning component is used to obtain first positioning information; The gating control component is used to communicate with the first positioning component or a second positioning component externally connected to the electronic device, wherein the second positioning component is used to obtain second positioning information; The control component is communicatively connected to the gating control component, and is used to perform a positioning function based on first positioning information when the gating control component is communicatively connected to the first positioning component, and to perform a positioning function based on second positioning information when the gating control component is communicatively connected to the second positioning component.
2. The electronic device according to claim 1, characterized in that: The electronic device further comprises an external conductive component, one end of which is conductively connected to the gating control component, and the other end of which is used for contacting and conducting with the second positioning component, so that the gating control component is communicatively connected with the second positioning component.
3. The electronic device according to claim 2, characterized in that: The electronic device further comprises a first housing, wherein the first positioning component, the control component and the gating control component are arranged in the first housing, and at least part of the external conductive component passes through the first housing to connect with the second positioning component.
4. The electronic device according to claim 3, characterized in that: The external conducting component comprises a conducting portion and a plurality of conducting main contacts; One end of the conducting portion is electrically connected to the gate control component, and the other end of the conducting portion is electrically connected to the plurality of conducting main contacts respectively; The plurality of conductive main contacts are located outside the first housing, and the plurality of conductive main contacts are used to transmit at least an enable signal, an uplink data signal, and a downlink data signal, and each signal is transmitted separately using a different conductive main contact.
5. The electronic device according to claim 4, characterized in that: The electronic device also includes a first magnetic attraction structure arranged in the first shell, the first magnetic attraction structure includes two bar-shaped magnetic bodies arranged in parallel, the multiple conductive main contacts are arranged linearly, the length direction of the two bar-shaped magnetic bodies is the same as the arrangement direction of the multiple conductive main contacts, and the multiple conductive main contacts are arranged between the two bar-shaped magnetic bodies.
6. A terminal accessory, characterized in that: It includes a second positioning component, the second positioning component is used to obtain second positioning information, and the second positioning component is configured to have a function of communicating with the electronic device according to any one of claims 1-5.
7. The terminal fitting according to claim 6, characterized in that: The terminal fittings also include a plurality of conducting auxiliary contacts; The multiple conduction auxiliary contacts are electrically connected to the second positioning component respectively, the number of the multiple conduction auxiliary contacts is the same as the number of conduction main contacts of the electronic device, the multiple conduction auxiliary contacts are at least used to transmit enable signals, uplink data signals and downlink data signals, and each signal is transmitted separately using a different conduction auxiliary contact.
8. The terminal fitting according to claim 7, characterized in that: The terminal accessory also includes a second magnetic attraction structure, which includes two bar-shaped magnetic bodies arranged in parallel, and the multiple conduction auxiliary contacts are arranged linearly. The two bar-shaped magnetic bodies and the multiple conduction auxiliary contacts are located on the same side of the second positioning component, the length direction of the two bar-shaped magnetic bodies is the same as the arrangement direction of the multiple conduction auxiliary contacts, and the multiple conduction auxiliary contacts are arranged between the two bar-shaped magnetic bodies.
9. A positioning system, characterized in that: The device comprises an electronic device according to any one of claims 1 to 5 and a terminal accessory according to any one of claims 6 to 8, wherein the second positioning component of the terminal accessory is configured to be externally connected to a strobe control component of the electronic device. The electronic device is used for, when the gating control component is connected to the first positioning component of the electronic device for communication, the control component of the electronic device performs a positioning function based on the first positioning information provided by the first positioning component; when the gating control component is connected to the second positioning component for communication, the control component performs a positioning function based on the second positioning information provided by the second positioning component; The terminal accessory is used to provide the second positioning information to the electronic device when the gating control component of the electronic device is communicatively connected with the second positioning component.
10. A positioning method, characterized in that: Applied to the positioning system as claimed in claim 9, the method comprises: In response to determining that the control component of the electronic device detects that the gate control component is externally connected to a second positioning component of the terminal accessory, determining the positioning component currently connected to the control component; If the positioning component currently connected to the control component is the first positioning component of the electronic device, the first positioning component outputs first positioning information to the control component, and the control component performs a positioning function based on the first positioning information; If the positioning component currently connected to the control component is the second positioning component, the second positioning component outputs second positioning information to the control component, and the control component performs a positioning function based on the second positioning information.
