A card swiping method for an automatic card swiping machine for a charging pile

By setting the angle between the RFID sensing surface of the card reader and the XY plane, and using a stepper motor and micro-step mode to control the parallel movement of the RFID card, the problem of manual operation that is difficult to control the angle and distance is solved, and the automated testing of the charging pile is realized, which improves the testing efficiency and unmanned operation capability.

CN117475553BActive Publication Date: 2025-09-16NINGBO JOYSON NEW ENERGY AUTOMOBILE TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311462708.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2023-09-05
Filing Date
2023-11-06
Publication Date
2025-09-16
Estimated Expiration
2043-11-06

AI Technical Summary

Technical Problem

During the charging pile testing process, manual operation makes it difficult to accurately control the angle and distance between the RFID card and the charging pile sensing surface, resulting in low test efficiency and the inability to achieve unmanned automated testing.

Method used

By setting the angle between the RFID sensing surface of the card reader and the XY plane, using a stepper motor and microstep mode to control the movement of the RFID card, and combining the sinα and cosα speed ratios of the X-axis and Z-axis, parallel movement of the RFID card and the charging pile sensing surface is achieved. The effective position is determined by voltage and current monitoring, and the card swiping action is completed automatically.

Benefits of technology

It realizes the maximum effective distance measurement between the RFID card and the charging pile sensing surface in complex environments, improves the test efficiency, realizes the automated testing of unattended charging pile functions, replaces manual operation, and greatly improves the test efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117475553B_ABST
    Figure CN117475553B_ABST
Patent Text Reader

Abstract

The present invention provides a card swiping method for an automatic card swiping machine at a charging station. The present invention has the beneficial effect of replacing manual identification of card swiping requirements and automatically executing the card swiping action, thereby resolving the problem of manually testing the distance of an angled card swiping panel. Furthermore, the present invention can be combined with equipment such as a test bench to achieve automated testing, greatly improving efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing, and in particular to a card swiping method for an automatic card swiping machine of a charging pile. Background Art

[0002] With the development of new energy vehicles, infrastructure construction and smart charging products for charging stations are also rapidly evolving. Using RFID cards to authorize charging has become the most common method for charging stations to enter the charging state. During system testing, test items involving card swiping still require engineers to repeatedly swipe the card. Furthermore, when measuring the maximum response distance of RFID on angled RFID panel structures, manually moving the arm at a fixed angle and parallel to the surface of the structure makes it difficult to control the angle and measure the distance. Summary of the Invention

[0003] Based on this, in order to solve the problem, the present invention provides a card swiping method for an automatic card swiping machine for a charging pile, and its specific technical solution is as follows: A card swiping method for an automatic card swiping machine for a charging pile, comprising the following steps:

[0004] The first step is to set the angle α between the RFID sensing surface of the card reader and the XY plane. Initialize the variables to start the microstepping mode and send pulses to drive the motor. Every time the motor rotates k steps, it rotates 1.8°. That is, k / 1.8 pulses need to be sent per degree to achieve the angle α between the RFID sensing surface and the XY plane.

[0005] In the second step, if the RFID card insertion surface moves parallel to the RFID sensing surface by a distance d, when the X-axis and Z-axis maintain the speed ratio of sinα to cosα, the RFID card moves parallel to the RFID sensing surface;

[0006] In the third step, the motor drives the RFID card to move vertically along the X-axis and Z-axis at the speed of sinα and cosα respectively toward the RFID sensing surface of the charging pile, and triggers the periodic monitoring of the output voltage of the charging pile relay;

[0007] Step 4: After collecting 10 cycles, if any voltage collected is lower than the threshold Umax, the voltage collected for the first time in this cycle is considered invalid, the flag position of the farthest sensing position is set to 0, and the invalid number limit is increased by 1;

[0008] In the fifth step, if the 10 collected cycles are all greater than or equal to the threshold Umax, the position is considered valid. The X-axis and Z-axis rotate in microstep mode at the speeds of sinα and cosα, respectively, driving the RFID card closer to the card swiping area. At the same time, the current collector monitors the current of the X-axis and Z-axis motors.

[0009] Step 6: When the current monitored by the current collector that monitors the current of the X-axis and Z-axis motors exceeds the threshold Imax, the current exceeding threshold counter Ti changes to 1. , The X-axis and Z-axis motors start to rotate in the reverse direction for k steps, and then rotate in the forward direction for k steps again;

[0010] Step 7: Calculate and compare the current number of motion steps, Step_X, and Step_Z. If lx / cosα≠lz / sinα, (lx / cosα) / (lz / sinα)≤1.05 or (lz / cosα) / (lx / sinα)≤1.005, then d=(lx / cosα+lz / sinα) / 2. If (lx / cosα) / (lz / sinα)>1.05 and (lz / cosα) / (lx / sinα)>1.05, it is determined that one axis has experienced a high number of lost steps during operation. This measurement is invalid and a new test is required.

[0011] Step 8. If lx / cosα=lz / sinα, then the maximum distance d between the RFID card and the RFID sensing surface of the charging pile is d=lx / cosα=lz / sinα. The maximum distance d between the RFID card and the RFID sensing surface of the charging pile is d, then the X-axis and Z-axis move back Step_X2 and Step_Z / 2 respectively, initialize Step_X1=0, Step_Z1=0, and realize automated testing.

[0012] Furthermore, if the motor rotates 1 step in the forward direction, the controller variable Step increases by 1.

[0013] Furthermore, if the motor rotates in the reverse direction by one step, the controller variable Step decreases by one, and the controller sends α / (k / 1.8) pulse signals.

[0014] Furthermore, the X-axis and Z-axis move away from the charging pile RFID sensing surface at speeds of v*sinα and v*cosα respectively until any one of the motors touches the limiter of the card reader, thereby achieving the maximum distance that allows the RFID card and the charging pile RFID sensing surface to remain parallel.

[0015] Furthermore, when the output terminal voltage is detected to be greater than the threshold value Umax, the flag bit of the farthest sensing position of flag1 is set to 1.

[0016] Furthermore, if 0≤invalid number limit≤5, the motor drives the RFID card to move vertically along the X-axis and Z-axis at the speed of sinα and cosα respectively toward the RFID sensing surface of the charging pile, and triggers the periodic monitoring of the output voltage of the charging pile relay; if the invalid number limit is ≥5, the flag of the farthest sensing position is set to 0, the invalid number limit is set to 0, the data in the current X-axis and Z-axis step counters are cleared, and this is used as the starting point to continue moving toward the RFID sensing surface of the charging pile at the original angle and speed, and the test is terminated.

[0017] Furthermore, if the current is between 1 / 2k steps and 3 / 2k steps, and if the current collector is not found to exceed the threshold, the current exceeding threshold counter Ti is initialized to 0. If the 10 collected cycles are all greater than or equal to the threshold Imax, the position is considered valid, and the X-axis and Z-axis rotate in microstep mode at the speeds of sinα and cosα respectively, driving the RFID card to approach the card swiping area. At the same time, the current collector monitors the current of the X-axis and Z-axis motors.

[0018] Furthermore, if the current collected exceeds the threshold value Imax, and the motor current is found to exceed the threshold value in 1 / 2s circle and 3 / 2 circle, the current exceeding threshold value counter Ti increases by 1. The current collector monitors the current size of the X-axis and Z-axis motors and exceeds the threshold value Imax, and the current exceeding threshold value counter Ti becomes 1. , The X-axis and Z-axis motors start to rotate in the reverse direction for k steps, and then rotate forward again for k steps.

[0019] Furthermore, when calculating based on the data of variables Step_X and Step_Z, each rotation of the shaft will cause the slider to move a distance of l, so lx=l*(Step_X / (k / 1.8) / 360) and lz=l*(Step_Z / (k / 1.8) / 360).

[0020] Beneficial effects: (1) The present invention can not only achieve the maximum effective distance of RFID testing in complex environments, but also cooperate with the test bench to truly realize the automated testing of unattended charging pile function testing; (2) The present invention can replace the manual judgment of card swiping needs and automatically execute the card swiping action, that is, solve the problem of manual testing of the distance of the angled card swiping panel, and can also be combined with the test bench and other equipment to realize automated testing, greatly improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily drawn to scale, but rather the emphasis is placed on illustrating the principles of the embodiments. In different views, the same reference numerals designate corresponding parts.

[0022] Figure 1This is a flow chart of an embodiment of a card swiping method for an automatic card swiping machine for a charging pile according to the present invention;

[0023] Figure 2 It is a structural schematic diagram of an embodiment of the present invention for an automatic card swiping machine for a charging pile. Specific implementation methods

[0024] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with its embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.

[0025] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly attached to the other element or there may be an intermediate element. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this invention pertains. The terms used in this specification of the present invention are intended solely for the purpose of describing specific implementations and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0027] The "first" and "second" in the present invention do not represent specific quantities and orders, but are only used to distinguish names.

[0028] like Figure 1As shown, the present invention includes: the charging pile is fixed below the card reader, the angle α between the RFID sensing surface and the XY plane is input into the host computer, and then start is clicked. All variables are initialized, such as T, which is the invalid number limit = 0, flag, which is the flag of the farthest sensing position = 0, and the rotating stepper motor is controlled. The micro-step mode is turned on and pulses are sent at a low and stable speed to drive the motor to rotate. For every forward rotation of the motor, the controller variable Step increases by 1, such as Step_X and Step_Z; if the motor rotates in the reverse direction by 1 step, the controller variable Step decreases by 1. Every k steps the motor rotates, it rotates 1.8°. This means k / 1.8 pulses are required for each degree. Therefore, the stepper motor controller sends α / (k / 1.8) pulse signals, achieving an angle α between the RFID tag and the XY plane. At this point, the Z-axis and X-axis slides are inserted into the RFID card. If the slides move parallel to the inclined plane (the charging station's sensing surface) by a distance d, the X-axis moves d*sinα and the Z-axis moves d*cosα. Maintaining the speed ratio of sinα and cosα, the X and Z axes will maintain their movement, keeping the RFID card parallel to the sensing surface. The host computer controls the X and Z axes to move away from the charging station's sensing surface at speeds of v*sinα and v*cosα, respectively, until either motor reaches the limiter on the card reader and stops. At this point, the card-swiping jigs controlled on the X and Z axes, in order to maintain parallelism with the charging pile's RFID sensor panel, are constrained by one or both of the axis limiters during their backward movement, achieving the maximum distance necessary for the RFID card and the charging pile's RFID sensor panel to remain parallel. The control cabinet then powers the charging pile and closes the control switch of the programmable resistor in the control cabinet, simulating the switch on the vehicle side. The motor begins rotating, driving the RFID card to slowly approach the charging pile's RFID sensor surface perpendicularly, following the established pattern. The X and Z axes begin to move at speeds of sinα and cosα, respectively. Simultaneously, the control cabinet triggers a very small periodic monitoring of the output voltage of the charging pile's relay. When the control cabinet detects that the output voltage is greater than the threshold Umax, it sets flag 1 to 1. To avoid interference from voltage spikes, the control cabinet continues to collect data for 10 cycles. If the voltage collected at any point falls below the threshold Umax, the first voltage collected in this cycle is considered invalid because the relay output voltage is invalid. Flag 1 is set to 0, and the invalid count limit T is incremented by 1. If 0 ≤ T ≤ 5, the following operation is repeated: the control cabinet begins to power the charging pile and closes the control switch of the programmable resistor R3 in the control cabinet (simulating the vehicle-side switch S2). The motor begins to rotate, driving the RFID chip to slowly approach the charging pile's RFID sensing surface perpendicularly, in microstepping mode on the X and Z axes at a speed of sinα and cosα. Simultaneously, the control cabinet triggers periodic (very short) monitoring of the output voltage of the charging pile relay.When the control cabinet detects that the voltage at the output end is greater than the threshold Umax, it sets flag1 (the flag of the farthest sensing position) to 1. If the control cabinet continues to collect 10 cycles that are greater than or equal to the threshold Umax, the position is considered valid, and the X-axis and Z-axis start to rotate in micro-step mode and at the speed of sinα and cosα, driving the RFID card to move closer to the card swiping area. At the same time, the current collector that monitors the current of the X-axis and Z-axis motors starts real-time monitoring until the current suddenly increases and exceeds the threshold Imax. At this time, the current exceeding threshold counter Ti becomes 1, and the X-axis and Z-axis motors start to reverse for k steps, and then rotate forward for k steps again. If the current is between 1 / 2k (k is an integer) steps and 3 / 2k steps, the current collector is not found to have exceeded the threshold, because the motor current is not found to have exceeded the threshold within 1 / 2k steps and 3 / 2k steps. The device Ti (the counter for current exceeding the threshold) is initialized to 0, and the operation is repeated as follows: the X-axis and Z-axis start to rotate in micro-step mode and at the speed of sinα and cosα, driving the RFID card to approach the card swiping area. At the same time, the current collector that monitors the current of the X-axis and Z-axis motors starts real-time monitoring until the current suddenly increases and exceeds the threshold Imax; if it is found that the current collected exceeds the threshold Imax, because the motor current exceeds the threshold in 1 / 2s circle and 3 / 2 circle, the counter is increased by 1, and the current exceeding threshold counter Ti is changed to 1 again, and the X-axis and Z-axis motors start to rotate in the reverse direction for k steps, and then rotate forward for k steps again until Ti ≥ 5, at which time the motor stops. At this time, it is considered that the RFID card is in contact with the sensing surface of the charging pile. Calculate and compare based on the data of variables Step_X and Step_Z; if lx / cosα=lz / sinα, the maximum distance d between the RFID card and the charging pile sensing surface is d=lx / cosα=lz / sinα. Because the maximum distance d between the RFID card and the charging pile sensing surface is then the X-axis and Z-axis retreat Step_X2 and Step_Z / 2 respectively, initializing Step_X1=0 and Step_Z1=0, that is, at point d / 2 on the charging pile sensing surface, and moving back and forth in the interval d. If lx / cosα ≠ lz / sinα, if (lx / cosα) / (lz / sinα) ≤ 1.05 or (lz / cosα) / (lx / sinα) ≤ 1.005, then d = (lx / cosα + lz / sinα) / 2. If (lx / cosα) / (lz / sinα) > 1.05 and (lz / cosα) / (lx / sinα) > 1.05, one axis is considered to have experienced a high number of lost steps during operation, and the measurement is invalid.

[0029] In one embodiment of the present invention, since each rotation of the shaft will cause the slider to move a distance l, lx=l*(Step_X / (k / 1.8) / 360), and similarly lz=l*(Step_Z / (k / 1.8) / 360).

[0030] In one embodiment of the present invention, if T≥5, flag1=0, T=0, and the test is exited. The control host then clears the current number of movement steps, Step_X and Step_Z, i.e., resets the data in the current X-axis and Z-axis step counters to zero, and uses this as the starting point to continue moving toward the sensing surface of the charging pile at the original angle and speed.

[0031] In one embodiment of the present invention, a high-precision electric rotary slide in the X-axis direction can be added. By controlling these two mutually perpendicular rotation axes, arbitrary angle rotation can be achieved. This method can not only achieve the maximum effective distance for RFID testing in complex environments, but also cooperate with the test bench to truly realize the automation of unattended charging pile functional testing.

[0032] In one embodiment of the present invention, Figure 2 As shown, the entire test stand is connected to a 5-axis controller module via a serial cable. Commands then simultaneously control five independent stepper motors, driving the five stepper motors on the card reader. This allows control of any angle and position within the guide rail's travel range. Combined with other equipment, it can measure RFID's maximum distance and test card swiping behavior. Simultaneously, five independent current acquisition circuits monitor the current driving the five motors in real time. If the card reader encounters an obstacle and stalls, the motors are stopped immediately to prevent damage. Using this as the zero point, the motors drive the RFID card parallel to the charging station's RFID sensing surface until the maximum sensing distance is reached. This allows the RFID module's effective sensing capacity to be calculated.

[0033] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0034] The above-described embodiments merely illustrate several implementation methods of the present invention. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, and all such variations and improvements fall within the scope of protection of the present invention.

Claims

1. A card swiping method for an automatic card swiping machine for a charging pile, characterized in that: The following steps are included: The first step is to set the angle α between the RFID sensing surface of the card reader and the XY plane. Initialize the variables to start the microstepping mode and send pulses to drive the motor. Every time the motor rotates k steps, it rotates 1.8°. That is, k / 1.8 pulses need to be sent per degree to achieve the angle α between the RFID sensing surface and the XY plane. In the second step, if the RFID card insertion surface moves parallel to the RFID sensing surface by a distance d, when the X-axis and Z-axis maintain the speed ratio of sinα to cosα, the RFID card moves parallel to the RFID sensing surface; In the third step, the motor drives the RFID card to move vertically along the X-axis and Z-axis at the speed of sinα and cosα respectively toward the RFID sensing surface of the charging pile, and triggers the periodic monitoring of the output voltage of the charging pile relay; Step 4: After collecting 10 cycles, if any voltage collected is lower than the threshold Umax, the voltage collected for the first time in this cycle is considered invalid, the flag position of the farthest sensing position is set to 0, and the invalid number limit is increased by 1; In the fifth step, if the 10 collected cycles are all greater than or equal to the threshold Umax, the position is considered valid. The X-axis and Z-axis rotate in microstep mode at the speeds of sinα and cosα, respectively, driving the RFID card closer to the card swiping area. At the same time, the current collector monitors the current of the X-axis and Z-axis motors. Step 6: When the current monitored by the current collector that monitors the current of the X-axis and Z-axis motors exceeds the threshold Imax, the current exceeding threshold counter Ti changes to 1. , The X-axis and Z-axis motors start to rotate in the reverse direction for k steps, and then rotate in the forward direction for k steps again; Step 7: Calculate and compare the current number of motion steps, Step_X, and Step_Z. If lx / cosα≠lz / sinα, (lx / cosα) / (lz / sinα)≤1.05 or (lz / cosα) / (lx / sinα)≤1.005, then d=(lx / cosα+lz / sinα) / 2. If (lx / cosα) / (lz / sinα)>1.05 and (lz / cosα) / (lx / sinα)>1.05, it is determined that one axis has experienced a high number of lost steps during operation. This measurement is invalid and a new test is required. Step 8. If lx / cosα=lz / sinα, then the maximum distance d between the RFID card and the RFID sensing surface of the charging pile is d=lx / cosα=lz / sinα. The maximum distance d between the RFID card and the RFID sensing surface of the charging pile is d, then the X-axis and Z-axis move back Step_X2 and Step_Z / 2 respectively, initialize Step_X1=0, Step_Z1=0, and realize automated testing.

2. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: If the motor rotates 1 step in the forward direction, the controller variable Step increases by 1.

3. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: If the motor rotates in the reverse direction by one step, the controller variable Step decreases by one, and the controller sends α / (k / 1.8) pulse signals.

4. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: The X-axis and Z-axis move away from the charging pile RFID sensing surface at speeds of v*sinα and v*cosα respectively, until any one of the motors touches the limiter of the card reader, thereby reaching the maximum distance required for the RFID card and the charging pile RFID sensing surface to remain parallel.

5. The card swiping method for the automatic card swiping machine of a charging pile according to claim 1, characterized in that: When the output voltage is greater than the threshold Umax, the flag of the farthest sensing position of flag1 is set to 1.

6. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: If 0≤invalid number limit≤5, the motor drives the RFID card to move vertically along the X-axis and Z-axis at the speed of sinα and cosα respectively toward the RFID sensing surface of the charging pile, and triggers the periodic monitoring of the output voltage of the charging pile relay; if the invalid number limit is ≥5, the flag of the farthest sensing position is set to 0, the invalid number limit is set to 0, the data in the current X-axis and Z-axis step counters are cleared, and the card is used as the starting point to continue moving toward the RFID sensing surface of the charging pile at the original angle and speed, and the test is terminated.

7. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: If the current is between 1 / 2k steps and 3 / 2k steps, and if the current collector does not find that the current exceeds the threshold, the current exceeding threshold counter Ti is initialized to 0. If the 10 collected cycles are all greater than or equal to the threshold Imax, the position is considered valid. The X-axis and Z-axis rotate in microstep mode at the speeds of sinα and cosα respectively, driving the RFID card to approach the card swiping area. At the same time, the current collector monitors the current of the X-axis and Z-axis motors.

8. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: If the current collected exceeds the threshold value Imax, and the motor current is found to exceed the threshold value in 1 / 2s circle and 3 / 2 circle, the current exceeding threshold value counter Ti increases by 1. The current collector monitors the current size of the X-axis and Z-axis motors and exceeds the threshold value Imax, and the current exceeding threshold value counter Ti becomes 1. , The X-axis and Z-axis motors start to rotate in the reverse direction for k steps, and then rotate forward again for k steps.

9. The card swiping method for the automatic card swiping machine for a charging pile according to claim 1, characterized in that: When calculating based on the data of variables Step_X and Step_Z, each rotation of the shaft will cause the slider to move a distance of l, so lx=l*(Step_X / (k / 1.8) / 360) and lz=l*(Step_Z / (k / 1.8) / 360).

Citation Information

Patent Citations

  • Fatigue testing device of RFID (radio frequency identification) reader card

    CN103308809A

  • Passive RFID electronic tag card resonance frequency point testing device

    CN212932778U