CN112150654A - Card punching method, device, terminal, card puncher, storage medium and electronic equipment - Google Patents

Card punching method, device, terminal, card puncher, storage medium and electronic equipment Download PDF

Info

Publication number
CN112150654A
CN112150654A CN201910577315.5A CN201910577315A CN112150654A CN 112150654 A CN112150654 A CN 112150654A CN 201910577315 A CN201910577315 A CN 201910577315A CN 112150654 A CN112150654 A CN 112150654A
Authority
CN
China
Prior art keywords
card
module
terminal
card punching
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910577315.5A
Other languages
Chinese (zh)
Inventor
张烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910577315.5A priority Critical patent/CN112150654A/en
Publication of CN112150654A publication Critical patent/CN112150654A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The application provides a card punching method, a card punching device, a terminal, a card punch, a storage medium and electronic equipment, wherein the method comprises the steps of obtaining card punching data and obtaining equipment identification of the terminal; coding the card punching data and the equipment identification to obtain coded data; the first LiFi transmission module is controlled, the coded data are transmitted to the second LiFi transmission module through the first light emitting module, and the second LiFi transmission module is arranged in the card punch to punch the card by adopting a terminal. Through this application make can carry out data communication in order to support the punching card between terminal and the punch card ware based on LiFi, realize quick punching card, effectively promote attendance record's precision, promote the effect of punching card.

Description

Card punching method, device, terminal, card puncher, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a card punching method, an apparatus, a terminal, a card punch, a storage medium, and an electronic device.
Background
The Light Fidelity (LiFi) technology is a Light internet access technology, and Light emitted by an LED lighting lamp is used as a transmission tool of a network signal to transmit data, so as to realize illumination internet access. LiFi has the characteristics of low radiation, low energy consumption, low carbon and environmental protection, and gradually becomes a research hotspot in the field of the Internet.
In the related art, a user uses a terminal to perform electronic card punching to record attendance, and the terminal is usually connected to a local area network where a card punch is located to punch the card.
In this way, the attendance recording is not accurate enough, and the card punching effect is not good.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the application aims to provide a card punching method, a card punching device, a terminal, a card punching device, a storage medium and electronic equipment, so that data communication can be performed between the terminal and the card punching device based on LiFi to support card punching, rapid card punching is realized, the accuracy of attendance record is effectively improved, and the card punching effect is improved.
In order to achieve the above object, a card punching method provided in an embodiment of a first aspect of the present application is applied to a terminal, where the terminal includes: first LiFi transmission module and first light emission module, include: obtaining card punching data and obtaining a self equipment identifier; coding the card punching data and the equipment identification to obtain coded data; and controlling the first LiFi transmission module, transmitting the coded data to a second LiFi transmission module through the first light emission module, wherein the second LiFi transmission module is arranged in a card punch to adopt the terminal to punch a card.
The method that this application first aspect embodiment provided, through obtaining the data of checking the card, and obtain the equipment sign of self, and encode data of checking the card and equipment sign, obtain the coding data, and control first LiFi transmission module, transmit coding data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking the card, in order to adopt the terminal to punch the card, make and to carry out data communication in order to support to punch the card between terminal and the ware of checking the card based on LiFi, realize punching the card fast, effectively promote the precision of attendance record, promote the effect of punching the card.
In order to achieve the above object, a card punching method provided by an embodiment of a second aspect of the present application is applied to a card punching device, where the card punching device includes: second LiFi transmission module and second light receiving module include: controlling the second LiFi transmission module to receive the coded data sent by the first LiFi transmission module through the second light receiving module, wherein the first LiFi transmission module is arranged in a terminal, and the coded data is obtained by coding the card punching data and the equipment identifier of the terminal through the terminal; analyzing the coded data to obtain the card punching data and the equipment identification; and performing card punching operation on the terminal according to the card punching data and the equipment identifier.
The card punching method provided by the embodiment of the second aspect of the application, through controlling the second LiFi transmission module, the coded data sent by the first LiFi transmission module are received by the second light receiving module, the first LiFi transmission module is arranged in the terminal, the coded data are, the terminal codes the card punching data and the equipment identifier of the terminal, the coded data are analyzed to obtain the card punching data and the equipment identifier, and according to the card punching data and the equipment identifier, the card punching operation is performed on the terminal, so that data communication can be performed between the terminal and the card punching device based on LiFi to support card punching, quick card punching is realized, the accuracy of attendance record is effectively improved, and the card punching effect is improved.
In order to achieve the above object, a card punching device provided in an embodiment of a third aspect of the present application is applied to a terminal, and includes: the first acquisition module is used for acquiring the card punching data and acquiring the equipment identification of the first acquisition module; the coding module is used for coding the card punching data and the equipment identification to obtain coded data; the first LiFi transmission module transmits the coded data to the second LiFi transmission module through the first light emission module, and the second LiFi transmission module is arranged in the card punch to adopt the terminal to punch the card.
The device of checking card that this application third aspect embodiment provided, through acquireing the data of checking card, and acquire the equipment identification of self, and encode data of checking card and equipment identification, obtain the coded data, and control first LiFi transmission module, transmit coded data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking card, in order to adopt the terminal to punch card, make can carry out data communication in order to support to punch card between terminal and the ware of checking card based on LiFi, realize punching card fast, effectively promote the precision of attendance record, promote the effect of punching card.
In order to achieve the above object, a card punching device according to an embodiment of a fourth aspect of the present application is applied to a card punching device, and includes: the second LiFi transmission module receives the coded data sent by the first LiFi transmission module through the second light receiving module, the first LiFi transmission module is arranged in the terminal, and the coded data is obtained by coding the card punching data and the equipment identifier of the terminal through the terminal; the analysis module is used for analyzing the coded data to obtain the card punching data and the equipment identifier; and the card punching module is used for performing card punching operation on the terminal according to the card punching data and the equipment identifier.
The utility model provides a device of checking card that fourth aspect embodiment provided, through controlling second LiFi transmission module, receive the coded data that first LiFi transmission module sent via second light receiving module, first LiFi transmission module sets up in the terminal, the coded data does, the terminal encodes the equipment identification at data and terminal of checking card and obtains, and analytic coded data obtains data and equipment identification of checking card, and according to data and equipment identification of checking card, the operation of checking card is carried out to the terminal, make and can carry out data communication in order to support to check card between the ware of checking card based on LiFi, realize quick checking card, effectively promote the precision of attendance record, promote the effect of checking card.
In order to achieve the above object, an embodiment of a fifth aspect of the present application provides a terminal, including: the third aspect of the present application provides a card punching device.
The terminal that this application fifth aspect embodiment provided, through obtaining the data of checking the card, and obtain the equipment sign of self, and encode data of checking the card and equipment sign, obtain the coded data, and control first LiFi transmission module, transmit coded data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking the card, in order to adopt the terminal to punch the card, make can carry out data communication in order to support to punch the card based on LiFi between terminal and the ware of checking the card, realize punching the card fast, effectively promote the precision of attendance record, promote the effect of punching the card.
In order to achieve the above object, a sixth embodiment of the present application provides a card reader, including: the fourth aspect embodiment of the present application provides a card punching device.
The utility model provides a punch card ware that embodiment of sixth aspect provided, through control second LiFi transmission module, receive the coded data that first LiFi transmission module sent via second light receiving module, first LiFi transmission module sets up in the terminal, the coded data does, the terminal encodes the equipment identification at data and terminal of punching the card and obtains, and analytic coded data obtains data and equipment identification of punching the card, and according to data and equipment identification of punching the card, punch the card the operation to the terminal, make and can carry out data communication in order to support to punch the card between the ware of punching the card based on LiFi, realize punching the card fast, effectively promote the precision of attendance record, promote the effect of punching the card.
To achieve the above object, a computer-readable storage medium is provided in a seventh embodiment of the present application, and when executed by a processor of a terminal, enables the terminal to perform a card punching method, where the method includes: the card punching method provided by the embodiment of the first aspect of the application, or the card punching method provided by the embodiment of the second aspect of the application.
The computer-readable storage medium provided by the seventh embodiment of the application, through obtaining the data of punching the card, and obtain self equipment identification, and encode data of punching the card and equipment identification, obtain the coding data, and control first LiFi transmission module, transmit coding data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of punching the card, in order to adopt the terminal to punch the card, make can carry out data communication in order to support to punch the card based on LiFi between terminal and the ware of punching the card, realize quick punching the card, effectively promote the precision of attendance record, promote the effect of punching the card.
In order to achieve the above object, an eighth aspect of the present invention further provides an electronic device, which includes a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: obtaining card punching data and obtaining a self equipment identifier; coding the card punching data and the equipment identification to obtain coded data; and controlling the first LiFi transmission module, transmitting the coded data to a second LiFi transmission module through the first light emission module, wherein the second LiFi transmission module is arranged in a card punch to adopt the terminal to punch a card.
The embodiment of the eighth aspect of the application still provides an electronic equipment, through obtaining the data of checking the card, and obtain the equipment identification of self, and encode data of checking the card and equipment identification, obtain the coding data, and control first LiFi transmission module, transmit coding data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking the card, in order to adopt the terminal to punch the card, make and to carry out data communication in order to support to punch the card between the ware of checking the card and the terminal based on LiFi, realize punching the card fast, effectively promote the precision of attendance record, promote the effect of punching the card.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a card punching method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a card punching method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a card punching device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a card punching device according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a card punching device according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a card punching device according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a schematic flow chart of a card punching method according to an embodiment of the present application.
The embodiment is applied to the terminal, and the terminal can be a smart phone, a tablet computer, wearable equipment and the like.
The terminal in the embodiment comprises a first LiFi transmission module and a first light emission module, wherein the first LiFi transmission module supports a LiFi transmission protocol, the bottom layer of the Li-Fi protocol is compatible with a WiFi802.11 baseband, one-to-many or many-to-one simultaneous transmission can be realized by using a TDD protocol in WiFi during data transmission, and the Li-Fi technology has extremely high safety during data transmission, so that only people on a light transmission straight line can capture information because visible light can only be transmitted along the straight line. And because the low time delay of LiFi, can use in the scene that needs the data of quick transmission, for example share the file fast, exchange business card contact means, watch video jointly etc..
In this application embodiment, just because first LiFi transmission module supports LiFi transport protocol, consequently for can carry out data communication in order to support the punching card between terminal and the punching card ware based on LiFi, realize quick punching card, effectively promote the precision of attendance record, promote the effect of punching card.
Referring to fig. 1, the method includes:
s101: and acquiring the card punching data and acquiring the own equipment identification.
The data used for punching the card at the terminal side may be referred to as card punching data, and the card punching data may be, for example, current time, current location of the terminal, unit department where the user of the terminal belongs to, and the like.
The device identifier may be used to uniquely mark the terminal, may be obtained by pre-installing an application program for card punching in the terminal, and punching the card based on the application program, where when the application program for card punching is pre-installed in the terminal, the device identifier may be, for example, a registration code, a version number, a terminal identifier, and the like of the application program installed in the device.
Through obtaining the data of checking the card to obtain the equipment identification of self, the equipment identification based on data of checking the card and terminal self punches the card, can effectively avoid the impersonation to punch the card, promotes the precision of attendance record.
When a user has a card punching requirement, an application program for punching a card can be started and pre-installed in the terminal, the application program for punching the card is operated to obtain card punching data and obtain a self equipment identifier, the card punching data and the equipment identifier are transmitted to a card punching device, and at the moment, when the user executes corresponding operation, the terminal can respond to the operation of the user, obtain the card punching data and obtain the self equipment identifier.
S102: and coding the card punching data and the equipment identification to obtain coded data.
In the embodiment of the application, the coding rule corresponding to the Li-Fi protocol can be adopted to code the card punching data and the equipment identifier to obtain coded data, if the data is changed or lost in the transmission process, the communication is failed, and the card punching data and the equipment identifier are coded in order to ensure the card punching effect and the correctness of the current card punching data transmission.
In the embodiment of the application, when the card punching data is obtained, the device identification of the card punching device is obtained, then, the coding rules corresponding to the Li-Fi protocol are adopted, the card punching data and the device identification are coded together to obtain coded data, when the card punching device receives the card punching data sent by a plurality of terminals, the terminal corresponding to each card punching data is marked, and accurate recording of the card punching data for each terminal is facilitated.
In the embodiment of the application, in order to guarantee timeliness of card punching, before card punching data is acquired, communication connection between a terminal and a card punching device can be established, two parties can perform handshake first, for example, the terminal sends a handshake signal, the card punching device replies confirmation information after receiving the handshake signal, if the card punching device does not receive the handshake signal within a certain time, the terminal can generate an overtime signal by itself and resend the handshake signal, so that the card punching device can receive encoded data subsequently in time.
In the specific implementation process, the terminal further includes: the light emitting angle adjusting module is used for adjusting the light emitting angle of the first light emitting module, and can also determine the relative angle between the terminal and the card punch before card punching data and the equipment identification of the terminal are acquired; the light emitting angle of the first light emitting module is adjusted to a relative angle in advance, so that the card reader can receive the coded data in time.
The relative angle is used to describe the card reader, and the direction angle of the card reader relative to the terminal may be determined by determining a relative direction between the terminal and the card reader, determining a reference direction, and determining an angle between the relative direction and the reference direction as the relative angle between the terminal and the card reader, which is not limited in this respect.
In this embodiment, the first light emitting module may be configured with an LED array and a driver for controlling the depth of the LED array, and the depth of the LED array in the first light emitting module is controlled by the driver, so as to adjust the light emitting angle of the first light emitting module.
The method comprises the steps that before card punching data are obtained and own equipment identification is obtained, the relative angle between a terminal and a card punching device is predetermined; the light emitting angle of the first light emitting module is adjusted to the relative angle, so that the data transmission efficiency can be effectively improved.
In this embodiment, the terminal may further include: the focal length adjusting module is used for adjusting the focal length of the first light emitting module, acquiring the card punching data and detecting the relative distance between the terminal and the card punching device before acquiring the own equipment identifier; and determining a target focal length corresponding to the relative distance, and adjusting the focal length of the first light emitting module to be the target focal length.
The distance between the terminal and the card reader can be detected through the distance detector, and the distance is used as a relative distance, then, the distance range to which the relative distance belongs can be determined, and the focal length corresponding to the distance range to which the relative distance belongs can be used as a target focal length, wherein the corresponding relation between each distance range and the corresponding focal length can be calibrated in advance.
For example, when the relative distance between the terminal and the card punch is detected and is within a first distance range, the first LiFi transmission module controls the first light emission module to send coded data at a first target focal length through the focal length adjustment module, and when the relative distance between the terminal and the card punch is detected and is within a second distance range, the first LiFi transmission module controls the first light emission module to send the coded data at a second target focal length through the focal length adjustment module, so that the first LiFi transmission module adjusts the focal length when the first light emission module sends the coded data according to the relative distance between the terminal and the card punch, and when the terminal and the card punch are at different relative distances, efficient data transmission is achieved.
Or, in this embodiment of the present application, the terminal further includes: the TOF control module is used for controlling the first light ray emitting module to emit detection light rays; and detecting the relative distance between the terminal and the card reader according to the reflected light of the detection light received by the first light receiving module.
Specifically, the TOF control module obtains the relative distance between the terminal and the card punch through calculation and conversion according to the phase difference or time difference between the detection light and the reflection light.
It should be noted that the TOF ranging technology is a relatively mature ranging technology at present, and the existing TOF ranging method is applicable to the present application, which does not describe the TOF ranging technology any more.
Controlling the first light emitting module to emit detection light through the TOF control module; according to the reflected light of the detection light received by the first light receiving module and the relative distance between the detection terminal and the card reader, the first LiFi transmission module and the TOF control module share the light transmitter and the light receiver, and the internal space and the cost of the mobile terminal are saved.
S103: the first LiFi transmission module is controlled, the coded data are transmitted to the second LiFi transmission module through the first light emitting module, and the second LiFi transmission module is arranged in the card punch to punch the card by adopting a terminal.
The first light emitting module may be an LED array, or the first light emitting module emits invisible light, which is not limited in this respect.
In the specific execution process, the card punching data and the equipment identification are coded through the first LiFi transmission module to obtain coded data, and the coded data are sent through the LED array; wherein the LED array operates in the infrared band. Therefore, the data transmission safety and correctness are ensured by encoding the card punching data and the equipment identification to form encoded data and sending the encoded data out.
In the embodiment of the application, the first LiFi transmission module can be further controlled to receive the card punching result information through the first light receiving module, and execute the target operation according to the card punching result information, wherein the card punching result information is transmitted by the second LiFi transmission module.
The card punching result information may be, for example, that the card punching is successful or that the card punching is unsuccessful.
After the card reader receives the coded data, the coded data is analyzed to obtain card punching data and an equipment identifier, card punching operation is carried out on the terminal according to the card punching data and the equipment identifier, corresponding card punching result information is obtained, the card punching result information is transmitted to the terminal, so that the terminal can execute target operation according to the card punching result information, and the target operation is, for example, display of the card punching result information and is not limited.
The first LiFi transmission module is controlled, the first light receiving module receives the card punching result information, and target operation is executed according to the card punching result information, so that the transmission efficiency of the card punching result information can be improved when the card punching result information is received, and quick card punching is realized.
In this embodiment, through acquireing the data of checking the card, and acquire the equipment identification of self, and encode data of checking the card and equipment identification, obtain the coding data, and the first LiFi transmission module of control, transmit coding data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking the card, in order to adopt the terminal to punch the card, make can carry out data communication in order to support to punch the card based on LiFi between terminal and the ware of checking the card, realize quick the card, effectively promote the precision of attendance record, promote the effect of punching the card.
Fig. 2 is a schematic flowchart of a card punching method according to an embodiment of the present application.
This embodiment is used in the ware of checking card, and the ware of checking card and terminal separation set up, carry out data communication based on LiFi between ware of checking card and the terminal, and the ware of checking card in this application embodiment includes: the second LiFi transmission module and the second light receiving module.
The second LiFi transmission module supports a LiFi transmission protocol, and can be applied to scenes needing rapid data transmission, such as rapid file sharing, business card contact information exchange, video watching together and the like.
Referring to fig. 2, the method includes:
s201: the second LiFi transmission module is controlled, the second light receiving module receives the coded data sent by the first LiFi transmission module, the first LiFi transmission module is arranged in the terminal, and the coded data are obtained by coding the card punching data and the equipment identification of the terminal.
Among them, the LiFi transfer module provided in the card reader may be referred to as a second LiFi transfer module.
The data used for punching the card at the terminal side may be referred to as card punching data, and the card punching data may be, for example, current time, current location of the terminal, unit department where the user of the terminal belongs to, and the like.
The device identifier may be used to uniquely mark the terminal, may be obtained by pre-installing an application program for card punching in the terminal, and punching the card based on the application program, where when the application program for card punching is pre-installed in the terminal, the device identifier may be, for example, a registration code, a version number, a terminal identifier, and the like of the application program installed in the device.
In the embodiment of the application, the terminal adopts a coding rule corresponding to a Li-Fi protocol to code the card punching data and the equipment identification to obtain coded data, the second LiFi transmission module in the card punching device receives the coded data sent by the first LiFi transmission module through the second light receiving module, if the data is changed or lost in the transmission process, the communication is failed communication, and the card punching data and the equipment identification are coded in order to guarantee the card punching effect and guarantee the correctness of the current card punching data transmission.
S202: and analyzing the coded data to obtain the card punching data and the equipment identifier.
S203: and performing card punching operation on the terminal according to the card punching data and the equipment identifier.
For example, after receiving the encoded data, the card reader may analyze the encoded data to obtain card reading data and an equipment identifier by using a decoding rule corresponding to the Li-Fi protocol, and perform a card reading operation on the terminal according to the card reading data and the equipment identifier.
In a specific implementation process of the embodiment of the application, the card reader further includes: the second light emission module, after carrying out the operation of checking the card to the terminal, still include: obtaining the information of the card punching result; and controlling the second LiFi transmission module to transmit the card punching result information to the first LiFi transmission module through the second light emission module.
The card punching result information may be, for example, that the card punching is successful or that the card punching is unsuccessful.
Because the card punching result information is obtained; the second LiFi transmission module is controlled, and the second light emission module transmits the card punching result information to the first LiFi transmission module, so that the transmission efficiency can be improved when the card punching result information is transmitted, and quick card punching is realized.
In this embodiment, through control second LiFi transmission module, receive the coded data that first LiFi transmission module sent via second light receiving module, first LiFi transmission module sets up in the terminal, the coded data does, the terminal encodes the equipment sign at data and the terminal of checking the card and obtains, and analysis coded data obtains data and equipment sign of checking the card, and according to data and the equipment sign of checking the card, the operation of checking the card is carried out to the terminal, make and to carry out data communication in order to support to check the card between terminal and the ware of checking the card based on LiFi, realize quick checking the card, effectively promote the precision of attendance record, promote the effect of checking the card.
Fig. 3 is a schematic structural diagram of a card punching device according to an embodiment of the present application.
The embodiment is applied to a terminal, and the terminal can be a smart phone, a tablet computer, wearable equipment and the like.
Referring to fig. 3, the card punching device 300 includes:
the first obtaining module 301 is configured to obtain the card punching data and obtain an apparatus identifier of the first obtaining module;
the encoding module 302 is configured to encode the card punching data and the device identifier to obtain encoded data;
the first LiFi transmission module 303 transmits the encoded data to the second LiFi transmission module via the first light emitting module 304, and the second LiFi transmission module is disposed in the card punch to punch the card by using a terminal.
Optionally, in some embodiments, fig. 4 is a schematic structural diagram of a card punching device according to another embodiment of the present application.
Referring to fig. 4, the apparatus 300 further comprises:
the light emitting angle adjusting module 305 is configured to adjust the light emitting angle of the first light emitting module 304, determine the relative angle between the terminal and the card writer, and adjust the light emitting angle of the first light emitting module 304 to the relative angle.
Optionally, in some embodiments, referring to fig. 4, the apparatus 300 further comprises:
the focal length adjusting module 306 is configured to adjust a focal length of the first light emitting module 304, detect a relative distance between the terminal and the card reader, determine a target focal length corresponding to the relative distance, and adjust the focal length of the first light emitting module 304 to the target focal length.
Optionally, in some embodiments, referring to fig. 4, the apparatus 300 further comprises:
a time-of-flight ranging TOF control module 307 for controlling the first light emitting module 304 to emit the detection light and detecting the relative distance between the terminal and the card reader according to the reflected light of the detection light received by the first light receiving module 308
Optionally, in some embodiments, referring to fig. 4, the apparatus 300 further comprises:
the control module 309 is configured to control the first LiFi transmission module 303, receive the card punching result information through the first light receiving module 308, and execute the target operation according to the card punching result information, where the card punching result information is transmitted by the second LiFi transmission module.
It should be noted that the explanation of the card punching method in the embodiment of fig. 1 is also applicable to the card punching device 300 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, through acquireing the data of checking the card, and acquire the equipment identification of self, and encode data of checking the card and equipment identification, obtain the coding data, and the first LiFi transmission module of control, transmit coding data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking the card, in order to adopt the terminal to punch the card, make can carry out data communication in order to support to punch the card based on LiFi between terminal and the ware of checking the card, realize quick the card, effectively promote the precision of attendance record, promote the effect of punching the card.
Fig. 5 is a schematic structural diagram of a card punching device according to another embodiment of the present application.
This embodiment is used in the ware of checking card, and the ware of checking card and terminal separation set up, carry out data communication based on LiFi between ware of checking card and the terminal, and the ware of checking card in this application embodiment includes: the second LiFi transmission module and the second light receiving module.
Referring to fig. 5, an apparatus 500, comprising:
the second LiFi transmission module 501 receives the encoded data sent by the first LiFi transmission module 303 through the second light receiving module 502, the first LiFi transmission module 303 is disposed in the terminal, and the encoded data is obtained by encoding the card punching data and the device identifier of the terminal by the terminal.
The analysis module 503 is configured to analyze the encoded data to obtain the card punching data and the device identifier;
and the card punching module 504 is configured to perform a card punching operation on the terminal according to the card punching data and the device identifier.
Optionally, in some embodiments, referring to fig. 6, the apparatus 500 further comprises:
an obtaining module 505, configured to obtain card punching result information;
the second LiFi transmitting module 501 is controlled to transmit the card punching result information to the first LiFi transmitting module 303 through the second light emitting module 506.
It should be noted that the explanation of the card punching method in the foregoing embodiment in fig. 2 is also applicable to the card punching device 500 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, through control second LiFi transmission module, receive the coded data that first LiFi transmission module sent via second light receiving module, first LiFi transmission module sets up in the terminal, the coded data does, the terminal encodes the equipment sign at data and the terminal of checking the card and obtains, and analysis coded data obtains data and equipment sign of checking the card, and according to data and the equipment sign of checking the card, the operation of checking the card is carried out to the terminal, make and to carry out data communication in order to support to check the card between terminal and the ware of checking the card based on LiFi, realize quick checking the card, effectively promote the precision of attendance record, promote the effect of checking the card.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 7, the electronic apparatus 70 of the present embodiment includes: the device comprises a shell 701, a processor 702, a memory 703, a circuit board 704 and a power supply circuit 705, wherein the circuit board 704 is arranged in a space surrounded by the shell 701, and the processor 702 and the memory 703 are arranged on the circuit board 704; a power supply circuit 705 for supplying power to each circuit or device of the electronic apparatus 70; the memory 703 is used to store executable program code; the processor 702 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 703, so as to execute:
obtaining card punching data and obtaining a self equipment identifier;
coding the card punching data and the equipment identification to obtain coded data;
the first LiFi transmission module is controlled, the coded data are transmitted to the second LiFi transmission module through the first light emitting module, and the second LiFi transmission module is arranged in the card punch to punch the card by adopting a terminal.
It should be noted that the explanation of the card punching method in the foregoing embodiments of fig. 1-2 also applies to the electronic device 70 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, through acquireing the data of checking the card, and acquire the equipment identification of self, and encode data of checking the card and equipment identification, obtain the coding data, and the first LiFi transmission module of control, transmit coding data to second LiFi transmission module via first light emission module, second LiFi transmission module sets up in the ware of checking the card, in order to adopt the terminal to punch the card, make can carry out data communication in order to support to punch the card based on LiFi between terminal and the ware of checking the card, realize quick the card, effectively promote the precision of attendance record, promote the effect of punching the card.
In order to implement the foregoing embodiments, the present application provides a computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the card punching method of the foregoing method embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (18)

1. The card punching method is applied to a terminal, and the terminal comprises the following steps: a first LiFi transmission module and a first light emission module, the method comprising the steps of:
obtaining card punching data and obtaining a self equipment identifier;
coding the card punching data and the equipment identification to obtain coded data;
and controlling the first LiFi transmission module, transmitting the coded data to a second LiFi transmission module through the first light emission module, wherein the second LiFi transmission module is arranged in a card punch to adopt the terminal to punch a card.
2. The card punching method according to claim 1, wherein the terminal further comprises: the light-emitting angle adjusting module is used for adjusting the light-emitting angle of the first light-emitting module, acquiring the card punching data and before acquiring the device identifier of the card punching data, the light-emitting angle adjusting module further comprises:
determining a relative angle of the terminal and the card punch;
and adjusting the light-emitting angle of the first light-emitting module to the relative angle.
3. The card punching method according to claim 2, wherein the terminal further comprises: the focal length adjustment module is used for adjusting the focal length of the first light emitting module, and before acquiring the card punching data and acquiring the device identifier of the device, the focal length adjustment module further comprises:
detecting the relative distance between the terminal and the card punch;
and determining a target focal length corresponding to the relative distance, and adjusting the focal length of the first light emitting module to the target focal length.
4. The card punching method according to claim 3, wherein the terminal further comprises: a first light receiving module, and a time-of-flight ranging TOF control module respectively connected with the first light emitting module and the first light receiving module,
controlling the first light ray emission module to emit detection light rays through the TOF control module;
and detecting the relative distance between the terminal and the card punch according to the reflected light of the detection light received by the first light receiving module.
5. The card punching method according to claim 3, further comprising:
and controlling the first LiFi transmission module, receiving card punching result information through the first light ray receiving module, and executing target operation according to the card punching result information, wherein the card punching result information is transmitted by the second LiFi transmission module.
6. The card punching method is applied to a card punching device, and the card punching device comprises the following steps: a second LiFi transmission module and a second light receiving module, the method comprising:
controlling the second LiFi transmission module to receive the coded data sent by the first LiFi transmission module through the second light receiving module, wherein the first LiFi transmission module is arranged in a terminal, and the coded data is obtained by coding the card punching data and the equipment identifier of the terminal through the terminal;
analyzing the coded data to obtain the card punching data and the equipment identification;
and performing card punching operation on the terminal according to the card punching data and the equipment identifier.
7. The card punch method of claim 6 wherein the card punch further comprises: the second light emission module, after carrying out the operation of checking the card to the terminal, still include:
obtaining the information of the card punching result;
and controlling the second LiFi transmission module to transmit the card punching result information to the first LiFi transmission module through the second light emitting module.
8. A card punching device is applied to a terminal, and the device comprises:
the first acquisition module is used for acquiring the card punching data and acquiring the equipment identification of the first acquisition module;
the coding module is used for coding the card punching data and the equipment identification to obtain coded data;
the first LiFi transmission module transmits the coded data to the second LiFi transmission module through the first light emission module, and the second LiFi transmission module is arranged in the card punch to adopt the terminal to punch the card.
9. The card punching apparatus of claim 8, wherein the apparatus further comprises:
and the light emitting angle adjusting module is used for adjusting the light emitting angle of the first light emitting module, determining the relative angle between the terminal and the card punch, and adjusting the light emitting angle of the first light emitting module to the relative angle.
10. The card punching apparatus of claim 9, wherein the apparatus further comprises:
and the focal length adjusting module is used for adjusting the focal length of the first light emitting module, detecting the relative distance between the terminal and the card punch, determining a target focal length corresponding to the relative distance, and adjusting the focal length of the first light emitting module to the target focal length.
11. The card punching apparatus of claim 10, wherein the apparatus further comprises:
and the time-of-flight ranging TOF control module is used for controlling the first light ray transmitting module to transmit detection light rays and detecting the relative distance between the terminal and the card punch according to the reflection light rays of the detection light rays received by the first light ray receiving module.
12. The card punching apparatus of claim 10, wherein the apparatus further comprises:
and the control module is used for controlling the first LiFi transmission module, receiving the card punching result information through the first light receiving module, and executing target operation according to the card punching result information, wherein the card punching result information is transmitted by the second LiFi transmission module.
13. A card punching device, which is applied to a card punching device, and comprises:
the second LiFi transmission module receives the coded data sent by the first LiFi transmission module through the second light receiving module, the first LiFi transmission module is arranged in the terminal, and the coded data is obtained by coding the card punching data and the equipment identifier of the terminal through the terminal;
the analysis module is used for analyzing the coded data to obtain the card punching data and the equipment identifier;
and the card punching module is used for performing card punching operation on the terminal according to the card punching data and the equipment identifier.
14. The card punching apparatus of claim 13, wherein the apparatus further comprises:
the acquisition module is used for acquiring the information of the card punching result;
and the second LiFi transmission module transmits the card punching result information to the first LiFi transmission module through a second light emitting module.
15. A terminal, comprising:
a card punch device as claimed in any one of claims 8 to 12.
16. A card punch, comprising:
a punch device according to any one of claims 13 to 14.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the card punching method according to any one of claims 1-5, or carries out the card punching method according to any one of claims 6-7.
18. An electronic device comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
obtaining card punching data and obtaining a self equipment identifier;
coding the card punching data and the equipment identification to obtain coded data;
and controlling the first LiFi transmission module, transmitting the coded data to a second LiFi transmission module through the first light emission module, wherein the second LiFi transmission module is arranged in a card punch to adopt the terminal to punch a card.
CN201910577315.5A 2019-06-28 2019-06-28 Card punching method, device, terminal, card puncher, storage medium and electronic equipment Pending CN112150654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910577315.5A CN112150654A (en) 2019-06-28 2019-06-28 Card punching method, device, terminal, card puncher, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910577315.5A CN112150654A (en) 2019-06-28 2019-06-28 Card punching method, device, terminal, card puncher, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112150654A true CN112150654A (en) 2020-12-29

Family

ID=73870133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910577315.5A Pending CN112150654A (en) 2019-06-28 2019-06-28 Card punching method, device, terminal, card puncher, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112150654A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191700A1 (en) * 2002-04-09 2003-10-09 Horne William B. System and method for time and attendance record keeping
CN202049533U (en) * 2010-12-31 2011-11-23 惠州Tcl移动通信有限公司 Attendance system
CN103714601A (en) * 2013-12-18 2014-04-09 清华大学 Identity recognition system with visible light communication technology
CN103886648A (en) * 2014-03-11 2014-06-25 庄南庆 Attendance system based on WIFI (Wireless Fidelity) signals of cell phone
US20150363745A1 (en) * 2014-06-13 2015-12-17 Vivint, Inc. Bluetooth verified smartphone clock-in
CN106487699A (en) * 2016-09-30 2017-03-08 上海斐讯数据通信技术有限公司 Router based on Li Fi wireless telecommunications
CN107733526A (en) * 2016-08-11 2018-02-23 腾讯科技(深圳)有限公司 A kind of optical communication system, access light source recognition methods and relevant device
CN108809422A (en) * 2018-05-28 2018-11-13 许谐兴 A kind of information of vehicles transmission method based on the li-fi communication technologys
CN109410360A (en) * 2017-12-31 2019-03-01 刘桂兰 A kind of intelligent attendance system and Work attendance method based on visible light communication

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030191700A1 (en) * 2002-04-09 2003-10-09 Horne William B. System and method for time and attendance record keeping
CN202049533U (en) * 2010-12-31 2011-11-23 惠州Tcl移动通信有限公司 Attendance system
CN103714601A (en) * 2013-12-18 2014-04-09 清华大学 Identity recognition system with visible light communication technology
CN103886648A (en) * 2014-03-11 2014-06-25 庄南庆 Attendance system based on WIFI (Wireless Fidelity) signals of cell phone
US20150363745A1 (en) * 2014-06-13 2015-12-17 Vivint, Inc. Bluetooth verified smartphone clock-in
CN107733526A (en) * 2016-08-11 2018-02-23 腾讯科技(深圳)有限公司 A kind of optical communication system, access light source recognition methods and relevant device
CN106487699A (en) * 2016-09-30 2017-03-08 上海斐讯数据通信技术有限公司 Router based on Li Fi wireless telecommunications
CN109410360A (en) * 2017-12-31 2019-03-01 刘桂兰 A kind of intelligent attendance system and Work attendance method based on visible light communication
CN108809422A (en) * 2018-05-28 2018-11-13 许谐兴 A kind of information of vehicles transmission method based on the li-fi communication technologys

Similar Documents

Publication Publication Date Title
US20200205115A1 (en) Wireless positioning method and system using the same
CN106535328B (en) White light LED communication indoor positioning system and method
CN102749072B (en) Indoor positioning method, indoor positioning apparatus and indoor positioning system
US9800334B2 (en) Positioning method based on visible light source, mobile terminal, and controller
KR100914850B1 (en) Back scattering type rfid communication system
US20080315999A1 (en) Wireless communication system for tracking assets with affixed electronic smart tags and methods thereof
CN104469673A (en) Terminal positioning method and device
KR20160149562A (en) Travelling system for mobile robot, autonomously travelling mobile robot and method for controlling robot thereof
US10028334B2 (en) Antenna function extension apparatus, device, and method
JP2015519562A (en) Communication device
US20150053758A1 (en) Fiber management system and method thereof
CN112291003B (en) Light fidelity LiFi communication control method and device of mobile terminal, terminal and medium
CN103139702B (en) A kind of method identifying equipment and electronic equipment
CN112291004B (en) Office seat query system, method and device, LiFi communication end and user end
CN112150654A (en) Card punching method, device, terminal, card puncher, storage medium and electronic equipment
CN110380781B (en) Signal enhancement method and system, and storage medium
CN104811282B (en) Communication method and electronic equipment
CN107819547B (en) Sound wave signal frame rate adjusting method for sound wave indoor positioning
CN112153442A (en) Playing method, device, terminal, television equipment, storage medium and electronic equipment
CN112152718B (en) Information identification method and device, intelligent wearable device and storage device
US12074640B2 (en) Terminal devices, communication methods, and communication systems
CN112751617B (en) Electronic setting, control method and device thereof, and storage medium
CN112152713B (en) Display method, display device, terminal, display device, storage medium and electronic device
CN113820695A (en) Ranging method and apparatus, terminal system, and computer-readable storage medium
CN104393927B (en) A kind of region group machine vision communication means

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201229