Intelligent hardware device, handheld device and configuration method of intelligent hardware device
By introducing always-wake-up NFC modules and Bluetooth modules that can be connected to external devices in the smart hardware device, the problem of requiring multiple cards and not being able to be configured in real time is solved in the configuration process of existing smart hardware devices, an efficient and intelligent configuration process is achieved, and the power consumption of the device is reduced.
Patent Information
- Application Number
- CN202411023282.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2044-07-29
AI Technical Summary
During the configuration of existing smart hardware devices, at least one authorization card and one configuration card are required, and it cannot be adjusted and configured in real time at the location of the device. It is not very intelligent and inefficient.
An intelligent hardware device is designed, including a first main control unit, a first NFC module and a first Bluetooth module. The first NFC module is always in a wake-up state, and the first Bluetooth module is used to connect to an external device for configuration. By swiping the card to wake up the first Bluetooth module in the sensing area of the first NFC module, the first Bluetooth module establishes a connection with the external device, and the intelligent hardware device enters the configuration mode.
Real-time configuration is realized at the location of the smart hardware device, improving the degree of intelligence and configuration efficiency, reducing power consumption, and extending the battery life in smart locks.
Smart Images

Figure HDA0004967873120000011 
Figure HDA0004967873120000021 
Figure HDA0004967873120000031
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent hardware, and more specifically, to an intelligent hardware device, a handheld device and a configuration method for the intelligent hardware device. Background Art
[0002] With the advancement of technology, smart hardware devices have been widely used. For example, elevators and smart locks have built-in intelligent control systems to realize various functions.
[0003] Taking hotel smart locks as an example, existing hotel smart locks generally configure door locks through NFC modules. Before configuration, an authorization card and a configuration card are made through the PC (host computer). The authorization card is written with the authorization code corresponding to the smart door lock, and the configuration card is written with the data information required to configure the smart lock; when the authorization card is swiped on the NFC module of the smart lock, the smart lock enters the configuration mode and can be configured, and then the configuration card is swiped on the NFC module of the smart lock, and the NFC module of the smart lock reads the data information stored on the configuration card to complete the configuration of the smart lock.
[0004] It can be seen that the existing configuration process of such smart hardware devices requires at least one authorization card and one configuration card, and the required data needs to be written into the card in advance before configuration. The configuration information cannot be adjusted and configured in real time at the location of the smart hardware device. The degree of intelligence is not high and the efficiency is low. Summary of the invention
[0005] The object of the present invention is to provide an intelligent hardware device, a handheld device and a configuration method of the intelligent hardware device with high intelligence and high configuration efficiency.
[0006] A first aspect of the present invention provides an intelligent hardware device, comprising:
[0007] A first main control unit, a first NFC module and a first Bluetooth module, wherein the first NFC module and the first Bluetooth module are both electrically connected to the first main control unit;
[0008] The first NFC module always remains in an awake state to implement the access control function;
[0009] The first Bluetooth module is used to connect to an external device to configure the intelligent hardware device;
[0010] Under normal conditions, the first Bluetooth module is in a shutdown state. When the first NFC module reads a preset key, the first Bluetooth module is awakened by the first main control unit, and the first Bluetooth module sends a Bluetooth broadcast. After the first Bluetooth module establishes a connection with the external device, the smart hardware device enters the configuration mode.
[0011] Optionally, after the first Bluetooth module is disconnected from the external device, the first main control unit turns off the first Bluetooth module.
[0012] Optionally, after the first Bluetooth module is disconnected from the external device and the disconnection time is greater than a preset time, the first main control unit turns off the first Bluetooth module.
[0013] The second aspect of the present invention discloses a handheld device based on an Android system, which is used to debug any intelligent hardware device of the first aspect of the present invention, comprising:
[0014] A second NFC module, a second Bluetooth module and a second main control unit, wherein the second NFC module and the second Bluetooth module are both connected to the second main control unit by electrical signals;
[0015] The second NFC module is used to generate a simulated card and write a preset secret key into the simulated card;
[0016] The second Bluetooth module establishes Bluetooth communication with the intelligent hardware device so that the second main control unit configures the intelligent hardware device.
[0017] Optionally, the method of writing a preset key to the simulated card includes:
[0018] Obtain the operation permission of the handheld device, modify the NFC configuration file of the handheld device system, and then write the preset key to the simulated card through the preset software.
[0019] Optionally, the preset software includes a main program and a compatible program, the main program is used to implement the main business logic of the handheld device, and the compatible program encapsulates the hardware functions of the handheld device and provides an abstract interface method to the main program.
[0020] The third aspect of the present invention discloses a method for configuring an intelligent hardware device using the handheld device based on the Android system according to the second aspect of the present invention, the method comprising:
[0021] Use a handheld device to generate a simulated card and write a preset key to the simulated card;
[0022] Place the handheld device in the NFC sensing area of the smart hardware device, so that the first NFC module reads the preset key in the simulated card and wakes up the first Bluetooth module;
[0023] The first Bluetooth module sends a Bluetooth broadcast, and the second Bluetooth module establishes a communication connection with the first Bluetooth module;
[0024] The handheld device configures the intelligent hardware device through Bluetooth communication.
[0025] Optionally, the method for establishing a communication connection between the second Bluetooth module and the first Bluetooth module includes:
[0026] When the second Bluetooth module is in the scanning state, it filters the names and signal strengths of the scanned Bluetooth devices broadcast to find the device that best meets the conditions.
[0027] Optionally, filter based on the name and signal strength of the scanned Bluetooth device broadcasts to find the devices that best meet the criteria, including:
[0028] The Bluetooth devices matching the initialization name of the smart hardware device are screened out from the scanned Bluetooth broadcasts, and a connection is established with the one with the highest signal strength among the screened Bluetooth devices.
[0029] Optionally, the method for establishing a communication connection between the second Bluetooth module and the first Bluetooth module further includes:
[0030] After the handheld device establishes a Bluetooth connection with the smart hardware device, the handheld device is used to customize the name of the Bluetooth broadcast of the smart hardware device.
[0031] According to the technical content disclosed in the present invention, the following beneficial effects are achieved:
[0032] The smart hardware device includes a first main control unit, a first NFC module and a first Bluetooth module, and the first NFC module and the first Bluetooth module are both connected to the first main control unit by electrical signals; the first NFC module always remains in an awake state to realize the access control function, for example, when the smart hardware device is a smart lock, a card is swiped in the sensing area of the first NFC module to realize the door opening function, and when the smart hardware device is an elevator, a card is swiped in the sensing area of the first NFC module to realize the floor button authorization function; the first Bluetooth module is used to connect to an external device to configure the smart hardware device. Under normal conditions, the first Bluetooth module is in a shutdown state, which can reduce the power consumption of the smart hardware device. In particular, when the smart hardware device is a smart lock, since the smart lock is powered by a battery, the first Bluetooth module is in a shutdown state, which can greatly extend the battery life and improve the user experience; when the smart hardware device needs to be configured, the first Bluetooth module is awakened by swiping the card in the sensing area of the first NFC module. The first Bluetooth module sends a Bluetooth broadcast. After the first Bluetooth module establishes a connection with the external device, the smart hardware device enters the configuration mode. It can be seen that the first NFC module of the present invention mainly includes two functions of unlocking and waking up the first Bluetooth module. Based on the unlocking requirement, the first NFC module must remain in a normally open state regardless of whether it is used to wake up the first Bluetooth module, and the power consumption of the first NFC module must be less than that of the first Bluetooth module. Therefore, turning off the first Bluetooth module and waking it up by the first NFC module can reduce the power consumption of the smart hardware device.
[0033] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0035] Figure 1 This is a diagram of the handheld device system architecture of the present invention.
[0036] Figure 2 This is a diagram of the handheld device system architecture of the present invention.
[0037] Figure 3 This is a flow chart of data synchronization of a handheld device according to the present invention.
[0038] Figure 4 The host computer of the present invention reads the handheld device record process.
[0039] Figure 5 The present invention is a flow chart of establishing a connection between a handheld device and an external device.
[0040] Figure 6 This is a timing diagram of simulating a card number in a handheld device of the present invention.
[0041] Figure 7 A timing diagram of configuring external devices for the handheld device of the present invention.
[0042] Figure 8 The present invention is a flow chart of the handheld device reading physical card information.
[0043] Fig. 9 A flow chart of checking in and issuing a card using a handheld device of the present invention. DETAILED DESCRIPTION
[0044] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0047] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0048] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0049] First, the intelligent hardware device of the first aspect of the present invention is introduced. The intelligent hardware device can be an elevator control system or an offline intelligent door lock for a hotel. Of course, it can also include other intelligent hardware. In this embodiment, the intelligent hardware device of the first aspect of the present invention is described in detail with an offline intelligent door lock.
[0050] The offline smart door lock includes a lock body and an intelligent control unit. The lock body is used to lock and unlock the door, and the intelligent control unit is used to control the lock body action and parameter configuration of the offline smart door lock. The lock body can be a common lock body on the market, and will not be described in detail in this application.
[0051] The intelligent control unit includes a first main control unit, a first NFC module and a first Bluetooth module, and the first NFC module and the first Bluetooth module are both connected to the first main control unit by electrical signals; the first NFC module always remains in an awake state to realize the access control function; the first Bluetooth module is used to connect external devices to configure the intelligent hardware device; under normal conditions, the first Bluetooth module is in an off state, and the first Bluetooth module needs to be awakened when it is needed to connect external devices to configure the intelligent hardware device through the first Bluetooth module, which can effectively reduce the working time of the first Bluetooth module, reduce the overall power consumption of the offline intelligent door lock, and improve the battery life of the offline intelligent door lock. Existing Bluetooth wake-up methods include physical button wake-up and sensor wake-up. Both of these wake-up methods have certain disadvantages in the field of offline smart door locks in hotels: first, the physical button wake-up method has low security, and only hotel employees have the authority to configure offline smart door locks. If the physical button is used to wake up Bluetooth, there is a possibility that the first Bluetooth module is awakened by non-staff through physical buttons by violent or illegal means, and then a connection is established with the offline smart door lock through the first Bluetooth module and the background of the offline smart door lock is invaded; and waking up the first Bluetooth module through a sensor adds a new module to the offline smart door lock, which not only increases the overall cost of the offline smart door lock, but also increases the power consumption of the offline smart door lock, making the battery of the offline smart door lock less durable. Therefore, the embodiment of the present invention connects both the first NFC module and the first Bluetooth module to the first main control unit by electrical signals, and wakes up the first Bluetooth module through the signal interaction between the first NFC module and the first Bluetooth module. Specifically, an authorization card storing a preset secret key is set. When the authorization card enters the sensing range of the first NFC module, the first NFC module reads the preset secret key in the authorization card, and wakes up the first Bluetooth module through the first main control unit. The awakened first Bluetooth module sends a Bluetooth broadcast. At this time, the first Bluetooth module can establish a Bluetooth connection with an external device. After the first Bluetooth module establishes a connection with the external device, the smart hardware device enters the configuration mode, and the external device can be used to configure the offline smart door lock. When the first Bluetooth module is disconnected from the external device, and the disconnection time is greater than the preset time, the first main control unit turns off the first Bluetooth module. If you want to wake up the first Bluetooth module again, you need to swipe the authorization card again within the sensing range of the first NFC module.
[0052] As can be seen from the above, the first Bluetooth module is in a shutdown state under normal conditions and does not generate power consumption. When the offline smart door lock needs to be configured, it is only necessary to swipe the authorization card within the sensing range of the first NFC module to activate and wake up the first Bluetooth module. The NFC module is the basic module of the offline smart door lock, and using the NFC module to wake up the Bluetooth module will not increase the cost of the offline smart door lock. The first Bluetooth module will only be awakened when the first NFC module recognizes the correct preset secret key stored in the authorization card, which greatly improves the security of the offline smart door lock and effectively prevents the offline smart door lock from being maliciously damaged by lawless persons.
[0053] The second aspect of the present invention discloses a handheld device based on the Android system, which is used to debug the intelligent hardware device of the first aspect of the present invention, including: a second NFC module, a second Bluetooth module and a second main control unit, the second NFC module and the second Bluetooth module are both connected to the second main control unit by electrical signals; the second NFC module is used to generate a simulation card, and write a preset key to the simulation card, wherein the method of writing a preset key to the simulation card includes: obtaining the operation authority of the handheld device, modifying the NFC configuration file of the handheld device system, and then writing the preset key to the simulation card through preset software. The second Bluetooth module establishes Bluetooth communication with the intelligent hardware device, that is, the second Bluetooth module establishes Bluetooth communication with the first Bluetooth module, so that the second main control unit configures the intelligent hardware device, specifically configures the offline smart door lock through the preset software installed on the handheld device. See. Figure 1 The preset software includes a main program and a compatible program. The main program is used to implement the main business logic of the handheld device. The compatible program encapsulates the hardware functions of the handheld device and provides abstract interface methods to the main program.
[0054] The main reason why the preset software includes the main program and the compatible program is that Android is a universal mobile operating system. In theory, our handheld software can run on any qualified Android device. However, in reality, there are some differences between Android hardware devices and operating systems of different manufacturers and models. In order to be compatible with these differences and reduce the development workload, we divide the handheld software into the following two parts: 1. Hardware device compatible program, which encapsulates hardware device related methods and provides abstract interface methods to the main program. 2. Handheld main program, which implements the main business logic. Whenever you need to connect to a new hardware device, you only need to modify the hardware device compatible program, which reduces a lot of development costs.
[0055] Combination Figure 2According to the description of the first aspect of the present invention, the handheld device communicates data with external devices (door locks, elevator control) via Bluetooth, but Bluetooth broadcasting is a very power-consuming operation. Therefore, we have designed a mechanism to use the NFC module of the handheld device to simulate a special card number. The Bluetooth broadcast is turned on only when the card reader of the external device reads this special card number. It should be noted that, by default, the NFC card number of the Android device is dynamically changed or fixed. We need to obtain the system permissions of the operating system and modify the system's NFC configuration file to simulate the specified special card number.
[0056] After the NFC module of the handheld device simulates a special card number, it can directly interact with the NFC module of the offline smart door lock, eliminating a physical card and making the operation more convenient. When multiple offline smart door locks need to be configured, the NFC module of the handheld device can simulate multiple special card numbers corresponding to multiple offline smart door locks, greatly improving the convenience of operation and omitting the cost of making physical cards.
[0057] The third aspect of the present invention discloses a method for configuring the intelligent hardware device (offline intelligent door lock or elevator control) of the first aspect of the present invention using the handheld device based on the Android system of the second aspect of the present invention, the method comprising:
[0058] Use a handheld device to generate a simulated card and write a preset key to the simulated card;
[0059] Place the handheld device in the NFC sensing area of the smart hardware device, so that the first NFC module reads the preset key in the simulated card and wakes up the first Bluetooth module;
[0060] The first Bluetooth module sends a Bluetooth broadcast, and the second Bluetooth module establishes a communication connection with the first Bluetooth module;
[0061] The handheld device configures the intelligent hardware device through Bluetooth communication.
[0062] Furthermore, the method for establishing a communication connection between the second Bluetooth module and the first Bluetooth module includes:
[0063] When the second Bluetooth module is in the scanning state, it filters the names and signal strengths of the scanned Bluetooth devices broadcast to find the device that best meets the conditions.
[0064] Furthermore, the scanned Bluetooth devices are filtered based on their broadcast names and signal strengths to find the devices that best meet the criteria, including:
[0065] The Bluetooth devices matching the initialization name of the smart hardware device are screened out from the scanned Bluetooth broadcasts, and a connection is established with the one with the highest signal strength among the screened Bluetooth devices.
[0066] Furthermore, the method for establishing a communication connection between the second Bluetooth module and the first Bluetooth module further includes:
[0067] After the handheld device establishes a Bluetooth connection with the smart hardware device, the handheld device can be used to customize the Bluetooth broadcast of the smart hardware device to facilitate direct and accurate connection to the desired smart device the next time a Bluetooth connection is established.
[0068] The method for configuring the intelligent hardware device using a handheld device (hereinafter referred to as "handheld device") specifically includes:
[0069] 1. Synchronous Data Process
[0070] The handheld device and the PC host computer can synchronize data.
[0071] The process of sending data from the host computer:
[0072] Combination Figure 3 Before the handheld device executes the task of configuring door locks or elevators, it needs to synchronize data with the PC host computer to ensure the consistency of data between the host computer and the handheld device.
[0073] 1. Connect the handheld device to the PC using a USB data cable;
[0074] 2. The host computer software initiates a data synchronization request, and the handheld device verifies the authorization information of the request. If the handheld device has not been authorized before, the authorization information of the first request will be saved directly; if the authorization information of the data synchronization request is inconsistent with the authorization information of the handheld device, an exception will be prompted and the data synchronization process will end.
[0075] 3. After the authorization verification is successful, the host computer sends the room, elevator and other data to the handheld device in sequence through TCP, and the handheld device saves the data in an encrypted database.
[0076] The process of the host computer reading the handheld device records:
[0077] Combination Figure 4 The handheld device reads the records of external devices and the check-in card issuance records are stored in the local database. After the PC host computer is connected to the handheld device, it can read all the records stored locally in the handheld device.
[0078] 1. Connect the handheld device to the PC using a USB data cable;
[0079] 2. Verify the authorization information of the handset. If they are inconsistent, an exception will be prompted and the process will end.
[0080] 3. The PC initiates a request to read the records, and the handheld device queries and returns the recorded data.
[0081] 2. Establishing a connection with external devices
[0082] Combination Figure 5 , the handheld device needs to establish a Bluetooth connection with the external device before it can configure and control the device.
[0083] 1. The operator selects the device information previously synchronized from the host computer from the handheld device and clicks the Start Configuration button.
[0084] 2. The handheld device establishes a Bluetooth connection with the external device.
[0085] 3. The handheld device performs operations such as sending initial configuration data, setting time, and querying information to external devices.
[0086] 4. When all operations are completed, the Bluetooth connection will be automatically disconnected.
[0087] Combination Figure 6 , the process of establishing a Bluetooth connection includes:
[0088] 1. The handset software calls the system's NFC module to simulate a special card number.
[0089] 2. Place the NFC area on the back of the handset close to the NFC card reader area of the external device. When you hear a "beep" tone from the external device, the card swiping action is completed.
[0090] 3. The external device verifies whether the card number is valid. If the card number is valid, the process continues; if the card number is invalid, the process ends directly and the handheld device cannot discover and connect to the device.
[0091] 4. The external device turns on Bluetooth and is in broadcasting state, waiting for the handheld to discover and connect. Uninitialized external devices will broadcast a fixed-format Bluetooth name so that the handheld can scan and connect.
[0092] 5. When the handheld Bluetooth is in scanning state, it will filter the names and signal strengths of the scanned Bluetooth devices to find the most suitable device. If the handheld still does not scan a suitable device within a period of time, the handheld will stop scanning the device, prompt a timeout error and end the whole process.
[0093] 6. When the handheld device scans a qualified device, it actively initiates a connection request to the external device. The external device receives the connection request and responds. The two parties negotiate the connection parameters and establish a communication channel.
[0094] 7. The handheld device sends authorization information to the external device.
[0095] 8. The external device verifies the authorization information. Communication is allowed only when the authorization information is correct, otherwise the connection is directly disconnected.
[0096] 9. The external device returns a successful connection result to the handheld device, and the handheld device successfully establishes a Bluetooth connection with the external device.
[0097] Establishing a Bluetooth connection is mainly divided into the following two parts:
[0098] (1) Swipe the card to trigger the device to turn on Bluetooth (steps 1 to 5). Because turning on Bluetooth consumes a lot of power, it is only allowed when it is necessary to configure and control the device.
[0099] (2) Connection authentication (steps 6 to 9). When the external device turns on Bluetooth, it will broadcast its own information as a slave and wait for the handheld device to connect. In order to confirm that the connecting device is a legal and valid handheld device, the authorization information of the handheld device needs to be verified.
[0100] 3. External device configuration process
[0101] After the external devices (door locks, elevator control and other hardware devices) leave the factory, they need to be initialized and configured by the handheld device before they can be used normally. Before configuring the external devices, you need to establish a connection first.
[0102] Combination Figure 7 , Handheld device configuration external device process:
[0103] 1. The handheld device sends initial configuration data to the external device.
[0104] 2. The external device receives the initial configuration data, configures its own properties, modifies the Bluetooth name, and then restarts to make the configuration effective. Restarting the external device will cause the current Bluetooth connection to be disconnected. After the device restarts successfully, it will automatically turn on Bluetooth broadcasting and wait for the handheld to reconnect.
[0105] 3. After the external device is restarted and disconnected, the handheld device re-enters the Bluetooth scanning state, scans the device with the new Bluetooth name and re-establishes the connection.
[0106] 4. The handheld device sends the time update instruction to the external device. The time update instruction contains the latest time and daylight saving time information.
[0107] 5. The external device receives the time update command and updates its own internal time. The device needs to be restarted for the updated time to take effect.
[0108] 6. The handheld device re-establishes the Bluetooth connection with the external device.
[0109] 7. At this point, the handheld device considers that the external device has been configured, actively disconnects the device, and marks the device information in the database as configured.
[0110] 4. Control external equipment process
[0111] Before the handheld device controls an external device, it is necessary to configure the external device and establish a connection with the device.
[0112] Handheld device control external equipment process:
[0113] There are several main operations for handheld control of external devices, among which unlocking and checking out are operations unique to door lock devices:
[0114] 1. Query device information.
[0115] 2. Set the device time.
[0116] 3. Read device records.
[0117] 4. OTA upgrade device firmware.
[0118] 5. (Door lock) Unlock. After the unlocking operation is performed, the door lock opens, and the door opening function without a room card is realized.
[0119] 6. (Door lock) Check out. After checking out, the previous room card cannot be used to unlock the door.
[0120] In addition to the above functions, the handset of the present invention also includes the following functions:
[0121] 5. Process of reading physical card information
[0122] The access control system has more than twenty types of physical cards with different functions. In order to facilitate the management and reading of physical card information, the handheld device supports reading and displaying physical card information.
[0123] Combination Figure 8 , the process of handheld device reading physical card information:
[0124] 1. The handheld device enters the card reading information interface and automatically turns on NFC to enter the card reading mode.
[0125] 2. Place the physical card close to the NFC sensing area on the back of the handset to swipe the card.
[0126] 3. Determine whether it is a valid card based on the card type and data structure. If it is an illegal card, indicate an exception and end the process.
[0127] 4. Verify the card password. The card data can only be read after the password is verified to be correct. Otherwise, an exception will be prompted and the process will end.
[0128] 5. Read all the data on the physical card and store it in the handheld device memory.
[0129] 6. Call the company's private card data encryption and decryption algorithm to decrypt the card data into plain text card information.
[0130] 7. Display card information.
[0131] 8. Exit the card reading information interface and automatically turn off NFC.
[0132] VI. Check-in card issuance process
[0133] The handheld device can realize the check-in card issuance function. In the scenario where it is inconvenient to go to the front desk to check in, the handheld device can be used to check in for the customer on site. The check-in record is saved in the handheld device database, allowing the front desk PC host computer to read and synchronize the check-in record.
[0134] Combination Fig. 9 , Check-in card issuance process with handheld device:
[0135] 1. The operator selects the room to be checked in on the handheld device and fills in the check-in information.
[0136] 2. After filling in the check-in information, click the card-making button to enter the card-making interface, and NFC will be automatically turned on to enter the card writing mode.
[0137] 3. Place the physical card of the specified type close to the NFC sensing area on the back of the handheld device to swipe the card.
[0138] 4. Determine whether it is a valid card based on the card type and data structure. If it is an illegal card, indicate an exception and end the process.
[0139] 5. Verify the card password. The card data can only be written after the password is verified to be correct. Otherwise, an exception will be prompted and the process will end.
[0140] 6. Call the company's private card data encryption and decryption algorithm to encrypt the check-in information into ciphertext card data.
[0141] 7. Write the card data into the physical card.
[0142] 8. Exit the card making interface and automatically turn off NFC.
[0143] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not 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. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.
[0144] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. An intelligent hardware device, characterized in that: include: A first main control unit, a first NFC module and a first Bluetooth module, wherein the first NFC module and the first Bluetooth module are both electrically connected to the first main control unit; The first NFC module is always kept awake to implement the access control function, and is also used to read the preset secret key used to configure the smart hardware device to wake up the first Bluetooth module; The first Bluetooth module is used to connect to an external device to configure the intelligent hardware device; In a normal state, the first Bluetooth module is in a shutdown state. When the first NFC module reads a preset secret key, the first Bluetooth module is awakened by the first main control unit, and the first Bluetooth module sends a Bluetooth broadcast. After the first Bluetooth module establishes a connection with the external device, the intelligent hardware device enters a configuration mode; After the first Bluetooth module is disconnected from the external device, the first main control unit turns off the first Bluetooth module.
2. The intelligent hardware device according to claim 1, characterized in that: After the first Bluetooth module is disconnected from the external device and the disconnection time is greater than a preset time, the first main control unit turns off the first Bluetooth module.
3. A handheld device based on the Android system, used for debugging the intelligent hardware device according to any one of claims 1 or 2, characterized in that: include: A second NFC module, a second Bluetooth module and a second main control unit, wherein the second NFC module and the second Bluetooth module are both electrically connected to the second main control unit; The second NFC module is used to generate a simulated card and write the preset key into the simulated card; the method of writing the preset key into the simulated card comprises: obtaining the operation authority of the handheld device, modifying the NFC configuration file of the handheld device system, and then writing the preset key into the simulated card through preset software; The second Bluetooth module establishes Bluetooth communication with the intelligent hardware device so that the second main control unit configures the intelligent hardware device.
4. The Android-based handheld device according to claim 3, characterized in that: The preset software includes a main program and a compatible program. The main program is used to implement the main business logic of the handheld device. The compatible program encapsulates the hardware functions of the handheld device and provides an abstract interface method to the main program.
5. A method for configuring an intelligent hardware device using the Android-based handheld device according to claim 3 or 4, characterized in that: The method comprises: Generate a simulated card using the handheld device, and write the preset key into the simulated card; Placing the handheld device in the NFC sensing area of the smart hardware device, so that the first NFC module reads the preset key in the simulated card and wakes up the first Bluetooth module; The first Bluetooth module sends a Bluetooth broadcast, and the second Bluetooth module establishes a communication connection with the first Bluetooth module; The handheld device configures the intelligent hardware device via Bluetooth communication.
6. The configuration method according to claim 5, characterized in that: The method for establishing a communication connection between the second Bluetooth module and the first Bluetooth module includes: When the second Bluetooth module is in a scanning state, filtering is performed according to the name and signal strength of the Bluetooth device broadcast scanned to find the device that best meets the conditions.
7. The configuration method according to claim 6, characterized in that: The filtering is performed based on the name and signal strength of the scanned Bluetooth device broadcast to find the device that best meets the conditions, including: The Bluetooth devices matching the initialization name of the intelligent hardware device are screened out from the scanned Bluetooth broadcasts, and a connection is established with the one with the highest signal strength among the screened Bluetooth devices.
8. The configuration method according to claim 7, characterized in that: The method for establishing a communication connection between the second Bluetooth module and the first Bluetooth module further includes: After the handheld device establishes a Bluetooth connection with the intelligent hardware device, a custom name is given to the Bluetooth broadcast of the intelligent hardware device through the handheld device.
Citation Information
Patent Citations
NFC card data read-write method and device, electronic equipment and storage medium
CN116187362A
Intelligent door lock control system and control method
CN116912981A