CN107180251A - The system that robot program is write using nfc card - Google Patents
The system that robot program is write using nfc card Download PDFInfo
- Publication number
- CN107180251A CN107180251A CN201710324252.3A CN201710324252A CN107180251A CN 107180251 A CN107180251 A CN 107180251A CN 201710324252 A CN201710324252 A CN 201710324252A CN 107180251 A CN107180251 A CN 107180251A
- Authority
- CN
- China
- Prior art keywords
- nfc
- card
- nfc card
- reader
- label
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0003—Automatic card files incorporating selecting, conveying and possibly reading and/or writing operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a kind of internet multi-user robot interactive system, the system that robot program is write using nfc card, including at least one hand-held NFC reader, it is characterised in that the nfc card that can be also read and write including the hand-held NFC reader;With mark ID inside nfc card, different nfc card mark ID is different.It is an advantage of the invention that:It is that programming can be achieved without computer;It is with low cost, it is easy to promote.
Description
Technical field
The present invention relates to a kind of robot communication system, and in particular to a kind of hand-held programing system based on NFC technique.
Background technology
NFC technology is by non-contact radio-frequency identification and the Technology Integration that interconnects are developed, single
Combining induction card reader, icah wavw and point-to-point function on chip, can be known with compatible equipment in short distance
Other and data exchange.Working frequency is 13.56MHz, but must change special using the user of this mobile-phone payment scheme
Mobile phone.This current technology is widely used in Japan and Korea S, and their mobile phone may be used as airport boarding checking, gate inhibition's key of mansion
Spoon, traffic all-purpose card, credit card, Payment Card etc..
Child procedure design has increasingly becomed a kind of study focus, but programming generally has to use computer,
This has brought some problems for the sight protectio of children.
The content of the invention
The technical problems to be solved by the invention are, how by NFC technique, not apply to computer, also can be by reading NFC
The order of programming block realizes programming with content.
The present invention is achieved through the following technical solutions:
The system that robot program is write using nfc card, including at least one hand-held NFC reader, it is characterised in that also
The nfc card that can be read and write including the hand-held NFC reader;
Nfc card:General nfc card, it is internal with mark ID.Different nfc card mark ID is different.
The system that use nfc card according to claim 1 writes robot program, it is characterised in that also including hand
Nfc card upper position can be moved to by hand-held by holding NFC reader, and read the mark of the card inside nfc card ID.
The system that use nfc card according to claim 1 writes robot program, it is characterised in that also including hand
Holding has buffering area inside NFC reader, can record the order of each nfc card of reading.
The system that use nfc card according to claim 1 writes robot program, it is characterised in that described hand-held
The corresponding mark ID of each nfc card can be converted into journey by NFC reader successively according to the order of each nfc card recorded
The line code of sequence.
The present invention compared with prior art, has the following advantages and advantages:
1st, the system that robot program is write using nfc card, is that programming can be achieved without computer;
2nd, the system that robot program is write using nfc card, it is with low cost, it is easy to promote.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding the embodiment of the present invention, constitutes one of the application
Point, do not constitute the restriction to the embodiment of the present invention.In the accompanying drawings:
Fig. 1 is NFC label schematic diagram of the present invention;
Fig. 2 is that NFC label of the present invention reads schematic diagram;
Fig. 3 is NFC label schematic diagram of the present invention;
Fig. 4 is card reader schematic diagram of the present invention;
Fig. 5 is card reader operating diagram of the present invention.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, with reference to embodiment and accompanying drawing, to this
Invention is described in further detail, and exemplary embodiment and its explanation of the invention is only used for explaining the present invention, does not make
For limitation of the invention.
Embodiment
As shown in Fig. 1 to 5, the system that the present invention writes robot program using nfc card, including at least one hand-held NFC
Card reader, in addition to the nfc card that the hand-held NFC reader can be read and write;Nfc card:General nfc card, inside is with mark
ID, different nfc card mark ID is different.Position above nfc card can be moved to by hand-held by also including hand-held NFC reader
Put, and read the mark of the card inside nfc card ID.Also include that there is buffering area inside hand-held NFC reader, reading can be recorded
Each nfc card order.The hand-held NFC reader can be according to the order of each nfc card recorded, successively will be each
The corresponding mark ID of nfc card is converted into the line code of program.Each NFC label represents one or one section instruction.Pass through
Instruction segment inside the tandem arrangement of several NFC labels, each NFC label just constitutes one section by several sub-instructions
The program that section is constituted.Now, by the arrangement of some NFC labels on the table, then need to design a NFC reader, sweep successively
Cross after these NFC labels, just into the content read in sequence like clockwork in each NFC label, and group in sequence
Into program.Core solves technology:
As shown in figure 1, each NFC label has a unique sequence number, remaining memory space is to store C language
One fragment of program or one section of content of text for TTS.As shown in Fig. 2 card reader has NFC card-reading functions, pass through
It is hand-held to scan NFC label in order, to be successively read the content in NFC label.Due to handhold read-write, unavoidably due to mobile speed
Degree, or shift position deviation, cause skip.Therefore devised in card reader reading twice, the function of comparative result, by with
Lower step is realized:
A, forward direction are successively read the sequence number of each label and the data of storage;
B, the sequence number and data of each label recorded respectively;
C, the sequence number and data for again reading off each label in reverse order;
D, the sequence number and data of each label recorded respectively again;
E, the sequence number obtained twice and data contrasted, if identical, illustrate not misread and omit;
If F, the result obtained twice are different, arrange third time to read, as a result made comparisons twice with preceding;
G, it will be compared completely the same result with third time and be considered as correct result.
It is unavoidable to repeat to read a card due to handhold read-write.Therefore there is the function of removing and repeat to read in handheld reader,
Realized by following steps:
The data that A, any two label are stored may be identical, but sequence number is different;
B, while read each label, record its sequence number;
C, sequence number made comparisons with reading the sequence number that a upper label is recorded;
If D, two sequence numbers are more identical, explanation is to repeat to have read same label, will not arrange to read it
In data;
E, while starting timer, the sequence number recorded and Off Timer are removed after 2 seconds, to read this mark next time
Label;
If F, two sequence numbers are more different, illustrate to read different labels, now update recorded Serial No.
This sequence number read.
Code is sent to robot by handheld reader by radio communication.Robot can perform code.
There is LED in handheld reader, show connection WiFi states and card reading status.
There is no button in handheld reader.Start, perform, cancel, be all to read special nfc labels using card reader to hold
OK.Therefore button is not needed.
The hardware composition of NFC reader as shown in Figure 4:
The main control chip of NFC reader is STM32F103, passes through serial ports and NFC card reading modules PN532 and WIFI module
ESP8266 is connected.The also external buzzer of STM32F103 and 4 light emitting diodes.Buzzer is used to arrive NFC in scanning
After label, send sound and represent that scanning is completed.4 light emitting diodes WiFi connection shape current to show card reader respectively
State, TCP server connection status and current working condition.
Wherein NFC label form is as shown in table 1:
Table 1
Page0 and Page1 and Page2 the 1st byte is 7 byte sequence numbers and its check byte of card, wherein
BCC0=0x88 ⊕ SN0 ⊕ SN1 ⊕ SN2, BCC1=SN3 ⊕ SN4 ⊕ SN5 ⊕ SN6, SN0 are manufacturer codes, due to Mifare
UltraLight is that NXP companies produce, thus SN0 is fixed as 04H.Page2 the 2nd byte Internal is used as internal data
Retain.It is solidificated in when totally 10 bytes are dispatched from the factory above in memory block, user can not change.
Page3 is disposable burning (One Time Programmable, OTP) page, and the content of this page is when card dispatches from the factory
Whole quilts
" 0 " is written as, the content of a certain position " 1 " can only be written as when user uses, and " 1 " can not be always written as 0,
That is, the result that 4 byte contents newly write are carried out after XOR, XOR with content original in card is stored in card.
Control class label and data class label
Control class label to start with " # " number, write in label page 4 of first character section.To control the reading to label
Take.
Control category is signed with 3 kinds:“START”、“RUN”、“CANCEL”.
The starting of " START " tag representation data class label." START " is write after " # " number, the ID of dolly is followed by and close
Code.Run through after " START " label, card reader should immediately begin to read data class label.
" RUN " tag representation data class tag reader terminates." RUN " is write after " # " number.Run through after " RUN " label, read
Card device immediately sends all data read between " START " label and " RUN " label to TCP server.
" CANCEL " tag representation data class tag reader terminates." CANCEL " is write after " # " number.Run through " CANCEL "
After label, card reader immediately deletes all data read between " START " label and " CANCEL " label.
Data class label data storage.
The workflow of NFC reader is as shown in Figure 5:
NFC reader reads the ID, password and the program to be run of dolly from NFC label, and TCP is connected to by WiFi
Then the data read are sent to TCP server by server.Now TCP server is according to the ID of the dolly sent and close
Program is sent to corresponding dolly by code, and dolly can just be behaved according to the program being sent to.
The preparation of NFC reader:
When NFC reader is just upper electric:
LED1 now ceaselessly flashes to represent card reader and WiFi connection status, and expression is not connected to WiFi.
LED2 to represent with TCP server connection status, now ceaselessly flash, expression be not connected to TCP service
Device.
LED3 now extinguishes to represent whether card reader reads " START " label, and " START " mark is not read in expression
Label.
LED4 now extinguishes to represent program tag whether has been read in card reader, and program mark is not read in expression
Label.
NFC reader is first configured with mobile phone will connect WiFi SSID and PASSWD.
Configure after WiFi parameters.Card reader starts to connect WiFi.After successful connection, LED1 stops flashing, and keeps length bright.
NFC reader begins through WiFi connection TCP servers.If successful connection, LED2 stops flashing, and keeps length
It is bright.
NFC reader is started working:
Read after any label, buzzer can ring.If reading the label read in 1 second, buzzer bass rings
One sound.If reading the label do not read or the label spent before one second, the high sound of sound equipment one of buzzer.
Read before " START " label, card reader can't store the data read.
Read after " START " label, LED3 is lighted, represent that NFC reader will start to read data class label.
Read after first data category label, LED4 is lighted, represent the data that have been stored with NFC reader.It is easy to determine
It is fixed whether to send the data read.
Run through after all data class labels to be sent, it is necessary to one " RUN " control class label be read again, by the number read
According to transmission to TCP server.
Claims (4)
1. the system of robot program is write using nfc card, including at least one hand-held NFC reader, it is characterised in that also wrap
Include the nfc card that the hand-held NFC reader can be read and write;
Nfc card:General nfc card, internal with mark ID, different nfc card mark ID is different.
2. the system that use nfc card according to claim 1 writes robot program, it is characterised in that also including hand-held
NFC reader can be moved to nfc card upper position by hand-held, and read the mark of the card inside nfc card ID.
3. the system that use nfc card according to claim 1 writes robot program, it is characterised in that also including hand-held
There is buffering area inside NFC reader, the order of each nfc card of reading can be recorded.
4. the system that use nfc card according to claim 1 writes robot program, it is characterised in that the hand-held NFC
The corresponding mark ID of each nfc card can be converted into program by card reader successively according to the order of each nfc card recorded
Line code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710324252.3A CN107180251A (en) | 2017-05-10 | 2017-05-10 | The system that robot program is write using nfc card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710324252.3A CN107180251A (en) | 2017-05-10 | 2017-05-10 | The system that robot program is write using nfc card |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107180251A true CN107180251A (en) | 2017-09-19 |
Family
ID=59831520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710324252.3A Pending CN107180251A (en) | 2017-05-10 | 2017-05-10 | The system that robot program is write using nfc card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107180251A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197929A (en) * | 2013-03-25 | 2013-07-10 | 中国科学院软件研究所 | System and method for graphical programming facing children |
CN104063291A (en) * | 2014-07-14 | 2014-09-24 | 河北水木寰虹机器人科技有限公司 | Programming robot control device |
CN105184337A (en) * | 2015-08-25 | 2015-12-23 | 大唐微电子技术有限公司 | Intelligent card application detection method and system for NFC equipment |
CN106484398A (en) * | 2016-09-19 | 2017-03-08 | 深圳奥松机器人科技有限公司 | Programming device progress control method and system |
-
2017
- 2017-05-10 CN CN201710324252.3A patent/CN107180251A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197929A (en) * | 2013-03-25 | 2013-07-10 | 中国科学院软件研究所 | System and method for graphical programming facing children |
CN104063291A (en) * | 2014-07-14 | 2014-09-24 | 河北水木寰虹机器人科技有限公司 | Programming robot control device |
CN105184337A (en) * | 2015-08-25 | 2015-12-23 | 大唐微电子技术有限公司 | Intelligent card application detection method and system for NFC equipment |
CN106484398A (en) * | 2016-09-19 | 2017-03-08 | 深圳奥松机器人科技有限公司 | Programming device progress control method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10931664B2 (en) | Establishing access to a secure network based on user-created credential indicia | |
CN104065639A (en) | Bank card binding method and system | |
CN106413124A (en) | Device binding method and apparatus | |
CN107833048A (en) | Electronic equipment and the method for payment using the electronic equipment | |
CN106155769B (en) | A kind of workflow processing method, device and workflow engine | |
US20220027591A1 (en) | Bar code generation scanning, and display method, apparatus, storage medium, and electronic device | |
CN106296152A (en) | Realize method, system, Cash collecting equipment and the client paid | |
WO2014067547A1 (en) | Nfc controller architecture for emulation of multiple nfc-a devices | |
CN107632799A (en) | A kind of print processing method and system | |
CN108550033A (en) | A kind of method and device of display Digital Object Unique Identifier | |
CN106156560A (en) | Unlocking method and a device for touch panel device | |
US9811858B2 (en) | Method for enrolling and authenticating a cardholder | |
CN207068010U (en) | Robot program's system for writing and compiling based on hand-held NFC reader | |
CN105468350A (en) | Object tag processing method and apparatus | |
CN107180251A (en) | The system that robot program is write using nfc card | |
CN115552440A (en) | Augmented reality card activation experience | |
CN108564373A (en) | Method of payment, device and equipment | |
CN110221874A (en) | The method, device and equipment of quick start application | |
CN108537086A (en) | Method for information display, device, storage medium and mobile terminal | |
EP2722807A1 (en) | A verifying system and a method thereof | |
CN108596542A (en) | Net purchase product traceability system based on block chain | |
US20210168111A1 (en) | System and method for social networking among users of a reusable item | |
CN103971422A (en) | Check-in method and device based on electronic business card adopting NFC (Near Field Communication) technology | |
CN106250798A (en) | Anti-counterfeit recognition system based on visible ray and method | |
CN107784243A (en) | A kind of method and device that reader device communication is realized in Android system |
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: 20170919 |