Internet of Things Card Number Processing Device, Method and System
By designing the polling and switching and hardware reset mechanism of the multi-card slot card reading module and processing module, the problem of inefficient reading efficiency of IoT cards is solved, and the card number is automatically read quickly is realized, errors and omissions are reduced, and card reading accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202510603164.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-05-12
AI Technical Summary
The existing IoT card reading methods are inefficient, prone to errors or omissions, cumbersome operations, and cannot efficiently handle a large number of card numbers.
A IoT card number processing device is designed, which includes at least two card reading modules, each module has multiple card slots, which are polled and switched on through the processing module, and hardware reset is performed when reading fails to ensure automatic and fast reading of the card number.
It realizes automatic and fast reading of IoT card numbers, reduces errors or omissions in card reading, simplifies the operation process, and improves the accuracy and efficiency of reading.
Smart Images

Figure CN120124647B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of Internet of Things card processing, and particularly to an Internet of Things card number processing device, method and system. Background Art
[0002] With the rapid development of Internet of Things technology, Internet of Things cards have shown their unique advantages in multiple fields. When Internet of Things cards are applied to cloud printers, the usage efficiency and convenience of the printers are greatly improved. In cloud printer applications, it is often necessary to recycle and register a large number of Internet of Things cards into the warehouse.
[0003] Currently, in the existing Internet of Things card reading methods, usually the Internet of Things card numbers are read and registered by manual identification or by reading one card at a time through a card reader device. However, the card reading takes a long time, the card reading operation is cumbersome, the card reading efficiency is low, and it is easy to make mistakes or omissions in card reading. Summary of the Invention
[0004] Based on this, an Internet of Things card number processing device, method and system are provided.
[0005] In a first aspect, this application provides an Internet of Things card number processing device, including:
[0006] A card reading module, the card reading module includes at least 2 card reading modules, and each card reading module is provided with at least 2 card slots; the card slots are used for plugging Internet of Things cards;
[0007] A processing module, the processing module is connected to each card slot; the processing module is configured to perform polling switching conduction on the card slots in the same card reading module, and read the card numbers of the corresponding Internet of Things cards in the conducting card slots; the processing module is further configured to reset the card slot of the corresponding Internet of Things card when any physical network card reading fails, so as to conduct the corresponding card slot, and obtain each card number data according to the card numbers of the Internet of Things cards in the corresponding conducting card slot.
[0008] In one embodiment, the processing module includes a processing chip, at least 2 switching control circuits and at least 4 reset control circuits; the card slot has a power supply pin and a reset pin;
[0009] The processing chip is respectively connected to each switching control circuit and each reset control circuit; each switching control circuit is connected to the power supply pin of each card slot in a one-to-one correspondence, and each reset control circuit is connected to the reset pin of each card slot in a one-to-one correspondence.
[0010] In one embodiment, the processing module further includes at least 4 status detection circuits; the card slot has a detection pin;
[0011] The processing chip is connected to each status detection circuit; each status detection circuit is connected to the detection pin of each card slot in a one-to-one correspondence;
[0012] The status detection circuit is used to detect the connection status of the IoT card in the corresponding card slot.
[0013] In one embodiment, the switching control circuit includes an optocoupler isolator, a first triode, a second triode, a third triode, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor; the reset control circuit includes a first capacitor;
[0014] The first end of the first resistor is connected to the processing chip, the second end of the first resistor is connected to the base of the first triode, the emitter of the first triode is grounded, and the collector of the first triode is connected to the first end of the third resistor; the first end of the second resistor is connected to the first end of the first resistor, and the second end of the second resistor is grounded; the first input terminal of the optocoupler isolator is connected to the first power supply, the second input terminal of the optocoupler isolator is connected to the second end of the third resistor, the first output terminal of the optocoupler isolator is connected to the first end of the fourth resistor, and the second output terminal of the optocoupler isolator is grounded; the base of the second triode is connected to the second end of the fourth resistor, the emitter of the second triode is respectively connected to the first end of the fifth resistor and the first end of the sixth resistor, and the collector of the second triode is grounded; the second end of the fifth resistor is connected to the second power supply; the base of the third triode is connected to the second end of the sixth resistor, the emitter of the third triode is connected to the second power supply, and the collector of the third triode is connected to the power supply pin of the corresponding card slot;
[0015] The positive electrode of the first capacitor is respectively connected to the processing chip and the reset pin of the corresponding card slot, and the negative electrode of the first capacitor is grounded.
[0016] In one embodiment, the status detection circuit includes a fourth triode, a fifth triode, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, and a light-emitting diode;
[0017] The base of the fourth triode is respectively connected to the first end of the seventh resistor and the detection pin of the corresponding card slot, the collector of the fourth triode is connected to the first end of the eighth resistor, and the emitter of the fourth triode is grounded; the second end of the seventh resistor is connected to the third power supply; the base of the fifth triode is connected to the second end of the eighth resistor, the emitter of the fifth triode is connected to the first power supply, the collector of the fifth triode is respectively connected to the first end of the ninth resistor and the second end of the tenth resistor, the second end of the ninth resistor is grounded, and the second end of the tenth resistor is connected to the anode of the light-emitting diode, and the cathode of the light-emitting diode is grounded.
[0018] In one embodiment, the card slot further includes a data pin and a clock pin;
[0019] The data pins of the card slots corresponding to the same card reading module are connected in parallel to the corresponding data terminals of the processing chip; the clock pins of the card slots corresponding to the same card reading module are connected in parallel to the corresponding clock terminals of the processing chip.
[0020] In one embodiment, the card slot size of one of the card reading modules in each card reading module is different from the card slot sizes of at least one of the remaining card reading modules.
[0021] In one embodiment, the processing module is further configured to classify and mark the obtained card number data based on a preset coding algorithm to obtain the marked card number data after marking, and transmit the marked card number data after marking to the host computer, so that the host computer classifies and stores the marked card number data after marking based on the preset coding algorithm.
[0022] In a second aspect, the present application provides an Internet of Things card number processing method, which is applied to the Internet of Things card number processing device as described in any one of the above. The Internet of Things card number processing method includes the following steps:
[0023] Poll and switch the conduction of the card slots in the same card reading module, and read the card numbers of the corresponding Internet of Things cards in the conduction card slots;
[0024] When any physical network card reading fails, reset the card slot of the Internet of Things card corresponding to the reading failure to conduct the corresponding card slot;
[0025] According to the card number reading of each Internet of Things card in the corresponding conduction card slot, obtain each card number data.
[0026] In a third aspect, the present application provides an Internet of Things card number processing system, including a host computer and the Internet of Things card number processing device as described in any one of the above; the Internet of Things card number processing device is connected to the host computer.
[0027] One of the above technical solutions has the following advantages and beneficial effects:
[0028] In the above-mentioned Internet of Things card number processing device, it includes a card reading module and a processing module. The card reading module includes at least two card reading modules, and each card reading module is provided with at least two card slots; the card slots are used for plugging in Internet of Things cards; the processing module is connected to each card slot; the processing module is configured to perform polling switching conduction on the card slots in the same card reading module, and read the card numbers of the corresponding Internet of Things cards in the conducting card slots; the processing module is also configured to reset the card slot of the Internet of Things card corresponding to the reading failure when any physical network card reading fails, so as to conduct the corresponding card slot, and obtain each card number data by reading the card numbers of the Internet of Things cards in the corresponding conducting card slots, realizing the automatic and fast reading of the Internet of Things card numbers. This application integrates multiple card slots for plugging in Internet of Things cards, and performs polling switching conduction on the corresponding card slots, realizing that only by inserting the corresponding Internet of Things cards can multiple Internet of Things cards be automatically read, and the card numbers can be read again by means of hardware reset after the reading fails, reducing the situation of card reading errors or omissions, shortening the card reading time, simplifying the card operation process, and improving the accuracy and efficiency of Internet of Things card reading. Description of the Drawings
[0029] Figure 1 It is the first structural schematic diagram of the Internet of Things card number processing device in the embodiment of the present application;
[0030] Figure 2 It is the second structural schematic diagram of the Internet of Things card number processing device in the embodiment of the present application;
[0031] Figure 3 It is the circuit schematic diagram of the Internet of Things card number processing device in the embodiment of the present application;
[0032] Figure 4 It is the flow schematic diagram of the Internet of Things card number processing method in the embodiment of the present application.
[0033] 100. Card reading module; 110. Card reading module; 120. Card slot; 130. Internet of Things card; 200. Processing module; 210. Processing chip; 220. Switching control circuit; 230. Reset control circuit; 240. Status detection circuit;
[0034] OC1. Optocoupler isolator; Q1. First triode; Q2. Second triode; Q3. Third triode; Q4. Fourth triode; Q5. Fifth triode; R1. First resistor; R2. Second resistor; R3. Third resistor; R4. Fourth resistor; R5. Fifth resistor; R6. Sixth resistor; R7. Seventh resistor; R8. Eighth resistor; R9. Ninth resistor; R10. Tenth resistor; C1. First capacitor; D1. Light-emitting diode. Detailed Embodiment
[0035] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0036] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data used can be interchanged under appropriate circumstances for the embodiments of this application described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0037] In addition, the meaning of the term "plurality" should be two or more.
[0038] In one embodiment, as Figure 1 shown, an Internet of Things card number processing device is provided, which includes a card reading module 100 and a processing module 200. The card reading module 100 includes at least 2 card reading modules 110, and the card reading module 110 is provided with at least 2 card slots 120; the card slots 120 are used for plugging in Internet of Things cards 130; the processing module 200 is connected to each card slot 120; the processing module 200 is configured to perform polling switching conduction on each card slot 120 in the same card reading module 110, and read the card numbers of the corresponding Internet of Things cards 130 of the conducting card slots; the processing module 200 is further configured to reset the card slot 120 of the corresponding Internet of Things card 130 when any physical network card reading fails, so as to conduct the corresponding card slot 120, and read the card numbers of the Internet of Things cards 130 of the corresponding conducting card slots to obtain each card number data.
[0039] Among them, the Internet of Things card 130 can be applied to a cloud printer. The Internet of Things card 130 is a pluggable Internet of Things card 130, and the type of the Internet of Things card 130 can be divided into large cards (MINI-USIM, 2FF), medium cards (Micro-USIM, 3FF), and small cards (Nano-USIM, 4FF) according to the specification size. The Internet of Things card 130 has a unique card number, such as the card number of the Internet of Things card 130 is the CCID (Card Identification Code) number.
[0040] The card reading module 100 can be integrally arranged on a circuit board. The circuit board is provided with at least two card reading modules 110, and the processing modules 200 can be serially connected to each other. The card reading module 110 is provided with at least two card slots 120, and the IoT card 130 can be arranged in the corresponding card slot 120 in a hot-pluggable manner so that the IoT card 130 establishes a connection with the corresponding card slot 120. The processing module 200 can be serially connected in parallel to each card slot 120 in the same card reading module 110.
[0041] Exemplarily, the processing module 200 includes a first serial port, a second serial port and a third serial port. The card reading module 100 includes a first card reading module, a second card reading module and a third card reading module. The first card reading module includes a first card slot, a second card slot and a third card slot. The second card reading module includes a fourth card slot, a fifth card slot and a sixth card slot. The third card reading module includes a seventh card slot, an eighth card slot and a ninth card slot. The processing module 200 is connected to the first card reading module through the first serial port, that is, the processing module 200 is serially connected in parallel to the first card slot, the second card slot and the third card slot through the first serial port. Similarly, the processing module 200 is connected to the second card reading module through the second serial port, that is, the processing module 200 is serially connected in parallel to the fourth card slot, the fifth card slot and the sixth card slot through the second serial port. The processing module 200 is connected to the third card reading module through the third serial port, that is, the processing module 200 is serially connected in parallel to the seventh card slot, the eighth card slot and the ninth card slot through the third serial port.
[0042] After the IoT card 130 is plugged into the corresponding card slot 120, the card number reading function is started. The processing module 200 conducts each card slot 120 in the same card reading module 110 based on the polling switching mode, and reads the card number of the IoT card 130 corresponding to the conducted card slot. That is, the processing module 200 first performs the first round of reading, reads the first card slot through the first serial port, reads the fourth card slot through the second serial port and reads the seventh card slot through the third serial port. After the first round of reading is completed, it switches to the second card slot corresponding to the first serial port, the fifth card slot corresponding to the second serial port and the eighth card slot corresponding to the third serial port. After the second round of reading is completed, it switches to the third card slot corresponding to the first serial port, the sixth card slot corresponding to the second serial port and the ninth card slot corresponding to the third serial port, realizing the reading of the card numbers of the IoT cards 130 corresponding to the 9 card slots 120, and realizing the automatic and fast reading of the IoT card numbers.
[0043] Exemplarily, the software system adopted by the processing module 200 can be the Freertos operating system. The processing module 200 can allocate corresponding preset reading time slices to each card slot 120 of the same card reading module 110. Then, when polling and switching to conduct each card slot 120 in the same card reading module 110, it can read the card number of the corresponding IoT card 130 of the conducted card slot based on the preset reading time slice, realizing seamless connection between multiple tasks and enabling the switching work of the card slot 120 not to pause.
[0044] It should be noted that when reading the IoT card 130, the hot-swap function of the IoT card 130 needs to be enabled first to avoid reading the card number of the previous reading after replacing the new card.
[0045] When the processing module 200 fails to read the card in a certain card slot 120, it determines that the corresponding card slot 120 is abnormally connected, resulting in the failure to read the corresponding IoT card 130. Then, the card slot 120 of the corresponding IoT card 130 that fails to read is reset to reconnect the corresponding card slot 120 and read the corresponding IoT card 130 again. If the reading is successful, the reset of the corresponding card slot 120 is successful. The processing module 200 reads the card numbers of the IoT cards 130 through the respective IoT cards 130 in the corresponding conductive card slots, and then obtains the card number data of the respective corresponding IoT cards 130. Exemplarily, if the reading still fails after the first reset operation, the corresponding card slot 120 is reset again. If the reset fails continuously two or more times, it is determined that the corresponding IoT card 130 has a fault, and a reminder signal is sent (such as triggering the warning light to light up, etc.).
[0046] It should be noted that when the processing module 200 fails to read the card in a certain card slot 120, it can try to read again. If the reading fails continuously two or more times, the reset operation is started, so that the IoT card 130 does not need to be manually unplugged and replugged, thereby reducing the situation of card reading errors and improving the accuracy of reading the IoT card 130.
[0047] In the above embodiments, the card reading module 100 is provided with at least two card reading modules 110, and the card reading module 110 is provided with at least two card slots 120; based on the IoT card 130 being inserted into the corresponding card slot 120, the processing module 200 is connected to each card slot 120; the processing module 200 performs polling switching conduction on the card slots 120 in the same card reading module 110 and reads the card numbers of the corresponding IoT cards 130 in the conductive card slots; when the processing module 200 fails to read any physical network card, the card slot 120 of the corresponding IoT card 130 that fails to read is reset to conduct the corresponding card slot 120, and according to reading the card numbers of the respective IoT cards 130 in the corresponding conductive card slots, the respective card number data are obtained, realizing the automatic and fast reading of the card numbers of the IoT cards 130. In this application, by integrating multiple card slots 120 for inserting the IoT cards 130 and performing polling switching conduction on the corresponding card slots 120, it is realized that only by inserting the corresponding IoT card 130, multiple IoT cards 130 can be automatically read, and the card number can be read again by means of hardware reset after the reading fails, reducing the situation of card reading errors or omissions, shortening the card reading time at the same time, simplifying the card operation process, and improving the accuracy and efficiency of reading the IoT card 130.
[0048] In one embodiment, as Figure 2As shown, the processing module 200 includes a processing chip 210, at least two switching control circuits 220, and at least four reset control circuits 230; the card slot 120 has a power supply pin and a reset pin; the processing chip 210 is respectively connected to each switching control circuit 220 and each reset control circuit 230; each switching control circuit 220 is connected to the power supply pin of each corresponding card slot 120 one by one, and each reset control circuit 230 is connected to the reset pin of each corresponding card slot 120 one by one.
[0049] Among them, the processing chip 210 can be used to read the card number of the Internet of Things card 130 in the corresponding card slot 120. The processing chip 210 is also used to transmit a control signal to the switching control circuit 220 to switch on the corresponding card slot 120 through the switching control circuit 220, and transmit a reset signal to the reset control circuit 230 to reset the corresponding card slot 120 through the reset control circuit 230. It should be noted that when the card number of the Internet of Things card 130 is successfully read, the indicator light corresponding to the card slot 120 will trigger an alarm prompt of the corresponding color. For example, when the card number of the Internet of Things card 130 is abnormally read, the red light of the corresponding card slot 120 is triggered to light up (indicating a read failure); when the card number of the Internet of Things card 130 is successfully read, the green light of the corresponding card slot 120 is triggered to light up (indicating a successful read).
[0050] For example, the number of switching control circuits 220 is the same as the number of card slots 120 in the card reading module 100, and each switching control circuit 220 is connected to the power supply pin of each corresponding card slot 120 one by one. Then the switching control circuit 220 is used to control the on and off of the corresponding card slot 120. Another example is that the number of switching control circuits 220 is the same as the number of card slots 120 in the same card reading module 110. Then the switching control circuit 220 is connected to the power supply pin of one card slot 120 in the same card reading module 110, and the power supply pins of the corresponding card slots 120 of each card reading module 110 are connected in parallel to the switching control circuit 220. Furthermore, the switching control circuit 220 can simultaneously control the corresponding card slots 120 in each card reading module 110 to conduct or disconnect, realizing the polling switching conduction of each card slot 120. The number of reset control circuits 230 is the same as the number of card slots 120 in the card reading module 100, and each reset control circuit 230 is connected to the reset pin of each corresponding card slot 120 one by one. Then, based on the processing chip 210 transmitting a reset signal to the reset control circuit 230, the reset control circuit 230 can control the corresponding card slot 120 to be reset.
[0051] In one example, after the IoT card 130 is plugged into the corresponding card slot 120, the card number reading function is started. The processing chip 210 is positioned on the first card slot corresponding to the first serial port, the fourth card slot corresponding to the second serial port, and the seventh card slot corresponding to the third serial port. The processing chip 210 controls the corresponding switching control circuit 220 to start, and then the switching control circuit 220 switches the first card slot, the fourth card slot, and the seventh card slot to be conductive, and the three serial ports perform the first round of card number reading. After the first round of reading is completed, it switches to the second card slot corresponding to the first serial port, the fifth card slot corresponding to the second serial port, and the eighth card slot corresponding to the third serial port. Then, the corresponding switching control circuit 220 switches the second card slot, the fifth card slot, and the eighth card slot to be conductive, and the three serial ports perform the second round of card number reading. After the second round of reading is completed, it switches to the third card slot corresponding to the first serial port, the sixth card slot corresponding to the second serial port, and the ninth card slot corresponding to the third serial port. Then, the switching control circuit 220 switches the third card slot, the sixth card slot, and the ninth card slot to be conductive, and the three serial ports perform the third round of card number reading, realizing the reading of the card numbers of the IoT cards 130 corresponding to 9 card slots 120, and achieving automatic and fast reading of the IoT card numbers.
[0052] When the processing chip 210 fails to read a card in a certain card slot 120, it transmits a reset signal to the corresponding reset control circuit 230 to reset the corresponding card slot 120 and read the corresponding IoT card 130 again. If the reading is successful, it is determined that the corresponding card slot 120 is successfully reset. The processing chip 210 reads the card numbers through the IoT cards 130 in the corresponding conductive card slots, and then obtains the card number data of each corresponding IoT card 130, realizing that only by inserting the corresponding IoT card 130 can multiple IoT cards 130 be automatically read, and the card number can be read again by means of hardware reset after the reading fails, reducing the situation of card reading errors or omissions, shortening the card reading time, simplifying the card operation process, and improving the accuracy and efficiency of IoT card 130 reading.
[0053] In one embodiment, as Figure 2 shown, the processing module 200 further includes at least 4 status detection circuits 240; the card slot 120 has detection pins; the processing chip 210 is connected to each status detection circuit 240; each status detection circuit 240 is connected to the detection pins of each card slot 120 in a one-to-one correspondence; the status detection circuit 240 is used to detect the connection status of the IoT card 130 in the corresponding card slot 120.
[0054] Among them, the status detection circuit 240 is used to detect whether the IoT card 130 in the corresponding card slot 120 is correctly inserted. The number of status detection circuits 240 is the same as the number of card slots 120 in the card reading module 100. Based on the one-to-one connection between the detection pins of each status detection circuit 240 and each card slot 120, after the system is powered on and started, when the IoT card 130 is inserted into the corresponding card slot 120, the status detection circuit 240 can detect the detection pin of the corresponding card slot 120. If the insertion is correct, it is determined that the IoT card 130 in the corresponding card slot 120 enters the ready state, and then the status detection circuit 240 feeds back a detection success signal to the processing chip 210 to ensure that the IoT card 130 is correctly inserted into the corresponding card slot 120, so as to automatically read the card number of the IoT card 130 and improve the accuracy and efficiency of reading the card number of the IoT card 130.
[0055] In one embodiment, as Figure 3 shown, the switching control circuit 220 includes an optocoupler isolator OC1, a first triode Q1, a second triode Q2, a third triode Q3, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a sixth resistor R6; the reset control circuit 230 includes a first capacitor C1; the first end of the first resistor R1 is connected to the processing chip 210, the second end of the first resistor R1 is connected to the base of the first triode Q1, the emitter of the first triode Q1 is grounded, and the collector of the first triode Q1 is connected to the first end of the third resistor R3; the first end of the second resistor R2 is connected to the first end of the first resistor R1, and the second end of the second resistor R2 is grounded; the first input terminal of the optocoupler isolator OC1 is connected to the first power supply, the second input terminal of the optocoupler isolator OC1 is connected to the second end of the third resistor R3, the first output terminal of the optocoupler isolator OC1 is connected to the first end of the fourth resistor R4, and the second output terminal of the optocoupler isolator OC1 is grounded; the base of the second triode Q2 is connected to the second end of the fourth resistor R4, the emitter of the second triode Q2 is respectively connected to the first end of the fifth resistor R5 and the first end of the sixth resistor R6, and the collector of the second triode Q2 is grounded; the second end of the fifth resistor R5 is connected to the second power supply; the base of the third triode Q3 is connected to the second end of the sixth resistor R6, the emitter of the third triode Q3 is connected to the second power supply, and the collector of the third triode Q3 is connected to the power supply pin of the corresponding card slot 120; the positive electrode of the first capacitor C1 is respectively connected to the processing chip 210 and the reset pin of the corresponding card slot 120, and the negative electrode of the first capacitor C1 is grounded.
[0056] Among them, the optocoupler isolator OC1 is used to optically isolate the processing chip 210 and the IoT card 130 to avoid signal interference. The second resistor R2 plays an effective grounding role, so that when the processing chip 210 outputs a low-level signal, the base of the first triode Q1 can be effectively grounded. The first triode Q1 is used to control the on / off of the optocoupler isolator OC1. For example, when the processing chip 210 transmits a high-level signal to the first triode Q1, the first triode Q1 is turned on, and then the optocoupler isolator OC1 is turned on; when the processing chip 210 transmits a low-level signal to the first triode Q1, the first triode Q1 is turned off, and then the optocoupler isolator OC1 is turned off. The second triode Q2 and the third triode Q3 form a two-stage amplified current circuit. After the optocoupler isolator OC1 is turned on, the signal is amplified by the two-stage amplified current circuit to drive the power supply pin of the corresponding card slot 120 to work, thereby realizing the conduction of the corresponding card slot 120; when the optocoupler isolator OC1 is turned off, the two-stage amplified current circuit cannot drive the power supply pin of the corresponding card slot 120 to work, that is, the corresponding card slot 120 is switched off.
[0057] The first capacitor C1 plays a filtering role for the reset signal. When the processing chip 210 cannot read the card number of the corresponding IoT card 130 for a certain card slot 120, the processing chip 210 generates a short high-low level pulse signal, and after filtering through the first capacitor C1, the pulse signal is transmitted to the reset pin of the corresponding card slot 120 to perform a hardware reset on the corresponding card slot 120. Then the processing chip 210 continues to read the card slot 120. When a read error occurs twice in a row, a warning is triggered, and it is determined that the corresponding IoT card 130 has a fault.
[0058] In the above embodiment, when the processing chip 210 transmits a high-level signal to the corresponding card slot 120, the corresponding serial port number is temporarily assigned to the card slot 120 for work, and the level of the non-working card slot 120 is low at this time and is in an off state, so as to realize the polling switching conduction of the corresponding card slot 120, and it is possible to automatically read multiple IoT cards 130 only by inserting the corresponding IoT card 130, and the card number can be read again by means of hardware reset after a read failure, reducing the situation of card reading errors or omissions, shortening the card reading time, simplifying the card operation process, and improving the accuracy and efficiency of IoT card 130 reading.
[0059] In one embodiment, such as Figure 3As shown, the status detection circuit 240 includes a fourth triode Q4, a fifth triode Q5, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, and a light-emitting diode D1. The base of the fourth triode Q4 is respectively connected to the first end of the seventh resistor R7 and the detection pin of the corresponding card slot 120. The collector of the fourth triode Q4 is connected to the first end of the eighth resistor R8. The emitter of the fourth triode Q4 is grounded. The second end of the seventh resistor R7 is connected to the third power supply. The base of the fifth triode Q5 is connected to the second end of the eighth resistor R8. The emitter of the fifth triode Q5 is connected to the first power supply. The collector of the fifth triode Q5 is respectively connected to the first end of the ninth resistor R9 and the second end of the tenth resistor R10. The second end of the ninth resistor R9 is grounded. The second end of the tenth resistor R10 is connected to the anode of the light-emitting diode D1. The cathode of the light-emitting diode D1 is grounded.
[0060] Among them, the fourth triode Q4 and the fifth triode Q5 form a two-stage amplified current circuit. When the detection pin of the card slot 120 is at a high level, the fourth triode Q4 and the fifth triode Q5 are sequentially turned on, thereby driving the light-emitting diode D1 to light up. At the same time, the processing chip 210 can detect the corresponding signal of the detection pin of the card slot 120 through the status detection circuit 240, and then it is determined that the IoT card 130 in the corresponding card slot 120 is correctly inserted, so as to automatically read the card number of the IoT card 130 and improve the accuracy and efficiency of reading the card number of the IoT card 130. When the detection pin of the card slot 120 is at a low level, the fourth triode Q4 and the fifth triode Q5 are turned off, and then the light-emitting diode D1 goes out. At the same time, the processing chip 210 does not detect the corresponding signal of the detection pin of the card slot 120 through the status detection circuit 240, and it is determined that the IoT card 130 in the corresponding card slot 120 has been removed.
[0061] In one embodiment, as Figure 3 shown, the card slot 120 further includes a data pin and a clock pin. The data pins of the card slots 120 corresponding to the same card reading module 110 are connected in parallel to the corresponding data terminal of the processing chip 210. The clock pins of the card slots 120 corresponding to the same card reading module 110 are connected in parallel to the corresponding clock terminal of the processing chip 210.
[0062] For example, the first serial port of the processing chip 210 is respectively connected to the first card slot, the second card slot, and the third card slot of the first card reading module, that is, the data pins of the first card slot, the second card slot, and the third card slot are connected in parallel to the corresponding data terminal of the processing chip 210. Similarly, the clock pins of the first card slot, the second card slot, and the third card slot are connected in parallel to the corresponding data terminal of the processing chip 210.
[0063] The processing chip 210 can allocate corresponding preset reading time slices to the card slots 120 of the same card reading module 110. When polling and switching on the card slots 120 in the same card reading module 110, it can read the card numbers of the corresponding Internet of Things cards 130 in the switched-on card slots based on the preset reading time slices, realizing that only by inserting the corresponding Internet of Things cards 130, multiple Internet of Things cards 130 can be automatically read.
[0064] In one embodiment, the size of the card slots 120 of one of the card reading modules 110 in each card reading module 110 is different from the size of the card slots 120 of at least one of the remaining card reading modules 110.
[0065] Exemplarily, the card reading module 100 may include card reading modules 110 with a variety of different card slot 120 sizes. For example, the reading module may include a first card reading module, a second card reading module, and a third card reading module; the first card reading module includes 3 card slots 120 of a first size, the second card reading module includes 3 card slots 120 of a second size, and the third card reading module includes 3 card slots 120 of a third size. The first size is greater than the second size, and the second size is greater than the third size, realizing the card reading of three different sizes of Internet of Things cards 130, adapting to Internet of Things cards 130 of different sizes, and improving the compatibility of card reading.
[0066] In one embodiment, the processing module 200 is further configured to classify and mark the obtained card number data based on a preset coding algorithm to obtain the marked card number data after each marking, and transmit the marked card number data after each marking to the host computer, so that the host computer classifies and stores the marked card number data after each marking based on the preset coding algorithm.
[0067] Among them, the preset coding algorithm refers to the one that can be established according to the coding rules of the Internet of Things card 130.
[0068] For example, the processing module 200 classifies the obtained card number data based on the preset coding algorithm, and sets corresponding prefix name marks for the card number data, obtaining the marked card number data after each marking, thereby reducing the later number classification and management, realizing the automatic reading, uploading, and saving of the card numbers of the Internet of Things cards 130 without manual intervention, and improving the automation degree of card reading. Using the USB communication method, the marked card number data after each marking is uploaded to the host computer for storage, thereby shortening the communication time and reducing the transmission error.
[0069] Exemplarily, the host computer can establish different table files (such as Excel files). After each card slot 120 of the card reading module 100 has completed reading, the marked card number data is uploaded to the host computer through USB. Based on a preset coding algorithm, the host computer automatically aggregates the marked card number data into different Excel sheets for storage, thereby facilitating users to manage and analyze data, and improving the accuracy and management efficiency of the card number reading of the Internet of Things card 130.
[0070] It should be noted that the processing module 200 can also adopt an encrypted communication and error detection mechanism to ensure the security and reliability of data transmission.
[0071] In one embodiment, as Figure 4 shown, there is also provided an Internet of Things card number processing method, which is applied to the Internet of Things card number processing device as described in any one of the above. The Internet of Things card number processing method includes the following steps:
[0072] Step S410: Poll and switch the conduction of each card slot in the same card reading module, and read the card number of the corresponding Internet of Things card in the conducted card slot.
[0073] For example, the card reading module includes a first card reading module, a second card reading module, and a third card reading module. The first card reading module includes a first card slot, a second card slot, and a third card slot. The second card reading module includes a fourth card slot, a fifth card slot, and a sixth card slot. The third card reading module includes a seventh card slot, an eighth card slot, and a ninth card slot. When the Internet of Things card is inserted into the corresponding card slot and the card number reading function is started, the processing module conducts each card slot in the same card reading module based on the polling switching mode, and reads the card number of the Internet of Things card in the corresponding conducted card slot. That is, the processing module first performs the first round of reading, respectively reading the first card slot through the first serial port, the fourth card slot through the second serial port, and the seventh card slot through the third serial port; after the first round of reading is completed, it switches to the second card slot corresponding to the first serial port, the fifth card slot corresponding to the second serial port, and the eighth card slot corresponding to the third serial port; after the second round of reading is completed, it switches to the third card slot corresponding to the first serial port, the sixth card slot corresponding to the second serial port, and the ninth card slot corresponding to the third serial port, so as to realize the reading of the card numbers of the Internet of Things cards corresponding to 9 card slots, and realize the automatic and fast reading of the Internet of Things card numbers.
[0074] Step S420: When any physical network card reading fails, reset the card slot of the corresponding Internet of Things card that fails to be read to conduct the corresponding card slot.
[0075] When the processing module fails to read a card in a certain card slot, it determines that the connection of the corresponding card slot is abnormal, resulting in the failure to read the corresponding Internet of Things card. Then, it resets the card slot of the corresponding Internet of Things card that fails to be read to reconnect the corresponding card slot, and reads the corresponding Internet of Things card again. If the reading is successful, the reset of the corresponding card slot is successful.
[0076] Step S430: Read the card numbers of the IoT cards in the corresponding conductive card slots to obtain the card number data of each card.
[0077] The processing module reads the card numbers of the IoT cards through the IoT cards in the corresponding conductive card slots, and then obtains the card number data of the corresponding IoT cards. Exemplarily, if the reading fails after the first reset operation, the corresponding card slot is reset again. If the reset fails continuously two or more times, it is determined that the corresponding IoT card has a fault, and a reminder signal is sent.
[0078] In the above embodiments, by polling and switching the conduction of each card slot in the same card reading module, and reading the card numbers of the corresponding IoT cards in the conductive card slots; when any physical network card reading fails, the card slot of the corresponding IoT card with reading failure is reset to conduct the corresponding card slot, and the card number data of each card is obtained by reading the IoT cards in the corresponding conductive card slots, realizing the automatic and fast reading of the IoT card numbers. In this application, by polling and switching the conduction of the corresponding card slots, it is realized that only by inserting the corresponding IoT cards, multiple IoT cards can be automatically read, and the card numbers can be read again by means of hardware reset after the reading fails, reducing the situation of card reading errors or omissions, shortening the card reading time, simplifying the card operation process, and improving the accuracy and efficiency of IoT card reading.
[0079] It should be understood that although Figure 4 the steps in the flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 4 at least a part of the steps in
[0080] may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
[0081] Among them, the host computer can be a computer. Based on the Internet of Things card number processing device being connected to the host computer, by integrating multiple card slots for plugging in Internet of Things cards and polling and switching the conduction of the corresponding card slots, it is possible to automatically read multiple Internet of Things cards just by inserting the corresponding Internet of Things cards, and be able to reread the card number in the way of hardware reset after the reading fails, reducing the situation of card reading errors or omissions. At the same time, it shortens the card reading time and simplifies the card operation process; in addition, based on the preset coding algorithm, the obtained card number data is sorted and reported, thereby reducing the later number classification and management, realizing the automatic reading, uploading and saving of the Internet of Things card numbers, without manual intervention, improving the automation degree of card reading, shortening the communication time and reducing the transmission errors, and enhancing the accuracy and efficiency of Internet of Things card reading.
[0082] In one embodiment, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above Internet of Things card number reading methods are implemented.
[0083] For example, when the computer program is executed by a processor, the steps of the following Internet of Things card number reading method are implemented:
[0084] Poll and switch the conduction of the card slots in the same card reading module, and read the card numbers of the corresponding Internet of Things cards in the conducted card slots. When any physical network card reading fails, reset the card slot of the corresponding Internet of Things card with reading failure to conduct the corresponding card slot. According to reading the card numbers of the Internet of Things cards in the corresponding conducted card slots, obtain each card number data.
[0085] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0086] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0087] The above embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. An Internet of Things card number processing device, characterized in that, Comprising: A card reading module, the card reading module includes at least 2 card reading modules, and each card reading module is provided with at least 2 card slots; the card slots are used for plugging in Internet of Things cards; A processing module, the processing module is connected to each of the card slots; the processing module is configured to perform polling switching conduction on each of the card slots in the same card reading module, and read the card numbers of the corresponding Internet of Things cards in the conducted card slots; the processing module is further configured to reset the card slot of the corresponding Internet of Things card when any physical network card reading fails, so as to conduct the corresponding card slot, and obtain each card number data according to reading the card numbers of each of the Internet of Things cards in the corresponding conducted card slot; The processing module includes a processing chip, at least 2 switching control circuits and at least 4 reset control circuits; the card slot has a power supply pin and a reset pin; The processing chip is respectively connected to each of the switching control circuits and each of the reset control circuits; each of the switching control circuits is correspondingly connected to the power supply pin of each of the card slots, and each of the reset control circuits is correspondingly connected to the reset pin of each of the card slots; The processing module further includes at least 4 state detection circuits; the card slot has a detection pin; The processing chip is connected to each of the state detection circuits; each of the state detection circuits is correspondingly connected to the detection pin of each of the card slots; The state detection circuit is used for detecting the connection state of the Internet of Things card in the corresponding card slot; The switching control circuit includes an optocoupler isolator, a first triode, a second triode, a third triode, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor and a sixth resistor; the reset control circuit includes a first capacitor; The first end of the first resistor is connected to the processing chip, the second end of the first resistor is connected to the base of the first triode, the emitter of the first triode is grounded, and the collector of the first triode is connected to the first end of the third resistor; the first end of the second resistor is connected to the first end of the first resistor, and the second end of the second resistor is grounded; the first input end of the optocoupler isolator is connected to a first power supply, the second input end of the optocoupler isolator is connected to the second end of the third resistor, the first output end of the optocoupler isolator is connected to the first end of the fourth resistor, and the second output end of the optocoupler isolator is grounded; the base of the second triode is connected to the second end of the fourth resistor, the emitter of the second triode is respectively connected to the first end of the fifth resistor and the first end of the sixth resistor, and the collector of the second triode is grounded; the second end of the fifth resistor is connected to a second power supply; the base of the third triode is connected to the second end of the sixth resistor, the emitter of the third triode is connected to the second power supply, and the collector of the third triode is connected to the power supply pin of the corresponding card slot; The positive pole of the first capacitor is respectively connected to the processing chip and the reset pin of the corresponding card slot, and the negative pole of the first capacitor is grounded.
2. The Internet of Things card number processing device according to claim 1, characterized in that, The state detection circuit includes a fourth triode, a fifth triode, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor and a light emitting diode; The base of the fourth triode is respectively connected to the first end of the seventh resistor and the detection pin of the corresponding card slot. The collector of the fourth triode is connected to the first end of the eighth resistor. The emitter of the fourth triode is grounded. The second end of the seventh resistor is connected to the third power supply. The base of the fifth triode is connected to the second end of the eighth resistor. The emitter of the fifth triode is connected to the first power supply. The collector of the fifth triode is respectively connected to the first end of the ninth resistor and the second end of the tenth resistor. The second end of the ninth resistor is grounded. The second end of the tenth resistor is connected to the anode of the light-emitting diode, and the cathode of the light-emitting diode is grounded.
3. The IoT card number processing device according to claim 1, wherein The card slot further includes a data pin and a clock pin. The data pins of the card slots corresponding to the same card reading module are connected in parallel to the corresponding data end of the processing chip. The clock pins of the card slots corresponding to the same card reading module are connected in parallel to the corresponding clock end of the processing chip.
4. The Internet of Things card number processing device according to claim 1, characterized in that, The card slot sizes of one of the card reading modules in each of the card reading modules are different from the card slot sizes of at least one of the remaining card reading modules.
5. The Internet of Things card number processing device according to any one of claims 1 to 4, characterized in that The processing module is further configured to classify and mark the obtained card number data based on a preset coding algorithm to obtain the marked card number data, and transmit the marked card number data to the host computer, so that the host computer classifies and stores the marked card number data based on the preset coding algorithm.
6. A method for processing Internet of Things card numbers, characterized in that, Applied to the Internet of Things card number processing device according to any one of claims 1 to 5, the Internet of Things card number processing method includes the following steps: Poll and switch on the card slots in the same card reading module, and read the card number of the corresponding Internet of Things card in the switched-on card slot. When any physical network card reading fails, reset the card slot of the Internet of Things card corresponding to the failed reading to switch on the corresponding card slot. Obtain the card number data according to the card number reading of the Internet of Things cards in the corresponding switched-on card slots.
7. An Internet of Things card number processing system, characterized in that, It includes a host computer and the Internet of Things card number processing device according to any one of claims 1 to 5. The Internet of Things card number processing device is connected to the host computer.
Citation Information
Patent Citations
A self-recovery method and a device when the information of the ID card is read abnormally
CN109255265A
Novel double-card selection control system
CN203287903U