Terminal control method and device and vehicle-mounted terminal

By detecting the ICCID code of the SIM card and disconnecting the data network in case of mismatch, providing temporary access windows and locking mechanisms, the problem of low terminal service flexibility is solved, ensuring emergency services and security, improving user experience and preventing illegal SIM card abuse.

CN120434646APending Publication Date: 2025-08-05SHENZHEN STREAMING VIDEO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510657373.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

Terminals rely on SIM cards to obtain services with low flexibility and cannot effectively distinguish between legal and illegal SIM cards, resulting in users being unable to obtain services in a timely manner or abuse illegal SIM cards for a long time in an emergency.

Method used

After detecting the SIM card insertion, the ICCID code is obtained and compared with the stored ICCID code. If it does not match, the data network will be disconnected after the first preset time, a temporary access window is provided to ensure emergency services, and the ICCID code is locked after the second preset time, and the independent password is unlocked and logged in operation to improve security.

Benefits of technology

Improves the flexibility of terminals to obtain communication services, ensures that services are available in emergencies, while preventing the long-term abuse of illegal SIM cards, improving user experience and reducing supplier losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120434646A_ABST
    Figure CN120434646A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of terminals, and provides a terminal control method and device and a vehicle-mounted terminal.The method comprises the steps that after it is detected that an SIM card is inserted into the terminal, an ICCID code of the inserted SIM card is obtained; if the ICCID code is stored in the terminal, the obtained ICCID code is compared with the stored ICCID code; and if the acquired ICCID code is different from the stored ICCID code, controlling the data network of the terminal to be disconnected after a first preset duration. Through the method, the flexibility of acquiring the communication service by the terminal is improved, and the good experience of a user is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of terminal technology, and in particular relates to a terminal control method, device, vehicle-mounted terminal, computer-readable storage medium, and computer program product. Background Art

[0002] A Subscriber Identity Module (SIM) card is an integrated circuit chip that primarily stores a user's identity information. In a mobile communication system, the SIM card uses this identity information for identity authentication.

[0003] Currently, when a terminal is inserted with a SIM card issued by an operator, it can access the corresponding operator's network through the SIM card. Specifically, the operator uses the SIM card's identity information transmitted by the terminal to identify the terminal (or user). If the terminal is recognized as legitimate, it will be allowed to access the corresponding communication services through the SIM card. Conversely, if the terminal is recognized as illegal, it will not be allowed to access any communication services through the SIM card.

[0004] Therefore, in the existing methods, the flexibility of controlling the terminal's acquisition of communication services is relatively low. Summary of the Invention

[0005] The embodiments of the present application provide a terminal control method, device, and vehicle-mounted terminal, which can solve the problem of low flexibility when the terminal relies on a SIM card to obtain services.

[0006] In a first aspect, an embodiment of the present application provides a terminal control method, including:

[0007] After detecting that a SIM card is inserted into the terminal, obtaining the ICCID code of the inserted SIM card;

[0008] If the terminal stores an ICCID code, comparing the acquired ICCID code with the stored ICCID code;

[0009] If the acquired ICCID code is different from the stored ICCID code, the data network of the terminal is controlled to be disconnected after a first preset time period.

[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0011] In an embodiment of the present application, when the terminal determines that the ICCID code of the inserted SIM card is different from the ICCID code it has stored, it indicates that the terminal determines that the currently inserted SIM card is an illegal SIM card. At this time, the data network of the terminal is not disconnected, and after a first preset time period, the terminal will control the data network to disconnect. Since the terminal's data network is not disconnected, the terminal can transmit data through the data network, thereby ensuring that the user can use the data network and obtain the corresponding service in an emergency. After the terminal's data network is disconnected, the terminal will not be able to transmit data with the server through the data network. Therefore, it is helpful to prevent the user from still obtaining the corresponding service through the illegal SIM card after the first preset time period. That is, through the above method, not only is it guaranteed that the user can obtain the corresponding service through an illegal SIM card in an emergency, but it also prevents the user from obtaining the corresponding service through an illegal SIM card for a long time, thereby improving the flexibility of the terminal in obtaining communication services, thereby greatly improving the user's good experience.

[0012] Optionally, after obtaining the ICCID code of the inserted SIM card, the method further includes:

[0013] If the terminal does not store the ICCID code, the terminal stores the acquired ICCID code of the SIM card after waiting for a second preset time period, so as to lock the acquired ICCID code of the SIM card.

[0014] Optionally, the terminal control method provided in the embodiment of the present application further includes:

[0015] If an unlocking SMS is received, and the unlocking SMS includes the independent password of the terminal, the lock on the currently stored ICCID code is released, wherein the independent password is set for the first time after the terminal leaves the factory.

[0016] Optionally, after unlocking the currently stored ICCID code, the method further includes:

[0017] After waiting for a second preset time period, the ICCID code of the SIM card currently inserted into the terminal is stored and locked.

[0018] Optionally, after unlocking the currently stored ICCID code, the method further includes:

[0019] After waiting for the second preset time period, if it is detected that the terminal is not inserted with a SIM card, the unlocked ICCID code is re-stored.

[0020] Optionally, the terminal control method provided in the embodiment of the present application further includes:

[0021] If the acquired ICCID code is different from the stored ICCID code, the data acquired by the terminal is sent to the corresponding server within the first preset time period, where the data includes at least one of the following: positioning data, video data, and audio data.

[0022] In a second aspect, an embodiment of the present application provides a terminal control device, including:

[0023] An ICCID code acquisition module is used to acquire the ICCID code of the inserted SIM card after detecting that the terminal has inserted a SIM card;

[0024] An ICCID code comparison module, configured to compare the acquired ICCID code with the stored ICCID code if the terminal stores an ICCID code;

[0025] The data network disconnection module is used to control the data network disconnection of the terminal after a first preset time period if the acquired ICCID code is different from the stored ICCID code.

[0026] In a third aspect, an embodiment of the present application provides a vehicle-mounted terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any one of the first aspects when executing the computer program.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method as described in any one of the first aspects.

[0028] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a vehicle-mounted terminal, enables the vehicle-mounted terminal to execute any of the methods described in the first aspect above.

[0029] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art.

[0031] Figure 1 This is a flow chart of a terminal control method provided by an embodiment of the present application;

[0032] Figure 2 This is a schematic diagram of the structure of a terminal control device provided by an embodiment of the present application;

[0033] Figure 3 This is a structural diagram of a vehicle-mounted terminal provided in one embodiment of the present application. DETAILED DESCRIPTION

[0034] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0035] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0036] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0037] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized.

[0038] Currently, a terminal can communicate with other terminals or servers through an inserted SIM card. Terminals here include mobile phones, tablet computers, smart wearable devices, vehicle-mounted terminals (such as recorders), and so on.

[0039] Taking a recorder as an example, to obtain diverse services, car owners typically purchase or lease a recorder capable of recording location information, images, sound, and other data. The recorder sends the recorded data to a server for processing. When the server returns the processed data, the recorder can provide the car owner with corresponding services based on the received results. The communication between the recorder and the server via the SIM card generates data traffic, and the recorder supplier typically charges the car owner a fee based on this data traffic. (If the car owner leases the recorder from the supplier, the car owner also pays the supplier a rental fee.)

[0040] In practice, some car owners may replace the SIM card associated with their recorder to avoid paying for data traffic. However, after the SIM card associated with the recorder (the SIM card that comes with the recorder when the supplier sells or leases it to the car owner) is replaced, the recorder supplier will be unable to calculate the actual data traffic generated by the recorder, resulting in significant losses for the supplier. In some cases, it is reasonable for users to want to obtain services using illegal SIM cards. For example, if a legitimate SIM card malfunctions and the user needs immediate service, if the terminal does not provide the corresponding service because the SIM card is illegal, the user will have a poor experience.

[0041] In order to reduce the problem of low flexibility when a terminal relies on a SIM card to obtain services, an embodiment of the present application provides a terminal control method.

[0042] The terminal control method provided by the embodiment of the present application is described below with reference to the accompanying drawings.

[0043] Figure 1 A flow chart of a terminal control method provided in an embodiment of the present application is shown. The method can be applied to a terminal, which can be a mobile phone, a tablet computer, a smart wearable device, or a vehicle-mounted terminal, etc., and is described in detail as follows:

[0044] S11, after detecting that a SIM card is inserted into the terminal, obtaining the ICCID code of the inserted SIM card.

[0045] Specifically, whether the terminal is inserted with a SIM card may be detected by hardware detection or software detection.

[0046] For example, when detecting through hardware detection, the terminal can detect whether a SIM card is inserted by detecting the level state of the detection pin in the SIM card slot. This is because when no SIM card is inserted, the detection pin in the SIM card slot is at a high level, and after the SIM card is inserted, the detection pin is short-circuited to ground and becomes a low level.

[0047] For another example, when detecting by software, whether the terminal has a SIM card inserted therein may be detected by obtaining the status of the SIM card.

[0048] In the embodiment of the present application, after the terminal detects the SIM card, the terminal establishes a connection with the inserted SIM card through the SIM card slot and obtains the Integrated Circuit Card Identifier (ICCID) of the SIM card through the established connection. The ICCID code is a unique identification number of the SIM card, usually consisting of 19 to 20 digits.

[0049] Optionally, the terminal may detect whether a SIM card is inserted after detecting that the SIM card is removed, and suspend detecting whether a SIM card is inserted after not detecting that the SIM card is removed, thereby reducing the detection frequency of SIM card insertion and saving resources consumed by detecting SIM card insertion.

[0050] Optionally, the terminal may obtain the ICCID code of the SIM card inserted in the terminal after the legitimacy of the user is verified. Specifically, the terminal verifies the legitimacy of the login password entered by the user in its interface, or verifies the legitimacy of the login password sent by the user through an electronic device. If the obtained login password is the same as the stored login password, the login password is determined to be a legal password, and the user is determined to be a legal user. Afterwards, the terminal obtains the ICCID code of the SIM card inserted in the terminal. Of course, if the obtained login password is different from the login password stored in the terminal, the user is determined to be not a legal user. Since when the user is determined to be not a legal user, the user cannot use the terminal, that is, the user cannot enjoy the services provided by the terminal, therefore, obtaining the ICCID code of the SIM card inserted in the terminal after determining that the user is a legal user is beneficial to reducing the number of unnecessary acquisitions of the ICCID code.

[0051] S12: If the terminal has an ICCID code stored, the acquired ICCID code is compared with the stored ICCID code.

[0052] The ICCID code stored in the terminal is the ICCID code of the valid SIM card corresponding to the terminal. Since the terminal only corresponds to one valid SIM card at a time, the terminal only stores one ICCID code at a time. However, the valid SIM card corresponding to the terminal may change at different times, in which case the ICCID code stored in the terminal will also change.

[0053] In the embodiment of the present application, after the terminal obtains the ICCID code of the inserted SIM card, it compares the obtained ICCID code with the ICCID code stored in the terminal to determine whether the two ICCID codes are the same.

[0054] S13: If the acquired ICCID code is different from the stored ICCID code, the data network of the terminal is controlled to be disconnected after a first preset time period.

[0055] The first preset duration can be set according to actual conditions. For example, the first preset duration can be determined based on the time required for the terminal to upload its currently recorded data to the server, and / or based on the time required to remove an illegal SIM card and insert a valid SIM card.

[0056] Optionally, the first preset duration may be set to 10 minutes. Of course, it may also be set to other values, which are not limited here.

[0057] In the embodiment of the present application, when the terminal determines that the ICCID code of the inserted SIM card is different from the stored ICCID code, it records the moment (assuming it is moment 1) and calculates the duration between moment 1 and the current moment (assuming it is moment 2). If the duration is equal to the first preset duration, then any moment between moment 1 and moment 2 is within the first preset duration, and any moment after moment 2 and thereafter is after the first preset duration. That is, starting from the moment after the current moment, the terminal controls its data network to be disconnected.

[0058] Optionally, if the terminal determines that the ICCID code of the inserted SIM card is the same as the stored ICCID code, then the data network connectivity of the terminal is established and maintained so that the terminal can perform data transmission with the server.

[0059] In an embodiment of the present application, when the terminal determines that the ICCID code of the inserted SIM card is different from the ICCID code it has stored, it indicates that the terminal determines that the currently inserted SIM card is an illegal SIM card. At this time, the data network of the terminal is not disconnected, and after the first preset time period, the terminal will control the data network to disconnect. Since the terminal's data network is not disconnected, the terminal can transmit data through the data network, thereby ensuring that the user can use the data network and obtain the corresponding service in an emergency. After the terminal's data network is disconnected, the terminal will not be able to transmit data with the server through the data network. Therefore, it is helpful to prevent the user from still obtaining the corresponding service through the illegal SIM card after the first preset time period. That is, through the above method, not only is it guaranteed that the user can obtain the corresponding service through an illegal SIM card in an emergency, but it also prevents the user from obtaining the corresponding service through an illegal SIM card for a long time, thereby improving the flexibility of the terminal in obtaining communication services, thereby greatly improving the user's good experience.

[0060] For example, when a legitimate SIM card of a terminal fails, since the terminal provided by the embodiment of the present application provides a temporary access window for the user (that is, when it is detected that the ICCID code of the inserted SIM card is different from the stored ICCID code, the user can continue to use the data network within the first preset time period), the user can insert other SIM cards into the terminal. If the user wants to obtain navigation services, after inserting an illegal SIM, the terminal can send positioning information to the server through the data network that is not disconnected, and the server returns the corresponding navigation results to the terminal after receiving the positioning information. That is, since the terminal provides a temporary access window for the user, it ensures that the user can use the data network and obtain the corresponding service in an emergency. That is, through the temporary release of the data network, the user can enjoy the services of the terminal for a short time, but it can also prevent long-term abuse after the malicious replacement of the SIM card, thereby achieving a balanced optimization of data security and user experience.

[0061] In some embodiments, considering that it is difficult for a server to obtain relevant information about a terminal after a terminal's data network is disconnected, the terminal can record user operations on the terminal after controlling the data network disconnection, generating a corresponding operation log. The operation log can then be sent to the server after data network communication with the server is restored. This allows the server to be aware of the user's operations on the terminal while the terminal was disconnected from the data network.

[0062] In some embodiments, the terminal control method provided in the embodiments of the present application further includes:

[0063] If the terminal does not store the ICCID code, the terminal stores the acquired ICCID code after waiting for a second preset time period to lock the ICCID code.

[0064] Specifically, when the terminal does not store the ICCID code, it indicates that the terminal needs to lock the ICCID code. At this time, the terminal will default to the SIM card inserted this time as a valid SIM card, and the ICCID code corresponding to the SIM card is the ICCID code that needs to be locked.

[0065] In an embodiment of the present application, when the terminal obtains the ICCID code of the inserted SIM card and determines that it does not store the ICCID code, it records the moment (assuming it is moment 3) and counts the duration between moment 3 and the current moment (assuming it is moment 4). If the duration is equal to the second preset duration, then any moment between moment 3 and moment 4 is within the second preset duration, and the next moment of moment 4 and any moment thereafter are after the second preset duration.

[0066] In an embodiment of the present application, when the terminal does not store the ICCID code and detects that a SIM card is currently inserted, the terminal will not immediately store the ICCID code of the currently obtained SIM card, but will wait for a second preset time period before storing it. The second preset time period is a time period set according to actual conditions. Considering that when the ICCID code is stored, a legal SIM card is inserted into the terminal, and when the data network is disconnected, an illegal SIM card is inserted into the terminal, therefore, the second preset time period involved in storing the ICCID code can be set to a time period greater than the first preset time period involved when the data network is disconnected. For example, when the first preset time period is 10 minutes, the second preset time period can be set to 30 minutes.

[0067] When a user inserts a SIM card into a terminal for the first time, the SIM card may be inserted incorrectly, such as inserting an illegal SIM card 1 into the terminal by mistake as a legal SIM card 2. If the terminal does not have a fault tolerance period (i.e., a second preset period), and directly stores the ICCID code of the illegal SIM card 1, an incorrect ICCID code will be stored. Therefore, the embodiment of the present application sets a fault tolerance period. After the fault tolerance period is reached, the ICCID code of the acquired SIM card is stored, thereby improving the accuracy of the stored ICCID code. That is, by reducing the risk of locking due to misoperation of a legitimate user, the accuracy of the ICCID code stored in the terminal is improved, and the flexibility of the terminal is improved.

[0068] It should be pointed out that, after obtaining the ICCID code, if the terminal detects that the SIM card corresponding to the obtained ICCID code is pulled out and a new SIM card is inserted, the ICCID code of the newly inserted SIM card is obtained again, and the relationship between the duration between the new moment 3 and the new moment 4 and the second preset duration is recalculated to select whether to store the obtained ICCID code based on the relationship.

[0069] In some embodiments, considering that after the terminal locks the ICCID code, it may be necessary to replace the SIM card, that is, the terminal may need to replace its stored (or locked) ICCID code. Therefore, to achieve this function, the terminal control method provided in the embodiment of the present application further includes:

[0070] If an unlocking SMS is received, and the unlocking SMS includes the independent password of the terminal, the lock on the currently stored ICCID code will be released, wherein the independent password is set for the first time after the terminal leaves the factory.

[0071] The terminal's unique password is set by the user for the first time after the terminal leaves the factory. This means that once the user sets the unique password for the terminal, it cannot be modified and can only be changed by the terminal's vendor. This prevents the risk of secondary attacks on the unique password, improving its security and, in turn, enhancing the effectiveness of managing legitimate control rights over the terminal.

[0072] Specifically, when a user needs to replace a legitimate SIM card of a terminal, the user can send an unlocking SMS (i.e., a SMS including an independent password) to the terminal through other electronic devices (such as a mobile phone). After receiving the unlocking SMS, the terminal determines whether the independent password included in the unlocking SMS is the same as the independent password stored by the terminal. If they are the same, it indicates that the user is a legitimate user. At this time, the ICCID code stored in the terminal can be unlocked. The terminal can unlock the ICCID code stored in the terminal by deleting the ICCID code stored in the terminal, or it can unlock the ICCID code stored in the terminal by marking the ICCID code stored in the terminal as an invalid ICCID code. Since the independent password is set for the first time after the terminal leaves the factory, judging whether to unlock the stored ICCID code in combination with the independent password is conducive to improving the security of the stored ICCID code. In addition, since the terminal can unlock the stored ICCID code according to the unlocking SMS including the independent password, the flexibility of unlocking is improved.

[0073] In the embodiment of the present application, the independent password of the terminal and the login password of the terminal are independent passwords, and the independent password and login password of the same terminal are usually different. Optionally, in order to further improve the effectiveness of the management of the legal control authority of the terminal, the unlocking SMS can be set to also include the login password. The terminal determines whether the login password included in the unlocking SMS is the same as the pre-stored login password, and determines whether the independent password included in the unlocking SMS is the same as the pre-stored independent password. If they are the same, the stored ICCID code is unlocked. Otherwise, if only the login password is the same, or if only the independent password is the same, the stored ICCID code is not unlocked. Since the judgment of the login password is added, that is, the double judgment is used to determine whether to unlock the stored ICCID code, the accuracy of the unlocking operation is improved.

[0074] After the terminal unlocks the stored ICCID code, the user can remove the SIM card corresponding to the ICCID code (assuming it is SIM card 3) from the terminal and insert another SIM card (i.e., not SIM card 3). After inserting the new SIM card, since the terminal has unlocked SIM card 3, the terminal's data network connection is not restricted by the first preset duration. That is, after inserting the new SIM card, even if the first preset duration expires, the terminal's data network connection will not be disconnected.

[0075] In some embodiments, after unlocking the currently stored ICCID code, the method further includes:

[0076] After waiting for the second preset time, the ICCID code of the SIM card currently inserted into the terminal is stored and locked.

[0077] Specifically, after the terminal unlocks the currently stored ICCID code, if the terminal detects that the SIM card corresponding to the stored ICCID code is pulled out and detects that a SIM card (usually not the SIM card corresponding to the stored ICCID code, otherwise, there is no need to unlock) is inserted, the terminal obtains the ICCID code of the inserted SIM card, waits for a second preset time, and then stores the currently obtained ICCID code, thereby locking the ICCID code of the newly inserted SIM card.

[0078] Since the terminal unlocks the stored ICCID code, it can access the data network without verifying the ICCID code, that is, the terminal is in a completely unlocked state, and therefore, the terminal has a security risk. Therefore, in the embodiment of the present application, the automatic recovery lock after the second preset time period can not only avoid the tedious manual rebinding, but also automatically recover the lock and automatically update the ICCID code corresponding to the newly inserted SIM card, thereby avoiding the above security risks.

[0079] Considering that in actual situations, after the terminal unlocks the currently stored ICCID code, the terminal may not replace its original SIM card. In this case, the ICCID code corresponding to the original SIM card will be re-locked. That is, in some embodiments, after unlocking the currently stored ICCID code, the following steps are also included:

[0080] After waiting for the second preset time period, if it is detected that the terminal is not inserted with a SIM card, the unlocked ICCID code is stored again.

[0081] Specifically, after the terminal unlocks the currently stored ICCID code, if the terminal does not detect that the SIM card corresponding to the stored ICCID code is removed, it waits for a second preset time period and then re-stores the ICCID code of the SIM card inserted into the terminal, that is, re-stores the unlocked ICCID code, thereby locking the ICCID code of the original SIM card.

[0082] Since the terminal unlocks the stored ICCID code, it can access the data network without verifying the ICCID code, that is, the terminal is in a completely unlocked state, which poses a security risk. Therefore, in the embodiment of the present application, the automatic recovery lock after the second preset time period can not only avoid the tedious manual rebinding, but also automatically recover the lock, thereby avoiding the above security risks.

[0083] The above describes how to control the terminal when a legal SIM card is inserted into the terminal. The following describes how to control the terminal when an illegal SIM card is inserted into the terminal.

[0084] In some embodiments, considering that an illegal SIM card may be inserted maliciously by a user, in order to enable the server to obtain the data recorded by the terminal in a timely manner, the terminal, when it determines that the inserted ICCID code is different from the stored ICCID code, actively sends its recorded data to the server via an unconnected data network. That is, the terminal control method provided in the embodiment of the present application also includes:

[0085] If the acquired ICCID code is different from the stored ICCID code, the data acquired by the terminal is sent to the corresponding server within the first preset time period, where the data includes at least one of the following: positioning data, video data, and audio data.

[0086] The positioning data refers to the positioning information of the current location of the terminal, and the video data and audio data refer to the video data and audio data of the terminal.

[0087] For example, when the terminal is a recorder on a vehicle, the positioning data is the positioning information of the vehicle's current location; the video data includes video data inside the vehicle, and may also include video data of the environment outside the vehicle; the audio data includes audio data inside the vehicle, and may also include audio data of the environment outside the vehicle.

[0088] In the embodiment of the present application, since the terminal will not disconnect the data network within the first preset time when it determines that the ICCID code of the inserted SIM card is different from the stored ICCID code, the terminal records the moment (assuming it is moment 1) when it determines that the ICCID code of the inserted SIM card is different from the stored ICCID code, and counts the time between moment 1 and the current moment (assuming it is moment 2). If the time is less than the first preset time (that is, within the first preset time), the terminal actively sends the acquired data to the corresponding server. Since the terminal actively sends at least one of the acquired data including positioning data, video data, and audio data to the server within the first preset time, therefore,

[0089] Optionally, the data sent by the terminal to the server within the first preset time period may be real-time data currently acquired by the terminal, or data acquired by the terminal before the current moment but not yet sent to the server, which is not limited here.

[0090] Optionally, if the terminal determines that the ICCID code of the inserted SIM card is the same as the stored ICCID code, it may send the acquired data to the server according to a preset reporting strategy. The reported data may include at least one of the following: positioning data, video data, and audio data. The reporting strategy may include at least one of the following: reporting data according to a preset reporting time, reporting data after the amount of data acquired by the terminal exceeds a preset data volume threshold, or reporting data after the user triggers a reporting operation.

[0091] In some embodiments, in order to promptly remind the user to remove the illegal SIM card, the terminal control method provided in the embodiment of the present application further includes:

[0092] If the acquired ICCID code is different from the stored ICCID code and audio data sent by the server is received, the audio data is played, wherein the audio data includes information of removing the illegal SIM card.

[0093] The audio data includes information on removing an illegal SIM card and may also include information on inserting a legal SIM card. Furthermore, the audio data may also include information on how to remove an illegal SIM card and how to insert a SIM card.

[0094] Specifically, after determining that the ICCID code of the inserted SIM card differs from the stored ICCID code, the terminal may proactively send information to the server indicating that an illegal SIM card has been inserted into the terminal. Upon receiving this information, the server may choose to send audio data including information about removing the illegal SIM card to the terminal. Alternatively, after receiving data that the terminal did not report according to a preset reporting policy, the server may determine that an illegal SIM card has been inserted into the terminal. In this case, the server may choose to send audio data including information about removing the illegal SIM card to the terminal. After receiving the audio data sent by the server, the terminal will proactively play the received audio data without the user confirming whether to play it. For example, if the terminal is currently playing music selected by the user, the music will be paused and the audio data received from the server will be played.

[0095] In this embodiment of the present application, since the terminal's data network remains connected within the first preset duration, the terminal can receive data sent by the server via the data network within the first preset duration. Furthermore, since the terminal plays the audio data after receiving the data sent by the server including the information regarding the removal of the illegal SIM card, the terminal user is promptly informed that their behavior is illegal, thereby facilitating the timely removal of the illegal SIM card inserted into the terminal.

[0096] Optionally, if the terminal receives audio data sent by the server through a non-data network (such as a dial-up network) within the first preset time period or outside the first preset time period, the terminal may also directly play the audio data.

[0097] In some embodiments, in order to communicate with the user in a timely manner, the terminal control method provided in the embodiments of the present application further includes:

[0098] If the acquired ICCID code is different from the stored ICCID code and a call connection initiated by the server is received, a call connection is established with the server.

[0099] Specifically, after determining that the ICCID code of the inserted SIM card is different from the stored ICCID code, the terminal can proactively send information to the server indicating that an illegal SIM card has been inserted into the terminal. After receiving this information, the server can choose to initiate a call connection with the terminal. Alternatively, after receiving data that the terminal does not report according to the preset reporting policy, the server determines that the terminal has inserted an illegal SIM card. In this case, the server can choose to initiate a call connection with the terminal.

[0100] Since the data network of the terminal is not disconnected within the first preset time period, the server can initiate a call connection establishment request to the terminal through the data network. After receiving the call connection establishment request, the terminal accepts the call connection establishment request to establish a call connection with the server. After the server establishes a call connection with the terminal, the staff (or intelligent robot) can talk to the user of the terminal through the established call connection. For example, the staff can inform the user of the terminal through the established call connection that the SIM card inserted is illegal and needs to be unplugged and reinserted with a legal SIM card.

[0101] Optionally, if the terminal receives a call connection initiated by the server through a non-data network (such as a dial-up network) within the first preset time period or outside the first preset time period, a call connection may also be established with the server.

[0102] In the embodiment of the present application, since the terminal actively establishes a call connection with the server after receiving the call connection initiated by the server, the staff can communicate with the user in a timely manner based on the established call connection, which is conducive to reducing the probability of illegal SIM cards being continuously inserted into the terminal.

[0103] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0104] Corresponding to the terminal control method described in the above embodiment, Figure 2 A structural block diagram of a terminal control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0105] Reference Figure 2 The terminal control device 2 is applied to the terminal, which can be a mobile phone, a tablet computer, a smart wearable device, or a vehicle-mounted terminal, etc. The terminal control device 2 includes: an ICCID code acquisition module 21, an ICCID code comparison module 22, and a data network disconnection module 23. Among them:

[0106] The ICCID code acquisition module 21 is configured to acquire the ICCID code of the inserted SIM card after detecting that the terminal has inserted a SIM card.

[0107] Optionally, the ICCID code acquisition module 21 may detect whether a SIM card is inserted after detecting that the SIM card is pulled out, and suspend detecting whether a SIM card is inserted after not detecting that the SIM card is pulled out, thereby reducing the detection frequency of SIM card insertion and saving resources required for detecting SIM card insertion.

[0108] Optionally, the ICCID code acquisition module 21 may acquire the ICCID code of the SIM card inserted in the terminal after the user's legitimacy is verified. Specifically, the ICCID code acquisition module 21 verifies the legitimacy of the login password entered by the user in its interface, or verifies the legitimacy of the login password sent by the user through the electronic device. If the acquired login password is the same as the stored login password, the login password is determined to be a legal password, and the user is determined to be a legal user. Afterwards, the ICCID code acquisition module 21 acquires the ICCID code of the SIM card inserted in the terminal. Of course, if the acquired login password is different from the login password stored in the device, the user is determined to be not a legal user. Since when the user is determined to be not a legal user, the user cannot use the terminal, that is, the user cannot enjoy the services provided by the terminal, therefore, acquiring the ICCID code of the SIM card inserted in the terminal after determining that the user is a legal user is beneficial to reducing the number of unnecessary acquisitions of the ICCID code.

[0109] The ICCID code comparison module 22 is configured to compare the acquired ICCID code with the stored ICCID code if the terminal has an ICCID code stored therein.

[0110] The data network disconnection module 23 is configured to control the data network disconnection of the terminal after a first preset time period if the acquired ICCID code is different from the stored ICCID code.

[0111] The first preset duration can be set according to actual conditions. For example, the first preset duration can be determined based on the time required for the terminal to upload its currently recorded data to the server, and / or based on the time required to remove an illegal SIM card and insert a valid SIM card.

[0112] Optionally, the first preset duration may be set to 10 minutes. Of course, it may also be set to other values, which are not limited here.

[0113] In an embodiment of the present application, when the terminal determines that the ICCID code of the inserted SIM card is different from the ICCID code it has stored, it indicates that the terminal determines that the currently inserted SIM card is an illegal SIM card. At this time, the data network of the terminal is not disconnected, and after the first preset time period, the terminal will control the data network to disconnect. Since the terminal's data network is not disconnected, the terminal can transmit data through the data network, thereby ensuring that the user can use the data network and obtain the corresponding service in an emergency. After the terminal's data network is disconnected, the terminal will not be able to transmit data with the server through the data network. Therefore, it is helpful to prevent the user from still obtaining the corresponding service through the illegal SIM card after the first preset time period. That is, through the above method, not only is it guaranteed that the user can obtain the corresponding service through an illegal SIM card in an emergency, but it also prevents the user from obtaining the corresponding service through an illegal SIM card for a long time, thereby improving the flexibility of the terminal in obtaining communication services, thereby greatly improving the user's good experience.

[0114] In some embodiments, the control device 2 of the terminal further includes:

[0115] The data network connection module is used to establish and maintain the data network connection of the terminal when the ICCID code of the inserted SIM card is the same as the stored ICCID code, so that the terminal can transmit data with the server.

[0116] In some embodiments, considering that it is difficult for the server to obtain relevant information of the terminal after the data network of the terminal is disconnected, the control device 2 of the terminal further includes:

[0117] The operation log processing module is used to record user operations on the terminal after the control data network is disconnected, generate corresponding operation logs, and then send these operation logs to the server after data network communication with the server is restored. This allows the server to understand the user's operations on the terminal while the terminal was disconnected from the data network.

[0118] In some embodiments, the control device 2 of the terminal further includes:

[0119] The ICCID code locking module is used to store the acquired ICCID code of the SIM card after waiting for a second preset time period if the terminal does not store the ICCID code, so as to lock the ICCID code of the SIM card.

[0120] In some embodiments, the control device 2 of the terminal further includes:

[0121] The ICCID code unlocking module is used to unlock the currently stored ICCID code if an unlocking SMS is received, and the unlocking SMS includes the independent password of the terminal, wherein the independent password is set for the first time after the terminal leaves the factory.

[0122] Specifically, the ICCID code stored in the terminal can be unlocked by deleting the ICCID code stored in the terminal, or the ICCID code stored in the terminal can be unlocked by marking the ICCID code stored in the terminal as an invalid ICCID code.

[0123] In some embodiments, the control device 2 of the terminal further includes:

[0124] The ICCID code updating module is used to store and lock the ICCID code of the SIM card currently inserted into the terminal after the lock on the currently stored ICCID code is released and after waiting for a second preset time period.

[0125] In some embodiments, the control device 2 of the terminal further includes:

[0126] The ICCID code relocking module is used to, after unlocking the currently stored ICCID code, wait for a second preset time period, and if it is detected that the terminal is not inserted with a SIM card, re-store the unlocked ICCID code.

[0127] In some embodiments, the control device 2 of the terminal further includes:

[0128] The data sending module is used to send the data obtained by the terminal to the corresponding server within the first preset time if the obtained ICCID code is different from the stored ICCID code, and the data includes at least one of the following: positioning data, video data, and audio data.

[0129] When the terminal is a locator:

[0130] The positioning data refers to the positioning information of the vehicle's current location.

[0131] The video data includes video data of the interior of the vehicle and may also include video data of the environment outside the vehicle.

[0132] The audio data includes audio data inside the vehicle and may also include audio data of the environment outside the vehicle.

[0133] Optionally, the data sent by the data sending module to the server within the first preset time period may be real-time data currently acquired by the terminal, or data acquired by the terminal before the current moment but not yet sent to the server, which is not limited here.

[0134] In some embodiments, the control device 2 of the terminal further includes:

[0135] The data reporting module is configured to, upon determining that the ICCID code of the inserted SIM card is the same as the stored ICCID code, send the acquired data to the server according to a preset reporting policy. The reported data includes at least one of the following: positioning data, video data, and audio data. The reporting policy includes at least one of the following: reporting data according to a preset reporting time, reporting data after the amount of data acquired by the terminal exceeds a preset data volume threshold, or reporting data after the user triggers a reporting operation.

[0136] In some embodiments, the control device 2 of the terminal further includes:

[0137] The audio data processing module is used to play the audio data if the acquired ICCID code is different from the stored ICCID code and the audio data sent by the server is received, wherein the audio data includes information of removing the illegal SIM card.

[0138] The audio data includes information on removing an illegal SIM card and may also include information on inserting a legal SIM card. Furthermore, the audio data may also include information on how to remove an illegal SIM card and how to insert a SIM card.

[0139] Optionally, the audio data processing module is further configured to: receive audio data sent by the server via a non-data network (such as a dial-up network) within or outside the first preset time period, and directly play the audio data.

[0140] In some embodiments, the control device 2 of the terminal further includes:

[0141] The call connection establishing module is used to establish a call connection with the server if the acquired ICCID code is different from the stored ICCID code and a call connection initiated by the server is received.

[0142] Optionally, the call connection establishing module is further used to establish a call connection with the server if a call connection initiated by the server through a non-data network (such as a dial-up network) is received within the first preset time period or outside the first preset time period.

[0143] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.

[0144] Figure 3 This is a structural diagram of a vehicle-mounted terminal provided in one embodiment of the present application. Figure 3 As shown, the vehicle terminal 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one processor is shown in the figure), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps of any of the above-mentioned method embodiments when executing the computer program 32.

[0145] The vehicle terminal 3 may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will understand that Figure 3 This is only an example of the vehicle-mounted terminal 3 and does not constitute a limitation on the vehicle-mounted terminal 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0146] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.

[0147] In some embodiments, the memory 31 may be an internal storage unit of the vehicle-mounted terminal 3, such as a hard disk or memory of the vehicle-mounted terminal 3. In other embodiments, the memory 31 may also be an external storage device of the vehicle-mounted terminal 3, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. equipped on the vehicle-mounted terminal 3. Furthermore, the memory 31 may also include both an internal storage unit of the vehicle-mounted terminal 3 and an external storage device. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0148] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0149] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.

[0150] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.

[0151] An embodiment of the present application provides a computer program product. When the computer program product is run on a vehicle-mounted terminal, the vehicle-mounted terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0152] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / vehicle terminal, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0153] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0154] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0155] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0156] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0157] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A terminal control method, characterized in that: include: After detecting that a SIM card is inserted into the terminal, obtaining the ICCID code of the inserted SIM card; If the terminal stores an ICCID code, comparing the acquired ICCID code with the stored ICCID code; If the acquired ICCID code is different from the stored ICCID code, the data network of the terminal is controlled to be disconnected after a first preset time period.

2. The terminal control method according to claim 1, wherein: After obtaining the ICCID code of the inserted SIM card, the method further includes: If the terminal does not store the ICCID code, the terminal stores the acquired ICCID code of the SIM card after waiting for a second preset time period, so as to lock the acquired ICCID code of the SIM card.

3. The terminal control method according to claim 1 or 2, characterized in that: Also includes: If an unlocking SMS is received, and the unlocking SMS includes the independent password of the terminal, the lock on the currently stored ICCID code is released, wherein the independent password is set for the first time after the terminal leaves the factory.

4. The terminal control method according to claim 3, wherein: After unlocking the currently stored ICCID code, the method further includes: After waiting for a second preset time period, the ICCID code of the SIM card currently inserted into the terminal is stored and locked.

5. The terminal control method according to claim 3, wherein: After unlocking the currently stored ICCID code, the method further includes: After waiting for the second preset time period, if it is detected that the terminal is not inserted with a SIM card, the unlocked ICCID code is re-stored.

6. The terminal control method according to claim 1, 2, 4 or 5, wherein: Also includes: If the acquired ICCID code is different from the stored ICCID code, the data acquired by the terminal is sent to the corresponding server within the first preset time period, where the data includes at least one of the following: positioning data, video data, and audio data.

7. A terminal control device, characterized in that: include: An ICCID code acquisition module is used to acquire the ICCID code of the inserted SIM card after detecting that the terminal has inserted a SIM card; An ICCID code comparison module, configured to compare the acquired ICCID code with the stored ICCID code if the terminal stores an ICCID code; The data network disconnection module is used to control the data network disconnection of the terminal after a first preset time period if the acquired ICCID code is different from the stored ICCID code.

8. A vehicle-mounted terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The invention comprises a computer program, which, when executed, enables the method according to any one of claims 1 to 6 to be performed.