POS terminal time zone updating method and POS terminal

By establishing a connection with the communication device, analyzing the IP address to obtain time zone information, and automatically updating the POS terminal time, it solves the time zone update problem when the POS terminal does not have a built-in 4G communication module, ensuring time accuracy and user experience.

CN118659852APending Publication Date: 2024-09-17SHENZHEN XINGUODU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410801429.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

When the POS terminal does not have a built-in 4G communication module, it cannot automatically receive and apply time zone updates, resulting in inaccurate time and affecting transaction records and system synchronization.

Method used

By establishing a connection with the communication device, sending an update time request, parsing the IP address to obtain time zone information, and integrating it into the update time response to automatically update the local time.

Benefits of technology

Even without a built-in 4G communication module, the POS terminal can automatically update the time to ensure time accuracy, reduce problems caused by inaccurate time, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659852A
    Figure CN118659852A
Patent Text Reader

Abstract

The embodiment of the invention discloses a POS terminal time zone updating method and a POS terminal. The time of the POS terminal can be automatically updated. The method provided by the embodiment of the invention comprises the following steps: establishing connection between the POS terminal and communication equipment; the POS terminal sends a request for updating time to the communication equipment, so that the communication equipment obtains a corresponding time zone query result by analyzing an IP address, and fuses the time zone query result into a response of updating time; the IP address is the IP address of the POS terminal or the IP address of the communication equipment; the POS terminal receives the response returned by the communication equipment; and when the time zone query result comprises time zone information, the POS terminal updates local time according to the time zone information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of POS terminals, and in particular to a method for updating a time zone of a POS terminal and a POS terminal. Background Art

[0002] POS terminals, or point of sale terminals, are an integral part of modern business activities. They are electronic devices that integrate multiple components such as electronic keyboards, displays, card readers, and printers to process various payment transactions. POS terminals are used in a wide range of places, including retail stores, restaurants, hotels, and gas stations. They have significant advantages, such as increased transaction speed, security, and accuracy, while supporting multiple payment methods such as credit cards, debit cards, and mobile payments. POS terminals can not only process payment transactions, but also manage refunds, gift cards, or coupons, providing merchants with a more comprehensive service.

[0003] At present, it has been found that in the POS terminals without 4G communication modules that have been put into use, if these POS terminals do not have built-in 4G communication modules, the POS terminals may not be able to automatically receive and apply time zone updates, affecting the accuracy of the POS terminal time, thereby causing a series of problems, such as timestamp errors in transaction records, or synchronization problems with other time-based systems. Summary of the invention

[0004] The embodiment of the present application provides a method for updating a time zone of a POS terminal and a POS terminal, which can automatically update the time of the POS terminal.

[0005] A first aspect of an embodiment of the present application provides a method for updating a time zone of a POS terminal, comprising:

[0006] The POS terminal establishes a connection with the communication device;

[0007] The POS terminal sends a request for updating the time to the communication device, so that the communication device obtains the corresponding time zone query result by resolving the IP address, and integrates the time zone query result into the response of updating the time; the IP address is the IP address of the POS terminal or the IP address of the communication device;

[0008] The POS terminal receives the response returned by the communication device;

[0009] When the time zone query result includes time zone information, the POS terminal updates the local time according to the time zone information.

[0010] Optionally, the POS terminal can be connected to the Internet, the communication device is an XTMS system, and the POS terminal sends a request for updating the time to the communication device, so that the communication device obtains the corresponding time zone query result by resolving the IP address, and integrates the time zone query result into the response of updating the time, including:

[0011] The POS terminal obtains the IP address of the local connection to the Internet;

[0012] The POS terminal generates a request for updating time according to the IP address;

[0013] The POS terminal sends the request to the XTMS system, so that the XTMS system obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of updating time.

[0014] Optionally, the POS terminal is capable of connecting to the Internet, the communication device is an intelligent terminal capable of connecting to the Internet, and establishing a connection between the POS terminal and the communication device includes:

[0015] The POS terminal establishes a wired or wireless connection with a smart terminal connected to the Internet.

[0016] Optionally, the POS terminal sends a request for updating time to the communication device, so that the communication device obtains a corresponding time zone query result by resolving the IP address, and integrates the time zone query result into a response for updating time, including:

[0017] When the POS terminal is connected to the Internet through the smart terminal, the POS terminal obtains the IP address of the local connection to the Internet;

[0018] The POS terminal generates a request for updating time according to the IP address;

[0019] The POS terminal sends the request to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of updating time.

[0020] Optionally, the POS terminal sends a request for updating time to the communication device, so that the communication device obtains a corresponding time zone query result by resolving the IP address, and integrates the time zone query result into a response for updating time, including:

[0021] When the POS terminal cannot connect to the Internet through the smart terminal, the POS terminal directly generates a request to update the time;

[0022] The POS terminal sends the request to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through its own IP address, and integrates the time zone query result into the response of updating time.

[0023] Optionally, the POS terminal updating the local time according to the time zone information includes:

[0024] The POS terminal acquires a first time zone and a timestamp of the time zone information;

[0025] The POS terminal obtains a local second time zone;

[0026] The POS terminal updates local time according to the first time zone, the timestamp and the second time zone.

[0027] Optionally, when the time zone query result does not include time zone information, the POS terminal sends a request for updating time to the communication device again according to a preset number of requests.

[0028] A second aspect of an embodiment of the present application provides a POS terminal, including:

[0029] A connection unit, used to establish a connection with a communication device;

[0030] a sending unit, configured to send a request for updating time to the communication device, so that the communication device obtains a corresponding time zone query result by parsing an IP address, and integrates the time zone query result into a response for updating time; the IP address is the IP address of the POS terminal or the IP address of the communication device;

[0031] A receiving unit, configured to receive the response returned by the communication device;

[0032] An updating unit is used to update the local time according to the time zone information when the time zone query result includes the time zone information.

[0033] Optionally, the POS terminal can be connected to the Internet, the communication device is an XTMS system, and the sending unit can be specifically used for:

[0034] Get the IP address of the local connection to the Internet;

[0035] Generate a request for updating time according to the IP address;

[0036] The request is sent to the XTMS system so that the XTMS system obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of the update time.

[0037] Optionally, the POS terminal can be connected to the Internet, the communication device is an intelligent terminal that can be connected to the Internet, and the connection unit can be specifically used for:

[0038] Establish a wired or wireless connection with a smart terminal connected to the Internet.

[0039] Optionally, the sending unit may be specifically used for:

[0040] When the POS terminal is connected to the Internet through the smart terminal, obtaining the IP address of the local connection to the Internet;

[0041] Generate a request for updating time according to the IP address;

[0042] The request is sent to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of the update time.

[0043] Optionally, the sending unit may be specifically used for:

[0044] When the POS terminal cannot be connected to the Internet through the smart terminal, directly generating a request to update the time;

[0045] The request is sent to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through its own IP address, and integrates the time zone query result into the response of the update time.

[0046] Optionally, the updating unit may be specifically used for:

[0047] Obtain a first time zone and a timestamp of the time zone information;

[0048] Get the local second time zone;

[0049] The local time is updated based on the first time zone, the timestamp, and the second time zone.

[0050] Optionally, the POS terminal may further include a re-requesting unit, wherein the re-requesting unit is configured to:

[0051] When the time zone query result does not include the time zone information, a request for updating the time is sent to the communication device again according to a preset number of requests.

[0052] A third aspect of an embodiment of the present application provides a POS terminal, including:

[0053] Processor, memory, input-output unit, and bus;

[0054] The processor is connected to the memory, the input and output unit, and the bus;

[0055] A program is stored in the memory, and the processor calls the program to execute the method in the first aspect and any possible implementation manner of the first aspect.

[0056] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the computer executes the method in the first aspect and any possible implementation of the first aspect.

[0057] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0058] The method provided in the embodiment of the present application can automatically update the local time through the communication device even if the POS terminal does not have a built-in 4G communication module, thereby ensuring the accuracy of the POS terminal time, thereby reducing the occurrence of a series of problems and also helping to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A flowchart of an embodiment of a method for updating time of a POS terminal in an embodiment of the present application;

[0060] Figure 2 A flowchart of an embodiment of a POS terminal sending a request for updating time to a communication device in an embodiment of the present application;

[0061] Figure 3 This is a flowchart of another embodiment of the POS terminal sending a request for updating time to the communication device in the embodiment of the present application;

[0062] Figure 4 This is a flowchart of another embodiment of the POS terminal sending a request for updating time to a communication device in an embodiment of the present application;

[0063] Figure 5 This is a flow chart of an embodiment in which a POS terminal updates the local time according to time zone information in an embodiment of the present application;

[0064] Figure 6 This is a schematic diagram of the structure of an embodiment of a POS terminal in the embodiment of the present application;

[0065] Figure 7 This is a schematic diagram of the structure of another embodiment of a POS terminal in the embodiments of the present application. DETAILED DESCRIPTION

[0066] The embodiment of the present application provides a method for updating a time zone of a POS terminal and a POS terminal, which are used to automatically update the time of the POS terminal.

[0067] The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0068] See also Figure 1 In one embodiment of the present application, a method for updating a time zone of a POS terminal includes:

[0069] 101. The POS terminal establishes a connection with the communication device;

[0070] In actual applications, if the POS terminal does not have a built-in 4G communication module, the POS terminal may not be able to automatically receive and apply time zone updates, making the local time of the POS terminal inaccurate. In this case, the POS terminal can first establish a connection with a communication device and update the local time with the help of the communication device. It should be noted that the connection between the POS terminal and the communication device can be an Internet connection, a wired connection such as a network cable connection or a USB data cable connection, or a wireless connection such as a Bluetooth connection or a WIFI connection, which is not limited in this application. The communication device may include a server, a personal computer, a mobile phone, a smart TV, a smart watch, etc., which is not limited in this application.

[0071] 102. The POS terminal sends a request for updating the time to the communication device, so that the communication device obtains the corresponding time zone query result by resolving the IP address, and integrates the time zone query result into the response for updating the time;

[0072] After the connection between the POS terminal and the communication device is established, the POS terminal can send a request for updating the time to the communication device. After receiving the request, the communication device can obtain the geographical location corresponding to the IP address by resolving the IP address, and then query the geographical location in the geographical location time zone data table. The geographical location time zone data table stores the geographical location and the time zone where the geographical location is located. If the time zone where the geographical location is located is queried, the timestamp corresponding to the time zone is obtained in real time, and the time zone and the timestamp are combined into time zone information, and then a successful time zone query result is generated, and the time zone information is integrated into the time zone query result; if the time zone where the geographical location is located cannot be queried, a failed time zone query result is generated. It should be noted that the IP address resolved by the communication device can be the IP address of the POS terminal or the IP address of the communication device itself, which is not limited in this embodiment. After generating the time zone query result, the communication device generates a response to the update time corresponding to the request for updating the time, integrates the time zone query result into the response, and then returns the response to the POS terminal.

[0073] 103. The POS terminal receives a response returned by the communication device;

[0074] After the communication device sends a response of updating the time to the POS terminal, the POS terminal may receive the response.

[0075] 104. When the time zone query result includes the time zone information, the POS terminal updates the local time according to the time zone information.

[0076] After receiving the response to update the time, the POS terminal may parse the response to obtain a time zone query result, and then parse the time zone query result. If the time zone query result includes time zone information, the POS terminal may use the time zone information to update the local time.

[0077] Furthermore, if the time zone query result in the response to the updated time returned by the communication device does not include the time zone information, that is, the communication device does not query the time zone through the IP address, the POS terminal can send a request to update the time to the communication device again according to a preset number of requests. For example, the preset number of requests is 3. When the POS terminal sends a request to update the time to the communication device for the first time and the time zone query result in the response to the updated time returned by the communication device does not include the time zone information, the POS terminal can send a request to update the time to the communication device again. If the time zone query result returned by the communication device this time is still a query failure, the POS terminal can continue to send a request to update the time to the communication device. If the time zone query result returned by the communication device this time is still a query failure, the POS terminal will no longer send a request to update the time to the communication device.

[0078] In this embodiment, the POS terminal first establishes a connection with the communication device, and then sends a request for updating the time to the communication device, thereby obtaining a response for updating the time returned by the communication device, wherein the response includes a time zone query result. If the time zone query result includes time zone information, the POS terminal can use the time zone information to update the local time. Even if the POS terminal does not have a built-in 4G communication module, the local time can be updated using the communication device, thereby ensuring the accuracy of the local time of the POS terminal, helping to reduce a series of problems caused by inaccurate local time of the POS terminal, and also helping to improve user experience.

[0079] The method for updating the time zone of a POS terminal provided in the present application is applicable to the case where the POS terminal can be connected to the Internet, and is also applicable to the case where the POS terminal cannot be connected to the Internet, which will be described separately below.

[0080] When the POS terminal can be connected to the Internet, the POS terminal can update the local time through the XTMS system. Figure 2According to some embodiments of the present application, step 102 in the aforementioned embodiment may include the following steps 201 to 203:

[0081] 201. The POS terminal obtains the IP address of the local Internet connection;

[0082] Although the POS terminal does not have a built-in 4G communication module, it generally has a built-in 2G / 3G communication module, or is connected to the Internet through other means. At this time, the POS terminal may not be able to automatically update the local time, but it can connect to the Internet and then connect to the XTMS system. In this case, the POS terminal has an IP address, so the POS terminal can obtain the local IP address connected to the Internet.

[0083] 202. The POS terminal generates a request for updating time according to the IP address;

[0084] After the POS terminal obtains the IP address that is locally connected to the Internet, it can use the IP address to generate a request for updating time, and the request includes information about the IP address.

[0085] 203. The POS terminal sends a request to the XTMS system, so that the XTMS system obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of updating the time.

[0086] After generating a request for updating time, the POS terminal can send the request to the XTMS system. After receiving the request, the XTMS system can obtain the IP address in the request because the request includes the information of the IP address, and then obtain the geographical location corresponding to the IP address by resolving the IP address, and then query the geographical location in the geographical location time zone data table. The geographical location time zone data table stores the geographical location and the time zone where the geographical location is located. If the XTMS system queries the time zone where the geographical location is located, it will obtain the timestamp corresponding to the time zone in real time, and combine the time zone and the timestamp to form time zone information, and then generate a successful time zone query result, and at the same time merge the time zone information into the time zone query result; if the time zone where the geographical location is located cannot be queried, a failed time zone query result is generated. After generating the time zone query result, the communication device generates a response to the updated time corresponding to the request for updating time, merges the time zone query result into the response, and then returns the response to the POS terminal.

[0087] In this embodiment, when the POS terminal can be connected to the Internet, the XTMS system can generate time zone information using the IP address of the POS terminal.

[0088] When the POS terminal cannot connect to the Internet, it can first connect to a smart terminal that can connect to the Internet, and then use the smart terminal to update the local time. Figure 3 According to some embodiments of the present application, steps 101 to 102 in the aforementioned embodiments may include the following steps 301 to 304:

[0089] 301. The POS terminal establishes a wired or wireless connection with an intelligent terminal connected to the Internet;

[0090] When the POS terminal cannot connect to the Internet for some reason, it can first establish a wired or wireless connection with a smart terminal connected to the Internet, and then update the local time. It should be noted that smart terminals include personal computers, smart phones, smart watches, etc., which are not limited in this application. The wired or wireless connection between the POS terminal and the smart terminal includes network cable connection, USB data cable connection, Bluetooth connection, WIFI connection, etc., which are not limited in this application.

[0091] 302. When the POS terminal is connected to the Internet via the smart terminal, the POS terminal obtains the IP address of the local Internet connection;

[0092] In actual applications, after the POS terminal is connected to the smart terminal, according to the connection method and protocol between the POS terminal and the smart terminal, the POS terminal is likely to be connected to the Internet. When the POS terminal is connected to the Internet through the smart terminal, the Dynamic Host Configuration Protocol (DHCP) dynamically allocates an IP address to the POS terminal, and the POS terminal can obtain the IP address.

[0093] 303. The POS terminal generates a request for updating the time according to the IP address;

[0094] After the POS terminal obtains the IP address that is locally connected to the Internet, it can use the IP address to generate a request for updating time, and the request includes information about the IP address.

[0095] 304. The POS terminal sends a request to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of updating the time.

[0096] After generating a request for updating the time, the POS terminal can send the request to the smart terminal. After receiving the request, the smart terminal can obtain the IP address in the request because the request includes the information of the IP address, and then obtain the geographical location corresponding to the IP address by parsing the IP address, and then query the geographical location in the geographical location time zone data table. The geographical location time zone data table stores the geographical location and the time zone where the geographical location is located. If the smart terminal queries the time zone where the geographical location is located, it will obtain the timestamp corresponding to the time zone in real time, and combine the time zone and the timestamp to form the time zone information, and then generate a successful time zone query result, and at the same time merge the time zone information into the time zone query result; if the time zone where the geographical location is located cannot be queried, a failed time zone query result is generated. After generating the time zone query result, the communication device generates a response to the update time corresponding to the request for updating the time, merges the time zone query result into the response, and then returns the response to the POS terminal.

[0097] In this embodiment, when the POS terminal cannot connect to the Internet, it can first connect to a smart terminal that can connect to the Internet, and then connect to the Internet through the smart terminal to obtain the IP address of the local connection to the Internet. The smart terminal can use the IP address of the POS terminal to generate time zone information.

[0098] When the POS terminal cannot connect to the Internet, it can first connect to a smart terminal that can connect to the Internet, and then use the smart terminal to update the local time. Figure 4 According to some embodiments of the present application, steps 101 to 102 in the aforementioned embodiments may include the following steps 401 to 403:

[0099] 401. The POS terminal establishes a wired or wireless connection with a smart terminal connected to the Internet;

[0100] In this embodiment, step 401 is similar to step 301 in the above embodiment and will not be described again here.

[0101] 402. When the POS terminal cannot be connected to the Internet via the smart terminal, the POS terminal directly generates a request to update the time;

[0102] In actual applications, after the POS terminal is connected to the smart terminal, depending on the connection method and protocol between the POS terminal and the smart terminal, the POS terminal may still be unable to connect to the Internet. When the POS terminal is also unable to connect to the Internet through the smart terminal, the POS terminal directly generates a request to update the time.

[0103] 403. The POS terminal sends a request to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through its own IP address, and integrates the time zone query result into the response of the updated time.

[0104] After generating a request for updating the time, the POS terminal can send the request to the smart terminal. After receiving the request, the smart terminal uses the local IP address to obtain the geographical location corresponding to the IP address, because the request does not include the IP address information, and then queries the geographical location in the geographical location time zone data table. The geographical location time zone data table stores the geographical location and the time zone where the geographical location is located. If the smart terminal queries the time zone where the geographical location is located, it obtains the timestamp corresponding to the time zone in real time, and combines the time zone and the timestamp to form time zone information, and then generates a successful time zone query result, and at the same time, merges the time zone information into the time zone query result; if the time zone where the geographical location is located cannot be queried, a failed time zone query result is generated. After generating the time zone query result, the communication device generates a response to the update time corresponding to the request for updating the time, merges the time zone query result into the response, and then returns the response to the POS terminal. It should be noted that when using the IP address of the smart terminal to update the local time for the POS terminal, it should be ensured that the geographical location of the POS terminal and the smart terminal is the same or in the same time zone, so as to ensure that the local time of the POS terminal is accurate after updating.

[0105] In this embodiment, when the POS terminal cannot be directly connected to the Internet or indirectly connected to the Internet through a smart terminal, if the geographical location of the POS terminal is the same as that of the smart terminal or is in the same time zone, the IP address of the smart terminal can be used to update the local time for the POS terminal.

[0106] See also Figure 5 According to some embodiments of the present application, step 104 in the aforementioned embodiment may include the following steps 501 to 503:

[0107] 501. The POS terminal obtains the first time zone and timestamp of the time zone information;

[0108] After the POS terminal obtains the time zone information, since the time zone information includes information of the first time zone and corresponding real-time timestamp information, the POS terminal can obtain the first time zone and the timestamp.

[0109] 502. The POS terminal obtains the local second time zone;

[0110] After obtaining the information of the first time zone and the timestamp, the POS terminal can obtain the local second time zone.

[0111] 503. The POS terminal updates the local time according to the first time zone, the timestamp and the second time zone.

[0112] After obtaining the information of the first time zone, the timestamp and the second time zone, the POS terminal can compare the first time zone and the second time zone, calculate the time difference between the two time zones, and then use the time difference and the timestamp to calculate the timestamp corresponding to the second time zone, and update the local time through the second time zone and the timestamp corresponding to the second time zone.

[0113] In this embodiment, since the local time zone of the POS terminal is usually accurate, and the geographical location corresponding to the IP address is not always consistent with the time zone of the actual geographical location of the POS terminal, the second time zone and the corresponding timestamp are used as the time zone information of the POS terminal, which can improve the accuracy of the local time of the POS terminal and improve the user experience.

[0114] See also Figure 6 In the embodiment of the present application, one embodiment of the POS terminal includes:

[0115] A connection unit 601 is used to establish a connection with a communication device;

[0116] The sending unit 602 is used to send a request for updating time to the communication device, so that the communication device obtains the corresponding time zone query result by resolving the IP address, and integrates the time zone query result into the response of updating time;

[0117] The receiving unit 603 is used to receive a response returned by the communication device;

[0118] The updating unit 604 is configured to update the local time according to the time zone information when the time zone query result includes the time zone information.

[0119] In this embodiment, the connection unit 601 first establishes a connection with the communication device, and then the sending unit 602 sends a request for updating the time to the communication device, thereby obtaining a response to the updated time returned by the communication device, the response including the time zone query result. If the time zone query result includes time zone information, the updating unit 604 can use the time zone information to update the local time. Even if the POS terminal does not have a built-in 4G communication module, the local time can be updated using the communication device, thereby ensuring the accuracy of the local time of the POS terminal, helping to reduce a series of problems caused by inaccurate local time of the POS terminal, and also helping to improve user experience.

[0120] Optionally, the POS terminal can be connected to the Internet, the communication device is an XTMS system, and the sending unit 602 can be specifically used for:

[0121] Get the IP address of the local connection to the Internet;

[0122] Generate a request to update the time based on the IP address;

[0123] Send a request to the XTMS system so that the XTMS system obtains the corresponding time zone query result through the IP address in the request and integrates the time zone query result into the response of the updated time.

[0124] Optionally, the POS terminal can be connected to the Internet, the communication device is an intelligent terminal that can be connected to the Internet, and the connection unit 601 can be specifically used for:

[0125] Establish a wired or wireless connection with a smart terminal connected to the Internet.

[0126] Optionally, the sending unit 602 may be specifically configured to:

[0127] When the POS terminal is connected to the Internet through the smart terminal, the IP address of the local Internet connection is obtained;

[0128] Generate a request to update the time based on the IP address;

[0129] A request is sent to the smart terminal so that the smart terminal obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of the update time.

[0130] Optionally, the POS terminal can be connected to the Internet, the communication device is an intelligent terminal that can be connected to the Internet, and the sending unit 602 can be specifically used for:

[0131] When the POS terminal cannot connect to the Internet through the smart terminal, a request to update the time is directly generated;

[0132] A request is sent to the smart terminal so that the smart terminal obtains the corresponding time zone query result through its own IP address and integrates the time zone query result into the response of the update time.

[0133] Optionally, the updating unit 604 may be specifically configured to:

[0134] Get the first time zone and timestamp of time zone information;

[0135] Get the local second time zone;

[0136] Updates the local time based on the first time zone, the timestamp, and the second time zone.

[0137] Optionally, the POS terminal may further include a re-request unit, which is used to:

[0138] When the time zone query result does not include the time zone information, a request for updating the time is sent to the communication device again according to a preset number of requests.

[0139] In this implementation, the functions of each unit are the same as those mentioned above. Figures 1 to 5 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0140] See also Figure 7 Another embodiment of the POS terminal in the embodiment of the present application includes:

[0141] Processor 701, memory 702, input and output unit 703 and bus 704;

[0142] The processor 701 is connected to the memory 702, the input and output unit 703 and the bus 704;

[0143] The memory 702 stores a program, and the processor 701 calls the program to execute Figures 1 to 5 Steps in the illustrated embodiment.

[0144] In this embodiment, the function of the processor 701 is the same as that of the aforementioned Figures 1 to 5 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0146] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

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

[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0149] 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for updating time of a POS terminal, characterized in that: include: The POS terminal establishes a connection with the communication device; The POS terminal sends a request for updating the time to the communication device, so that the communication device obtains the corresponding time zone query result by resolving the IP address, and integrates the time zone query result into the response of updating the time; the IP address is the IP address of the POS terminal or the IP address of the communication device; The POS terminal receives the response returned by the communication device; When the time zone query result includes time zone information, the POS terminal updates the local time according to the time zone information.

2. The method according to claim 1, characterized in that The POS terminal can be connected to the Internet, the communication device is an XTMS system, and the POS terminal sends a request for updating time to the communication device, so that the communication device obtains the corresponding time zone query result by resolving the IP address, and integrates the time zone query result into the response of updating time, including: The POS terminal obtains the IP address of the local connection to the Internet; The POS terminal generates a request for updating time according to the IP address; The POS terminal sends the request to the XTMS system, so that the XTMS system obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of updating time.

3. The method according to claim 1, characterized in that The POS terminal cannot connect to the Internet, the communication device is a smart terminal that can connect to the Internet, and the POS terminal and the communication device establish a connection including: The POS terminal establishes a wired or wireless connection with a smart terminal connected to the Internet.

4. The method according to claim 3, characterized in that The POS terminal sends a request for updating time to the communication device, so that the communication device obtains a corresponding time zone query result by resolving the IP address, and integrates the time zone query result into a response for updating time, including: When the POS terminal is connected to the Internet through the smart terminal, the POS terminal obtains the IP address of the local connection to the Internet; The POS terminal generates a request for updating time according to the IP address; The POS terminal sends the request to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through the IP address in the request, and integrates the time zone query result into the response of updating time.

5. The method according to claim 3, characterized in that: The POS terminal sends a request for updating time to the communication device, so that the communication device obtains a corresponding time zone query result by resolving the IP address, and integrates the time zone query result into a response for updating time, including: When the POS terminal cannot connect to the Internet through the smart terminal, the POS terminal directly generates a request to update the time; The POS terminal sends the request to the smart terminal, so that the smart terminal obtains the corresponding time zone query result through its own IP address, and integrates the time zone query result into the response of updating time.

6. The method according to any one of claims 1 to 5, characterized in that The POS terminal updates the local time according to the time zone information, including: The POS terminal acquires a first time zone and a timestamp of the time zone information; The POS terminal obtains a local second time zone; The POS terminal updates local time according to the first time zone, the timestamp and the second time zone.

7. The method according to any one of claims 1 to 5, characterized in that When the time zone query result does not include the time zone information, the POS terminal sends a request for updating the time to the communication device again according to a preset number of requests.

8. A POS terminal, characterized in that: include: A connection unit, used to establish a connection with a communication device; A sending unit, configured to send a request for updating time to the communication device, so that the communication device obtains a corresponding time zone query result by resolving the IP address, and integrates the time zone query result into a response for updating time; The IP address is the IP address of the POS terminal or the IP address of the communication device; A receiving unit, configured to receive the response returned by the communication device; An updating unit is used to update the local time according to the time zone information when the time zone query result includes the time zone information.

9. A POS terminal, characterized in that: include: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; A program is stored in the memory, and the processor calls the program to execute the method according to any one of claims 1 to 7. 10 . A computer-readable storage medium having a program stored thereon, wherein when the program is executed on a computer, the computer is caused to execute the method according to claim 1 .