Sales terminal

By introducing the SPI interface connection between the wireless hotspot module and the main control communication module in the sales terminal, the sharing of network traffic is realized, solving the problem that low-cost mobile communication chips cannot share wireless networks, and effectively sharing of data traffic is realized.

CN119729915APending Publication Date: 2025-03-28NEW POS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411720201.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing sales terminals cannot share wireless networks by using low-cost mobile communication chips that run real-time operating RTOS systems, resulting in data traffic being unable to be shared by other users, resulting in waste of resources.

Method used

By introducing a wireless hotspot module into the sales terminal and establishing a communication connection with the main control communication module through the SPI interface, the sharing of network traffic is realized. The wireless hotspot module creates wireless hotspots, allowing multiple external devices to connect and share network traffic sent by the main control communication module.

Benefits of technology

It realizes the wireless hotspot sharing function of low-cost POS terminals, and can share data traffic to external devices anytime and anywhere, solving the problem of data traffic waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729915A_ABST
    Figure CN119729915A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of mobile payment terminals, and provides a point-of-sale terminal which comprises a master control communication module and a wireless hotspot module. The main control communication module is used for providing network flow; wherein a communication chip of the master control communication module is a 4G cat.1 chip; the wireless hotspot module is in communication connection with the master control communication module through a serial peripheral SPI interface; the wireless hotspot module receives the network flow sent by the master control communication module through an SPI interface; and the plurality of external devices are connected to the wireless hotspot by creating the wireless hotspot, so that the plurality of external devices share the network flow sent by the master control communication module. In the point-of-sale terminal, the main control communication module is connected with the wireless hotspot module through the SPI interface, so that the point-of-sale terminal has a function of sharing a wireless network by a wireless hotspot, and data traffic on the point-of-sale terminal can be shared with external equipment anytime and anywhere.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of mobile payment terminals, and in particular, relates to a sales terminal. Background Art

[0002] Sharing wireless networks through wireless hotspots is a widely used function on smartphones, portable wireless devices and other devices. This function is convenient and easy to use. It allows multiple devices to connect to wireless hotspots at the same time to share the Internet without complicated network settings. At present, in the wireless hotspot solution of embedded devices, the main control communication chip generally uses a chip running Linux or Android operating system, and the wireless chip is connected to the main control communication chip through a high-speed peripheral interface. At this time, the main control communication chip requires a relatively large memory and high main frequency requirements, resulting in high cost of the main control communication chip and high overall cost of the wireless hotspot solution.

[0003] However, for sales terminals (POS terminals) that use the fourth-generation mobile communication technology category 1 (4G Cat.1) chip as the communication chip, since the communication chip has the characteristics of low cost and runs an embedded real-time operating system (RTOS system), it is impossible to use the existing technology to implement the wireless hotspot sharing function on the POS terminal using the 4G Cat.1 chip. Therefore, the data traffic on the POS terminal using the 4G Cat.1 chip can only be supplied to the POS terminal, and the excess data traffic cannot be shared with other users, resulting in a waste of data traffic. Summary of the invention

[0004] The embodiment of the present application provides a sales terminal that can solve the problem that existing sales terminals cannot share wireless networks due to the use of low-cost mobile communication chips running a real-time operating RTOS system.

[0005] The embodiment of the present application provides a sales terminal, which includes: a main control communication module and a wireless hotspot module; wherein:

[0006] The main control communication module is used to provide network traffic; wherein the communication chip of the main control communication module is a 4G cat.1 chip of the fourth generation mobile communication technology category 1;

[0007] The wireless hotspot module establishes a communication connection with the main control communication module through a serial peripheral SPI interface; is used to receive the network traffic sent by the main control communication module through the SPI interface; and is used to connect multiple external devices to the wireless hotspot by creating a wireless hotspot, so that multiple external devices share the network traffic sent by the main control communication module.

[0008] In one possible implementation, the operating mode of the SPI interface is a four-wire half-duplex mode, and the serial bus of the SPI interface includes a clock line, a chip select line, a first data line, and a second data line; wherein the first data line and the second data line cannot work at the same time, the main control communication module is the host, and the wireless hotspot module is the slave.

[0009] In a possible implementation, the wireless hotspot module includes a wireless radio frequency, a wireless driver, a wireless network protocol, and a slave SPI interface driver; the master communication module includes a master radio frequency, a modem, a master network protocol, and a host SPI interface driver; wherein,

[0010] When the wireless hotspot module receives network layer data messages sent by multiple external devices from the local area network through the wireless radio frequency and the wireless driver, the network layer data messages are processed by the wireless network protocol and sent to the host SPI interface driver of the master communication module through the slave SPI interface driver; after receiving the network layer data message, the host SPI interface driver of the master communication module processes the network layer data message through the master network protocol, the modem and the master radio frequency and sends it to the cellular network;

[0011] When the master communication module receives the network layer data message sent by the cellular network through the master radio frequency and modem, the network layer data message is processed by the master network protocol and sent to the slave SPI interface driver of the wireless hotspot module through the host SPI interface driver; after receiving the network layer data message, the slave SPI interface driver of the wireless hotspot module processes the network layer data message through the wireless network protocol, the wireless driver and the wireless radio frequency and then sends it to the external device.

[0012] In a possible implementation, the host SPI interface driver includes:

[0013] A reading unit, used for reading the register value at the current moment and the register value at the previous moment through the register mode, wherein the register value at least includes a read length variable value, a read flag variable value, a write length variable value and a write flag variable value;

[0014] The judgment unit is used to compare the register value at the current moment with the register value at the previous moment to determine whether network layer data message transmission is performed between the main control communication module and the wireless hotspot module.

[0015] In a possible implementation manner, the determining unit is specifically configured to:

[0016] When the first read flag variable value in the register value at the previous moment is not equal to the second read flag variable value in the register value at the current moment, it is determined that the wireless hotspot module will send the network layer data message to the main control communication module, wherein the length of the network layer data message is the second read length variable value.

[0017] In a possible implementation manner, the determining unit is specifically configured to:

[0018] When the first write flag variable value in the register value at the previous moment is not equal to the second write flag variable value in the register value at the current moment, it is determined that the main control communication module will send a network layer data message to the wireless hotspot module, wherein the length of the network layer data message is the second write length variable value.

[0019] In a possible implementation, the master control network protocol is used to:

[0020] After receiving the network layer data message sent by the wireless hotspot module to the main control communication module, the network layer data message is forwarded to the cellular network through network address translation.

[0021] In a possible implementation, the sales terminal includes: a power management module, a security management module, a card reader module, an input module, and an output module, wherein the power management module, the security management module, the input module, and the output module are all connected to the main control communication module;

[0022] The card reader module is connected to the security management module and is used to read transaction information;

[0023] The security management module is connected to the input module and is used to encrypt the transaction information;

[0024] The input module is used to receive data input by the user;

[0025] The output module is used to display the operation interface and output data;

[0026] The power management module is used to provide power to each module.

[0027] In a possible implementation, the input module includes at least one of the following: a keyboard input module and a touch screen input module.

[0028] In a possible implementation, the card reader module includes at least one of the following: a contactless card reader module, a magnetic card reader module, and an IC card reader module.

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

[0030] The embodiment of the present application provides a sales terminal, which includes: a main control communication module and a wireless hotspot module; the main control communication module is used to provide network traffic; wherein the communication chip of the main control communication module is a 4G cat.1 chip of the fourth generation mobile communication technology category 1 chip; the wireless hotspot module establishes a communication connection with the main control communication module through a serial peripheral SPI interface; the wireless hotspot module receives the network traffic sent by the main control communication module through the SPI interface; and by creating a wireless hotspot, multiple external devices are connected to the wireless hotspot, so that multiple external devices share the network traffic sent by the main control communication module. In the sales terminal with a 4G cat.1 chip, the main control communication module and the wireless hotspot module are connected through the SPI interface, so that the sales terminal has the function of sharing a wireless network with a wireless hotspot, and the data traffic on the sales terminal can be shared with external devices anytime and anywhere. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 It is a structural schematic diagram of a sales terminal provided by an embodiment of the present application;

[0033] Figure 2 This is a flow chart of data forwarding in a sales terminal provided in an embodiment of the present application;

[0034] Figure 3 This is a flow chart of uplink data forwarding in a sales terminal provided in an embodiment of the present application;

[0035] Figure 4 It is a schematic diagram of a process for forwarding downlink data in a sales terminal provided in an embodiment of the present application;

[0036] Figure 5 This is a schematic diagram of a master control communication module reading a register value provided by an embodiment of the present application;

[0037] Figure 6 is a structural schematic diagram of a sales terminal provided by another embodiment of the present application;

[0038] Figure 7 It is a structural schematic diagram of a sales terminal provided in another embodiment of the present application. DETAILED DESCRIPTION

[0039] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also 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 prevent unnecessary details from obstructing the description of the present application.

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

[0041] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0042] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0044] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0045] See also Figure 1 , Figure 11 is a schematic diagram of a sales terminal provided in an embodiment of the present application. The sales terminal 10 includes: a main control communication module 20 and a wireless hotspot module 30; wherein,

[0046] The main control communication module 20 is used to provide network traffic; wherein the communication chip of the main control communication module is a 4G cat.1 chip of the fourth generation mobile communication technology category 1;

[0047] The wireless hotspot module 30 establishes a communication connection with the main control communication module 20 through the serial peripheral SPI interface; is used to receive the network traffic sent by the main control communication module 20 through the SPI interface; and is used to connect multiple external devices to the wireless hotspot by creating a wireless hotspot, so that multiple external devices can share the network traffic sent by the main control communication module 20.

[0048] In this embodiment, by adding a wireless hotspot module to the sales terminal POS, the wireless hotspot module is connected to the main control communication module through the serial peripheral SPI interface, and a low-cost POS terminal with a wireless hotspot sharing the network traffic of the main control communication module is realized, and the wireless network traffic on the POS terminal can be shared anytime and anywhere.

[0049] It should be noted that the main control communication module 20 is the core part of the sales terminal 10 for providing data flow, coordinating communication and data transmission between modules. The main control communication module 20 is both a communication chip and a main control chip; the operating system running is an embedded real-time operating system (RTOS system). The main control communication module 20 is a fourth-generation mobile communication technology category 1 chip, that is, a 4G Cat.1 communication chip. The 4G Cat.1 communication chip has the characteristics of low power consumption and low cost, and runs an embedded RTOS operating system. The wireless hotspot module 30 is a module that can create a wireless hotspot so that other external devices 40 can connect to the hotspot sharing network. The wireless hotspot module 30 can be a wireless WiFi chip. The external device 40 can be other sales terminals, smart phones and other terminal devices. The serial peripheral interface (Serial Peripheral Interface, SPI) is a synchronous serial communication protocol used for short-distance communication between microcontrollers and various peripherals.

[0050] Among them, the main control communication module 20 has an independent TCP / IP protocol stack (i.e., transmission control protocol / Internet interconnection protocol stack) and has a forwarding function. The wireless hotspot module 30 also has an independent TCP / IP protocol stack and has a forwarding function. The main control communication module 20 and the wireless hotspot module 30 are connected using an SPI interface. The main control communication module 20 acts as an SPI host, and the wireless hotspot module 30 acts as an SPI slave. The wireless hotspot module 30 receives the network traffic sent by the main control communication module 20 through the SPI interface. By creating a wireless hotspot, multiple external devices 40 are connected to the wireless hotspot, so that a wireless hotspot can share the network traffic sent by the main control communication module 20.

[0051] Specifically, the wireless hotspot is created when the wireless hotspot module 30 operates in SoftAP mode (ie, software simulated access point mode), and other external devices can connect to the wireless hotspot through the SSID and password sent by the wireless hotspot module 30 .

[0052] It can be understood that the sales terminal includes a main control communication module and a wireless hotspot module; the main control communication module is used to provide network traffic, wherein the communication chip of the main control communication module is a 4Gcat.1 chip of the fourth generation mobile communication technology category 1; the wireless hotspot module establishes a communication connection with the main control communication module through an SPI interface; the wireless hotspot module receives the network traffic sent by the main control communication module through an SPI interface; and, by creating a wireless hotspot, multiple external devices are connected to the wireless hotspot, so that multiple external devices share the network traffic sent by the main control communication module. In the sales terminal with a 4G cat.1 chip, the main control communication module and the wireless hotspot module are connected through an SPI interface, so that the sales terminal has the function of sharing a wireless network with a wireless hotspot, and the data traffic on the sales terminal can be shared with external devices anytime and anywhere.

[0053] In one possible implementation, the operating mode of the SPI interface is a four-wire half-duplex mode, and the serial bus of the SPI interface includes a clock line, a chip select line, a first data line, and a second data line; wherein the first data line and the second data line cannot work at the same time, the main control communication module 20 is the host, and the wireless hotspot module 30 is the slave.

[0054] It should be noted that the main control communication module 20 and the wireless hotspot module 30 are connected in hardware through an SPI interface (SPI bus), and the working mode of the SPI interface is a four-wire half-duplex mode, that is, it includes a clock line, a chip select line, and two data lines (a first data line and a second data line). The first data line and the second data line need to be used in time-sharing and cannot work at the same time, wherein the main control communication module 20 is used as the SPI host and the wireless hotspot module 30 is used as the SPI slave. Among them, the SPI interface is a synchronous serial communication protocol used for short-distance communication between a microcontroller and various peripherals. The four-wire half-duplex mode means that data can only be transmitted in one direction at the same time (i.e., from the host to the slave, or from the slave to the host), but the transmission direction can be changed at different times. The host is a device that initiates communication and controls the clock signal in SPI communication, i.e., the main control communication module 20; the slave is a device that responds to the host request and receives or sends data in SPI communication, i.e., the wireless hotspot module 30. The clock line is used to provide a synchronous clock signal, which can ensure the synchronization of data transmission between the host and the slave. The chip select line is used to select or activate a specific slave. The first data line is used to transmit data from the host to the slave; the second data line is used to transmit data from the slave to the host. Figure 2 As shown, Figure 2 It is a flowchart of data forwarding in a sales terminal provided in an embodiment of the present application. Figure 2 In the embodiment, the main control communication module 20 is a SPI host, the wireless hotspot module 30 is a SPI slave, and the main control communication module 20 and the wireless hotspot module 30 establish a communication connection through the SPI interface.

[0055] It is understandable that, through the SPI interface, the main control communication module 20 can efficiently transmit data with the wireless hotspot module 30 to achieve network traffic sharing and other communication functions.

[0056] In a possible implementation, the wireless hotspot module 30 includes a wireless radio frequency 31, a wireless driver 32, a wireless network protocol 33, and a slave SPI interface driver 34; the master communication module 20 includes a master radio frequency 21, a modem 22, a master network protocol 23, and a host SPI interface driver 24; wherein,

[0057] When the wireless hotspot module 30 receives network layer data packets sent by multiple external devices 40 from the local area network through the wireless radio frequency 31 and the wireless driver 32, the network layer data packets are processed by the wireless network protocol 33 and sent to the host SPI interface driver 24 of the master communication module 20 through the slave SPI interface driver 34; after receiving the network layer data packets, the host SPI interface driver 24 of the master communication module 20 processes the network layer data packets through the master network protocol 23, the modem 22 and the master radio frequency 21 and sends them to the cellular network 50;

[0058] When the master communication module 20 receives the network layer data message sent by the cellular network 50 through the master radio frequency 21 and the modem 22, the network layer data message is processed by the master network protocol 23 and driven by the host SPI interface 24 to be sent to the slave SPI interface driver 34 of the wireless hotspot module 30; after receiving the network layer data message, the slave SPI interface driver 34 of the wireless hotspot module 30 processes the network layer data message through the wireless network protocol 33, the wireless driver 32 and the wireless radio frequency 31 and then sends it to the external device 40.

[0059] It should be noted that if Figure 2 As shown, the wireless hotspot module 30 is a module that can create a wireless hotspot so that other external devices 40 can connect to the hotspot sharing network. The wireless hotspot module 30 includes a wireless radio frequency 31, a wireless driver 32, a wireless network protocol 33, and a slave SPI interface driver 34. Among them, the wireless radio frequency 31 is a radio frequency submodule in the wireless hotspot module 30 for converting digital signals into radio electromagnetic wave signals; the wireless driver 32 is a WiFi driver in the wireless hotspot module 30, which is used to pass data to the network protocol layer for data transmission; the wireless network protocol 33 is a network protocol stack in the wireless hotspot module 30 for processing the data format and encapsulating the data into a format suitable for network transmission; the slave SPI interface driver 34 is an SPI driver in the wireless hotspot module 30, which is used to pass data from the wireless network protocol 33 to the modem 22 or receive data from the modem 22.

[0060] Figure 2In the example, the main control communication module 20 is the core part of the sales terminal 10 for providing data flow, coordinating communication and data transmission between modules. The main control communication module 20 includes a main control radio frequency 21, a modem 22, a main control network protocol 23, and a host SPI interface driver 24. Among them, the main control radio frequency 21 is a radio frequency submodule in the main control communication module 20 for converting digital signals into radio electromagnetic wave signals; the modem 22 is used to convert data from the wireless hotspot module 30 into a network transmission format and forward it to the cellular network 50; the main control network protocol 23 is a network protocol stack in the main control communication module 20 for processing the data format and encapsulating the data into a network transmission format suitable for network transmission; the host SPI interface driver 24 is an SPI driver in the main control communication module 20, which is used to receive data from the wireless hotspot module 30 or transfer data from the modem to the slave SPI interface driver 34 of the wireless hotspot module 30. Among them, the wireless network protocol 33 and the master network protocol 23 are both complete TCP / IP protocol stacks, and the data transmitted between the wireless network protocol 33 and the slave SPI interface driver 34, and between the master network protocol 23 and the host SPI interface driver 24 are all TCP / IP third layer network layer data packets (such as IP, ARP, ICMP, etc.).

[0061] Figure 2 In the description, the process of data forwarding between the master communication module 20 and the wireless hotspot module 30 is described, including uplink data forwarding (such as Figure 3 ) and downlink data forwarding (such as Figure 4 ).like Figure 3 As shown, Figure 3 This is a flow chart of uplink data forwarding in a sales terminal provided by an embodiment of the present application. The wireless hotspot module 30 receives the TCP / IP data packet sent by the external device 40 from the local area network through the wireless radio frequency 31 and the wireless driver 32, processes it through the wireless network protocol 33, and then sends the network layer data message to the master communication module 20 through the slave SPI interface driver 34. After the host SPI interface driver 24 of the master communication module 20 receives the network layer data message, it processes the network layer data message through the master network protocol 23 (routing forwarding, NAT conversion), the modem 22, and the master radio frequency 21, and sends it to the Internet through the cellular network 50. That is, the process of uplink data forwarding is: external device 40→wireless radio frequency 31→wireless driver 32→wireless network protocol 33→slave SPI interface driver 34→host SPI interface driver 24→master network protocol 23→modem 22→master radio frequency 21→cellular network 50. As Figure 4 As shown, Figure 4It is a flow chart of downlink data forwarding in a sales terminal provided by an embodiment of the present application. After the master communication module 20 receives a TCP / IP data packet from the Internet, after being processed by the master network protocol 23 (routing forwarding, NAT conversion), the network layer data message after NAT conversion is sent to the wireless hotspot module 30 through the host SPI interface driver 24. After the wireless hotspot module 30 receives the network layer data message through the slave SPI interface driver 34, it is processed by the wireless network protocol 33, the wireless driver 32, and the wireless radio frequency 31, and the data packet is forwarded to the external device 40 in the local area network. That is, the process of uplink data forwarding is: cellular network 50 → master radio frequency 21 → modem 22 → master network protocol 23 → host SPI interface driver 24 → slave SPI interface driver 34 → wireless network protocol 33 → wireless driver 32 → wireless radio frequency 31 → external device 40.

[0062] In a possible implementation, the host SPI interface driver 24 includes:

[0063] A reading unit, used for reading the register value at the current moment and the register value at the previous moment through the register mode, wherein the register value at least includes a read length variable value, a read flag variable value, a write length variable value and a write flag variable value;

[0064] The judgment unit is used to compare the register value at the current moment with the register value at the previous moment to determine whether network layer data message transmission is performed between the main control communication module 20 and the wireless hotspot module 30.

[0065] It should be noted that if Figure 5 As shown, Figure 5 1 is a schematic diagram of a master communication module reading register values ​​provided by an embodiment of the present application. The working mode of the slave SPI interface driver 34 of the wireless hotspot module 30 is the slave half-duplex mode, which supports register reading and writing and data reading and writing. The register of the slave SPI interface driver 34 stores four register values, such as read length, read flag, write length, and write flag. Figure 5 As shown in . Among them, the read length variable value (RL1 or RL2) indicates the length of data read from the wireless hotspot module 30; the read flag variable value (R1 or R2) is used to indicate whether there is a flag bit of a read operation in progress; the write length variable value (WL1 or WL2) indicates the length of data written from the wireless hotspot module 30; the write flag variable value (W1 or W2) is used to indicate whether there is a flag bit of a write operation in progress. The communication status of the current data is obtained by reading these register values.

[0066] The reading unit is the part of the host SPI interface driver 24 that is responsible for reading the register value at the current moment and the register value at the previous moment. The judging unit is the part of the host SPI interface driver 24 that is responsible for comparing the register value at the current moment with the register value at the previous moment to determine whether network layer data message transmission is performed between the main control communication module 20 and the wireless hotspot module 30. Specifically, the host SPI interface driver 24 of the main control communication module 20 reads the register value at the current moment and the register value at the previous moment read last time through the register mode, compares the register value at the current moment with the register value at the previous moment, and determines whether network layer data message transmission is performed between the main control communication module 20 and the wireless hotspot module 30 according to the register value in the register.

[0067] Furthermore, when the first read flag variable value in the register value at the previous moment is not equal to the second read flag variable value in the register value at the current moment, it is determined that the wireless hotspot module 30 will send a network layer data message to the main control communication module 20, wherein the length of the network layer data message is the second read length variable value.

[0068] Furthermore, when the first write flag variable value in the register value at the previous moment is not equal to the second write flag variable value in the register value at the current moment, it is determined that the main control communication module 20 will send a network layer data message to the wireless hotspot module 30, wherein the length of the network layer data message is the second write length variable value.

[0069] Specifically, the first read flag variable value indicates the read flag variable value at the previous moment; the second read flag variable value indicates the read flag variable value at the current moment; when the wireless hotspot module 30 is ready to send the first frame of network layer data message, the read flag variable value will be increased by 1, and when the wireless hotspot module 30 is ready to send the second frame of network layer data message, the read flag variable value will be increased by 1 again. If the first read flag variable value R1 in the register value at the previous moment is not equal to the second read flag variable value R2 in the register value at the current moment, that is, R1≠R2, it means that the data transmission state of the wireless hotspot module 30 has changed between the previous moment and the current moment, then it is determined that the wireless hotspot module 30 will send a network layer data message to the main control communication module 20, that is, it means that the wireless hotspot module 30 side is ready to send a network layer data message of the second read length variable value (RL2 bytes), and through this flag, it is ensured that the host SPI interface driver 24 of the main control communication module 20 can receive a complete and non-repetitive network layer data message. The second read length variable value is the length of the network layer data message to be sent by the wireless hotspot module 30. If the first read flag variable value R1 in the register value at the previous moment is equal to the second read flag variable value R2 in the register value at the current moment, that is, R1 = R2, it means that the wireless hotspot module 30 is not ready to send the network layer data message.

[0070] The first write flag variable value indicates the write flag variable value at the previous moment; the second write flag variable value indicates the write flag variable value at the current moment; when the wireless hotspot module 30 is ready to receive the first frame of network layer data message, the write flag variable value will be increased by 1, and when the wireless hotspot module 30 is ready to receive the second frame of network layer data message, the write flag variable value will be increased by 1 again. That is, if the first write flag variable value W1 in the register value at the previous moment is not equal to the second write flag variable value W2 in the register value at the current moment, that is, W1≠W2, it means that the sending data state of the master communication module 20 has changed between the previous moment and the current moment, then it is determined that the master communication module 20 will send a network layer data message to the wireless hotspot module 30, that is, it means that the master communication module 20 sends a network layer data message of at most the second write length variable value (WL2 bytes) to the wireless hotspot module 30. Through this flag, it is ensured that the slave SPI interface driver 34 of the wireless hotspot module 30 can receive the complete network layer data message sent by the master communication module 20. The second write length variable value is the length of the network layer data message to be sent by the main control communication module 20. If the first write flag variable value W1 in the register value at the previous moment is equal to the second write flag variable value W2 in the register value at the current moment, that is, W1=W2, it means that the wireless hotspot module 30 is not ready to receive the network layer data message.

[0071] In one possible implementation, the master network protocol 23 is used to:

[0072] After receiving the network layer data message sent by the wireless hotspot module 30 to the main control communication module 20, the network layer data message is forwarded to the cellular network 50 through network address translation.

[0073] Specifically, the master network protocol 23 is a key part of the master communication module 20 for processing protocol requirements. During the data forwarding process, the master network protocol 23 in the master communication module 20 will create a network address translation table NAT, and forward the network layer data message to the cellular network 50 through network address translation. Specifically, when receiving downlink data, the network layer data message is processed by the master network protocol 23 in the master communication module 20, that is, network address translation (NAT conversion), and the network layer data message after NAT conversion is sent to the wireless hotspot module 30 through the host SPI interface driver 24; when receiving uplink data, the master communication module 20 processes the network layer data message received by the host SPI interface driver 24 through the NAT conversion of the master network protocol 23, and forwards the network layer data message after NAT conversion to the cellular network 50. Among them, NAT conversion is a method of converting addresses between a local area network and a wide area network. That is, when the external device 40 accesses the wireless hotspot, it accesses the internal network. When it accesses the external network, it needs to convert the internal private IP address into an external IP address through NAT conversion in the main control communication module 20.

[0074] In a possible implementation, the sales terminal 10 includes: a power management module 11, a security management module 12, a card reader module 13, an input module 14, and an output module 15, wherein the power management module 11, the security management module 12, the input module 14, and the output module 15 are all connected to the main control communication module 20;

[0075] A card reader module 13, connected to the security management module 12, for reading transaction information;

[0076] The security management module 12 is connected to the input module 14 and is used to encrypt the transaction information;

[0077] An input module 14, used to receive data input by a user;

[0078] Output module 15, used for displaying the operation interface and outputting data;

[0079] The power management module 11 is used to provide power to each module.

[0080] Specifically, Figure 6 As shown, Figure 6 It is a structural schematic diagram of a sales terminal provided in another embodiment of the present application. Figure 6 In the example, the power management module 11 is a part of the sales terminal 10 that provides necessary power to each module. The power management module 11 is connected to the main control communication module 20, and can provide a stable power supply to the sales terminal 10 and monitor the power supply quantity.

[0081] The security management module 12 is the part of the sales terminal 10 that is responsible for security management related to sales terminal transactions. It protects the security and integrity of data transmission by encrypting transaction information, etc. The security management module 12 is connected to the main control communication module 20 to receive and send security-related instructions and data; the security management module 12 is connected to the card reader module 13 to receive read transaction information and perform relevant security checks on it; the security management module 12 is connected to the input module 14 to receive security-related information such as passwords entered by users and ensure the secure transmission of these data information.

[0082] The card reader module 13 is a part of the sales terminal 10 for reading transaction related information. The card reader module 13 is connected to the security management module 12, and can process the transmitted transaction information securely to ensure the security of the transaction information.

[0083] The input module 14 is a part of the sales terminal 10 for receiving user input data. The input module 14 is connected to the main control communication module 20 to transmit the user input data to the main control communication module 20 so that the main control communication module 20 can process it; the input module 14 is connected to the security management module 12 to ensure that the security-related information input by the user can be encrypted and processed securely.

[0084] The output module 15 is a part of the sales terminal 10 for displaying an operation interface and outputting data. The output module 15 may be a display screen.

[0085] It is understandable that the sales terminal 10 integrates multiple functional modules, and the modules work together to ensure the security, accuracy and efficiency of transactions, providing a convenient and secure payment experience for different users.

[0086] In a possible implementation, the input module 14 includes at least one of the following: a keyboard input module 141 and a touch screen input module 142 .

[0087] Specifically, the input module 14 is a part of the sales terminal 10 for receiving user input data. Figure 7 As shown, Figure 7 Schematic diagram of a sales terminal provided by another embodiment of the present application. Figure 7 In the embodiment, the input module 14 may include a keyboard input module 141, may include a touch screen input module 142, or may include both the keyboard input module 141 and the touch screen input module 142. That is, the sales terminal 10 includes a keyboard or a touch screen, and the user can input relevant data through the keyboard keys or through the touch screen. The sales terminal 10 can meet the needs of different users by providing multiple input methods for users to choose.

[0088] In a possible implementation, the card reader module 13 includes at least one of the following: a contactless card reader module 131 , a magnetic card reader module 132 , and an IC card reader module 133 .

[0089] Specifically, the card reader module 13 is a part of the sales terminal 10 for reading transaction related information. Figure 7 In the embodiment, the card reader module 13 may include a contactless card reader module 131, a magnetic card reader module 132, an IC card reader module 133, or all three. The contactless card reader module 131 reads information on a contactless card, such as an NFC card, wirelessly, without physically contacting the card, providing convenience and speed of transactions; the magnetic card reader module 132 reads information on a magnetic stripe card, such as a bank card, through physical contact, and has strong compatibility; the IC card reader module 133 reads information on an integrated circuit card, such as a chip card, through physical contact, providing higher security and storage capacity. By providing a variety of card reading technologies, the sales terminal 10 can better meet the needs of different users and improve the convenience, security and flexibility of transactions.

[0090] 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 the present application.

[0091] 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, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a 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.

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

[0093] Those of ordinary skill 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 to be beyond the scope of this application.

[0094] In the embodiments provided in the present 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 only schematic. For example, the division of modules or 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0095] 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.

[0096] The above 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 embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A sales terminal, characterized in that: The sales terminal includes: a main control communication module and a wireless hotspot module; wherein, The main control communication module is used to provide network traffic; wherein the communication chip of the main control communication module is a 4G cat.1 chip of the fourth generation mobile communication technology category 1; The wireless hotspot module establishes a communication connection with the main control communication module through a serial peripheral SPI interface; is used to receive the network traffic sent by the main control communication module through the SPI interface; and is used to connect multiple external devices to the wireless hotspot by creating a wireless hotspot, so that multiple external devices share the network traffic sent by the main control communication module.

2. The sales terminal according to claim 1, characterized in that: The working mode of the SPI interface is a four-wire half-duplex mode, and the serial bus of the SPI interface includes a clock line, a chip select line, a first data line and a second data line; wherein the first data line and the second data line cannot work at the same time, the main control communication module is the host, and the wireless hotspot module is the slave.

3. The sales terminal according to claim 1, characterized in that: The wireless hotspot module includes wireless radio frequency, wireless driver, wireless network protocol and slave SPI interface driver; the master communication module includes master radio frequency, modem, master network protocol and host SPI interface driver; wherein, When the wireless hotspot module receives network layer data messages sent by multiple external devices from the local area network through the wireless radio frequency and the wireless driver, the network layer data messages are processed by the wireless network protocol and sent to the host SPI interface driver of the master communication module through the slave SPI interface driver; after receiving the network layer data message, the host SPI interface driver of the master communication module processes the network layer data message through the master network protocol, the modem and the master radio frequency and sends it to the cellular network; When the master communication module receives the network layer data message sent by the cellular network through the master radio frequency and modem, the network layer data message is processed by the master network protocol and sent to the slave SPI interface driver of the wireless hotspot module through the host SPI interface driver; after receiving the network layer data message, the slave SPI interface driver of the wireless hotspot module processes the network layer data message through the wireless network protocol, the wireless driver and the wireless radio frequency and then sends it to the external device.

4. The sales terminal according to claim 3, characterized in that: The host SPI interface driver includes: A reading unit, used for reading the register value at the current moment and the register value at the previous moment through the register mode, wherein the register value at least includes a read length variable value, a read flag variable value, a write length variable value and a write flag variable value; The judgment unit is used to compare the register value at the current moment with the register value at the previous moment to determine whether network layer data message transmission is performed between the main control communication module and the wireless hotspot module.

5. The sales terminal according to claim 4, characterized in that: The judging unit is specifically used for: When the first read flag variable value in the register value at the previous moment is not equal to the second read flag variable value in the register value at the current moment, it is determined that the wireless hotspot module will send the network layer data message to the main control communication module, wherein the length of the network layer data message is the second read length variable value.

6. The sales terminal according to claim 4, characterized in that: The judging unit is specifically used for: When the first write flag variable value in the register value at the previous moment is not equal to the second write flag variable value in the register value at the current moment, it is determined that the main control communication module will send a network layer data message to the wireless hotspot module, wherein the length of the network layer data message is the second write length variable value.

7. The sales terminal according to claim 3, characterized in that: The master network protocol is used to: After receiving the network layer data message sent by the wireless hotspot module to the main control communication module, the network layer data message is forwarded to the cellular network through network address translation.

8. The sales terminal according to any one of claims 1 to 7, characterized in that: The sales terminal includes: a power management module, a security management module, a card reader module, an input module, and an output module, wherein the power management module, the security management module, the input module, and the output module are all connected to the main control communication module; The card reader module is connected to the security management module and is used to read transaction information; The security management module is connected to the input module and is used to encrypt the transaction information; The input module is used to receive data input by the user; The output module is used to display the operation interface and output data; The power management module is used to provide power to each module.

9. The sales terminal according to claim 8, characterized in that: The input module includes at least one of the following: a keyboard input module and a touch screen input module.

10. The sales terminal according to claim 9, characterized in that: The card reader module includes at least one of the following: a contactless card reader module, a magnetic card reader module, and an IC card reader module.