Communication device, microcomputer, communication method, and network system
The communication device with a microcomputer prevents disconnection by stopping message transmission to the base station before connection termination, ensuring data return from the server.
Patent Information
- Application Number
- JP2023051589
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-10
AI Technical Summary
The connection between a communication terminal and a base station is prone to disconnection after data transmission from the terminal before the data is returned from the server.
A communication device with a microcomputer that stops wirelessly transmitting messages to a base station if the message is generated after a first predetermined time period before the wireless communication connection is terminated.
Reduces the likelihood of disconnection between the communication terminal and the base station after data transmission, ensuring data is successfully returned from the server.
Smart Images

Figure 2024140452000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a technology for a communication device, and more particularly to a technology for a communication device for uploading various types of information to a server via a base station by wireless communication. [Background technology]
[0002] Conventionally, a communication device that uploads meter reading results, measurement results, and other information to a server via a base station by wireless communication is known. For example, JP 2017-37358 A (Patent Document 1) discloses an observation system, a relay device, and an observation data receiving method. According to Patent Document 1, observation data is intermittently received from an observation station that observes observation data of an observation target and transmits it at a predetermined cycle, and if the wireless receiving unit cannot receive the observation data, the currently set reception cycle is changed to a reception cycle in which at least one of the reception pause time or reception time of the intermittent reception in the wireless receiving unit is set to a time different from the current reception pause time or the current reception time, and the next reception operation is performed, and if the wireless receiving unit can receive the observation data, the next reception operation is performed at a basic reception cycle corresponding to a predetermined transmission cycle in which the reception pause time and reception time of the intermittent reception in the wireless receiving unit are set to a preset basic reception pause time and basic reception time. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-37358 A Summary of the Invention [Problem to be solved by the invention]
[0004] An object of the present invention is to reduce the possibility that a connection between a communication terminal and a base station will be disconnected after data is transmitted from the communication terminal and before the data is returned from the server. [Means for solving the problem]
[0005] According to an aspect of the present invention, there is provided a communication device including a wireless communication antenna for communicating with a server via a base station, and a microcomputer, the microcomputer suspending wireless transmission of a message to the base station when the message is generated after a first predetermined time before the wireless communication connection with the base station is terminated. Effect of the Invention
[0006] As described above, according to the present invention, it is possible to reduce the possibility that the connection between a communication terminal and a base station will be disconnected after data is transmitted from the communication terminal and before the data is returned from the server. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a conceptual diagram showing an overall configuration of a network system 1 according to a first embodiment. [Diagram 2] FIG. 2 is a sequence diagram showing information processing in the network system 1 according to the first embodiment. [Diagram 3] 4 is a flowchart showing a control process of the communication device according to the first embodiment. [Figure 4] 10 is a flowchart showing a control process of a communication device according to a second embodiment. [Diagram 5] FIG. 13 is an image diagram showing wireless release time data according to the third embodiment. [Figure 6] 13 is a flowchart showing a control process of a communication device according to a third embodiment. [Figure 7] 13 is a flowchart showing a process for determining a time until release according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the following description, the same components are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated. <First embodiment> <Overall configuration of network system 1>
[0009] The network system 1 according to the present embodiment mainly includes a communication device 100, a meter 200, a base station device 300, and a center server 400.
[0010] The meter 200 is for reading the amount of gas or water used. The meter 200 transmits the measurement result to the communication device 100.
[0011] The communication device 100 is connected to the meter 200, acquires the measured value of the meter 200, and transmits the measured value and the measurement date and time to the base station device 300 by wireless communication such as LTE (Long Term Evolution). The communication device 100 of this embodiment is a device that can be connected to the meter 200 as an add-on, and is battery-powered.
[0012] The base station device 300 constitutes an end of a mobile communication network constructed by various communication carriers, and performs wireless communication such as LTE with a plurality of communication devices 100. In this embodiment, the base station device 300 transmits data from the communication devices 100 to a center server 400 via a carrier network or the Internet. The base station device 300 also periodically acquires accurate current time information from a predetermined server or the like, provides the information to the communication devices 100, and identifies the communication devices 100 within a communication range.
[0013] The center server 400 obtains meter reading results of the meters 200 from multiple communication devices 100 used for various services such as water and gas via the Internet or a carrier network, stores them in a database, and calculates usage fees for each user.
[0014] In more detail, the communication device 100 mainly includes a microcomputer 110 , an external interface 130 , a communication module 121 , and a wireless interface 122 .
[0015] The microcomputer 110 includes a memory 112 for storing programs and data, a processor 111 for controlling each part of the communication device 100 in accordance with the programs, and a timer 113 for measuring the current time and elapsed time.
[0016] The external interface 130 is connected to a cable or the like to perform data communication with the meter device 200. The external interface 130 transfers data acquired from the meter device 200 to the processor 111 of the microcomputer 110.
[0017] The wireless interface 122 includes an antenna for wireless communication and transmits and receives various data to and from the base station device 300 under the control of the communication module 121. The communication module 121 controls the wireless interface 122 to exchange data with the base station device 300. For example, the communication module 121 periodically or at a predetermined timing executes a Tracking Area Update (TAU) on the base station device 300 to identify the base station device 300 with which communication is currently possible, register the communication device 100 for a service, and obtain accurate current time information from the base station device 300. In addition, the communication module 121 transmits and receives various application layer data or IP (Internet Protocol) layer data to and from the base station device 300 using the wireless interface 122 in accordance with an instruction from the microcomputer 110. Note that, hereinafter, data used in an application program or data on the IP layer is referred to as electronic data, and the transmission and reception of the electronic data is also referred to as data communication.
[0018] In particular, the network system 1 according to this embodiment has a configuration for preventing the base station device 300 from releasing the wireless communication connection state with the communication device 100 after the communication device 100 transmits various data such as measurement values to the center server 400 via the base station device 300 in time for the transmission of the data, and for preventing data from the center server 400 from not being transmitted to the communication device 100. <Data communication flow in network system 1>
[0019] The flow of information processing in the entire network system 1 according to this embodiment will be described below with reference to FIG.
[0020] First, the communication device 100 and the center server 400 exchange data via the base station device 300. More specifically, the communication device 100 is usually in a sleep state to save power, and intermittently performs wireless communication with the base station device 300. For example, the communication device 100 periodically accesses the base station device 300 to check whether there is data for itself from the server, and if there is data for itself, establishes a wireless connection with the base station device 300 and exchanges various types of data.
[0021] Then, when the base station device 300 has not performed data communication with the communication device 100 for a first predetermined time (e.g., 10 seconds) since the last data communication with the communication device 100 (step S002) (step S004), the base station device 300 transmits a wireless release command to the communication device 100 (step S006). This causes the wireless communication connection state between the base station device 300 and the communication device 100 to be released.
[0022] In particular, in this embodiment, the communication device 100 measures (step S012) the time that has elapsed since the last data communication with the base station device 300 (step S002). Then, when a new message to the center server 400 is generated (step S016) after a second predetermined time (e.g., 2 seconds) before the timing of receiving a command to release the radio communication, that is, after a second predetermined time (e.g., 2 seconds) before the first predetermined time (e.g., 10 seconds) has elapsed (step S014), the communication device 100 does not transmit the message (step S018). In other words, when a third predetermined time (e.g., 8 seconds) has elapsed since the last data communication (step S014), no subsequent message is transmitted (step S018).
[0023] Then, when the communication device 100 receives a wireless release command from the base station device 300 (step S022), it wirelessly connects to the base station device 300 again (step S024) and transmits the above-mentioned message that was suspended to the base station device 300 (step S026). This causes the message to be transmitted to the center server 400 (step S028). Since there is time until the next wireless release, that is, 10 seconds, which is the first predetermined time, until the wireless release, there is a high possibility that the data from the center server 400 in response to the message will reach the communication device 100 (step S030). <Information processing in communication devices>
[0024] Next, information processing of the microcomputer 110 for controlling the communication device 100 according to the present embodiment will be described with reference to Fig. 3. More specifically, the processor 111 of the microcomputer 110 executes the following processing in accordance with a control program in the memory 112 and the like.
[0025] When the data communication of the electronic message using the communication module 121 is completed (YES in step S102), the microcomputer 110 starts a timer (step S106).
[0026] When the wireless communication connection from the base station device 300 is released via the communication module 121 (step S110) without there being any message to be transmitted to the center server 400 (NO in step S108), the microcomputer 110 causes the communication module 121 and itself to transition to a sleep state (step S112). When a fourth predetermined time, for example, 81 seconds, has elapsed (YES in step S114), the microcomputer 110 starts up the communication module 121 (step S116) and performs intermittent reception to check whether there is any waiting data addressed to itself (step S118). However, the microcomputer 110 may inquire of the base station device 300 whether there is any waiting data addressed to itself (step S118). When there is waiting data, the microcomputer 110 performs a process of connecting the wireless communication with the base station device 300 via the communication module 121 to receive the waiting data.
[0027] In the sleep state, it is also preferable that the communication module 121 checks for the presence or absence of data from the base station instead of the microcomputer 110. The communication module 121 checks for the presence or absence of data by intermittent reception, and performs wireless connection processing with the base station device 300 if there is data addressed to itself. When the communication module 121 receives data from the center server 500 via the base station device 300, it notifies the microcomputer 110 of the reception, starts the microcomputer 110, or passes the data to the microcomputer 110.
[0028] On the other hand, when a message to be transmitted to the center server 400 is generated (YES in step S108), the microcomputer 110 judges whether or not it is a transmission suspension period (step S122). In other words, the microcomputer 110 judges whether or not the elapsed time of the timer is the first predetermined time (10 seconds) before the second predetermined time (2 seconds) (step S122).
[0029] If it is not a transmission suspension period (NO in step S122), the microcomputer 110 passes the data of the telegram to the communication module 121 to have it transmitted to the base station device 300 (step S124). The microcomputer 110 resets the timer (step S126).
[0030] If it is the transmission suspension period (YES in step S122), microcomputer 110 waits with the data of the telegram stored in memory 112 (step S132).
[0031] When the microcomputer 110 releases the wireless communication connection from the base station device 300 via the communication module 121 (YES in step S134), the microcomputer 110 starts a wireless communication connection to the base station device 300 again via the communication module 121 (step S136). The microcomputer 110 transmits the stored message data to the base station device 300 via the communication module 121 (step S124).
[0032] If the radio is not released (NO in step S134), when the timer shows that the first predetermined time (10 seconds) has elapsed and then the fifth predetermined time (2 seconds) has elapsed (YES in step S138), the microcontroller 110 transmits the message data to the base station device 300 via the communication module 121 (step S124). <Second embodiment>
[0033] In the above embodiment, in step S138 or step S124 in Fig. 3, when the first predetermined time (10 seconds) has elapsed and then the fifth predetermined time (2 seconds) has elapsed, the electronic message data is transmitted to the base station device 300. However, as shown in Fig. 4, the microcomputer 110 may keep the electronic message data stored in the memory 112 (step S132) and continue to wait until the base station device 300 releases the wireless communication connection (step S134).
[0034] Alternatively, even if a wireless release is received in step S134 of FIG. 3 (YES in step S134), the wireless communication connection to the base station device 300 may be started again via the communication module 121 after a first predetermined time (10 seconds) has elapsed and then a fifth predetermined time (2 seconds) has elapsed (AND condition) (step S136). <Third embodiment>
[0035] The time until the base station device 300 releases the wireless communication connection, i.e., the above-mentioned first predetermined time, may differ depending on the type of carrier network, or the time until release may differ for each base station of the wireless communication network.
[0036] Therefore, in this embodiment, the microcomputer 110 stores a first predetermined time for each carrier. More specifically, as shown in Fig. 5, the memory 112 of the microcomputer 110 stores wireless release time data 112X. The wireless release time data 112X stores the correspondence relationship between the first predetermined time, the second predetermined time, the third predetermined time, the fourth predetermined time, and the fifth predetermined time for each carrier.
[0037] In this embodiment, the microcomputer 110 receives settings of the carrier network to be used from a serviceman or a user through various input methods. The setting method is not particularly limited and may include a switch, wireless communication, wired communication, a magnet, etc.
[0038] As a result, as shown in Fig. 6, microcomputer 110 sets a first predetermined time, a second predetermined time, a third predetermined time, a fourth predetermined time, and a fifth predetermined time corresponding to the set carrier in memory 112 (step S104). Then, microcomputer 110 executes other processes shown in Fig. 6 according to these predetermined times. Note that the contents of the other processes shown in Fig. 6 are similar to those in the above embodiment, and therefore will not be described repeatedly here. <Fourth embodiment>
[0039] Alternatively, when the microcomputer 110 is powered on, the microcomputer 110 may measure the time until the wireless communication connection is released by the base station device 300. For example, every time the microcomputer 110 is powered on, the processor 111 of the microcomputer 110 executes the following process in accordance with the control program in the memory 112 or the like.
[0040] 7, when the transmission and reception of the first electronic data using the communication module 121 is completed (YES in step S152), the microcomputer 110 starts measurement by the timer 113 (step S154). When the microcomputer 110 receives an instruction to release the wireless communication connection from the base station device 300 via the communication module 121 (YES in step S156), it sets the elapsed time up to that point in the memory 112 as a first predetermined time (step S158).
[0041] After this, the microcomputer 110 executes the above-mentioned processes in Fig. 3 and Fig. 4 according to the first predetermined time. Note that the second to fifth predetermined times may continue to be set to the specified times, or a predetermined ratio of the time may be set to be proportional to the first predetermined time.
[0042] The microcomputer 110 may execute the process of FIG. 7 to reset the first predetermined time not only when the power is turned on but also whenever a predetermined time has elapsed, for example, once a week. <Fifth embodiment>
[0043] Alternatively, the microcomputer 110 may simply receive a command to set the first predetermined time and the second to fifth predetermined times through various input methods. The setting method is not particularly limited and may include a switch, wireless communication, wired communication, a magnet, etc. Sixth embodiment
[0044] In the above embodiment, the meter 200 and the communication device 100 are used to read the amount of gas or water used. However, the configurations of the above embodiment can be used in more than just meter reading systems. For example, the configurations of the above embodiment can be used in vending machines, solar power generation, agriculture, drive recorders, security systems, transceivers, surveillance cameras, disaster prevention systems, and the like.
[0045] Specifically, instead of the gas or water meter device 200, a device may be used that acquires purchase information, calculates the remaining amount, measures the amount of power generated, measures weight, detects vibrations, acquires the current location, acquires the detection result of a human sensor, and provides the information to the communication device 100. Then, the communication device 100 may upload the information to the server 400 via the base station device 300.
[0046] Alternatively, the communication device 100 itself may be realized by a vending machine or a drive recorder. That is, the communication device 100 itself may have the functions of a meter, such as a measurement function, a detection function, and a payment function. <Summary>
[0047] In the above embodiment, a communication device is provided that includes a wireless communication antenna for communicating with a server via a base station and a microcomputer. When a message is generated after a first predetermined time before the wireless communication connection with the base station is terminated, the microcomputer stops wireless transmission of the message to the base station.
[0048] Preferably, the microcomputer wirelessly transmits the message to the base station via the wireless communication antenna after a second predetermined time period has elapsed.
[0049] Preferably, the microcomputer stores, for each wireless communication carrier, the period from the last transmission / reception of a message with the base station to the timing at which the connection with the base station is terminated, and determines the timing at which the connection with the base station is terminated based on that period.
[0050] Preferably, when the wireless communication carrier is switched or the power is turned on, the microcomputer measures the period from sending and receiving a message with the base station to the time when the connection with the base station is terminated, and determines the time when the connection with the base station is terminated based on that period.
[0051] In the above embodiment, a microcomputer connected to a wireless communication module is provided, and when a message is generated after a first predetermined time before a wireless communication connection with a base station using the wireless communication module is terminated, the microcomputer stops issuing a command to the wireless communication module to wirelessly transmit the message.
[0052] In the above embodiment, an information processing method in a communication device is provided, which includes the steps of communicating with a server via a base station, and, when a message to be transmitted to the server via the base station occurs after a first predetermined time before a wireless communication connection with the base station is terminated, stopping wireless transmission of the message to the base station.
[0053] In the above embodiment, a network system is provided that includes a server, a base station, and a communication terminal that transmits various information to the server via the base station. When a state in which no message is sent or received between the communication terminal and the base station continues for a certain period of time, the base station terminates a wireless communication connection with the communication terminal. When a message is generated after a first predetermined time before the certain period of time has elapsed, the communication terminal stops wireless transmission of the message to the base station.
[0054] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not the above description, and is intended to include all modifications within the scope and meaning equivalent to the claims. [Explanation of symbols]
[0055] 1: Network system 100: Communication equipment 110: Microcomputer 111: Processor 112: Memory 112X: Wireless release time data 113: Timer 121: Communication module 122: Wireless interface 130: External interface 200: Meter device 300:Base station equipment 400: Center server
Claims
1. a wireless communication antenna for communicating with a server via a base station; A communication device comprising: The microcomputer of the communication device stops wireless transmission of a message to the base station when the message occurs after a first predetermined time before the wireless communication connection with the base station is terminated.
2. 2. The communication device according to claim 1, wherein the microcomputer wirelessly transmits the message to the base station via the wireless communication antenna after a second predetermined time has elapsed since the timing.
3. The microcomputer storing, for each wireless communication carrier, a period from the last transmission / reception of a message with the base station to the timing at which the connection with the base station is terminated; The communication device according to claim 1 , further comprising: a step of determining a timing for terminating a connection with the base station based on the period.
4. 2. The communication device according to claim 1, wherein the microcomputer measures the period from sending and receiving a message with the base station to the timing at which the connection with the base station is terminated when the wireless communication carrier is switched or the power is turned on, and determines the timing at which the connection with the base station is terminated based on the period.
5. A microcomputer connected to a wireless communication module, A microcomputer stops instructing the wireless communication module to wirelessly transmit a message when the message is generated after a first predetermined time before the wireless communication connection with a base station using the wireless communication module is terminated.
6. An information processing method in a communication device, comprising: communicating with a server via a base station; and when a message is generated that needs to be transmitted to a server via the base station after a first predetermined time before the wireless communication connection with the base station is terminated, stopping wireless transmission of the message to the base station.
7. A server; A base station; A network system including a communication terminal that transmits various information to the server via the base station, the base station terminates a wireless communication connection with the communication terminal when a state in which no message is transmitted or received between the base station and the communication terminal continues for a certain period of time; The communication terminal, when a message is generated after a first predetermined time before the fixed period of time has elapsed, stops wireless transmission of the message to the base station.
Citation Information
Patent Citations
Observation system, repeating device and observation data reception method
JP2017037358A
