An automatic re-reading meter device

By inserting a card and delaying the transmission of channel construction messages during the smart meter recharge process, and using the modulo operator MOD to calculate the delay time, the problem of channel conflict during the recharge process is solved, thereby improving the recharge success rate and user experience.

CN116597563BActive Publication Date: 2025-10-24SHENZE COUNTY POWER SUPPLY CO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310428110.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2025-10-24
Estimated Expiration
2043-04-20

AI Technical Summary

Technical Problem

Existing smart meters are prone to channel construction message conflicts during the recharge process, which prevents the recharge center server from receiving valid information, causing inconvenience to elderly customers and customers who purchase electricity during inclement weather.

Method used

During the recharge process, a card is inserted into the IC card reader and a timer is started. After a certain delay, a response query message is transmitted. The transmission duration of the channel construction message is calculated using an arbitrary duration program to avoid conflicts. The modulo operator MOD is used to determine the delay duration by taking the modulo of 22-1 or 25 to reduce the probability of conflicts.

Benefits of technology

This effectively reduces the chance of message conflicts during channel construction, enabling recharges without needing to visit a sales office or business hall, thus improving recharge success rate and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116597563B_ABST
    Figure CN116597563B_ABST
Patent Text Reader

Abstract

An automatic card meter copying device, a charge center server sends out inquiry messages, when the card meter is to be charged, the IC card of the card meter is inserted into the IC card reader, then the computer runs the collection program, when the collection program collects the inquiry messages sent out by the charge center server, the channel structure message of the response inquiry message is transmitted to the charge center server, to prevent the channel structure messages transmitted by several computers from colliding due to the same transmission time or a very short interval, using the anti-collision method of the invention, after the inquiry message is collected, a delay of any length is followed, then the inquiry message is transmitted, here, by using the any length program to calculate any length one, the probability of collision of the channel structure messages transmitted by the computer can be reduced to the minimum.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of card meter, and particularly relates to an automatic re-reading card meter device. BACKGROUND

[0002] The card meter is an IC card prepayment electric meter. The IC card prepayment electric meter is also called an IC card prepayment electric energy meter or a smart electric meter. The IC card prepayment electric meter is a smart electric meter which uses an IC card as an electric energy value data transmission medium, adds a load control part and other functional modules in an electric meter (an electronic electric meter or a mechanical electric meter), and thus realizes electric quantity reading and electric quantity settlement.

[0003] Since remote card meters have not been fully covered, there is still a part of stock of smart electric meters which cannot be remotely communicated. The defect of the smart electric meter is that when payment is made, an electric meter card, that is, an IC card, must be read in a power selling machine or a post office collection and business hall and then inserted into the electric meter to use electricity. This brings inconvenience to old customers and customers who purchase electricity in bad weather.

[0004] In addition, if remote recharging is performed on the IC card, but when a plurality of local recharging devices are synchronously connected with a recharging center server in communication, the feedback channel structure message of the present local recharging device conflicts with another channel structure message, and even if a standard time period specification is used, there is still a high probability of continuous conflict, so that the recharging center server cannot receive useful channel structure messages, and thus the recharging center server cannot listen to the IP address of the local recharging device, so that recharging cannot be performed.

[0005] In summary, it is urgent to provide a conflict prevention method for message transmission during IC card transaction of a card meter which can reduce the probability of all channel structure messages being in conflict. SUMMARY

[0006] In order to solve the defects in the prior art, the present application provides an automatic re-reading card meter method. A recharging center server broadcasts inquiry messages outwardly. When recharging a card meter, an IC card of the card meter is inserted into an IC card reading and writing device. Then, a computer runs a receiving program. When the receiving program receives the inquiry messages broadcast by the recharging center server, channel structure messages responding to the inquiry messages are transmitted to the recharging center server. In order to prevent the channel structure messages transmitted by a plurality of computers from being in conflict due to the same transmission time or a very short interval, a conflict prevention method of the present application is used. After receiving the inquiry messages, a delay of any time length one is performed, and then the inquiry messages are transmitted. Here, by using an any time length one program to calculate any time length one, the probability of continuous conflict of the channel structure messages transmitted by the computer can be reduced to the minimum, and there is no need to read the electric meter card in a power selling machine or a post office collection and business hall.

[0007] An automatic re-reading card meter method comprises the following steps.

[0008] Step 1: When the card table is to be recharged, the IC card of the card table is inserted into the IC card reader, and then the computer runs the collection program. When the collection program receives the inquiry message sent by the recharge center server, the timer is started.

[0009] Step 2: After the time started by the timer, the channel construction message responding to the inquiry message is sent to the recharge center server, so as to identify the recharge center server that can construct the channel. Here, the arbitrary length one is calculated according to the arbitrary amount obtained by the arbitrary length program.

[0010] Step 3: When the task notification message sent by the recharge center server is received, a certain number of character arbitrary amount is obtained again, which is used to calculate the arbitrary length one to be delayed when the next communication with the recharge center server.

[0011] Preferably, after receiving the inquiry message sent by the recharge center server, the processes of steps 1 to 3 are started.

[0012] Preferably, after sending the channel construction message responding to the inquiry message to the recharge center server, if the task notification message sent by the recharge center server is not received within the preset time, it further comprises:

[0013] Step 2-1: The next arbitrary amount is obtained by the arbitrary length program, which is used to calculate the arbitrary length one to be delayed when the next channel construction message is sent.

[0014] Preferably, after sending the channel construction message responding to the inquiry message to the recharge center server, if the task notification message sent by the recharge center server is not received within the preset time, the step 2-1 is executed once, and the step 2-1 can be executed several times until the task notification message sent by the recharge center server is received. The complete communication process between the computer and the recharge center server is completed.

[0015] Preferably, the arbitrary length one is calculated according to the arbitrary amount obtained by the arbitrary length program, which comprises: the arbitrary length program calculates the delay amount according to the obtained arbitrary amount used to calculate the arbitrary length one; and the time corresponding to the delay amount is taken as the arbitrary length one.

[0016] Preferably, the next arbitrary amount obtained by the arbitrary length program comprises:

[0017] The arbitrary length program obtains the content of the arbitrary point one and the content of the arbitrary point two corresponding to the arbitrary quantity of the arbitrary length program; if the serial code of the arbitrary quantity corresponding to the arbitrary length program is not higher than the serial code critical value, and the content of the arbitrary point one and the content of the arbitrary point two are both zero, then the next arbitrary quantity corresponding to the next serial code of the serial code of the arbitrary length program is temporarily stored as the next arbitrary quantity; if the serial code of the arbitrary quantity corresponding to the arbitrary length program is higher than the serial code critical value, and the content of the arbitrary point one and the content of the arbitrary point two are both zero, then the arbitrary quantity corresponding to the arbitrary point one is used to obtain the arbitrary point two by using the modulo operator MOD with 2 5 The content of the arbitrary point two is increased by one, and the arbitrary quantity corresponding to the arbitrary point two after the increase is temporarily stored as the next arbitrary quantity; if the content of the arbitrary point one or the content of the arbitrary point two is higher than zero, and the content of the arbitrary point one and the content of the arbitrary point two are both not higher than the random bit critical value, then the content of the arbitrary point two is increased by one, and the arbitrary quantity corresponding to the arbitrary point two after the increase is temporarily stored as the next arbitrary quantity; if the content of the arbitrary point one and the content of the arbitrary point two are both higher than the random bit critical value, then the serial code and the arbitrary point one are reset to zero, and the arbitrary quantity corresponding to the arbitrary point one is used to obtain the arbitrary point two by using the modulo operator MOD with 2 5 The content of the arbitrary point two is increased by one, and the arbitrary quantity corresponding to the arbitrary point two after the increase is temporarily stored as the next arbitrary quantity; if the content of the arbitrary point one or the content of the arbitrary point two is higher than zero, and the content of the arbitrary point one and the content of the arbitrary point two are both not higher than the random bit critical value, then the content of the arbitrary point two is increased by one, and the arbitrary quantity corresponding to the arbitrary point two after the increase is temporarily stored as the next arbitrary quantity; if the content of the arbitrary point one and the content of the arbitrary point two are both higher than the random bit critical value, then the serial code and the arbitrary point one are reset to zero, and the arbitrary quantity corresponding to the arbitrary point one is used to obtain the arbitrary point two by using the modulo operator MOD with 2 5 The content of the arbitrary point two is increased by one, and the arbitrary quantity corresponding to the arbitrary point two after the increase is temporarily stored as the next arbitrary quantity; here, the serial code critical value and the random bit critical value are both 2 5 -1, the serial code of the arbitrary length program, the serial code of the arbitrary point one, and the serial code of the arbitrary point two are all from zero.

[0018] Preferably, the arbitrary length program obtains the next arbitrary quantity according to the arbitrary quantity used to calculate the arbitrary length one, and comprises:

[0019] The arbitrary quantity used to calculate the arbitrary length one is used to obtain the next arbitrary quantity by using the modulo operator MOD with 2 2 -1, and the next arbitrary quantity is obtained by taking the modulus.

[0020] Preferably, before step 1, it further comprises: obtaining a plurality of character arbitrary quantities, and forming 2 5 character arbitrary quantities.

[0021] Preferably, after the arbitrary length program obtains the next arbitrary quantity according to the arbitrary quantity used to calculate the arbitrary length one, it further comprises:

[0022] The arbitrary quantity used to calculate the next arbitrary quantity is regarded as the used arbitrary quantity; and the content of the arbitrary point one and the content of the arbitrary point two corresponding to the used arbitrary quantity are refreshed.

[0023] Preferably, the arbitrary length one comprises:

[0024] Zero milliseconds, three milliseconds and six milliseconds; any length one is the length of the delay selected according to the delay.

[0025] An automatic card meter reading equipment, comprising:

[0026] A local recharge device and a recharge center server connected to the local recharge device for communication;

[0027] The local recharge device includes a computer, an IC card reader and a wireless communication module, and the wireless communication module and the IC card reader are connected to the computer.

[0028] The beneficial effects of the present application are that, compared with the prior art, the recharge center server of the present application sends out inquiry messages outwardly, when the IC card of the card meter is inserted into the IC card reader, then the computer runs the collection program, when the collection program collects the inquiry messages sent out by the recharge center server, the channel construction message responding to the inquiry message is transmitted to the recharge center server, in order to prevent the channel construction messages transmitted by several computers from colliding due to the same transmission time or a very short interval, the anti-collision method of the present application is used, after the inquiry message is collected, a delay of any length one is followed, then the inquiry message is transmitted, here, by using the any length program to calculate the any length one, the probability of collision of the channel construction messages transmitted by the computer can be reduced to the minimum, without going to the power selling machine or the post office to collect and operate the meter card. BRIEF DESCRIPTION OF DRAWINGS

[0029] Figure 1 is a part of the flow chart of the automatic card meter reading method described in the present application;

[0030] Figure 2 is a part of the component structure diagram of the automatic card meter reading device described in the present application. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme of the present application will be described below in combination with the drawings in the embodiments of the present application. The embodiments expressed in the present application are only a part of the embodiments of the present application, but not all the embodiments. Based on the spirit of the present application, any other embodiments obtained by those skilled in the art without creative labor are also within the protection scope of the present application.

[0032] As shown in Figure 1 , the automatic card meter reading method described in the present application comprises:

[0033] Step 1: when the IC card of the card meter is inserted into the IC card reader, then the computer runs the collection program, when the collection program collects the inquiry messages sent out by the recharge center server, the channel construction message responding to the inquiry message is transmitted to the recharge center server, in order to prevent the channel construction messages transmitted by several computers from colliding due to the same transmission time or a very short interval, the anti-collision method of the present application is used, after the inquiry message is collected, a delay of any length one is followed, then the inquiry message is transmitted, here, by using the any length program to calculate the any length one, the probability of collision of the channel construction messages transmitted by the computer can be reduced to the minimum, without going to the power selling machine or the post office to collect and operate the meter card.

[0034] Step 2: at the time when the started timer expires, after delaying for an arbitrary time length one, a channel construction message is transmitted to the recharge center server in response to the inquiry message, for identifying the recharge center server that can construct the channel, wherein the arbitrary time length one is calculated according to an arbitrary amount obtained by the arbitrary time length program; the channel is a 4G channel.

[0035] Step 3: after receiving the task notification message transmitted by the recharge center server, an arbitrary amount of a number of characters is obtained again, for calculating the arbitrary time length one to be delayed when the next communication with the recharge center server. One character contains eight bits.

[0036] In the preferred but non-limiting embodiment of the present application, after receiving the inquiry message transmitted by the recharge center server group, the process of steps 1 to 3 is started.

[0037] In the preferred but non-limiting embodiment of the present application, after transmitting the channel construction message in response to the inquiry message to the recharge center server, if the task notification message transmitted by the recharge center server is not received within the preset time length, the following is further included:

[0038] Step 2-1: the next arbitrary amount obtained by the arbitrary time length program is used to calculate the arbitrary time length one to be delayed when transmitting the channel construction message.

[0039] In the preferred but non-limiting embodiment of the present application, after transmitting the channel construction message in response to the inquiry message to the recharge center server, if the task notification message transmitted by the recharge center server is not received within the preset time length, the following is further included:

[0040] In the preferred but non-limiting embodiment of the present application, the arbitrary time length one is calculated according to an arbitrary amount obtained by the arbitrary time length program, including: the arbitrary time length program calculates a delay amount according to the obtained arbitrary amount for calculating the arbitrary time length one; and the time length corresponding to the delay amount is taken as the arbitrary time length one.

[0041] In the preferred but non-limiting embodiment of the present application, the next arbitrary amount obtained by the arbitrary time length program includes:

[0042] The arbitrary length program obtains the content of the arbitrary point one and the content of the arbitrary point two corresponding to the arbitrary amount used, and if the serial code of the arbitrary amount corresponding to the arbitrary number is not higher than the number critical amount, and the content of the arbitrary point one and the arbitrary point two is zero, the next arbitrary amount corresponding to the next number of the serial code of the number is temporarily stored as the next arbitrary amount; if the serial code of the arbitrary amount corresponding to the arbitrary number is higher than the number critical amount, and the content of the arbitrary point one and the arbitrary point two is zero, the arbitrary amount corresponding to the arbitrary point one is used to obtain the arbitrary point two by using the modulo operator MOD to 2 5 The modulo is obtained, and the arbitrary amount corresponding to the arbitrary point two is temporarily stored as the next arbitrary amount; if the content of the arbitrary point one or the arbitrary point two is higher than zero, and the content of the arbitrary point one and the arbitrary point two is not higher than the random bit critical amount, the content of the arbitrary point two is increased by one, and the arbitrary amount corresponding to the arbitrary point two after the increase is temporarily stored as the next arbitrary amount; if the content of the arbitrary point one and the arbitrary point two is higher than the random bit critical amount, the number and the arbitrary point one are zeroed, and the arbitrary amount corresponding to the arbitrary point one is used to obtain the arbitrary point two by using the modulo operator MOD to 2 5 The modulo is obtained, and the arbitrary amount corresponding to the arbitrary point two is temporarily stored as the next arbitrary amount; if the content of the arbitrary point one is not higher than the random bit critical amount, and the content of the arbitrary point two is higher than the random bit critical amount, the content of the arbitrary point one is increased by one, and the arbitrary amount corresponding to the arbitrary point one after the increase is used to obtain the arbitrary point two by using the modulo operator MOD to 2 5 The modulo is obtained, and the arbitrary amount corresponding to the arbitrary point two is temporarily stored as the next arbitrary amount; here, the number critical amount and the random bit critical amount are 2 5 -1, the serial code of the number, the serial code of the arbitrary point one and the serial code of the arbitrary point two are all zero.

[0043] In the preferred but non-limiting embodiment of the application, the arbitrary length program obtains the arbitrary amount used to calculate the arbitrary length one according to the obtained arbitrary amount, and the obtained arbitrary amount is used to calculate the next arbitrary amount.

[0044] The arbitrary amount used to calculate the arbitrary length one is used to obtain the next arbitrary amount by using the modulo operator MOD to 2 2 -1, and the modulo is obtained.

[0045] In the preferred but non-limiting embodiment of the application, before step 1 (when the collection program collects the inquiry message sent by the recharge center server group, the timer is started), it further includes: obtaining a plurality of character arbitrary amounts, and forming 2 5 character arbitrary amount.

[0046] In the preferred but non-limiting embodiment of the application, after the arbitrary length program obtains the arbitrary amount used to calculate the arbitrary length one according to the obtained arbitrary amount, it further includes:

[0047] The arbitrary quantity used to calculate the delay time is regarded as an applied arbitrary quantity; the contents of the arbitrary point one and the arbitrary point two corresponding to the number of the applied arbitrary quantity are refreshed.

[0048] In a preferred but non-limiting embodiment of the present application, the arbitrary time length one comprises:

[0049] Zero, three and six milliseconds; the arbitrary time length one is the delay time selected according to the delay quantity.

[0050] The arbitrary quantity is obtained by taking the modulus operator MOD of 2 2 -1 of the arbitrary quantity, which can be zero, one or two, is regarded as the delay quantity, where zero corresponds to a delay time of zero milliseconds, one corresponds to a delay time of three milliseconds, and two corresponds to a delay time of six milliseconds.

[0051] After the computer is activated by the mass message (10 kHz pulse signal) transmitted by the recharge center server, the computer sets the IC card reader / writer to the running state and is ready to start the recharge process to obtain and transmit the recharge value.

[0052] When the computer obtains the accurate inquiry message (here, the inquiry message is the message of the request configuration information regularly transmitted by the recharge center server), the computer forms a channel configuration message by combining the set device message (the device message contains the IC card identification code of the IC card inserted into the IC card reader / writer connected to the computer and the computer-specific identification code such as the IP address of the computer) and another message (the other message contains the specific identification code set for the card table corresponding to the IC card and the specific identification code set for the IC card reader / writer connected to the computer), and then obtains the time length standard quantity (delay quantity) by taking the modulus operator MOD of 2 2 -1 of the arbitrary quantity read by the arbitrary time length program, calculates the delay time according to the standard quantity (the time length standard quantity and the delay time are proportional), feeds back the channel configuration message to the recharge center server and registers the arbitrary quantity used to form the channel configuration message.

[0053] After the delay time arrives, the computer transmits the channel configuration message in real time to identify the recharge center server that can construct the channel; after receiving the channel configuration message in response to the inquiry message transmitted by the recharge center server, the recharge center server constructs the channel with the computer and starts the recharge, and after the recharge is completed, the recharge center server releases the channel of the computer by transmitting the task notification message; the computer obtains a certain number of character arbitrary quantities again, forms 2 5 character arbitrary quantities, which are used to identify the arbitrary time length one in the next communication with the recharge center server.

[0054] In detail, the arbitrary duration program will take out the set device message in advance, take out the 32-character arbitrary amount (the latter arbitrary amount) and use it to perform the duration calculation of transmitting the channel construction message after the next activation (that is, the arbitrary duration used to calculate the delay for the next communication with the recharge center server), thereby terminating the recharge process and entering the standby state; here in the channel part used to construct communication, if the channel construction messages fed back by several computers have the same duration, then the channel construction messages transmitted by these computers will conflict on the 4G channel, so that the recharge center server cannot receive the correct channel construction message.

[0055] Regarding the conflict probability of channel construction messages, since the delay time is usually only available in three quantities, namely zero milliseconds, three milliseconds and six milliseconds, if there are 2 3 The probability that there is no conflict in the first arbitrary duration is The probability of a conflict in the first duration is 2 3 The probability of conflict for a duration is So it means 2 3 The probability of a conflict of any length is about 13 percent.

[0056] For example:

[0057] After the computer is activated by the mass message (10 kHz pulse signal) sent by the recharge center server, the computer sets the IC card reader and itself to the running state, and uses the random() function to obtain the computer's 2 3 Any number of characters, obtained twice to get 2 4 Any number of characters, the first 2 2 bits and the last 2 2 Each bit is stored as a character, forming 2 5 Any amount of characters, ready to the recharge process to start obtaining and passing the recharge value.

[0058] 2 obtained 5 Any amount of characters like:

[0059] The arbitrary quantities numbered 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, and 31 are 5, 7, 4, 2, 8, 1, 7, 7, 3, 6, 1, 2, 1, 9, 4, 5, 8, 2, 3, 4, 2, 5, 1, 1, 7, 2, 4, 5, 2, 7, 1, and 8 respectively.

[0060] Register each arbitrary quantity with a number, and register it in order as integers from 0 to 31, totaling 2 5 Number corresponding to 2 5 Any number of characters; the serial code of any point 1 is the same as the number of its corresponding arbitrary quantity. The serial code of any point 2 is the same as the number of its corresponding arbitrary quantity.

[0061] Since the sequence code of the starting number, the sequence code of any point one and the sequence code of any point two are all zero, the program of any length uses 2 5 The modulo operator MOD is used to convert any number of characters in the same number of zeros into 2 2 -1 modulo, and get the postponement amount, determine the arbitrary time length, and send a channel construction message in response to the inquiry message to the recharge center server; when receiving the task notification message sent by the recharge center server, then get a certain number of characters of arbitrary value, which is used to calculate the arbitrary time length of the delay for the next communication with the recharge center server.

[0062] After transmitting a channel construction message in response to a probe message to the recharge center server, if the computer has not received a task notification message from the recharge center server within a pre-set time period, the computer uses the received probe message to obtain a subsequent arbitrary quantity via the arbitrary time period procedure, and uses this quantity to calculate the arbitrary time period for delaying the next transmission of the channel construction message. After transmitting a channel construction message in response to the probe message to the recharge center server, if a conflict occurs or another recharge is not completed, resulting in the computer not receiving a task notification message from the recharge center server within the pre-set time period, the computer uses the received probe message to obtain a subsequent arbitrary quantity, and uses this quantity to calculate the arbitrary time period for delaying the next transmission of the channel construction message, until the recharge is completed; the pre-set time period is typically ten milliseconds.

[0063] For the acquisition of the next arbitrary quantity, it is necessary to identify it based on the numbered sequence code corresponding to the arbitrary quantity used, the sequence code of arbitrary point one, and the sequence code of arbitrary point two. If the contents of arbitrary point one and arbitrary point two are both zero, and the numbered sequence code is thirty, which is not higher than the critical value of thirty, then the next arbitrary quantity point is the arbitrary quantity 2 corresponding to number thirty-one. 3 , put the arbitrary quantity 2 3 Execute temporary storage, and use the modulus operator MOD to calculate 2 in the next communication with the recharge center server. 2 -1 modulo, the operation is delayed by any length of time. 3 Using the modulo operator MOD on 2 2 -1 modulo operation after the amount of the push, the arbitrary amount 2 3 Treat the arbitrary amount as used; refresh the corresponding number of the used arbitrary amount, the content of arbitrary point one and the content of arbitrary point two.

[0064] If the contents of any point 1 and any point 2 are both zero, and the serial number is 31, which is higher than the critical value of 30, then use the modulus operator MOD to calculate the value of 2. 5 Modulo; since any point one is zero, its corresponding arbitrary quantity is five as mentioned above, and the modulo operator MOD is used to take 2 5 The modulo operator is used to calculate 5, which is used as the arbitrary point 2; the arbitrary quantity corresponding to the arbitrary point 2 is temporarily stored as the next arbitrary quantity; if the arbitrary point 2 is 5, the corresponding arbitrary quantity is 1; when communicating with the recharge center server for the next time, the modulo operator MOD is used to calculate 2. 2 -1 modulo, the operation is delayed by an arbitrary time length of one; after the arbitrary amount is postponed for the modulo three operation, the arbitrary amount is also regarded as the used arbitrary amount; the corresponding number of the used arbitrary amount, the content of arbitrary point one and the content of arbitrary point two are refreshed.

[0065] If the content of any point 1 or any point 2 is higher than zero, and the content of any point 1 and any point 2 is not higher than the random bit critical value, set any point 1 to 0 and any point 2 to 30; then increase the content of any point 2 by 1, and temporarily store the random value corresponding to any point 2 after the increase as the next random value; after the increase, any point 2 is 31, and its corresponding random value is 2 3 ; When communicating with the recharge center server for the next time, it is used to use the modulus operator MOD to calculate 2 2 -1 modulo, the operation should be delayed for any length of time; use the modulo operator MOD on this arbitrary amount to 2 2 After the -1 operation is pushed back, the arbitrary amount 2 5 Treat the arbitrary amount as used; refresh the corresponding number of the used arbitrary amount, the content of arbitrary point one and the content of arbitrary point two.

[0066] If the content of any point one is not higher than the random bit threshold, and the content of any point two is higher than the random bit threshold, if the content of any point one is thirty and the content of any point two is thirty-one, then increase the content of any point one by one, and use the modulus operator MOD to calculate the value of any value corresponding to the increased value. 5 Modulo modulo, and get any point 2, temporarily store the arbitrary quantity corresponding to the arbitrary point 2 as the next arbitrary quantity; the arbitrary point 1 after adding one is 2 3 , use 2 3 2 5 Modulo 2 3 , then put 2 3 Treat as any point two, any point two 2 3 The corresponding arbitrary quantity is 2 2 -1, as the next arbitrary amount, execute temporary storage; in the next communication with the recharge center server, it is used to 2-1 modulo, the operation should be delayed for any length of time; in this arbitrary amount three to 2 2 -1 modulo operation after the amount of the push, the arbitrary amount 2 2 -1 is treated as the used arbitrary amount; the corresponding number of the used arbitrary amount, the content of arbitrary point 1 and the content of arbitrary point 2 are refreshed.

[0067] If the contents of any point 1 and any point 2 are both higher than the random bit threshold, if any point 1 and any point 2 are both 31, then reset the number and any point 1 to zero, and use the random value corresponding to any point 1 to 2 5 Modulo, and get any point 2, temporarily store the arbitrary quantity corresponding to any point 2 as the next arbitrary quantity; the arbitrary quantity corresponding to any point 1 after zeroing is five, use five to 2 5 Modulo, and get five as any point 2, perform temporary storage on five; in the next communication with the recharge center server, use it to 2 -1 modulo, the operation should be delayed for any length of time; in this arbitrary amount five to 2 2 After the -1 modulo operation is performed, the arbitrary value 5 is regarded as the used arbitrary value; the corresponding number of the used arbitrary value, the content of arbitrary point 1 and the content of arbitrary point 2 are refreshed.

[0068] A complete ETC recharge process is executed in sequence: the recharge center server sends a group inquiry message, the computer receives the inquiry message and transmits a channel construction message corresponding to the inquiry message, the recharge center server receives the channel construction message and completes the recharge with the inquiry message, the recharge center server transmits a task notification message to the computer, and after the computer receives the task notification message, the communication channel is cancelled. The present invention uses an arbitrary amount (the total number is not less than 2 5 ) achieve the arbitrary selection of the channel construction message duration, then sequentially apply the arbitrary quantity of this segment, after all the arbitrary quantities in this segment are applied; introduce a mark, the arbitrary quantity related to the mark is modulo the total number of arbitrary quantities, form an arbitrary point in the segment of arbitrary quantities, and synchronously change the index; when the channel construction message is fed back, the standard quantity of the duration is activated through the formed arbitrary point. During a recharge period, if the computer transmits a channel construction message that is not completed, then the next time the segment of arbitrary quantities is continuously applied backwards. When the arbitrary quantity is used to the end, the arbitrary quantity related to the new mark is used to modulo the total number, and then form an arbitrary point. When the arbitrary quantity is used to the end, the method is continuously applied; 2 of the present invention 5 The maximum probability of a conflict of any duration is Much lower than 2 3 The probability of conflict between the two time periods; in a communication recharge is completed, it is often marked by receiving a task notification message on the computer to confirm that the recharge is completed. After the recharge is completed, the next arbitrary amount (the total number is not less than 2 5Here, after the computer is activated by the mass message (10 kHz pulse signal) sent by the recharge center server, the computer sets the IC card reader and itself to the running state, and uses the random() function to obtain the computer's 2 3 Any number of characters, obtained twice to get 2 4 Any number of characters, the first 2 2 bits and the last 2 2 Each bit is stored as a character, forming 2 5 Any amount of characters is ready to start the recharge process to obtain and transmit the recharge value. When the inquiry message sent by the recharge center server is received in the next recovery, efficient calculation can be performed on any length of time without the need to continue the process of obtaining any amount.

[0069] like Figure 2 As shown, the automatic card meter copying device of the present invention includes:

[0070] A local recharging device and a recharging center server used to communicate with the local recharging device;

[0071] The local recharge device includes a computer, an IC card reader and a wireless communication module. The wireless communication module and the IC card reader are both connected to the computer; the wireless communication module can be a 4G module, and the recharge center server is located in the 4G network.

[0072] The beneficial effect of the present invention is that, compared with the prior art, the recharge center server of the present invention sends out a group of inquiry messages. When the card meter needs to be recharged, the IC card of the card meter is inserted into the IC card reader / writer, and then the computer runs the receiving program. When the receiving program receives the inquiry message sent by the recharge center server, the channel construction message in response to the inquiry message is transmitted to the recharge center server. In order to prevent the channel construction messages transmitted by several computers from conflicting due to the same transmission time or a very short interval, the anti-collision method of the present invention is used. After receiving the inquiry message, the inquiry message is transmitted after a delay of an arbitrary length of time. Here, by using the arbitrary length program to calculate the arbitrary length of time, the probability of the channel construction messages transmitted by the computer always conflicting can be reduced to a minimum.

[0073] The present disclosure can be a system, method, and / or computer program product. The computer program product can include a computer-readable medium having computer-readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.

[0074] A computer-readable attachment medium can be a tangible device capable of retaining and attaching instructions for use by an instruction execution circuit. A computer-readable attachment medium can be, but is not limited to, an electrical attachment circuit, a magnetic attachment circuit, an optical attachment circuit, an electromagnetic attachment circuit, a semiconductor attachment circuit, or any suitable combination thereof. Further examples (not an exhaustive list) of computer-readable attachment media include: a portable computer disk, a hard disk, random access memory (RAM), read-only memory (RyM), an erasable programmable read-only memory (EPRyM or flash memory), static random access memory (SRAM), a portable compact disk read-only memory (HD-RyM), a digital versatile disk (DXD), a memory stick, a floppy disk, a mechanically encoded circuit, such as a punch card or raised structure in a groove with instructions attached thereon, or any suitable combination thereof. Computer-readable media as used herein is not to be construed as transient information per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through power line cables), or electrical information transmitted through wires.

[0075] The computer-readable program instructions expressed herein can be downloaded from a computer-readable attached medium to each computing / processing power grid circuit, or downloaded to an external computer or external attached power grid circuit via a wireless network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The wireless network can include copper transmission cables, power transmission lines, wireless transmission, routers, firewalls, switches, Wi-Fi devices, computers, and / or edge servers. A wireless network adapter card or wireless network port in each computing / processing power grid circuit receives the computer-readable program instructions from the wireless network and forwards the computer-readable program instructions to the computer-readable attached medium in each computing / processing power grid circuit.

[0076] Computer readable program instructions for carrying out operations of the present disclosure can be assembly-level instructions, instructions-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, conditionally-compiled values, or any combination thereof, written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) can execute the computer readable program instructions by utilizing state values of the computer readable program instructions to customize the electronic circuitry, in order to perform aspects of the present disclosure.

[0077] Finally, it should be noted that the above-mentioned embodiments are merely used to illustrate the technical solutions of the present application, rather than limit the present application. Although the present application has been described in detail with reference to the above-mentioned embodiments, those skilled in the art should understand that the technical solutions of the present application can still be modified or equivalent replaced without departing from the spirit and scope of the present application, and any modification or equivalent replacement should be covered in the protection scope of the claims of the present application.

Claims

1. An automatic rekeying method, characterized in that, Comprising: Step 1: When the card table is to be recharged, the IC card of the card table is inserted into the IC card reader, and then the computer runs the collection program. When the collection program collects the inquiry message sent by the recharge center server, the timer is started; Step 2: After the time started by the started timer expires for any length of time, a channel construction message is transmitted to the recharge center server in response to the inquiry message, which is used to identify the recharge center server that can construct the channel. Here, the any length of time one is calculated based on the arbitrary amount obtained by the arbitrary length program; Step 3: When the task notification message sent by the recharge center server is received, a certain number of characters are obtained again to calculate the any length of time one to be delayed when the next communication with the recharge center server; The next arbitrary amount obtained by the arbitrary length program includes: The program of any length gets the content of the corresponding number of any amount used and the content of any point one and any point two. If the serial code of the corresponding number of any amount used is not higher than the critical number of the number, and the content of any point one and any point two is zero, the next corresponding number of any amount of the serial code of the number is temporarily stored as the next any amount. If the serial code of the corresponding number of any amount used is higher than the critical number of the number, and the content of any point one and any point two is zero, the corresponding any amount of any point one is used to get any point two by using the modulo operator MOD to 2 5 and the corresponding any amount of any point two is temporarily stored as the next any amount. If the content of any point one or any point two is higher than zero, and the content of any point one and any point two is not higher than the critical number of the random bit, the content of any point two is increased by one, and the corresponding any amount of any point two after the increase is temporarily stored as the next any amount. If the content of any point one and any point two is higher than the critical number of the random bit, the number and any point one are zeroed, and the corresponding any amount of any point one is used to get any point two by using the modulo operator MOD to 2 5 and the corresponding any amount of any point two is temporarily stored as the next any amount. If the content of any point one is not higher than the critical number of the random bit, and the content of any point two is higher than the critical number of the random bit, the content of any point one is increased by one, and the corresponding any amount of any point one after the increase is used to get any point two by using the modulo operator MOD to 2 5 and the corresponding any amount of any point two is temporarily stored as the next any amount. Here, the critical number of the number and the critical number of the random bit are both 2 5 -1, the serial code of the number, the serial code of any point one and the serial code of any point two are all from zero.

2. The automatic rekeying method of claim 1, wherein, After receiving the inquiry message sent by the recharge center server, the process of steps 1 to 3 is started.

3. The automatic rekeying method of claim 1, wherein, After transmitting the channel construction message in response to the inquiry message to the recharge center server, if the task notification message sent by the recharge center server is not received within the preset time, it also includes: Step 2-1: The next arbitrary amount obtained by the arbitrary length program is used to calculate the any length of time one to be delayed when the next channel construction message is transmitted.

4. The automatic rekeying method of claim 1, wherein, After transmitting the channel construction message in response to the inquiry message to the recharge center server, if the task notification message sent by the recharge center server is not received within the preset time, it also includes:

5. The automatic rekeying method of claim 1, wherein, Step 2-1: The next arbitrary amount obtained by the arbitrary length program is used to calculate the any length of time one to be delayed when the next channel construction message is transmitted.

6. The automatic rekeying method of claim 1, wherein, After transmitting the channel construction message in response to the inquiry message to the recharge center server, if the task notification message sent by the recharge center server is not received within the preset time, it also includes: Applying the modulo operator MOD to 2 with the result of the operation of any quantity with any length one 2 -1 modulo to get the delay.

7. The method for automatically copying a card list according to claim 1, characterized in that: Before step 1, also include: take a number of character random amounts, form 2 5 character random amounts.

8. The automatic rekeying method of claim 1, wherein, The any length of time one is calculated based on the arbitrary amount obtained by the arbitrary length program, which includes: The arbitrary length program calculates the delay amount based on the obtained arbitrary amount used to calculate the any length of time one; The length corresponding to the delay amount is taken as the any length of time one. The arbitrary length program calculates the delay amount based on the obtained arbitrary amount used to calculate the any length of time one, which includes: After the arbitrary length program calculates the delay amount based on the obtained arbitrary amount used to calculate the any length of time one, it also includes: The arbitrary amount used to calculate the delay amount is taken as the used arbitrary amount; The contents of the number, the first arbitrary point and the second arbitrary point corresponding to the used arbitrary amount are refreshed; The any length of time one includes: Zero milliseconds, three milliseconds and six milliseconds; The any length of time one is the delay length selected based on the delay amount.

Citation Information

Patent Citations

  • Transaction auditing for data security devices

    CN102782694A