CN105160956B - Classroom instruction accessory system and its communication means - Google Patents

Classroom instruction accessory system and its communication means Download PDF

Info

Publication number
CN105160956B
CN105160956B CN201510695512.9A CN201510695512A CN105160956B CN 105160956 B CN105160956 B CN 105160956B CN 201510695512 A CN201510695512 A CN 201510695512A CN 105160956 B CN105160956 B CN 105160956B
Authority
CN
China
Prior art keywords
equipment
byte
student
teacher
instruction
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.)
Active
Application number
CN201510695512.9A
Other languages
Chinese (zh)
Other versions
CN105160956A (en
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.)
Beijing Institute of Petrochemical Technology
Original Assignee
Beijing Institute of Petrochemical Technology
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 Beijing Institute of Petrochemical Technology filed Critical Beijing Institute of Petrochemical Technology
Priority to CN201510695512.9A priority Critical patent/CN105160956B/en
Publication of CN105160956A publication Critical patent/CN105160956A/en
Application granted granted Critical
Publication of CN105160956B publication Critical patent/CN105160956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B5/00Electrically-operated educational appliances
    • G09B5/08Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations
    • G09B5/14Electrically-operated educational appliances providing for individual presentation of information to a plurality of student stations with provision for individual teacher-student communication

Abstract

The invention discloses a kind of classroom instruction accessory system and its communication means.Said system includes:Multiple student's equipment, each student is included with equipment:First wireless transmitter, the first microcontroller, input/output unit;Teacher's equipment, including:Second wireless transmitter, the second microcontroller, USB turn serial port device;Host computer, including:USB interface, wherein, the USB interface turns serial port device with the USB of equipment with the teacher and is connected.The technical scheme provided according to the present invention, can make student on classroom and teacher carries out real-time radio communication, be effectively improved student classroom participation, improve quality of instruction.

Description

Classroom instruction accessory system and its communication means
Technical field
The present invention relates to the communications field, in particular to a kind of classroom instruction accessory system and its communication means.
Background technology
The Central Committee of the Communist Party of China, State Council print and distribute《Long-term educational reform and development planning outline (2010-2020 in country Year)》, the core missions that raising quality is developed as educational reform are proposed, educational resource configuration and Schools Work emphasis Focus on reinforcing teaching link, improve in the quality of education.
It is undoubtedly the basic index for weighing Classroom Teaching to class rate and classroom participation, and for a long time, it is domestic Most of school, it is still teacher point to this most traditional mode to class rate statistical to take, though this mode It is so simple, but the classroom hours of instruction of teacher are directly wasted, reduce quality of instruction.Classroom interactions on classroom, also lead to Frequently with the mode of the one-to-one question and answer of Faculty and Students, classroom participation is relatively low.
The content of the invention
It is a primary object of the present invention to disclose a kind of classroom instruction accessory system and its communication means, at least to solve The problem of student's participation rate is low is caused using Traditional Classroom interaction mode in correlation technique.
According to an aspect of the present invention, a kind of classroom instruction accessory system is disclosed.
Included according to the classroom instruction accessory system of the present invention:Multiple student's equipment, each student is included with equipment: First wireless transmitter, the first microcontroller, input/output unit, wherein, first microcontroller is via the input Output device collects the data for coming from student, and is sent via first wireless transmitter to teacher's equipment;It is described Teacher's equipment, including:Second wireless transmitter, the second microcontroller, USB turn serial port device, wherein, second micro-control Device processed receives the data for coming from first wireless transmitter via the second wireless transmitter, and via the second microcontroller The serial ports of device and the USB turn serial port device and are sent to host computer;Host computer, including:USB interface, wherein, the USB interface Turn serial port device with the USB of equipment with the teacher to be connected, the host computer is received via the USB interface to be come from The data are carried out handling and display processing result by the data of teacher's equipment.
According to another aspect of the present invention, a kind of communication means of classroom instruction accessory system is disclosed.
Included according to the communication means of the classroom instruction accessory system of the present invention:Host computer is according to first time predetermined transmission control Control instruction is sent to teacher's equipment by command protocols processed, wherein, first time transmission control command protocols include:Instruction class Protocol IP start address byte, IP end addresses byte, reserved bit byte, the end mark byte interconnected between type-word section, network; The control instruction is sent to multiple students with setting by the teacher with equipment according to second time predetermined transmission control command protocols It is standby, wherein, second time transmission control command protocols include:Guide word, instruction type byte, IP start address byte, IP knots Beam address byte, topic numbering byte or reserved byte, end mark byte, reserved bit byte, CRC byte.
By the classroom instruction accessory system that provides of the present invention and its communication means, teacher on classroom is solved in correlation technique It is raw interactive, by the way of the one-to-one question and answer of Faculty and Students, cause the problem of classroom participation is relatively low, using present invention offer System can make student on classroom and teacher carry out real-time radio communication, the problem of being proposed for teacher, classroom test, class The interactive teaching contents such as hall contest, student can make answer by the system, and data are uploaded into host computer processing And display, therefore student classroom participation is effectively improved, improve quality of instruction.
Brief description of the drawings
Fig. 1 is the Organization Chart of classroom instruction accessory system according to embodiments of the present invention;
Fig. 2 is the structural representation of teacher's equipment according to the preferred embodiment of the invention;
Fig. 3 is the structural representation of student's equipment according to the preferred embodiment of the invention;
Fig. 4 is the flow chart of the communication means of classroom instruction accessory system according to embodiments of the present invention;
Fig. 5 is the information exchange schematic diagram of roll-call mode protocol according to the preferred embodiment of the invention;
Fig. 6 is the information exchange schematic diagram of answer mode protocol according to the preferred embodiment of the invention;
Fig. 7 is the main program flow chart of host computer according to the preferred embodiment of the invention;
Fig. 8 is the main program flow chart of teacher's equipment according to the preferred embodiment of the invention;And
Fig. 9 is the main program flow chart of student's equipment according to the preferred embodiment of the invention.
Embodiment
The specific implementation of the present invention is made a detailed description with reference to Figure of description.
Fig. 1 is the Organization Chart of classroom instruction accessory system according to embodiments of the present invention.As shown in figure 1, the classroom instruction Accessory system includes:
Multiple students are included with equipment 10, each student with equipment:First wireless transmitter 100, the first microcontroller Device 102, input/output unit 104, wherein, above-mentioned first microcontroller 102 is collected via above-mentioned input/output unit 104 and come from Sent in the data of student, and via above-mentioned first wireless transmitter 100 to teacher's equipment;
Above-mentioned teacher with equipment 12, including:Second wireless transmitter 120, the second microcontroller 122, USB turn serial ports dress 124 are put, wherein, above-mentioned second microcontroller 102 is received via the second wireless transmitter 120 comes from the above-mentioned first wireless receipts The data of transmitting apparatus 100, and via the second microcontroller 122 serial ports and above-mentioned USB turn serial port device 124 be sent to it is upper Machine;
Host computer 14, including:Usb 1 40, wherein, above-mentioned usb 1 40 and the above-mentioned USB of above-mentioned teacher's equipment Turn serial port device 124 to be connected, above-mentioned host computer 14 is received via above-mentioned usb 1 40 comes from above-mentioned teacher's equipment Above-mentioned data are carried out handling and display processing result by above-mentioned data.
Classroom interactions on classroom in correlation technique, by the way of the one-to-one question and answer of Faculty and Students, cause classroom to participate in The problem of spending relatively low, using the system shown in Fig. 1, can make student on classroom and teacher carries out real-time radio communication, for The interactive teaching contents such as the problem of teacher proposes, classroom test, classroom contest, student can be made back by the system Answer, and data are uploaded to host computer processing and shown, therefore be effectively improved student classroom participation, improve teaching matter Amount.
Preferably, above-mentioned host computer 14, also sends control instruction to above-mentioned teacher via above-mentioned usb 1 40 with equipment; Above-mentioned teacher also turns the control instruction that the reception of serial port device 124 comes from above-mentioned host computer with equipment 12 via above-mentioned USB, and Above-mentioned control instruction is sent to above-mentioned multiple students with equipment 10 via above-mentioned second wireless transmitter 120;It is above-mentioned multiple Student is also received via above-mentioned first wireless transmitter 100 with equipment 10 and is come from above-mentioned control of the above-mentioned teacher with equipment 12 System instruction.
Wherein, above-mentioned control instruction includes but is not limited to:Roll-call instruction, answer instruction, halt instruction, the system can be set It is set to roll-call, answer and stops isotype, teacher can carries out model selection by host computer (for example, PC).
During carrier communication, to ensure the stability and anti-interference of system, teacher's equipment and multiple students use A kind of wireless micro-network network of stelliform connection topology configuration is built between equipment by wireless channel (for example, 433MHz channels).The net Network is that all students are carried out between two-way communication, each student's node with equipment with teacher with equipment in a single-hop systems, network Do not communicate.
During being preferable to carry out, the data that each student is mainly responsible for collecting student's input with equipment are then wireless by first R-T unit uploads to teacher's equipment.On the one hand teacher is responsible for receiving the data uploaded from each student with equipment with equipment, And data packing is uploaded to upper PC receiving by serial communication mode;On the other hand receive from host computer Control instruction, and instruction is issued to each student's equipment, issued to complete topic, to tasks such as class rate statistics.Host computer one Aspect is responsible for receiving the data that teacher is uploaded with equipment, and it is handled and shown accordingly, on the other hand receives teacher Control instruction, and student's equipment is issued to broadcast mode with equipment by teacher.
Preferably, each above-mentioned student is also included with equipment:First dc source 106, above-mentioned teacher is also wrapped with equipment Include:Second dc source 126.
During being preferable to carry out, the first dc source 106 and the second dc source 126 can be 3.3V dc sources. In view of student is designed as into a kind of handheld device with equipment and teacher with equipment, therefore low-power consumption is an important considerations.
Preferably, as shown in Fig. 2 in teacher's equipment, above-mentioned first wireless transmitter includes:Radio frequency chip nRF905;First microcontroller is single-chip microcomputer MSP430 series MSP4302553;Input/output unit includes:Light emitting diode LED, button;And the 3.3V dc sources of power supply.
Preferably, as shown in figure 3, in student's equipment, above-mentioned second wireless transmitter includes:Radio frequency chip nRF905;Second microcontroller is single-chip microcomputer MSP430 series MSP4302553;Above-mentioned USB, which turns serial port device, to be included:USB turns string Mouth chip CH304;And the 3.3V dc sources of power supply.
Microcontroller is the control centre of teacher's equipment and student's equipment, and the system is from the aspect of low-power consumption, choosing 16 single-chip microcomputer MSP430G2553 of low-power consumption of TI companies production are selected, the single-chip microcomputer supply district is 1.8~3.6V, is had 16kB flash memory and 512B RAM, with super low-power consumption and 5 kinds of energy saver modes, under 1MHz frequencies and 2.2V voltage conditions, fortune Row mode power consumption is 230 μ A, and standby mode only has 0.5 μ A super low-power consumptions, and built-in 2 16 bit timing devices, 1 general serial lead to Believe interface.
Wireless transmitter is responsible for wireless data transmission in systems, and the system is penetrated using the wireless of Nordic companies of Norway Frequency chip nRF905.Its power consumption is very low, and electric current only has 11mA when working in the power output transmitting with -10dBm, works in and connects Electric current during receipts pattern is 12.5mA.Built-in idle pulley and shutdown mode, it is easy to accomplish energy-conservation.The chip passes through SPI interface Wireless data transmission is carried out with microcontroller, and is carried out at a high speed using the ShockBurst technologies and microcontroller of Nordic companies Wireless data transmission does not need expensive High Speed Microcontroller to carry out data processing, and information transfer is at a high speed and reliable.Once Volume of transmitted data is up to 32B, and maximum transfer speed can reach 100kbps, and transmission power is maximum up to 10dBm, receives sensitive It is -100dBm to the maximum.Operating voltage is 1.9~3.6V, Embedded power management, crystal oscillator, low-noise amplifier, The modules such as frequency synthesizer power amplifier, are not required to additional SAW filter, and Manchester's code/decoding hardware in piece is complete Into without user to data progress Manchester's code.And the ShockBurst mode of operations with low-power consumption, in such a mode It can be achieved to automatically process the functions such as prefix, CRC CRC, thus it is very easy to use.
NRF905 is operated in tri- frequency ranges of 433/868/915MHz, because domestic 433MHz frequency ranges can be used freely, institute 433MHz channels are preferably used with the system and carry out RFDC.Point-to-multipoint delivery address built in nRF905 is controlled, and is fitted For the communication between the system teacher node and each student's node.According to the application demand, RF receiving and transmission module selection 3.5dBi high-gain aerial.
Serial communication is between the embedded systems such as current single-chip microcomputer and DSP, and embedded system and PC or wireless A kind of extremely important between module and the communication mode generally used.Each provided to give full play to computer and smart machine Source advantage.But present computer, particularly notebook computer there is no with RS232 serial ports, and wide use USB interface.Serial communication module is mainly responsible for the communication between host node and upper PC.So the system turns string using USB Mouth chip CH340T realizes the communication function between serial port of single chip computer and USB interface of computer.
Teacher is a interface conversion and SCM peripheral chip with the CH340T in equipment, supports USB2.0.In chip Power supply electrifying reset circuit is put, built-in independent transmitting-receiving buffering area supports either simplex, half-duplex or full duplex asynchronous serial Communication, supports odd, even parity check, checkmark, blank check.Serial data includes 1 low level start bit, 5,6,7 or 8 Individual data bit, 1 or 2 high level stop positions, it is possible to achieve USB turns serial ports, extension computer asynchronous serial port and USB and turns IrDA Infrared or USB turns the functions such as LPT.The design only turns serial ports as USB and used, and the serial ports after changing is interior into full duplex serial ports Receipts and hair buffering area are put, support communication baud rate from 50bps to 2Mbps, serial ports sends the error of baud rate of signal<0.3%, string Mouth receives the error of baud rate of signal<2%.Its application method is fairly simple.The system is gone here and there in host node with upper PC During port communications, parameter is set to 115200,8 data bit of baud rate, 1 stop position, no parity position.
Input/output unit in student's equipment, including light emitting diode (LED) lamp and button, for example, can design Four buttons, corresponding A, B, C, tetra- options of D, LED and button are engaged, and are used to refer to the key information of student.
Fig. 4 is the flow chart of the communication means of classroom instruction accessory system according to embodiments of the present invention.As shown in figure 4, The communication means of the classroom instruction accessory system includes:
Step S401:Control instruction is sent to teacher with setting by host computer according to first time predetermined transmission control command protocols It is standby, wherein, above-mentioned first time transmission control command protocols include:The protocol IP interconnected between instruction type byte, network starts ground Location byte, IP end addresses byte, reserved bit byte, end mark byte;
Step S403:Above-mentioned teacher is sent out above-mentioned control instruction according to second time predetermined transmission control command protocols with equipment Multiple student's equipment are given, wherein, above-mentioned second time transmission control command protocols include:Guide word, instruction type byte, IP are opened Beginning address byte, IP end addresses byte, topic numbering byte or reserved byte, end mark byte, reserved bit byte, circulation Redundancy check byte.
In student's equipment and during teacher's equipment transmission data, need to design the packing of user-defined format data frame and Split, and formulate corresponding application layer host-host protocol.The invention provides the communication protocol of teacher's node and upper PC, sum Mutual serial communication is set to be correctly identified and read according to frame.Devise the communication between teacher's node and student's node Agreement and data frame, enable mutual wireless telecommunications to be correctly identified and read.
During being preferable to carry out, above-mentioned control instruction can be:Roll-call instruction, halt instruction or answer instruction etc..
For example, when control instruction instructs to call the roll, first time transmission control command protocols specifically may refer to table 1.
Table 1
Sequence number 0 1 2 3 4
Function 0x11 IP start address IP end addresses 0X00 (reservation) 0XFE
For example, when control instruction is halt instruction, first time transmission control command protocols specifically may refer to table 2.
Table 2
Sequence number 0 1 2 3 4
Function 0x55 IP start address IP end addresses 0X00 (reservation) 0XFE
For example, when control instruction is that answer is instructed, first time transmission control command protocols specifically may refer to table 2.
Table 3
Sequence number 0 1 2 3 4
Function 0x66 IP start address IP end addresses Topic is numbered 0XFE
For example, when control instruction instructs to call the roll, second time transmission control command protocols specifically may refer to table 4.
Table 4
For example, when control instruction is halt instruction, second time transmission control command protocols specifically may refer to table 5.
Table 5
For example, when control instruction is that answer is instructed, second time transmission control command protocols specifically may refer to table 6.
Table 6
During being preferable to carry out, when radio transmitting and receiving chip nRF905 is in emission mode, guide word and Cyclic Redundancy Code Verification (CRC) is loaded automatically by nRF905.NRF905 in a receive mode when, be connected to after packet and automatically process prefix and CRC.
Preferably, after control instruction to be sent to above-mentioned teacher multiple student's equipment with equipment, it can also include: For each above-mentioned student's equipment, judge whether the student is in above-mentioned IP start address with the corresponding unique ip address of equipment In byte to IP end addresses bytes range;The student determines that above-mentioned unique ip address is in above-mentioned IP start address word with equipment In section to IP end addresses bytes range, above-mentioned control instruction is received.
During being preferable to carry out, address bit is divided into teacher and uses equipment physical address, and student to use equipment physical address.Teacher With equipment physical address only one of which, physical address 0X50515253, but because the system is that a single Teacher's Day is point-to-points The network system of individual student's node, is within the physical layer each student's equipment to realize the function of teacher's node the whole network broadcast Identical physical address 0XE7E7E7E7 is both defined, is each student's equipment in Internet to distinguish each student's node It is assigned with unique IP address, it is contemplated that current school classroom number of student is usually no more than 250 (8 classes), therefore the system IP address uses 8bit, i.e., can at most have 256 student's nodes, meet demand.It is effectively and accurately in specific implementation process The one-to-one relationship of student and student's node device are set up, before class, student need to get reference numeral according to student number Life handheld device, realizes the mapping one by one of student number and IP address, is originated as check class attendance and the unique data of answer.Teacher Node is after reply data is received, and the data received are judged by IP address to be transmitted on which student's node, learns It is raw judged with equipment by IP address control instruction that teacher issues with equipment whether to oneself, if not connecing then Receive.
It should be noted that the roll-call instruction of each student's equipment, teacher are sent to device broadcasts is wide with equipment by teacher Be multicast to each student's node issue topic instruction and teacher be sent to device broadcasts the 1,2nd in the halt instruction of each student's equipment Individual address byte position is respectively IP start address and IP end addresses, and teacher can select whole students or specified portions student accordingly Called the roll, answer activity.IP start address is that the IP address of first student of class (can be to learn if the whole students of selection Number), IP end addresses are the IP address (can be student number) of last student.If selected section student, it need to only input corresponding Section student's rises, stops IP address.
Preferably, the student with equipment after above-mentioned control instruction is received, can also include:The student is pressed with equipment The first response is returned to according to the first predetermined response protocol with equipment to above-mentioned teacher to instruct, wherein, above-mentioned first response protocol bag Include:Guide word, instruction type byte, the student are with the corresponding unique ip address byte of equipment, topic numbering byte or reserved Byte, end mark byte, reserved bit byte, CRC byte.
For example, when control instruction instructs to call the roll, the first response protocol specifically may refer to table 7.
Table 7
For example, when control instruction is halt instruction, the first response protocol specifically may refer to table 8.
Table 8
For example, when control instruction is that answer is instructed, the first response protocol specifically may refer to table 9.
Table 9
Preferably, when above-mentioned control instruction is that answer is instructed, returned in the student with equipment to above-mentioned teacher with equipment After above-mentioned first response instruction, it can also include:The student uploads data protocol to above-mentioned with equipment according to predetermined first Teacher sends answer data with equipment, wherein, above-mentioned first upload data protocol includes:Guide word, instruction type byte, Unique ip address byte, topic numbering byte, answer byte, reserved bit byte, the CRC byte of life equipment; Above-mentioned teacher returns to the second response with equipment to the student according to the second response protocol with equipment and instructed, wherein, above-mentioned second should Answering agreement includes:Guide word, instruction type byte, the unique ip address byte of student's equipment, topic numbering byte, end Accord with byte, CRC byte;Above-mentioned teacher uploads data protocol by the answer number received with equipment according to second According to transmission to host computer, wherein, above-mentioned second upload data protocol includes:Instruction type byte, student's equipment it is unique IP address byte, topic numbering byte, answer byte.
For example, when control instruction is that answer is instructed, student needs to be uploaded to teacher with equipment uses equipment answer data, the One upload data protocol specifically may refer to table 10.
Table 10
When teacher receives the answer data that student uploads with equipment with equipment, it is necessary to feed back the second response, second should Answer agreement and specifically may refer to table 11.
Table 11
After teacher receives the answer data that student is uploaded with equipment with equipment, in addition it is also necessary to upload answer to host computer Data, the second upload data protocol specifically may refer to table 12.
Table 12
Sequence number 0 1 2 3 4
Function 0x66 IP address IP address Topic is numbered Answer
Above-mentioned preferred embodiment is further described below in conjunction with Fig. 5 and Fig. 6.
To ensure the stability and high efficiency of system, as shown in figure 5, student is received with equipment when selecting roll-call pattern ACK is returned after the control instruction sent by teacher with equipment and sets up communication link with teacher's node, both sides' node all enters immediately Enter idle condition, remove communication link and terminate.As shown in fig. 6, when student is received by teacher with equipment during answer pattern ACK (equivalent to above-mentioned first response instruction) is returned after the control instruction sent with equipment and sets up communication link with teacher's node, Student's node sends answer to teacher's node again afterwards, and Teacher's Day point receives after answer and to return to ACK (equivalent to above-mentioned the to student Two responses are instructed), both sides' node nRF905 enters idle pulley afterwards, removes communication link, sign off.
It should be noted that because the system is using the small-sized short-distance radio network system of star topology composition, institute There is student all to carry out radio communication with equipment with teacher with equipment, it is possible that currently used letter in wireless communication procedure There is node on road in transmission information, other nodes are ready for the situation into channel, so will result in conflict, be this system Using CSMA/CA agreements.That is the method for Carrier Sense Multiple Access reduces the possibility clashed.CSMA/CA technologies Operation principle is:Any equipment must be detected first to current spectral before transmitting data, if current spectral is sky Not busy state can then send data, otherwise enter standby mode and start to detect next time after wait terminates.
Preferably, after the student sends answer data with equipment with equipment to above-mentioned teacher, it can also include: It is raw to judge that whether receiving above-mentioned second response in the given time instructs with equipment, if it is not, then stating teacher again up with setting Preparation send answer data, until receiving above-mentioned second response instruction;
Preferably, can be with after control instruction to be sent to above-mentioned teacher above-mentioned multiple student's equipment with equipment Including:Above-mentioned teacher judges whether receive above-mentioned first response instruction in the given time with equipment, if it is not, then again to this Student sends control instruction with equipment, if not receiving above-mentioned first response instruction when time threshold reaches, it is determined that this Secondary control instruction sends failure and feeds back to above-mentioned host computer.
If there is data transfer because interference sends the situation such as mistake or scene power failure, each equipment can not then receive passback Response message, to ensure reliable communications, the system in teacher with equipment and student with equipment communication when set data re-transmitting Mechanism.Need to reply to the one ACK response of student's node in time when teacher receives the data that student uploads with equipment with equipment Signal, student's node receives ACK and shows that data upload completion, data re-transmitting is otherwise carried out, untill receiving ACK.Equally work as Student's node can also reply to one ACK of teacher's node reverts back when receiving the control instruction that teacher's node issues, teacher's node with This signal judges that student's node receives control instruction, if being retransmitted without if, but after 5s teacher's node still without receiving ACK, Then think that this control instruction sends failure, teacher's node thinks that student's node malfunctions, and feeds back to upper PC.
The communication protocol of each part in above-mentioned classroom instruction accessory system, both can each part in guarantee system Mutual wireless communication data can be correctly identified and read, and unnecessary bandwidth resources are not consumed yet.
The preferred embodiment of the communication means of classroom instruction accessory system is further described below in conjunction with Fig. 7 to Fig. 9.
Fig. 7 is the main program flow chart of host computer according to the preferred embodiment of the invention.As shown in fig. 7, the host computer Main program includes:
Step S701:Master system is initialized.
Step S703:Host computer opens RS232 serial ports.
Step S705:Host computer receives data.
Step S707:Host computer judges whether teacher sends instructions down, if it is, performing step S709, otherwise, returns and performs Step S705.
Step 709:Host computer issues control instruction and gives teacher's equipment, returns perform step S705 afterwards.
Host computer (PC) main program mainly completes the reception, analysis and storage of each student's device data.Xiang teacher The control instruction for coming from teacher is assigned with equipment.
Fig. 8 is the main program flow chart of teacher's equipment according to the preferred embodiment of the invention.As shown in figure 8, the teacher Included with the main program of equipment:
Step S801:Teacher is initialized with device systems.
Step S803:Wireless data sending chip nRF905 is initialized.
Step S805:Timer is initialized.
Step S807:Initialization of (a) serial ports.
Step S809:Teacher is in idle condition with equipment.
Step S811:Judge whether host computer issues control instruction, if it is, performing step S813, otherwise, perform step S809。
Step S813:Teacher receives the control instruction that host computer is issued with equipment.
Step S815:Teacher is switched to corresponding pattern with equipment according to the control instruction received.
Teacher mainly completes to receive each student with the data transmitted in equipment with equipment main program, and with host computer (PC) Serial communication is carried out, instruction is handed down to corresponding student's equipment, teacher's equipment when upper PC issues control instruction It is the tie between upper PC and student's equipment.
During being preferable to carry out, the wherein communication process of teacher's equipment and student's equipment is main as follows:The system ACK is waited after setting idle, roll-call for teacher's equipment, call the roll, topic is issued, issues wait ACK, answer and answer after topic Terminate 7 kinds of states.When teacher selected element name pattern, instruction is handed down to teacher's equipment by upper PC, teacher with equipment by " idle condition " is changed into " roll-call state ", " call the roll and instruct " is sent with device broadcasts to all students, student is received with equipment The control instruction returns to ACK responses immediately, and teacher judges whether all students with equipment with equipment according to this ACK answer signal On line, and by data feedback upper PC is given, teacher can be according to the data statistics student fed back to class rate.
When teacher selects answer pattern, teacher needs to input topic numbering on upper PC, and now upper PC rings Operation of teacher is answered, can also be that all students carry out answer, or specified portions student or single same according to actual conditions setting Answer a question.The control instruction of " issuing topic " is handed down to teacher's equipment by upper PC, and teacher is with equipment by " idle shape State " is changed into " issuing topic state ", and student is received with equipment to carry out IP address and judged first after control instruction, if should Student is then received in the range of the answer student that teacher specifies with equipment and instructed, and answer is carried out by student.If not received if This instructs.The answer upload that student is inputted student with equipment gives teacher's equipment, and teacher is with equipment (example at predetermined time intervals Such as, 10s) data for once receiving and receiving are uploaded to upper PC, or in real time to upper PC upload data, teacher's equipment Whether inquiry host computer will stop answer.If teacher does not issue " halt instruction " all the time, then entering, answer pattern is pre- Fix time after (for example, 5 minutes) automatically into stop mode.
After teacher selects stop mode or system automatically into stop mode, teacher will receive student's equipment with equipment On the data that transmit arranged through packing after be uploaded to after upper PC, teacher's equipment and student enter idle shape with equipment State, monitors channel data transmission, waits new PC control to be received to instruct.
Fig. 9 is the main program flow chart of student's equipment according to the preferred embodiment of the invention.As shown in figure 9, the student Included with the main program of equipment:
Step S901:Student is initialized with device systems.
Step S903:The wireless data sending chip nRF905 initialization of student's equipment.
Step S905:Timer is initialized.
Step S907:Input through keyboard.
Step S909:Student is in idle condition with equipment.
Step S911:Judge whether student receives the control instruction of teacher's equipment with equipment.
Step S913:Determine whether data of this student with IP address of equipment.If it is, performing step S915, otherwise Perform step S907.
Step S915:Student preserves the data received with equipment.
Step S917:Student determines whether instruction of calling the roll with equipment.If it is, performing step S919, otherwise, step is performed Rapid S925.
Step S919:Whether monitoring carrier wave channel is idle, if it is, performing step S921, otherwise, continues monitoring carrier wave letter Road.
Step S921:Student returns to ACK responses to teacher with equipment with equipment.
Step S923:Student switches to idle condition with equipment.
Step S925:Student determines whether that answer is instructed with equipment.If it is, performing step S927, otherwise, step is performed Rapid S939.
Step S927:Whether monitoring carrier wave channel is idle, if it is, performing step S929, otherwise, continues monitoring carrier wave letter Road.
Step S929:Student returns to ACK responses to teacher with equipment with equipment.
Step S931:Student obtains student's answer with equipment.
Step S933:Whether monitoring carrier wave channel is idle, if it is, performing step S935, otherwise, continues monitoring carrier wave letter Road.
Step S935:Answer upload is given teacher's equipment by student with equipment.
Step S937:Student is switched to idle condition with equipment.
Step S939:Student determines whether halt instruction with equipment.If it is, performing step S941, otherwise, step is performed Rapid S907.
Step S941:Whether monitoring carrier wave channel is idle, if it is, performing step S943, otherwise, continues monitoring carrier wave letter Road.
Step S943:Student returns to ACK responses to teacher with equipment with equipment.
Step S945:Student is switched to idle condition with equipment.
Student is mainly responsible for receiving the answer information of student with equipment, and data are uploaded into teacher's equipment.For system Power consumption considers that student is operated in idle condition after being initialized with equipment, waits instruction.NRF905 is used for carrier wave with special The pin CD of monitoring, in the presence of having the carrier wave of same frequency in transmission medium, CD pin will export high level.
In order to verify the correctness of system schema, in the system of example, 10 student's equipment are set, 1 teacher uses Equipment and 1 upper PC.Each equipment carries out IP address numbering in order.Upper PC is using serial ports and teacher's number of devices According to transmission, teacher is used with equipment and is wirelessly transferred and each student's equipment communication.Communication distance ward is about 100 meters. Upper PC sends control instruction, and student can accurately receive data with equipment in 1S, realizes control roll-call, answer in real time, stops The state switching such as only.10 students can complete the accurate upload of answer simultaneously with equipment in 1S, and upper PC can be same to every Being examined with hall for learning is given a mark.For the design, the time delay can be ignored.The system continuously works 24 hours, sampling control Normal operation processed, possesses reliable and stable advantage.
In summary, by above-described embodiment for providing of the present invention, using MSP430 single-chip microcomputers as core, with reference to NRF905 without Classroom instruction accessory system of the line communication scheme based on NRF905, program operational excellence, reliability is high, can be achieved to multiple The real-time roll-call work attendance of student, with the answer of hall course and the score of the examination.Also, the invention also provides above-mentioned classroom instruction auxiliary The communication protocol of each part in system, both can the mutual wireless communication data of each part could in guarantee system It is correctly identified and reads, unnecessary bandwidth resources is not consumed yet.
Disclosed above is only several specific embodiments of the present invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think change should all fall into protection scope of the present invention.

Claims (5)

1. a kind of communication means of classroom instruction accessory system, it is characterised in that including:
Control instruction is sent to teacher's equipment by host computer according to first time predetermined transmission control command protocols, wherein, it is described First time transmission control command protocols include:The protocol IP start address byte that is interconnected between instruction type byte, network, IP terminate Address byte, reserved bit byte, end mark byte;
The control instruction is sent to multiple students by the teacher with equipment according to second time predetermined transmission control command protocols With equipment, wherein, second time transmission control command protocols include:Guide word, instruction type byte, IP start address byte, IP end addresses byte, topic numbering byte or reserved byte, end mark byte, reserved bit byte, CRC Byte;
Wherein, the classroom instruction accessory system includes:The multiple student with equipment, teacher's equipment and it is described on Position machine.
2. according to the method described in claim 1, it is characterised in that be sent to control instruction with equipment in the teacher multiple After student's equipment, in addition to:
For each student's equipment, judge whether the student is started with the corresponding unique ip address of equipment in the IP In address byte to IP end addresses bytes range;
The student determines that the unique ip address is in the IP start address byte to IP end addresses bytes range with equipment It is interior, receive the control instruction.
3. method according to claim 2, it is characterised in that the student with equipment receive the control instruction it Afterwards, in addition to:
The student returns to the first response with equipment to the teacher according to the first predetermined response protocol with equipment and instructed, wherein, First response protocol includes:Guide word, instruction type byte, the student with the corresponding unique ip address byte of equipment, topic Mesh numbering byte or reserved byte, end mark byte, reserved bit byte, CRC byte.
4. method according to claim 3, it is characterised in that when the control instruction is that answer is instructed, in the student After the first response instruction is returned with equipment to the teacher with equipment, in addition to:
The student sends answer data to the teacher according to the first predetermined upload data protocol with equipment with equipment, wherein, The first upload data protocol includes:Guide word, instruction type byte, the unique ip address byte of student's equipment, topic Mesh numbering byte, answer byte, reserved bit byte, CRC byte;
The teacher returns to the second response with equipment to the student according to the second response protocol with equipment and instructed, wherein, described the Two response protocols include:Guide word, instruction type byte, the unique ip address byte of student's equipment, topic numbering byte, End mark byte, CRC byte;
The teacher is sent the answer data received to host computer according to the second upload data protocol with equipment, wherein, institute Stating the second upload data protocol includes:Instruction type byte, the unique ip address byte of student's equipment, topic numbering word Section, answer byte.
5. method according to claim 4, it is characterised in that
After the student sends answer data with equipment with equipment to the teacher, in addition to:The student is judged with equipment Whether the second response instruction is received in the scheduled time, if it is not, then answer data is sent with equipment to the teacher again, Until receiving the second response instruction;
After control instruction to be sent to the teacher the multiple student's equipment with equipment, in addition to:The teacher uses Equipment judges whether receive the first response instruction in the given time, if it is not, then being sent again to the student with equipment Control instruction, if not receiving the first response instruction when time threshold reaches, it is determined that this control instruction is sent Fail and feed back to the host computer.
CN201510695512.9A 2015-10-22 2015-10-22 Classroom instruction accessory system and its communication means Active CN105160956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510695512.9A CN105160956B (en) 2015-10-22 2015-10-22 Classroom instruction accessory system and its communication means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510695512.9A CN105160956B (en) 2015-10-22 2015-10-22 Classroom instruction accessory system and its communication means

Publications (2)

Publication Number Publication Date
CN105160956A CN105160956A (en) 2015-12-16
CN105160956B true CN105160956B (en) 2017-08-29

Family

ID=54801792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510695512.9A Active CN105160956B (en) 2015-10-22 2015-10-22 Classroom instruction accessory system and its communication means

Country Status (1)

Country Link
CN (1) CN105160956B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105957406A (en) * 2016-06-30 2016-09-21 深圳市采集科技有限公司 Measuring method and system for oral feedback of student in classroom
CN105957408A (en) * 2016-06-30 2016-09-21 深圳市采集科技有限公司 Measuring method and system for oral practice of student in classroom
CN105957416A (en) * 2016-06-30 2016-09-21 深圳市采集科技有限公司 Measuring method and system for classroom student interaction assessment
CN106228788A (en) * 2016-08-31 2016-12-14 张志军 A kind of input equipment for multimedia teaching
CN106652617A (en) * 2016-11-15 2017-05-10 武汉瑞纳捷电子技术有限公司 Electronic answering device configuration data wireless loading apparatus and method
CN108577190A (en) * 2018-05-08 2018-09-28 重庆医药高等专科学校 Interactive learning dais for English teaching
CN110111615A (en) * 2019-04-09 2019-08-09 广西俊锦科技有限公司 Multimedia education system
CN110299040A (en) * 2019-05-14 2019-10-01 深圳小西科技有限公司 A kind of word-forming method, word-forming slave and word spelling system
CN110944049A (en) * 2019-11-29 2020-03-31 苏州维伟思医疗科技有限公司 Training device control method, teacher terminal and training device
CN111830868A (en) * 2020-07-01 2020-10-27 孙安萍 Functional module, communication method and calorimeter applying functional module
CN112183690A (en) * 2020-09-30 2021-01-05 深圳市快易典教育科技有限公司 Integrated learning management method and system for teaching and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103295434A (en) * 2012-11-15 2013-09-11 李亦文 Interactive experience type education system
US20140205984A1 (en) * 2013-01-22 2014-07-24 Desire2Learn Incorporated Systems and methods for monitoring learner engagement during a learning event
CN104106106A (en) * 2012-01-04 2014-10-15 马维尔国际贸易有限公司 Method and apparatus for wirelessly managing classroom environment
CN104392635A (en) * 2014-12-17 2015-03-04 南京化工职业技术学院 Interactive informationization teaching system
CN205318658U (en) * 2015-10-22 2016-06-15 北京石油化工学院 Classroom teaching auxiliary system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130124694A (en) * 2012-05-07 2013-11-15 이화여자대학교 산학협력단 Apparatus, system and method for assisting practical lectures

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104106106A (en) * 2012-01-04 2014-10-15 马维尔国际贸易有限公司 Method and apparatus for wirelessly managing classroom environment
CN103295434A (en) * 2012-11-15 2013-09-11 李亦文 Interactive experience type education system
US20140205984A1 (en) * 2013-01-22 2014-07-24 Desire2Learn Incorporated Systems and methods for monitoring learner engagement during a learning event
CN104392635A (en) * 2014-12-17 2015-03-04 南京化工职业技术学院 Interactive informationization teaching system
CN205318658U (en) * 2015-10-22 2016-06-15 北京石油化工学院 Classroom teaching auxiliary system

Also Published As

Publication number Publication date
CN105160956A (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN105160956B (en) Classroom instruction accessory system and its communication means
CN109272733B (en) Multi-terminal multi-mode Internet of things communication terminal supporting multi-meter combined reading and meter reading method thereof
CN201927209U (en) Student response system based on wireless communication
CN102750846B (en) Digital teaching system and digital teaching method based on portable mobile terminal
CN102055611A (en) Low-power wireless data acquisition system
CN104680213A (en) Control method of rapid connection and data transmission among devices
CN206249740U (en) A kind of development board for single chip computer teaching based on wireless communication technique
CN105450475A (en) FC switch test device
CN201556287U (en) Remote wireless automatic meter reading system
CN202183168U (en) Portable wireless teaching response system
CN205318658U (en) Classroom teaching auxiliary system
CN204242391U (en) Intelligent mobile phone Bluetooth turns infrared writing-down device for meters
CN206533383U (en) A kind of Internet of Things application development platform gateway
CN202042049U (en) Zigbee wireless learning infrared transponder
CN111726408A (en) Intelligent home system of high-efficient service
CN206021633U (en) classroom interaction networking control system based on wireless technology
CN203397543U (en) A portable wireless teaching terminal
CN203690629U (en) Power source patch board assembly
CN102799933B (en) Based on smart card and the control method thereof of Internet of Things
CN203573432U (en) Wireless responder
CN103751998A (en) Intelligent efficient crawl training system and method
CN209591148U (en) Wireless multiple-choice question classroom interactive system
CN206097548U (en) Distributing type test item bank management system
CN203433695U (en) Objective question answering device based on ANT wireless communication technology
CN202736326U (en) Wireless intelligent answering system supporting multi-network and multi-terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant