Terminal online method, system, and computer readable medium

By coordinating the work of the in-plant base station and the positioning base station, the problem of excessively long polling cycles caused by the base station calling all terminals in the plant area was solved, thereby improving the efficiency of terminal online and ensuring the continuity of positioning data.

CN116321360BActive Publication Date: 2026-05-01SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUPCON TECH CO LTD
Filing Date
2022-12-28
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, the base station in the factory area calls all terminals in each polling cycle, resulting in a large number of terminals not in the factory area being called, causing the polling cycle to be too long, the terminal online time to be extended, and the location data to be discontinuous.

Method used

The system obtains the latest terminal information matching table from the base station entering the factory, polls terminals that have not yet entered the factory and sends call packets. If a response packet is received and the status is updated to indicate that the terminal has entered the factory and is online, the positioning base station updates the dynamic list of terminals entering the factory according to the updated terminal information matching table, and only communicates with terminals that have already entered the factory and are online.

Benefits of technology

It reduces the polling cycle time, improves terminal online efficiency, and ensures the continuity of terminal data acquired by the positioning base station.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116321360B_ABST
    Figure CN116321360B_ABST
Patent Text Reader

Abstract

The application provides an online method and system of a terminal and a computer readable medium. The method comprises the following steps: obtaining the current latest terminal information matching table through a factory base station; polling the terminal which has not entered the factory and is online in the latest terminal information matching table according to a polling period; sending a call package to the polled terminal; updating the state of the polled terminal in the terminal information matching table to the state of having entered the factory and being online if the response package replied by the polled terminal is received within a preset time length; and broadcasting the updated terminal information matching table to the base station accessing the factory network through the factory network, so that the positioning base station updates the factory terminal dynamic list according to the updated terminal information matching table, and communicates with the terminal which has entered the factory and is online in the factory terminal dynamic list according to the polling period, thereby reducing the call time consumption of the terminal which has not entered the factory and is online, and shortening the polling period of the positioning base station.
Need to check novelty before this filing date? Find Prior Art

Description

Terminal online methods, systems, and computer-readable media Technical Field

[0001] This invention relates to the field of mobile communication technology, and in particular to a method, system, and computer-readable medium for connecting a terminal to the internet. Background Technology

[0002] In existing technology, factory workers periodically communicate with the factory's base station via their terminals to access and use the mobile communication network. Specifically, the communication scheme between the terminals and the base station is as follows: the base station polls all workers' terminals in the factory according to a polling cycle, sending signaling packets to the polled terminals and waiting for a response of communication data packets. If no response is received within a preset time, the waiting period ends, and the system continues polling the next terminal. The communication data packets include location data, motion status data, and other data required for mobile communication. The signaling packets are used to call the terminals.

[0003] As described in the aforementioned communication scheme, the factory base station calls all staff terminals within the factory during each polling cycle. However, among all the terminals called by the factory base station, a large number are not located within the factory premises. Because the factory base station wastes considerable time calling and waiting for responses from these out-of-area terminals, each polling cycle becomes excessively long. Consequently, the time required for terminals to go from offline to online is prolonged, and the location data obtained by the factory base station is discontinuous, affecting the positioning function. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method, system, and computer-readable medium for bringing a terminal online, so as to improve the efficiency of bringing a terminal online.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] Firstly, this application discloses a method for bringing a terminal online, applied to an in-plant base station in a factory network, wherein the factory network is connected to the in-plant base station and at least one positioning base station; the method for bringing the terminal online includes:

[0007] Obtain the latest terminal information matching table; wherein, the terminal information matching table includes: the identifier, status, and call channel information of all terminals in the factory area; the status of the terminal is used to indicate whether the terminal has entered the factory and is online;

[0008] According to the polling cycle, the latest terminal information is polled to match terminals that have not yet entered the factory and gone online in the master table;

[0009] A call packet is sent to the polled terminal; wherein the call packet includes: the identifier of the terminal;

[0010] If a response packet is received from the polled terminal within a preset time period, the terminal information is matched with the status of the polled terminal in the master table and updated to the "already online" status; wherein, the response packet includes online information indicating that the terminal has been online at the base station in the factory.

[0011] The updated terminal information matching table is broadcast to the base stations connected to the factory network through the factory network, so that the positioning base stations update the dynamic list of terminals entering the factory according to the updated terminal information matching table, and communicate with the terminals in the dynamic list of terminals entering the factory according to the polling cycle; wherein, the dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, and the positioning base station information corresponding to each terminal that has entered the factory and is online; the positioning base station information corresponding to the terminal that has entered the factory and is online is at least used to indicate whether the terminal is online on any positioning base station, and the positioning base station that the terminal is currently online on.

[0012] Optionally, in the above-mentioned terminal online method, the terminal information matching master table further includes: grouping of all terminals in the factory area; wherein, all the terminal groups are divided according to the call channel; the step of polling the terminals that have not entered the factory and gone online in the latest terminal information matching master table according to the polling cycle includes:

[0013] According to the polling cycle, the terminal information matching table is simultaneously polled for terminals that have not yet entered the factory and gone online in each group.

[0014] Sending call packets to the polled terminals includes:

[0015] A call packet is sent through the call channel of the polled terminal.

[0016] Optionally, in the above-described method for deploying terminals, after polling the latest terminal information matching table for terminals that have not yet been deployed according to the polling cycle, the method further includes:

[0017] If no response packet is received from the polled terminal within the preset time period, then poll the next terminal that has not yet entered the factory and gone online.

[0018] Optionally, the above-mentioned method for launching the terminal also includes:

[0019] If a deletion notification is received from a terminal, the status of the terminal indicated by the deletion notification in the terminal information matching table is updated to "not yet online"; wherein, the deletion notification of the terminal is used to indicate that the information of the terminal in the dynamic list of terminals entering the factory has been deleted;

[0020] The updated terminal information matching table is broadcast to the base stations connected to the factory network via the factory network.

[0021] Secondly, this application discloses a method for bringing a terminal online, applied to a first positioning base station in a factory network, wherein the factory network is connected to at least one positioning base station and an entry base station, and the first positioning base station is any one of the positioning base stations connected to the factory network; the method for bringing the terminal online includes:

[0022] Obtain the latest dynamic list of terminals entering the factory; wherein, the dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, the positioning channel information, and the positioning base station information corresponding to each terminal that has entered the factory and is online; the positioning base station information corresponding to each terminal that has entered the factory and is online is at least used to indicate whether the terminal is online on any positioning base station, and the positioning base station that the terminal is currently online on;

[0023] According to the polling cycle, poll one type of terminal in the dynamic list of terminals entering the factory; the one type of terminal includes terminals that are currently online with the first positioning base station, and terminals that are not online with any positioning base station.

[0024] A signaling packet is sent to the polled terminal; wherein the signaling packet includes: the identifier of the terminal;

[0025] If a communication data packet is received from the polled terminal within a preset time period, and the location base station information corresponding to the polled terminal indicates that the terminal is not online at any location base station, then the location base station information corresponding to the polled terminal is updated to information indicating that the terminal is online at the first location base station; wherein, the communication data packet includes data that needs to be used during mobile communication;

[0026] The updated dynamic list of terminals entering the factory is broadcast to the base stations connected to the factory network via the factory network.

[0027] Optionally, in the above method for bringing a terminal online, after receiving a communication data packet from the polled terminal within a preset time period, the method further includes:

[0028] If the communication data packet replied by the polled terminal includes pre-offline information, then the location base station information corresponding to the polled terminal is updated to information indicating that the terminal is not online at the first location base station; wherein, the pre-offline information is used to indicate that the terminal will go offline at the first location base station;

[0029] The updated dynamic list of terminals entering the factory is broadcast to the base stations connected to the factory network via the factory network.

[0030] Optionally, in the above method for bringing a terminal online, after sending a signaling packet to the polled terminals, the method further includes:

[0031] If no communication data packet is received from the polled terminal within the preset time period, it is determined whether the response timeout duration of the polled terminal exceeds the timeout threshold; wherein, the response timeout duration of the terminal is the duration during which the terminal does not reply with a communication data packet;

[0032] If it is determined that the response timeout duration of the polled terminal exceeds the timeout threshold, and the location base station information corresponding to the polled terminal is used to indicate that the terminal is online at the first location base station, then the location base station information corresponding to the polled terminal is updated to information indicating that the terminal is not online at the first location base station.

[0033] The updated dynamic list of terminals entering the factory is broadcast to the base stations connected to the factory network via the factory network.

[0034] Optionally, in the above method for bringing a terminal online, if it is determined that the response timeout duration of the polled terminal exceeds the timeout threshold, the method further includes:

[0035] If each of the positioning base stations other than the first positioning base station determines that the response timeout duration of the polled terminal exceeds the timeout threshold, then the information of the polled terminal in the dynamic list of incoming terminals is deleted from the broadcast, and a deletion notification of the polled terminal is sent to the incoming base station; wherein, the deletion notification of the terminal is used to indicate that the information of the terminal in the dynamic list of incoming terminals has been deleted.

[0036] The updated dynamic list of terminals entering the factory is broadcast to the base stations connected to the factory network via the factory network.

[0037] Thirdly, this application discloses a terminal online system, comprising:

[0038] The in-plant base station is used to perform any of the methods described in the first aspect above;

[0039] At least one positioning base station, each of which is configured to perform the method described in any of the second aspects above; wherein each of the positioning base stations and the factory access base station are connected to the factory network;

[0040] A positioning terminal is used to communicate with the positioning base station and the factory entry base station.

[0041] Fourthly, this application discloses a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in either the first or second aspect above.

[0042] Based on the terminal online method provided in the above embodiments of the present invention, the base station entering the factory obtains the latest terminal information matching table. The terminal information matching table includes the identifiers, statuses, and call channel information of all terminals in the factory area. Then, according to a polling cycle, it polls the latest terminal information matching table for terminals not yet online, sending call packets to the polled terminals. If a response packet is received from the polled terminal within a preset time, the status of the polled terminal in the terminal information matching table is updated to "online." Because the base station in this embodiment continuously updates and determines the currently online terminals by polling the latest terminal information matching table for terminals not yet online, the positioning base station can update the dynamic list of terminals entering the factory according to the updated terminal information matching table and communicate with the terminals in the dynamic list of terminals entering the factory according to the polling cycle. The dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, and the location base station information corresponding to each terminal that has entered the factory and is online. Therefore, the location base station only communicates with the terminals that have entered the factory and are online, so as to enable the terminals that have entered the factory and are online to access and use the mobile communication network, without needing to communicate periodically with terminals that are not in the factory area (i.e., terminals that have not entered the factory and are online), which reduces the polling cycle time, improves the efficiency of terminal online, and makes the data obtained by the location base station from the terminal response continuous. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0044] Figure 1 is a schematic diagram of the structure of a terminal online system disclosed in an embodiment of this application;

[0045] Figure 2 is a schematic diagram of the structure of another terminal online system disclosed in an embodiment of this application;

[0046] Figure 3 is a schematic diagram of the hardware structure of a factory base station disclosed in an embodiment of this application;

[0047] Figure 4 is a flowchart illustrating a terminal online method disclosed in an embodiment of this application;

[0048] Figure 5 is a flowchart illustrating another terminal online method disclosed in an embodiment of this application;

[0049] Figure 6 is a flowchart illustrating a method for updating a dynamic list of inbound terminals disclosed in an embodiment of this application;

[0050] Figure 7 is a flowchart illustrating another method for updating the dynamic list of inbound terminals disclosed in an embodiment of this application. Detailed Implementation

[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0052] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0053] Referring to Figure 1, this application embodiment proposes a terminal online system, which includes an in-plant base station 101, at least one positioning base station 102, and at least one terminal 103. All in-plant base stations 101 and positioning base stations 102 are connected to the factory network, which can be a local area network, such as Ethernet. The in-plant base stations 101 and positioning base stations 102 can communicate through the factory network. It should be noted that the wireless communication between the base stations and terminals in the system proposed in this application embodiment is applicable to wireless communication methods such as Sub-1GHz and Wi-Fi, and this application embodiment does not impose any limitations on this. The terminal in this application embodiment refers to terminal devices such as mobile phones, laptops, and tablets.

[0054] The following describes the process of enabling at least one terminal 103 to go online using the cooperation of the inbound base station 101 and one of the positioning base stations 102. The execution process and principles of other positioning base stations 102 and inbound base stations 101 in the process of enabling terminal 103 to go online can be referred to, and will not be repeated here.

[0055] Specifically, the terminal online process in the terminal online system is as follows: Base station 101 obtains the latest terminal information matching table, which includes the identifiers, statuses, and call channel information of all terminals 103 in the factory area. The status of terminal 103 indicates whether it has entered the factory and gone online. Base station 101 polls the latest terminal information matching table for terminals 103 that have not yet entered the factory and gone online, according to a polling cycle. Base station 101 sends a call packet to the polled terminal, which includes the identifier of the polled terminal 103. If base station 101 receives a response packet from the polled terminal 103 within a preset time, it updates the status of the polled terminal 103 in the terminal information matching table to "entered the factory and gone online," and thus, in the next polling cycle, this terminal 103 will not be polled again. Base station 101 broadcasts the updated terminal information matching table to all base stations connected to the factory network (i.e., all base stations in the system) through the factory network. The dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, and the location base station information corresponding to each terminal that has entered the factory and is online. The location base station information corresponding to each terminal that has entered the factory and is online is used to at least indicate whether the terminal is online on any location base station, and the location base station that the terminal is currently online on.

[0056] After the positioning base station 102 receives the updated terminal information matching table, it updates the dynamic list of terminals entering the factory according to the updated terminal information matching table. Then, it obtains the latest dynamic list of terminals entering the factory and communicates with terminals 103 in the dynamic list of terminals entering the factory according to the polling period, so that terminals 103 can realize mobile communication.

[0057] The specific process of communication between the positioning base station 102 and the terminals 103 in the dynamic list of inbound terminals according to the polling cycle is as follows: The positioning base station 102 polls a type of terminal in the dynamic list of inbound terminals according to the polling cycle. The type of terminal includes terminals currently online at the positioning base station 102 (i.e., terminals online locally), and terminals not online at any positioning base station. The positioning base station 102 sends a signaling packet to the polled terminal 103, wherein the signaling packet includes the identifier of the polled terminal 103. If the positioning base station 102 receives a communication data packet from the polled terminal 103 within a preset time period, and the positioning base station information corresponding to the polled terminal indicates that the terminal 103 is not online at any positioning base station, then the positioning base station information corresponding to the polled terminal is updated to information indicating that the terminal is online at the positioning base station 102. The communication data packet includes data used during mobile communication, such as positioning data and motion status data.

[0058] The positioning base station 102 broadcasts the updated dynamic list of inbound terminals to the base stations connected to the factory network through the factory network. As a result, other positioning base stations 102 and inbound base stations 101 can also know the latest dynamic list of inbound terminals. Other positioning base stations 102 can communicate with terminals 103 periodically according to the latest dynamic list of inbound terminals. For the specific communication process, please refer to the relevant description of the specific process of communication between positioning base stations 102 and terminals 103 in the dynamic list of inbound terminals according to the polling cycle, which will not be repeated here.

[0059] Optionally, referring to Figure 1, the terminal online system proposed in this embodiment may further include a server 104. The server 104 is also connected to the factory network. The terminal information matching master table and the dynamic list of terminals entering the factory can be stored on the server. When the base station entering the factory 101 needs to update the terminal information matching master table, it can update the terminal information matching master table through the server 104. Similarly, when the positioning base station 102 needs to update the dynamic list of terminals entering the factory, it can also update the dynamic list of terminals entering the factory through the server 104. Both the positioning base station 102 and the base station entering the factory can read the latest dynamic list of terminals entering the factory and the terminal information matching master table from the server 104. When the base station entering the factory 101 and the positioning base station 102 need to interact, they can also interact through the server 104. That is, the server 104 can act as a communication intermediary to ensure the stability and reliability of communication between the base station entering the factory 101 and the positioning base station 102.

[0060] For example, as shown in Figure 2, an entry-level base station is set up at the factory gate. The base station retrieves the latest terminal information matching table from the server and then uses this table to poll terminals that are not yet online. When a factory worker enters the gate, the base station detects that worker's location terminal and sends a call packet. The location terminal replies with a response packet, informing the base station that it has entered the factory and is online. After receiving the response packet, the base station updates the status of that location terminal in the terminal information matching table. Once the location base station determines that the terminal information matching table has been updated, it also updates the dynamic list of entry-level terminals through the server, adding the location terminal's information to the dynamic list. Subsequently, all other location base stations can use the dynamic list to poll for that location terminal and send signaling packets. The location terminal will then reply with its own location data packet (a type of data packet from the aforementioned communication data table) from one of the location base stations. After receiving the response from the positioning terminal, the positioning base station updates the corresponding positioning base station information to indicate that the positioning terminal is online with that positioning base station. The updated dynamic list of terminals entering the factory will be notified to other positioning base stations via the server. Other positioning base stations will no longer send signaling packets to this positioning terminal. Only the positioning base stations where the positioning terminal is online need to communicate and interact with the positioning terminal according to the polling cycle.

[0061] In the terminal online system proposed in this application embodiment, the factory-entry base station 101 continuously updates and determines the currently online terminals 103 by polling the latest terminal information matching table of terminals that have not yet entered the factory. This allows the positioning base station 102 to update the dynamic list of factory-entry terminals according to the updated terminal information matching table and communicate with the terminals in the dynamic list of factory-entry terminals according to the polling cycle. The dynamic list of factory-entry terminals includes: the identifiers of all currently online terminals and the positioning base station information corresponding to each online terminal. Therefore, the positioning base station only communicates with the online terminals to enable them to access and use the mobile communication network, without needing to periodically communicate with terminals outside the factory area (i.e., terminals that have not entered the factory), reducing the polling cycle time, improving the efficiency of terminal online, and ensuring the continuity of data received by the positioning base station from the terminals.

[0062] Optionally, in a specific embodiment of this application, the hardware of the in-plant base station may include a main control module, a communication module, and an Ethernet module. The main control module is connected to both the communication module and the Ethernet module. The main control module is used to control the in-plant base station's reception and transmission of data. Specific logic control can be found in the data transmission and reception process executed by the in-plant base station during the terminal's online process in the aforementioned terminal online system. The communication module is used to receive and transmit data under the control of the main control module. Specific data reception and transmission can be found in the data reception and transmission process of the in-plant base station in the aforementioned terminal online system. The Ethernet module can communicate with the main control module to transmit and receive data via Ethernet (a type of factory network mentioned above). Specific execution logic can be found in the relevant communication process via the factory network executed by the in-plant base station during the terminal's online process in the aforementioned terminal online system. Optionally, the in-plant base station may also include hardware such as a power module and a host computer.

[0063] For example, as shown in Figure 3, the main control module of the in-plant base station may include a microcontroller unit (MCU) as shown in Figure 3, and the communication module may include multiple communication chips. For example, it may be four communication modules as shown in Figure 3, which may be Sub-1GHz communication chips. Each communication module supports the transmission and reception of one call channel. Each communication chip communicates with the MCU on the board and performs chip selection, etc., via SPI.

[0064] Optionally, the in-plant base station may also include a radio frequency (RF) module, which uses impedance matching to ensure signal integrity. This RF module can be connected to an antenna via an external SMA antenna port. The in-plant base station may also include a power supply module (e.g., the AC / DC shown in Figure 3). The power supply module receives 220V AC power through a power port, which is then stepped down to 3.3V DC by internal protection devices such as common-mode inductors and filters before being supplied to the power supply module. This DC power is then supplied to the PCB power layer, from where it connects to various MCUs, communication chips, external watchdogs, etc. The Ethernet module communicates with the MCU via a protocol, such as a Reduced Media Independent Interface (RMII). The in-plant base station may also use a Real-Time Clock (RTC) for timing. The connections between the various hardware components within the in-plant base station are shown in Figure 3 and will not be elaborated further.

[0065] Optionally, in one specific embodiment of this application, the hardware of the positioning base station may also include a main control module, a communication module, and an Ethernet module. The hardware structure and functions of the positioning base station can be referred to the foregoing description of the in-plant base station, and will not be repeated here.

[0066] Optionally, in one specific embodiment of this application, the terminal hardware may also include a main control module and a communication module. The hardware structure and functions of the terminal's main control module and communication module can be referred to the foregoing description of the in-plant base station, and will not be repeated here.

[0067] Based on the terminal online system proposed in the above embodiments of this application, this application also discloses a terminal online method, which can be applied to the above system. To make the terminal online method proposed in this application clearer, it will be described in two stages: the factory entry online stage and the mobile communication stage. The factory entry online stage is used to confirm whether the terminal has entered the factory (i.e., whether it has entered the range covered by the signal of the factory base station), and the mobile communication stage is used to provide mobile communication network services to the terminal through the positioning base station.

[0068] (1) Factory entry and online stage.

[0069] Referring to Figure 4, this application embodiment proposes a terminal online method. The process described in this method mainly involves the terminal's onboarding stage at the factory. The terminal online method shown in Figure 4 is implemented through interaction between the onboarding base station and the terminal. The onboarding base station and at least one positioning base station are both connected to the factory network. The terminal online method specifically includes the following steps:

[0070] S401. The base station entering the factory obtains the latest terminal information matching table, which includes the identifier, status and call channel information of all terminals in the factory area. The status of the terminal is used to indicate whether the terminal has entered the factory and is online.

[0071] Before polling terminals, the base station entering the factory needs to obtain the latest terminal information matching table to read the status of all terminals in the factory area. "Entering the factory and going online" can be understood as the terminal and the base station having already communicated and interacted, meaning the terminal accesses the network through the base station.

[0072] Optionally, step S401 can be triggered according to the polling cycle, that is, when each polling cycle arrives, the base station will trigger the acquisition of the latest terminal information matching table. Optionally, step S401 can also be triggered when the terminal information matching table is updated, thereby enabling the base station to use the latest terminal information matching table when performing step S402. It should be noted that the timing of triggering the acquisition of the latest terminal information matching table only needs to be before the base station polls the terminals.

[0073] Optionally, the terminal information matching master table may also include groupings of all terminals in the factory area. Call channel information may include the call communication frequency band of the call channel corresponding to each group. Terminals can be grouped according to call channels; that is, terminals using the same call channel are grouped into the same group.

[0074] Optionally, the terminal information matching table can be stored in a server connected to the factory network or pre-stored in the base stations entering the factory. It is understood that the terminal information matching table only needs to be stored in the devices connected to the factory network, so that all base stations connected to the factory network can read the latest terminal information matching table through the factory network.

[0075] For example, if the terminal information matching master table can be stored on a server connected to the factory network, then the process of executing step S401 can be as follows: Factory staff pre-collect the identifiers of all terminals belonging to all staff members in the factory, and group the collected terminals according to multiple call channels. Then, based on the identifiers, statuses, call channel information, and terminal groupings of all terminals in the factory, an initial terminal information matching master table is constructed and stored on the server. Subsequently, after the base station enters the factory and powers on, it retrieves the terminal information matching master table from the server. In the initial terminal information matching master table, all terminals are in the "not yet online" state until the base station repeatedly executes the process shown in Figure 4 according to a polling cycle, continuously updating the status of each terminal in the terminal information matching master table.

[0076] For example, the process from power-on to triggering the execution of the flow shown in Figure 4 for the base station entering the factory can be as follows: After the base station enters the factory, the software delays for 6 seconds to wait for the auto-negotiation of the Ethernet port portion of the receiver module and the completion of the initialization of each module. This is to prevent the signaling machine and receiver from failing to enter the network when the base station receives the terminal's network access request (i.e., the aforementioned response packet) after power-on, as the signaling machine and receiver are still in the initialization state. The base station enters the factory and reads the base station information data from the Flash memory chip. The base station information data includes the base station ID number, base station channel number (i.e., call channel number), and terminal information matching table (obtained from the server after power-on). These data are then initialized and assigned to relevant variables to ensure that the configuration information still exists after power failure. The initialization of variables and peripherals can include communication chips, Universal Asynchronous Receiver / Transmitter (UART), Serial Peripheral Interface (SPI), etc.

[0077] S402. The base station entering the factory polls for the latest terminal information according to the polling cycle, and matches the terminals that have not yet entered the factory and gone online in the master table.

[0078] The base station entering the factory has a preset polling period. The length of this polling period can be set according to the number of terminals in the terminal information matching master table. The setting method is not limited in this embodiment. The latest terminal information matching master table records all terminals in the factory area in the polling order. The terminal information matching master table also records the status of each terminal. Therefore, the base station entering the factory can know which terminals have entered the factory and are online, and which terminals have not entered the factory and are online, based on the latest terminal information matching master table.

[0079] For terminals already installed and online, the base station does not poll them; these terminals have entered the mobile communication phase, where the positioning base station is responsible for polling (see the description of the mobile communication phase below). For terminals not yet installed and online, the base station needs to continuously poll them until they are installed and online.

[0080] As described above, the purpose of the base station continuously polling the terminals that have not yet entered the factory is to ensure that only terminals that have entered the factory and are online can receive mobile communication services in the factory area after the terminal enters the factory and is online. That is, only terminals that have entered the factory and are online can trigger the entry into the next mobile communication stage, thereby shortening the polling cycle of the subsequent mobile communication stages.

[0081] Specifically, the execution process of step S402 can be as follows: the base station entering the factory reads the latest terminal information matching table, pre-filters terminals in the latest terminal information matching table whose status is "not yet online," and then polls according to the order of the filtered terminals in the latest terminal information matching table. Alternatively, the execution process of step S402 can be as follows: the base station entering the factory reads the latest terminal information matching table, reads the status of each terminal in the order of terminal arrangement, and if a terminal with the status "not yet online" is read, then step S403 is triggered; if a terminal with the status "already online" is read, then step S403 is not executed.

[0082] Optionally, if the terminal information matching master table also includes groups of all terminals in the factory area, and all terminal groups are divided according to the call channel, then the process of executing step S402 is as follows: according to the polling cycle, simultaneously poll the terminals that have not entered the factory and gone online within each group of the terminal information matching master table. For example, if the terminal information matching master table divides all terminals in the factory area into 4 groups, then the base station entering the factory will simultaneously poll the terminals that have not entered the factory and gone online in all 4 groups.

[0083] Optionally, before executing step S402, the base station can enter a waiting mode after initialization until the polling cycle arrives, and then execute steps S402 and S403 periodically according to the communication protocol.

[0084] S403. The incoming base station sends a call packet to the polled terminal, wherein the call packet includes: the terminal's identifier.

[0085] The call packet is used to call the polled terminal to determine whether the polled terminal is online. The call packet includes the identifier of the polled terminal, such as the terminal ID, so that the polled terminal can identify that the call packet is calling the polled terminal through the identifier in the call packet.

[0086] Specifically, when a terminal that has not yet entered the factory and is online is polled in the terminal information matching table, the terminal's ID is carried in the call packet, and then the call packet is sent through the call channel corresponding to the terminal. After that, it enters a waiting state to wait for the polled terminal to reply.

[0087] For example, if the terminal information matching master table also includes groups of all terminals in the factory area, then the execution process of step S403 is as follows: send a call packet through the call channel of the polled terminal. If there are a total of N terminal groups, the base station entering the factory will simultaneously send call packets to the polled terminals in the N groups through the call channels corresponding to the N groups.

[0088] It should be noted that the call packet can be received by any terminal that switches to the call channel, but the terminal can determine whether the call packet is calling itself by the terminal identifier carried in the call packet, and then choose to only reply to the call packet that is calling itself.

[0089] S404. The base station entering the factory determines whether it has received a response packet from the polled terminal within a preset time period, wherein the response packet includes online information indicating that the terminal has been online at the base station entering the factory.

[0090] After the base station sends a call packet to the polled terminals, it can enable timing monitoring, which counts the duration for which the polled terminals have not responded to the base station. If the non-response time exceeds a preset duration, the waiting period ends, and the base station continues polling the next terminal. Specifically, if the base station determines that it has not received a response packet from the polled terminals for more than the preset duration, it proves that the currently polled terminal is not online and can therefore poll the next non-online terminal.

[0091] If the base station determines that it has received a response packet from the polled terminal within a preset time period, it means that the polled terminal has entered the factory and gone online, so step S406 is executed.

[0092] S405, The terminal replies with a response packet to the base station entering the factory.

[0093] The terminal's initial state is a waiting-to-call state. The terminal pre-determines the communication frequency band for the call channel and, while in the waiting-to-call state, switches to the call channel to receive call packets sent by the base station. After receiving the call packet from the base station via the call channel, the terminal replies with a response packet. The response packet includes online information indicating that the terminal is online with the base station. Since the response packet only needs to inform the base station that it is online, without requiring the base station to enhance mobile communication functions, the terminal's response packet does not need to carry location data, motion status data, or other data required for mobile communication. Therefore, the data volume of the terminal's response packet is very small and can be transmitted to the base station very quickly, thus reducing the base station's polling cycle. Furthermore, within a polling cycle, the base station only needs to call terminals that are not yet online. Compared to existing technologies where base stations need to call all terminals, the polling time is shorter, and the corresponding polling cycle is also shorter, allowing for faster determination of terminal online status.

[0094] After replying with a response packet, the terminal can switch to the positioning channel to wait for the signaling packet sent by the positioning base station, thus entering the mobile communication phase.

[0095] It should also be noted that if the terminal does not receive a call packet through the call channel, or if the received call packet does not carry the terminal's ID (i.e., it is not a call packet calling the terminal), the terminal will not send a response packet to the in-house base station. The response packet is only sent after the terminal receives a call packet sent to itself.

[0096] S406. The base station entering the factory will match the terminal information with the status of the terminals polled in the master table and update it to the status of "entered the factory and online".

[0097] Since the base station has received the response packets from the polled terminal within the preset time period, it can confirm that the polled terminal is online. Therefore, it can update the status of the polled terminal in the terminal information matching table to "online". When the next polling cycle arrives, the base station will not need to poll the terminal again, thus saving the power consumption of the base station.

[0098] For example, there are many ways to update the status of terminals polled in the terminal information matching table to "entered the factory and went online". For instance, the terminal's status bit in the terminal information matching table can be used to indicate whether the terminal has entered the factory and gone online. If it is determined that the terminal is online, the terminal's status bit is set to 1; if the terminal has not entered the factory and gone online, the terminal's status bit is set to 0. This application embodiment does not limit the method of updating the "entered the factory and gone online" status.

[0099] S407. The base station entering the factory broadcasts the updated terminal information matching master table to the base stations accessing the factory network through the factory network, so that the positioning base station updates the dynamic list of terminals entering the factory according to the updated terminal information matching master table, and communicates with the terminals in the dynamic list of terminals entering the factory according to the polling cycle. The dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, and the positioning base station information corresponding to each terminal that has entered the factory and is online.

[0100] The location base station information corresponding to the terminals that have been installed and put into operation is used to at least indicate whether the terminal is online on any location base station and the location base station that the terminal is currently online on. Specifically, the dynamic list of terminals installed and put into operation only includes information on terminals that have been installed and put into operation, which allows the location base station to poll only the terminals that have been installed and put into operation.

[0101] After the base station enters the factory and broadcasts the updated terminal information matching table to other base stations connected to the factory network, all the positioning base stations connected to the factory network are aware that the terminal information matching table has been updated. They can then use the updated table to identify the latest terminals that have entered the factory and are online. This ensures that the identifiers of all online terminals and the corresponding positioning base station information are added to the dynamic list of online terminals. When the positioning base station uses this dynamic list, it ensures that it only communicates periodically with the online terminals to provide mobile communication network services. Because the positioning base station only polls and communicates periodically with online terminals, compared to the existing method of base stations polling all terminals in the factory, it avoids much ineffective communication, shortens the polling cycle of the positioning base station, and improves the efficiency of providing mobile communication network services to terminals (i.e., online efficiency).

[0102] For example, if a server is connected to the factory network, one implementation of step S406 includes: the base station entering the factory sends the updated terminal information matching master table to the server in the factory network, so that the server updates the dynamic list of entering terminals according to the updated terminal information matching master table, and sends the updated dynamic list of entering terminals to all positioning base stations connected to the factory network.

[0103] It should be noted that the specific process of communication between the base station and the terminals in the dynamic list of terminals in the factory according to the polling cycle can be found in the description of the mobile communication stages below, and will not be repeated here.

[0104] Optionally, in a specific embodiment of this application, it further includes:

[0105] If a base station receives a deletion notification from a terminal, it updates the terminal's status in the terminal information matching table to "not online in the factory," and then broadcasts the updated terminal information matching table to the base stations accessing the factory network. The terminal deletion notification indicates that the terminal's information has been removed from the dynamic list of terminals entering the factory.

[0106] Specifically, after a terminal that has entered the factory and is online enters the subsequent mobile communication phase and communicates periodically with the positioning base station, there may be a situation where the terminal that has entered the factory and is online leaves the factory and is offline (also known as being offline). In this case, the positioning base station will delete the information of the offline terminal from the dynamic list of terminals entering the factory, and thus will no longer communicate with the terminal. Although the positioning base station no longer needs to communicate with the offline terminal, in order to ensure that the offline terminal can be detected by the base station entering the factory when it re-enters the factory and goes online, the positioning base station will broadcast the terminal deletion notification to the base station entering the factory through the factory network. After receiving the terminal deletion notification, the base station entering the factory knows that the terminal has left the factory and gone offline. Therefore, it updates the status of the terminal indicated in the deletion notification in the terminal information matching table to "not online in the factory", and then broadcasts the updated terminal information matching table to the base stations connected to the factory network through the factory network, informing all base stations in the factory network that the current terminal information matching table has been updated. After the base station updates the status of the terminal indicated by the deletion notification in the terminal information matching table to "not online in the factory", it will add the terminal indicated by the deletion notification to the polled terminal queue when the next polling cycle arrives. Then, when the terminal goes online again, it will be detected by the base station.

[0107] In the terminal online method provided in this embodiment of the invention, the base station entering the factory obtains the latest terminal information matching table. This table includes the identifiers, statuses, and call channel information of all terminals in the factory area. Then, according to a polling cycle, it polls the latest terminal information matching table for terminals not yet online, sending call packets to the polled terminals. If a response packet is received from the polled terminal within a preset time period, the status of the polled terminal in the terminal information matching table is updated to "online." Because the base station in this embodiment continuously updates and determines the currently online terminals by polling the latest terminal information matching table for terminals not yet online, the positioning base station can update the dynamic list of terminals entering the factory based on the updated terminal information matching table and communicate with the terminals in the dynamic list according to the polling cycle. The dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, and the location base station information corresponding to each terminal that has entered the factory and is online. Therefore, the location base station only communicates with the terminals that have entered the factory and are online, so as to enable the terminals that have entered the factory and are online to access and use the mobile communication network, without needing to communicate periodically with terminals that are not in the factory area (i.e., terminals that have not entered the factory and are online), which reduces the polling cycle time, improves the efficiency of terminal online, and makes the data obtained by the location base station from the terminal response continuous.

[0108] (2) Mobile communication stage.

[0109] Referring to Figure 5, this application embodiment proposes another method for terminal online. The process described in this method mainly involves mobile communication between the terminal and the positioning base station (i.e., the process by which the positioning base station provides mobile communication network services to the terminal). The terminal online method shown in Figure 5 is implemented through interaction between a first positioning base station and the terminal. The first positioning base station can be any positioning base station accessing the factory network. The factory network accesses the factory entrance base station and at least one positioning base station. The terminal online method specifically includes the following steps:

[0110] S501. The first positioning base station obtains the latest dynamic list of terminals entering the factory, wherein the dynamic list of terminals entering the factory includes: the identifiers of all terminals that have entered the factory and are online, the positioning channel information, and the positioning base station information corresponding to each terminal that has entered the factory and is online. The positioning base station information corresponding to each terminal that has entered the factory and is online is used to at least indicate whether the terminal is online on any positioning base station and the positioning base station that the terminal is currently online on.

[0111] As can be seen from the foregoing description of the terminal online system of this application, there are multiple positioning base stations in the terminal online system. After the terminal enters the mobile communication stage, it can periodically communicate and interact with one of the positioning base stations (i.e., select one of the positioning base stations to go online). The dynamic list of terminals entering the factory records the identifiers of all terminals that have entered the factory and gone online, as well as the positioning base station information corresponding to each terminal that has entered the factory and gone online, so that all positioning base stations can know whether these terminals that have entered the factory and gone online have gone online on any positioning base station, and which positioning base station the terminal is currently going online to.

[0112] The dynamic list of terminals entering the factory can be stored on a server connected to the factory network. When any positioning base station connected to the factory network needs to update the dynamic list of terminals entering the factory, or when the aforementioned terminal information matching master table is updated, it can update the dynamic list of terminals entering the factory stored on the server by communicating with the server. Other positioning base stations obtain the latest dynamic list of terminals entering the factory by retrieving it from the server.

[0113] The specific execution process and method of updating the dynamic list of terminals entering the factory by the first positioning base station according to the updated terminal information matching master table can be referred to the relevant description in step S407 of Figure 4 above.

[0114] For example, the process from powering on to triggering the execution of the flow shown in Figure 5 for the first positioning base station can be as follows: after the positioning base station is powered on, the dynamic list of terminals entering the factory is imported from the server into the positioning base station through the factory network.

[0115] It should be noted that the execution process and principle of the first positioning base station obtaining the latest dynamic list of terminals entering the factory are similar to the process of the base station obtaining the latest terminal information matching table in step S401 mentioned above, which can be referred to, and will not be repeated here.

[0116] Optionally, the positioning base station information corresponding to the terminal that has been put into operation may also include the terminal's departure information from the positioning base station. The departure information of the terminal indicates when the terminal changes from online to offline at a positioning base station. It should be noted that a terminal leaving a positioning base station (i.e., not interacting with a particular positioning base station) does not necessarily mean that the terminal has been taken offline. However, if the terminal does not respond to other positioning base stations for a preset period of time, it is considered that the terminal has been taken offline.

[0117] The location channel information may specifically include the communication frequency band of the location channel. Optionally, the dynamic list of terminals entering the factory may also include groups of terminals that have already entered the factory and are online. That is, the location channel information may include the communication frequency band of the location channel corresponding to each group.

[0118] S502. The first positioning base station polls the dynamic list of terminals entering the factory according to the polling cycle. The first type of terminal includes terminals that are currently online as the first positioning base station, as well as terminals that are not online on any positioning base station.

[0119] The first positioning base station has a preset polling period, which may differ from the polling period of the aforementioned in-plant base station. The size of the polling period of the first positioning base station can be set according to the number of terminals in the in-plant terminal dynamic list. Since the aforementioned in-plant terminal dynamic list only includes terminals that have already entered the factory and are online, the first positioning base station does not need to poll all terminals in the factory area. Compared with the base stations of the prior art, the polling period of the first positioning base station in this application embodiment is shorter, thereby achieving higher terminal online efficiency.

[0120] It should be noted that the first positioning base station does not poll all terminals in the dynamic list of incoming terminals, but rather selects a specific type of terminal corresponding to that first positioning base station for polling. As described in the aforementioned system description of the terminal deployment, there may be multiple positioning base stations. Each of these base stations can be responsible for polling a subset of terminals in the dynamic list of incoming terminals, thereby further improving deployment efficiency, reducing the polling cycle of each base station, enabling terminals to quickly obtain mobile communication network services, and ensuring the continuity of data in the communication data table sent by the terminals. It should also be noted that if there is only one positioning terminal in the terminal deployment system, then that positioning terminal is responsible for polling all terminals in the dynamic list of incoming terminals.

[0121] Specifically, in the polling list of the first positioning base station, only terminals currently online as the first positioning base station and terminals not online at any positioning base station (collectively referred to as Class I terminals) need to be polled. Terminals currently online as the first positioning base station refer to terminals that have already interacted with the first positioning base station. These terminals have already selected to connect to the first positioning base station, therefore, they do not need to be polled by other positioning base stations in the terminal's online system (i.e., other positioning base stations connected to the factory network). Subsequent polling interactions only require the first positioning base station.

[0122] Terminals that are not online at any positioning base station fall into two categories: One is terminals that have just entered the factory and entered the network. These terminals, before the polling cycle of the positioning base station arrives, have only been online at the base station entering the factory, not at any positioning base station. Therefore, these terminals, which have not been online at any positioning base station, will be polled by all positioning base stations in the terminal's online system (i.e., connected to the factory network), triggering the execution of subsequent S503. The other category is terminals that have just left one of the positioning base stations in the terminal's online system. For example, the information about a terminal leaving a positioning base station can be marked in the dynamic list of terminals entering the factory, or its information in the dynamic list can be directly changed from "the terminal is online at a positioning base station" to "not online at any positioning base station." Terminals that have just left one of the positioning base stations in the terminal's online system can be re-polled by all positioning base stations, or by positioning base stations other than the one they left, before reconnecting to a positioning base station, to ensure that the terminal can re-enter the network on positioning base stations other than the one it left.

[0123] It should be noted that all positioning base stations connected to the factory network execute the process shown in Figure 5. However, different positioning base stations correspond to different types of terminals, collectively enabling terminals already installed in the factory to receive mobile communication services within the factory. Furthermore, because different positioning base stations are responsible for different types of terminals, even if the number of terminals already installed in the factory is large, the number of terminals of a particular type that each positioning base station is responsible for will be small, thus improving the efficiency of deployment.

[0124] Specifically, the execution process of step S502 can be as follows: The first positioning base station reads the latest dynamic list of incoming terminals, and can pre-filter out terminals in the latest dynamic list that match the first positioning base station's category of terminals. Then, it polls according to the order of the filtered terminals in the latest dynamic list. Alternatively, the execution process of step S502 can be as follows: The incoming base station reads the latest dynamic list of incoming terminals, and sequentially reads the positioning base station information corresponding to each terminal according to the terminal's order. If the positioning base station information determines that the terminal belongs to the first positioning base station's category of terminals, then step S503 is triggered. If a terminal that does not belong to the first category of terminals is read, then step S503 is not executed.

[0125] S503, The first positioning base station sends a signaling packet to the polled terminal, wherein the signaling packet includes: the terminal's identifier.

[0126] The signaling packet is used to call the terminal polled. In this embodiment, the function of the signaling packet is similar to that of the call packet mentioned in step S403 above, and the execution process and principle of step S503 are also similar to those of step S403, which can be referred to, and will not be repeated here.

[0127] The formats of signaling packets and call packets can be different or the same.

[0128] S504. The first positioning base station determines whether it has received a communication data packet from the polled terminal within a preset time period.

[0129] After the first positioning base station sends signaling packets to the polled terminals, it can start timing monitoring, that is, time the duration for which the polled terminals of a certain type have not responded to the first positioning base station. This allows the waiting period to end after a preset time has elapsed, and the next terminal (i.e., the next type of terminal) to be polled. In other words, if the first positioning base station determines that it has not received a communication data packet from any of the polled terminals for more than the preset time, it proves that the currently polled terminal is not online with that first positioning base station, and therefore it can poll the next terminal that has not yet entered the factory and gone online.

[0130] If the first positioning base station determines that it has received a communication data packet from a polled terminal within a preset time period, and the positioning base station information corresponding to the polled terminal indicates that the terminal is not online on any positioning base station, then it means that the polled terminal is currently online on the first positioning base station. Therefore, it needs to update the dynamic list of incoming terminals in step S506, and inform other positioning base stations through the updated dynamic list of incoming terminals that the terminal is already online on the first positioning base station, and other positioning base stations do not need to poll the terminal anymore. If the first positioning base station determines that it has received a communication data packet from a polled terminal within a preset time period, but the positioning base station information corresponding to the polled terminal indicates that the terminal is already online on the first positioning base station, then the first positioning base station continues to poll the next terminal, and does not need to update the dynamic list of incoming terminals.

[0131] Optionally, referring to Figure 6, in another embodiment, if the first positioning base station determines that it has not received a communication data packet from the polled terminal for a preset time period, it may further include:

[0132] S601. If the location base station information corresponding to the polled terminal is used to indicate that the terminal is online at the first location base station, the first location base station determines whether the response timeout duration of the polled terminal exceeds the timeout threshold, wherein the response timeout duration of the terminal is the duration during which the terminal does not reply to the communication data packet.

[0133] If the currently polled terminal is one that is online at the first positioning base station, then if the first positioning base station has not received a communication data packet from the polled terminal for a preset period of time, it is necessary to further determine whether the polled terminal has gone offline at the first positioning base station.

[0134] Specifically, if the response timeout duration of the polled terminal exceeds the timeout threshold, it means that the terminal has been offline at the first positioning base station. Therefore, step S602 is executed to update the dynamic list of terminals entering the factory. If the response timeout duration of the polled terminal does not exceed the timeout threshold, it means that it cannot be determined at present that the terminal has been offline at the first positioning base station. Therefore, the next terminal is polled.

[0135] The response timeout duration of the polled terminal can be the cumulative duration of the terminal's failure to reply to communication data packets across multiple consecutive polling cycles. For example, the timeout threshold can be set to a value of 3 polling cycles. That is, if the response timeout duration of the polled terminal exceeds 3 polling cycles without replying to the first positioning base station, it indicates that the terminal has gone offline.

[0136] S602. The first positioning base station updates the positioning base station information corresponding to the terminal that it polls to the information used to indicate that the terminal is not online at the first positioning base station.

[0137] For example, step S602 can be performed by marking the location base station information corresponding to the polled terminal in the dynamic list of terminals entering the factory as information that the terminal has left the first location base station.

[0138] S603, the first positioning base station broadcasts the updated dynamic list of terminals entering the factory to the base stations connected to the factory network through the factory network.

[0139] For example, the first positioning base station can send the updated dynamic list of terminals entering the factory, or the update information of the dynamic list of terminals entering the factory, to the server through the factory network, so that the server can obtain the updated dynamic list of terminals entering the factory. Then, the server notifies all base stations connected to the factory network of the updated dynamic list of terminals entering the factory.

[0140] For example, the first positioning base station may directly propagate the updated dynamic list of terminals entering the factory to other base stations in the factory network.

[0141] Once the base station in the factory network receives the updated dynamic list of terminals entering the factory, it will know that the terminal is not currently online on any positioning base station. Therefore, all positioning base stations in the factory network except the first positioning base station will execute the process shown in Figure 5 and send signaling packets to the terminal.

[0142] Optionally, referring to FIG6, in a specific embodiment of this application, after performing step S603, the method further includes:

[0143] S604. If each positioning base station other than the first positioning base station determines that the response timeout duration of the polled terminal exceeds the timeout threshold, then the information of the polled terminal in the dynamic list of inbound terminals is deleted, and a deletion notification of the polled terminal is sent to the inbound base station, wherein the deletion notification of the terminal is used to indicate that the information of the terminal in the dynamic list of inbound terminals has been deleted.

[0144] After the first positioning base station updates the information of the corresponding positioning base station for the polled terminal to indicate that the terminal is not online at the first positioning base station, other positioning terminals will treat it as a single type of terminal and poll it according to the polling rules of the dynamic list of inbound terminals used by other positioning terminals. However, if every positioning base station other than the first positioning base station determines that the response timeout of the polled terminal exceeds the timeout threshold, it means that the terminal cannot go online at any positioning base station. Therefore, it can be determined that the terminal has been removed from the factory and taken offline. The information of the polled terminal can then be deleted from the broadcast of the dynamic list of inbound terminals, so that all subsequent positioning base stations will no longer poll it. A deletion notification for the polled terminal is sent to the inbound base station, triggering the inbound base station to add the terminal to the polling queue.

[0145] This method further reduces unnecessary communication losses. For base stations that have left the factory area, the first positioning base station no longer spends polling time to call them with signaling packets, which further improves the offline and online efficiency of the terminal.

[0146] For example, one implementation of step S604 includes: each positioning base station other than the first positioning base station determines that the response timeout duration of the polled terminal exceeds a timeout threshold, and notifies the server to update the dynamic list of incoming terminals to indicate that the polled terminal is not online at that positioning base station. After the server detects that all positioning base stations have notified the polled terminal that it is not online at that positioning base station, it removes the relevant information of the terminal from the dynamic list of incoming terminals and sends a deletion notification of the polled terminal to the incoming base station.

[0147] S605. Broadcast the updated dynamic list of terminals entering the factory to the base stations connected to the factory network via the factory network.

[0148] After executing step S605, all base stations connected to the factory network know that the polled terminal has gone offline and is no longer in the dynamic list of terminals entering the factory. Step S605 can be either broadcast from the first positioning base station to all base stations via the factory network through a server, or it can be broadcast directly from the first positioning base station to all base stations via the factory network.

[0149] Optionally, referring to Figure 7, in a specific embodiment of this application, after step S504 determines that a communication data packet reply from a polled terminal has been received within a preset time period, it further includes:

[0150] S701. If the communication data packet replied by the polled terminal includes pre-offline information, the first positioning base station will update the positioning base station information corresponding to the polled terminal to information indicating that the terminal is not online at the first positioning base station, wherein the pre-offline information is used to indicate that the terminal will go offline at the first positioning base station.

[0151] After receiving the signaling packet sent by the first positioning base station, the terminal detects that the signal of the positioning channel between the terminal and the first positioning base station is weak. For example, if the terminal detects that the duration of receiving the signaling packet in the current polling cycle exceeds the first threshold, it will carry the pre-offline information in the communication data packet and return it to the first positioning base station. The pre-offline information informs the first positioning base station that the terminal will go offline at the first positioning base station. After receiving the information, the first positioning base station will directly update the positioning base station information corresponding to the terminal in the dynamic list of terminals entering the factory to the information indicating that the terminal has not gone online at the first positioning base station.

[0152] S702, the first positioning base station broadcasts the updated dynamic list of terminals entering the factory to the base stations connected to the factory network through the factory network.

[0153] The execution process and principle of step S702 can be referred to the aforementioned step S603, and will not be repeated here.

[0154] Optionally, in a specific embodiment of this application, after performing step S702, the aforementioned steps S604 and S605 may also be included.

[0155] S505, The terminal replies with a communication data packet to the first positioning base station, wherein the communication data packet includes data required during mobile communication.

[0156] After responding with a response packet during the aforementioned factory setup phase, the terminal re-enters the receive waiting state, switching to the positioning channel to wait for signaling packets. As described in the previous system setup description, the factory network is connected to multiple positioning base stations, each with a different positioning channel. The terminal selects one of the positioning channels and waits for the corresponding positioning base station to send a signaling packet.

[0157] For example, after receiving signaling packets using all positioning channels, the terminal may select the positioning channel with the shortest signaling packet reception duration (i.e., the strongest signal) as the channel to wait for receiving more signaling packets. In this embodiment, the terminal selects the positioning channel corresponding to the first positioning base station to wait. After receiving the signaling packet sent to the terminal by the first positioning base station, the terminal replies with a communication data packet to the first positioning base station.

[0158] Optionally, in one specific embodiment of this application, the signaling packet sent by the first positioning base station may also carry the time for the next signaling packet transmission. This allows the terminal to wait to receive the signaling packet on the positioning channel corresponding to the first positioning base station as the time for the next signaling packet transmission approaches, instead of waiting indefinitely for the first positioning base station to send a signaling packet.

[0159] Optionally, in one specific embodiment of this application, one implementation of step S505 includes:

[0160] If the terminal detects that the signal of the positioning channel corresponding to the first positioning base station is lower than the signal threshold, it replies to the first positioning base station with a communication data packet carrying pre-offline information. The method for detecting that the signal of the positioning channel corresponding to the first positioning base station is lower than the signal threshold can be that the duration of the signal received through the positioning channel of the first positioning base station exceeds a first threshold, thus determining that the signal of the positioning channel corresponding to the first positioning base station is lower than the signal threshold.

[0161] By sending pre-offline information, the terminal can quickly go offline at the first positioning base station, improving offline efficiency.

[0162] S506. If the polled location base station information corresponding to the terminal indicates that the terminal is not online at any location base station, the polled location base station information corresponding to the terminal is updated to information indicating that the terminal is online at the first location base station.

[0163] Since the first positioning base station has determined in step S504 that it has received the signaling packet from the terminal within the preset time period, and since the positioning base station information corresponding to the polled terminal in the inbound terminal list is used to indicate that the terminal is not online on any positioning base station, the positioning base station information corresponding to the polled terminal in the inbound terminal list can be updated to information indicating that the terminal is online on the first positioning base station.

[0164] S507, The first positioning base station broadcasts the updated dynamic list of terminals entering the factory to the base stations connected to the factory network through the factory network.

[0165] The execution process and principle of step S507 can be referred to the aforementioned step S603, and will not be repeated here.

[0166] After the first positioning base station broadcasts the updated dynamic list of terminals entering the factory to the base stations connected to the factory network, other positioning base stations will know that the terminal has been online at the first positioning base station. As a result, when the other positioning base stations reach their polling cycle, they will no longer poll the terminal, and only the first positioning base station will poll the terminal thereafter.

[0167] The terminal online method proposed in this application summarizes the following: Since the dynamic list of terminals entering the factory includes the identifiers of all terminals that have entered the factory and are online, as well as the location base station information corresponding to each terminal that has entered the factory and is online, the first location base station polls one type of terminal in the dynamic list of terminals entering the factory according to the polling cycle. It only communicates with one type of terminal among the terminals that have entered the factory and are online, so as to enable one type of terminal to access and use the mobile communication network. It is not necessary to periodically communicate with terminals that are not in the factory area (i.e., terminals that have not entered the factory and are online) and terminals that are not under the responsibility of the first location base station. This reduces the polling cycle of the first location base station, improves the efficiency of terminal online, and makes the communication data packets obtained by the first location base station from the terminal continuous.

[0168] Based on the terminal online method disclosed in the above embodiments of this application, this application also discloses a terminal online device, which is applied to the inbound base station in the factory network. The factory network is connected to the inbound base station and at least one positioning base station. The terminal online device includes: a first acquisition unit, a first polling unit, a first calling unit, a first update unit, and a first broadcast unit.

[0169] The first acquisition unit is used to acquire the latest terminal information matching master table. This master table includes the identifier, status, and call channel information of all terminals in the factory area. The terminal status indicates whether the terminal has entered the factory and is online.

[0170] The first polling unit is used to poll the latest terminal information according to the polling cycle and match the terminals that have not yet entered the factory and gone online in the master table.

[0171] The first calling unit is used to send a calling packet to the polled terminal. The calling packet includes the terminal's identifier.

[0172] The first update unit is used to update the terminal information to "online" status by matching the terminal information against the status of the polled terminal in the master table if a response packet is received from a polled terminal within a preset time period. The response packet includes online information indicating that the terminal has been online at the base station.

[0173] The first broadcast unit broadcasts the updated terminal information matching table to the base stations connected to the plant network via the plant network. This allows the positioning base stations to update the dynamic list of terminals entering the plant based on the updated terminal information matching table and communicate with the terminals in the dynamic list of terminals entering the plant according to a polling cycle. The dynamic list of terminals entering the plant includes: the identifiers of all currently online terminals and the positioning base station information corresponding to each online terminal. The positioning base station information corresponding to each online terminal is used to at least indicate whether the terminal is online on any positioning base station and the positioning base station the terminal is currently online on.

[0174] Optionally, in a specific embodiment of this application, the terminal information matching master table further includes: grouping of all terminals in the factory area. The grouping of all terminals is based on the call channel. The first polling unit includes:

[0175] The first polling subunit is used to simultaneously poll terminal information according to the polling cycle and match the terminals that have not yet entered the factory and gone online within each group in the master table.

[0176] The first calling unit includes:

[0177] The first call subunit is used to send a call packet through the call channel of the polled terminal.

[0178] Optionally, in a specific embodiment of this application, it further includes:

[0179] The second polling unit is used to poll the next terminal that has not yet entered the factory and gone online if no response packet is received from the polled terminal within a preset time period.

[0180] Optionally, in a specific embodiment of this application, it further includes:

[0181] The second update unit, upon receiving a deletion notification from a terminal, updates the status of the terminal indicated in the deletion notification in the terminal information matching master table to "not yet online." The terminal deletion notification indicates that the terminal's information has been removed from the dynamic list of terminals entering the factory.

[0182] The second broadcast unit is used to broadcast the updated terminal information matching table to the base stations accessing the plant network via the plant network.

[0183] It should be noted that the execution process and principle of each unit and subunit in the terminal online device proposed in this application embodiment can be found in the above-mentioned terminal online method, and will not be repeated here.

[0184] Based on the terminal online method disclosed in the above embodiments of this application, this application also discloses another terminal online device, applied to a first positioning base station in a factory network. The factory network is connected to at least one positioning base station and an entry base station, and the first positioning base station can be any positioning base station connected to the factory network. The terminal online device includes:

[0185] The second acquisition unit is used to acquire the latest dynamic list of terminals entering the factory. This dynamic list includes: the identifiers of all terminals currently online and in operation, their location channel information, and the location base station information corresponding to each terminal. The location base station information corresponding to each terminal is used to at least indicate whether the terminal is online on any location base station and the location base station the terminal is currently online on.

[0186] The third polling unit is used to poll a certain type of terminal in the dynamic list of terminals entering the factory according to the polling cycle. The type of terminal includes terminals that are currently online with the first positioning base station, and terminals that are not online with any positioning base station.

[0187] The second calling unit is used to send signaling packets to the polled terminals. The signaling packets include the terminal's identifier.

[0188] The third update unit is used to update the location base station information corresponding to the polled terminal to information indicating that the terminal is online at the first location base station if it receives a communication data packet from the polled terminal within a preset time period, and the location base station information corresponding to the polled terminal indicates that the terminal is not online at any location base station. The communication data packet includes data used during mobile communication.

[0189] The third broadcast unit is used to broadcast the updated dynamic list of terminals entering the plant to the base stations connected to the plant network via the plant network.

[0190] Optionally, in a specific embodiment of this application, it further includes:

[0191] The fourth update unit is used to update the location base station information corresponding to the polled terminal to information indicating that the terminal is not online at the first location base station if the communication data packet replied by the polled terminal includes pre-offline information. The pre-offline information indicates that the terminal will go offline at the first location base station.

[0192] The fourth broadcast unit is used to broadcast the updated dynamic list of terminals entering the plant to the base stations connected to the plant network via the plant network.

[0193] Optionally, in a specific embodiment of this application, it further includes:

[0194] The first judgment unit is used to determine whether the response timeout duration of the polled terminal exceeds a timeout threshold if no communication data packet is received from the polled terminal within a preset time period. The response timeout duration of the terminal is the duration during which the terminal does not reply with a communication data packet.

[0195] The fifth update unit is used to update the location base station information corresponding to the polled terminal to information indicating that the terminal is not online at the first location base station if it is determined that the response timeout duration of the polled terminal exceeds the timeout threshold and the location base station information corresponding to the polled terminal is used to indicate that the terminal is online at the first location base station.

[0196] The fifth broadcast unit is used to broadcast the updated dynamic list of terminals entering the plant to the base stations connected to the plant network via the plant network.

[0197] Optionally, in a specific embodiment of this application, it further includes:

[0198] The sixth update unit is configured to, if each positioning base station other than the first positioning base station determines that the response timeout duration of the polled terminal exceeds the timeout threshold, delete the information of the polled terminal from the dynamic list of inbound terminals broadcast, and send a deletion notification of the polled terminal to the inbound base station. The terminal deletion notification indicates that the terminal's information in the dynamic list of inbound terminals has been deleted.

[0199] The sixth broadcast unit is used to broadcast the updated dynamic list of terminals entering the plant to the base stations connected to the plant network via the plant network.

[0200] It should be noted that the execution process and principle of each unit and subunit in the terminal online device proposed in this application embodiment can be found in the above-mentioned terminal online method, and will not be repeated here.

[0201] This application also discloses a computer-readable medium storing a computer program thereon, wherein the program, when executed by a processor, implements the terminal online method as described in any of the above-described embodiments of this application.

[0202] This application also discloses a terminal online device, comprising: one or more processors; a storage device storing one or more programs thereon; when the one or more programs are executed by the one or more processors, the one or more processors implement the terminal online method as described in any of the above applications.

[0203] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0204] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0205] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for bringing a terminal online, characterized in that, An inbound base station used in a factory network, wherein the factory network is connected to the inbound base station and at least one positioning base station; The terminal online method includes: obtaining the latest terminal information matching table; wherein the terminal information matching table includes: the identifier, status, and call channel information of all terminals in the factory area; the status of the terminal is used to indicate whether the terminal has entered the factory and gone online; polling the terminals in the latest terminal information matching table that have not entered the factory and gone online according to the polling cycle; sending a call packet to the polled terminal; wherein the call packet includes: the identifier of the terminal; if a response packet is received from the polled terminal within a preset time period, the status of the polled terminal in the terminal information matching table is updated to the status of "entered the factory and gone online"; wherein the response packet includes information about the terminal. The system displays the online information of terminals already connected to the base station at the factory entrance; it broadcasts the updated terminal information matching table to the positioning base stations connected to the factory network through the factory network, so that the positioning base stations update the dynamic list of terminals connected to the factory entrance according to the updated terminal information matching table and communicate with the terminals in the dynamic list of terminals connected to the factory entrance according to a polling cycle; wherein, the dynamic list of terminals connected to the factory entrance includes: the identifiers of all terminals currently connected to the factory entrance and online, and the positioning base station information corresponding to each terminal connected to the factory entrance and online; the positioning base station information corresponding to the terminals connected to the factory entrance and online is used to at least indicate whether the terminal is connected to any positioning base station, and the positioning base station to which the terminal is currently connected.

2. The method according to claim 1, characterized in that, The terminal information matching master table also includes: groups of all terminals in the factory area; wherein, all the terminal groups are divided according to the call channel; the step of polling the terminals that have not entered the factory and gone online in the latest terminal information matching master table according to the polling period includes: polling the terminals that have not entered the factory and gone online in each group in the terminal information matching master table according to the polling period; the step of sending a call packet to the polled terminal includes: sending a call packet through the call channel of the polled terminal.

3. The method according to claim 1, characterized in that, After polling the latest terminal information matching table of terminals that have not entered the factory and gone online according to the polling cycle, the method further includes: if no response packet is received from the polled terminal after the preset time period, then poll the next terminal that has not entered the factory and gone online.

4. The method according to claim 1, characterized in that, Also includes: If a deletion notification is received from a terminal, the status of the terminal indicated by the deletion notification in the terminal information matching table is updated to "not online in the factory"; wherein, the deletion notification of the terminal is used to indicate that the information of the terminal in the dynamic list of terminals entering the factory has been deleted; the updated terminal information matching table is broadcast to the base stations accessing the factory network through the factory network.

5. A method for bringing a terminal online, characterized in that, A first positioning base station is applied in a factory network, wherein the factory network is connected to at least one positioning base station and an entry base station, and the first positioning base station is any positioning base station connected to the factory network; the terminal online method includes: the entry base station broadcasts an updated terminal information matching table to the positioning base stations connected to the factory network through the factory network, so that the positioning base stations update the dynamic list of entry terminals according to the updated terminal information matching table; wherein, the dynamic list of entry terminals includes: the identifiers of all currently online terminals, positioning channel information, and positioning base station information corresponding to each online terminal; the positioning base station information corresponding to the online terminal is used to at least indicate whether the terminal is online on any positioning base station, and the positioning base station currently online to which the terminal is connected. According to the polling cycle, poll one type of terminal in the dynamic list of terminals entering the factory; the one type of terminal includes terminals currently online with the first positioning base station, and terminals not online with any positioning base station; send signaling packets to the polled terminals; wherein, the signaling packet includes: the identifier of the terminal; if a communication data packet is received from the polled terminal within a preset time period, and the positioning base station information corresponding to the polled terminal is used to indicate that the terminal is not online with any positioning base station, then update the positioning base station information corresponding to the polled terminal to information indicating that the terminal is online with the first positioning base station; wherein, the communication data packet includes data used in mobile communication; broadcast the updated dynamic list of terminals entering the factory to the base stations accessing the factory network through the factory network.

6. The method according to claim 5, characterized in that, If a communication data packet is received from the polled terminal within a preset time period, the method further includes: if the communication data packet from the polled terminal includes pre-offline information, then the location base station information corresponding to the polled terminal is updated to indicate that the terminal is not online at the first location base station; wherein, the pre-offline information indicates that the terminal will go offline at the first location base station; and the updated dynamic list of terminals entering the factory is broadcast to the base stations connected to the factory network through the factory network.

7. The method according to claim 5, characterized in that, After sending signaling packets to the polled terminals, the method further includes: if no communication data packet is received from the polled terminals within the preset time period, then determining whether the response timeout duration of the polled terminals exceeds a timeout threshold; wherein, the response timeout duration of the terminals is the duration during which the terminals do not reply with communication data packets; if it is determined that the response timeout duration of the polled terminals exceeds the timeout threshold, and the location base station information corresponding to the polled terminals is used to indicate that the terminals are online at the first location base station, then the location base station information corresponding to the polled terminals is updated to information indicating that the terminals are not online at the first location base station; the updated dynamic list of terminals entering the factory is broadcast to the base stations accessing the factory network through the factory network.

8. The method according to claim 7, characterized in that, If it is determined that the response timeout duration of the polled terminal exceeds the timeout threshold, the method further includes: if each of the positioning base stations other than the first positioning base station determines that the response timeout duration of the polled terminal exceeds the timeout threshold, then the information of the polled terminal in the dynamic list of inbound terminals is deleted, and a deletion notification of the polled terminal is sent to the inbound base station; wherein, the deletion notification of the terminal is used to indicate that the information of the terminal in the dynamic list of inbound terminals has been deleted; the updated dynamic list of inbound terminals is broadcast to the base stations connected to the factory network through the factory network.

9. A terminal online system, characterized in that, include: An in-plant base station, used to perform the method as described in any one of claims 1 to 4; At least one positioning base station, each of which is used to perform the method as described in any one of claims 5 to 8; wherein each of the positioning base stations and the inbound base station is connected to the factory network; and a positioning terminal is used to communicate with the positioning base station and the inbound base station.

10. A computer-readable medium, characterized in that, It stores a computer program thereon, wherein the program, when executed by a processor, implements the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Internet of things terminal management method

    CN108307416A

  • Wireless communication method based on LoRa technology and communication system

    CN113938348A