[go: up one dir, main page]

CN106844667A - A kind of mobile terminal examination question method of the distribution with answering based on MQTT agreements - Google Patents

A kind of mobile terminal examination question method of the distribution with answering based on MQTT agreements Download PDF

Info

Publication number
CN106844667A
CN106844667A CN201710051907.4A CN201710051907A CN106844667A CN 106844667 A CN106844667 A CN 106844667A CN 201710051907 A CN201710051907 A CN 201710051907A CN 106844667 A CN106844667 A CN 106844667A
Authority
CN
China
Prior art keywords
server
teacher
answering
mobile terminal
format
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.)
Granted
Application number
CN201710051907.4A
Other languages
Chinese (zh)
Other versions
CN106844667B (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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201710051907.4A priority Critical patent/CN106844667B/en
Publication of CN106844667A publication Critical patent/CN106844667A/en
Application granted granted Critical
Publication of CN106844667B publication Critical patent/CN106844667B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Technology (AREA)
  • Educational Administration (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

本发明公开的一种基于MQTT协议的移动端试题分发与作答的方法,教师通过移动设备中的教师端以JSON格式发送试题信息,通过MQTT服务器分发至移动设备中的学生端,学生端收到试题以后,进行作答并把结果再次通过MQTT服务器发送至教师端,教师收到学生作答结果后进行评分。本发明的方法,试题分发和作答过程中,若试题或者作答结果为图片格式,则需要上传至专门的文件服务器,或者从文件服务器下载;试题分发,试题作答以及试题评价的过程中产生的相关数据,都上传至专门的数据统计服务器中,其中的全部的统计数据,都符合xAPI教育大数据标准。

A method for distributing and answering test questions on a mobile terminal based on the MQTT protocol disclosed in the present invention, the teacher sends the test question information in JSON format through the teacher terminal in the mobile device, and distributes it to the student terminal in the mobile device through the MQTT server, and the student terminal receives After the test questions, answer and send the results to the teacher through the MQTT server again, and the teacher will score the students after receiving the answers. In the method of the present invention, in the process of test question distribution and answering, if the test questions or answer results are in picture format, they need to be uploaded to a special file server, or downloaded from the file server; The data are all uploaded to a dedicated data statistics server, and all the statistics are in line with the xAPI education big data standard.

Description

一种基于MQTT协议的移动端试题分发与作答的方法A method for distributing and answering mobile terminal test questions based on MQTT protocol

技术领域technical field

本发明涉及课堂教学领域,特别涉及一种基于MQTT协议的移动端试题分发与作答的方法。The invention relates to the field of classroom teaching, in particular to a method for distributing and answering test questions on a mobile terminal based on the MQTT protocol.

背景技术Background technique

随着移动端以及移动互联网的快速发展,学校课堂的数字化随之普及,相对于传统的教学方法,在课堂上使用移动端作为教学工具,能够大大提高许多教学环节的效率,其中非常具有代表性的就是试题分发与作答环节。教师只需要在移动端上设置好题目,分发给学生,学生即可即时作答,把结果回馈给老师,并记录下答题结,供分析和统计。With the rapid development of mobile terminals and the mobile Internet, the digitalization of school classrooms has become popular. Compared with traditional teaching methods, using mobile terminals as teaching tools in the classroom can greatly improve the efficiency of many teaching links, which is very representative. The most important thing is the question distribution and answering link. The teacher only needs to set the questions on the mobile terminal and distribute them to the students. The students can answer immediately, feedback the results to the teacher, and record the answers for analysis and statistics.

目前这只是一种人们所期望达到的理想状态,在实际应用中并没有一种很成熟的做法来满足人们的需求。At present, this is only an ideal state that people expect to achieve, and there is no very mature way to meet people's needs in practical applications.

发明内容Contents of the invention

本发明的目的在于克服现有技术的缺点与不足,提供一种基于MQTT协议的移动端试题分发与作答的方法。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and provide a method for distributing and answering test questions at the mobile terminal based on the MQTT protocol.

本发明的目的通过以下的技术方案实现:The purpose of the present invention is achieved through the following technical solutions:

一种基于MQTT协议的移动端试题分发与作答的方法,包括以下步骤:A method for distributing and answering test questions on a mobile terminal based on the MQTT protocol, comprising the following steps:

S1、教师登录移动端中的教师端应用,登录MQTT服务器,并使用MQTT协议封装库,订阅“全体学生”主题;S1. The teacher logs in to the teacher's application in the mobile terminal, logs in to the MQTT server, and uses the MQTT protocol to encapsulate the library, and subscribes to the topic of "all students";

S2、学生登录移动端中的学生端应用,登录MQTT服务器,使用MQTT协议封装库,订阅“教师”主题;S2. Students log in to the student application in the mobile terminal, log in to the MQTT server, use the MQTT protocol to encapsulate the library, and subscribe to the "teacher" topic;

S3、教师选择题目,将题目信息封装为JSON格式,将JSON文本发布至“全体学生”主题(即发布给所有学生),同时将分发试题环节所产生的数据(包括主题者,出题内容,出题时间等数据),以xAPI标准格式上传至数据采集服务器;S3. The teacher selects the topic, encapsulates the topic information into JSON format, and publishes the JSON text to the "all students" topic (that is, to all students), and at the same time distributes the data generated in the test session (including the subject, the content of the question, Question time and other data), uploaded to the data collection server in xAPI standard format;

S4、学生接收到JSON格式的题目后,进行解析,还原为原题目,展现至学生端界面,供学生回答;S4. After students receive the questions in JSON format, they analyze them, restore them to the original questions, and display them on the student terminal interface for students to answer;

S5、学生回答完毕后,一方面将结果信息封装为JSON格式发布至“教师”主题(即反馈给老师),另一方面将作答环节所产生的数据(包括回答者,回答结果,作答时长等数据)以xAPI标准格式上传至数据采集服务器;S5. After the students have finished answering, on the one hand, the result information is encapsulated in JSON format and published to the topic of "teacher" (that is, feedback to the teacher); Data) is uploaded to the data collection server in xAPI standard format;

S6、教师端收到学生的作答结果的JSON文本后,进行解析,还原为学生作答的结果,展现至教师端界面,供教师观察学生作答情况,并进行评分;S6. After the teacher receives the JSON text of the student's answer result, it parses it, restores it to the student's answer result, and displays it on the teacher's interface for the teacher to observe the student's answer and score;

S7、数据采集服务器的数据库中,以xAPI标准保存的所有数据,根据不同需求,开发各种接口,供学生端或教师端查看所有出题信息、作答信息、评分信息或者其他更加复杂的数据。S7. In the database of the data acquisition server, all the data stored in the xAPI standard, according to different needs, develop various interfaces for students or teachers to view all question information, answer information, scoring information or other more complex data.

步骤S1和S2中,所述登录MQTT服务器,需使用MQTT在各移动端的封装库,同时设置参数,所述参数包括服务器IP、端口号、用户名、密码、心跳时间、超时时间;登陆成功后,需建立后台消息监听机制,等待响应MQTT服务器送达的消息。In steps S1 and S2, the login MQTT server needs to use the MQTT package library at each mobile terminal, and set parameters at the same time. The parameters include server IP, port number, username, password, heartbeat time, and timeout time; after successful login , it is necessary to establish a background message monitoring mechanism to wait for the message delivered by the MQTT server.

步骤S3中,所述题目有两种生成方式:一种是使用Office相关插件或其他第三方试题编辑工具而生成的关于题目的文本数据,另外一种是使用移动端截屏功能或者拍照功能所形成的图片格式。In step S3, there are two ways to generate the question: one is to use Office-related plug-ins or other third-party test question editing tools to generate text data about the question, and the other is to use the screen capture function or camera function of the mobile terminal to form image format.

所述题目若是文本格式,将其直接封装为JSON格式发送;所述题目若是图片格式,则需另外搭建一个文件服务器,先将文件上传至服务器,并获得图片在服务器的URL后,将URL封装到JSON中发送。If the title is in text format, package it directly in JSON format and send it; if the title is in picture format, you need to set up an additional file server, first upload the file to the server, and obtain the URL of the picture on the server, then encapsulate the URL to send in JSON.

所述文本数据的格式为XML或JSON。The format of the text data is XML or JSON.

步骤S4中,所述题目若为图片格式,则需先根据收到的图片URL,将图片从文件服务器中下载下来。In step S4, if the title is in a picture format, the picture needs to be downloaded from the file server according to the received picture URL.

步骤S5中,所述题目若为客观题(包括判断题,选择题)直接在学生作答完毕以后,直接在学生端显示作答结果;若学生作答结果为图片格式,则需先将文件上传至服务器,并获得图片在服务器的URL后,将URL封装到JSON中发送。In step S5, if the title is an objective question (including judgment questions and multiple choice questions), the answer result will be displayed directly on the student terminal after the student finishes answering; if the answer result of the student is in picture format, the file needs to be uploaded to the server first , and after obtaining the URL of the image on the server, encapsulate the URL into JSON and send it.

所述教师端允许教师强制所有学生提交作答结果;同时若题目为客观题则直接显示已提交学生的作答结果和分数;若为主观题,则允许教师进行即时评分,并把评分结果发送至响应学生;最终无论主观题还是客观题,都需要把得分结果以xAPI标准格式上传至服务器;同时,若学生作答的结果为图片格式,则需先根据收到的图片URL,将图片从文件服务器中下载下来。The teacher terminal allows the teacher to force all students to submit answer results; at the same time, if the question is an objective question, it will directly display the answer results and scores of the students who have submitted it; if it is a subjective question, it allows the teacher to perform instant scoring and send the scoring results to the response Students; in the end, regardless of subjective questions or objective questions, the score results need to be uploaded to the server in the xAPI standard format; at the same time, if the answer results of the students are in picture format, the picture needs to be uploaded from the file server according to the received picture URL Download it.

步骤S7中,所述数据采集服务器使用非关系型数据库存储数据(包括Redis、MongoDB)。In step S7, the data collection server uses a non-relational database (including Redis, MongoDB) to store data.

所述移动端包括Android设备、WP设备或者iOS设备。The mobile terminal includes an Android device, a WP device or an iOS device.

本发明与现有技术相比,具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1、本发明所采用的MQTT(Message Queuing Telemetry Transport)协议,是IBM所开发的一种基于发布/订阅模型的即时通讯协议,该协议具有以下特点:1, the MQTT (Message Queuing Telemetry Transport) agreement that the present invention adopts is a kind of instant messaging agreement based on publish/subscribe model developed by IBM, and this agreement has following characteristics:

传输十分轻量,其固定头部的长度只有两个字节,相对更加省电,省流量。The transmission is very light, and the length of its fixed header is only two bytes, which is relatively more power-saving and traffic-saving.

本身支持一对多的发送模型。It supports one-to-many sending model.

其头部的Qos字段,可以保证消息传递的次数,以及其Testament,Last Will特性可以通知客户端的异常中断,这都使其相对可靠。The Qos field in its header can guarantee the number of message delivery, and its Testament and Last Will features can notify the client of abnormal interruption, which makes it relatively reliable.

由此可见,MQTT协议特别适合工作于设备数量较多,设备计算能力较低,网络环境较不稳定的一对多场景下。故使用该协议作为课堂中教师向学生分发试题的基础协议是非常理想的。It can be seen that the MQTT protocol is especially suitable for working in one-to-many scenarios with a large number of devices, low computing power of devices, and unstable network environment. Therefore, it is ideal to use this protocol as the basic protocol for teachers to distribute test questions to students in the classroom.

2、xAPI(Experience API)是由美国“高级分布式学习”组织发布的针对教育大数据所制定的一系列的数据格式标准。这个标准针对教育行业,旨在解决教育行业大数据的数据互操作性,数据格式标准化,数据服务扩展等问题。本发明试题统计和分析部分中所有采集的数据,完全遵从xAPI标准。2. xAPI (Experience API) is a series of data format standards formulated by the American "Advanced Distributed Learning" organization for educational big data. This standard is aimed at the education industry and aims to solve issues such as data interoperability, data format standardization, and data service expansion of big data in the education industry. All the collected data in the statistics and analysis part of the test questions of the present invention fully complies with the xAPI standard.

3、由于使用MQTT协议作为通讯协议,本方案具有MQTT协议的所有优点,例如节省流量,节省电量,简单,易扩展等。3. Since the MQTT protocol is used as the communication protocol, this solution has all the advantages of the MQTT protocol, such as saving traffic, saving power, simplicity, and easy expansion.

4、使用xAPI标准,该标准针对教育行业,解决了教育大数据的诸多问题,也便于与其他使用了该标准的系统快速对接。4. Use the xAPI standard, which is aimed at the education industry and solves many problems of educational big data, and is also convenient for quick connection with other systems that use this standard.

5、支持多种试题格式,不仅支持以XML或JSON为格式的文本类试题,同时也支持图片格式的试题。5. Support multiple test question formats, not only text test questions in XML or JSON format, but also picture format test questions.

6、后台统计信息使用非关系型数据库,一方面,对于这类海量数据,非关系型数据库执行效率更高,而且便于使用Hadoop等进行大数据计算。另一方面xAPI标准本身可以基于JSON,很适合使用非关系型数据库。6. The background statistical information uses a non-relational database. On the one hand, for such massive data, the non-relational database is more efficient in execution, and it is convenient to use Hadoop and other large data calculations. On the other hand, the xAPI standard itself can be based on JSON, which is very suitable for using non-relational databases.

附图说明Description of drawings

图1为本发明所述一种基于MQTT协议的移动端试题分发与作答的方法的流程图。FIG. 1 is a flowchart of a method for distributing and answering test questions at a mobile terminal based on the MQTT protocol according to the present invention.

图2为实施图1所述方法的硬件架构图。FIG. 2 is a hardware architecture diagram for implementing the method described in FIG. 1 .

具体实施方式detailed description

下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention will be further described in detail below in conjunction with the embodiments and the accompanying drawings, but the embodiments of the present invention are not limited thereto.

如图1、2,一种基于MQTT协议的移动端试题分发与作答的方法,包含以下步骤:As shown in Figures 1 and 2, a method for distributing and answering test questions on a mobile terminal based on the MQTT protocol includes the following steps:

S1、教师端应用登录MQTT服务器,订阅“教师”话题,并开始监听来自MQTT服务器的消息。S1. The teacher-side application logs in to the MQTT server, subscribes to the "teacher" topic, and starts listening to messages from the MQTT server.

S2、学生端应用登录MQTT服务器,订阅“全部学生”话题,并开始监听来自MQTT服务器的消息。S2. The student application logs in to the MQTT server, subscribes to the "all students" topic, and starts listening to messages from the MQTT server.

S3、若教师发送的试题为图片格式,需首先将试题图片上传至文件服务器。否则跳至S5。S3. If the test questions sent by the teacher are in picture format, the pictures of the test questions need to be uploaded to the file server first. Otherwise skip to S5.

S4、教师端接收到图片服务器返回的试题图片的URL路径。S4. The teacher terminal receives the URL path of the test question picture returned by the picture server.

S5、教师端以JSON格式将试题信息发布至“全部学生”话题。S5. The teacher publishes the test question information to the topic "All Students" in JSON format.

S6、学生端收到JSON格式的试题,并进行解析和试题展现。S6. The student end receives the test questions in JSON format, and analyzes and displays the test questions.

S7、若教师端分发的试题为图片格式,学生端则向文件服务器发起下载图图片请求。否则跳至S9。S7. If the test questions distributed by the teacher end are in the form of pictures, the student end initiates a request to the file server for downloading pictures and pictures. Otherwise skip to S9.

S8、学生端接收到图片服务器返回的试题图片的URL路径。S8. The student terminal receives the URL path of the test question picture returned by the picture server.

S9、学生作答。S9. Students answer.

S10、教师端将试题分发信息上传至数据统计服务器。S10. The teacher uploads the test question distribution information to the data statistics server.

S11、若学生作答的结果为图片格式,则上传学生作答图片至文件服务器,否则跳至S12。S11. If the result of the student's answer is in picture format, upload the picture of the student's answer to the file server, otherwise skip to S12.

S12、学生端收到图片服务器返回的学生作答图片的URL路径。S12. The student end receives the URL path of the student's answer picture returned by the picture server.

S13、学生端将作答作答信息发布至“教师”话题。S13. The student end publishes the answering information to the topic "Teacher".

S14、教师收到学生作答结果。S14. The teacher receives the student's answer result.

S15、若教师端收到的学生作答结果为图片格式,则向文件服务器发起下载学生作答图片图片的请求,否则跳至S16。S15. If the student's answering result received by the teacher is in picture format, initiate a request to the file server for downloading the student's answering picture; otherwise, skip to S16.

S16、教师端收到图片服务器返回的学生作答图片的URL路径。S16. The teacher receives the URL path of the student's answer picture returned by the picture server.

S17、学生端将学生的作答信息上传至数据统计服务器。S17. The student terminal uploads the student's answer information to the data statistics server.

S18、教师观察学生作答结果,并评分。S18. The teacher observes the students' answers and scores them.

S19、将教师评分信息上传至数据统计服务器。S19. Upload the teacher's scoring information to the data statistics server.

S20、学生端向数据统计服务器发起请求,查看各类统计结果。S20. The student terminal initiates a request to the data statistics server to view various statistical results.

S21、学生端收到数据统计服务器进行统计后的结果。S21. The student end receives the statistical result from the data statistics server.

S22、教师端向数据统计服务器发起请求,查看各类统计结果。S22. The teacher sends a request to the data statistics server to view various statistical results.

S23、教师端收到数据统计服务器进行统计后的结果。S23. The teacher terminal receives the statistical result from the data statistics server.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiment is a preferred embodiment of the present invention, but the embodiment of the present invention is not limited by the above-mentioned embodiment, and any other changes, modifications, substitutions, combinations, Simplifications should be equivalent replacement methods, and all are included in the protection scope of the present invention.

Claims (10)

1.一种基于MQTT协议的移动端试题分发与作答的方法,其特征在于,包括以下步骤:1. A method for distributing and answering mobile terminal test questions based on the MQTT protocol, characterized in that, comprising the following steps: S1、教师登录移动端中的教师端应用,登录MQTT服务器,并使用MQTT协议封装库,订阅“全体学生”主题;S1. The teacher logs in to the teacher's application in the mobile terminal, logs in to the MQTT server, and uses the MQTT protocol to encapsulate the library, and subscribes to the topic of "all students"; S2、学生登录移动端中的学生端应用,登录MQTT服务器,使用MQTT协议封装库,订阅“教师”主题;S2. Students log in to the student application in the mobile terminal, log in to the MQTT server, use the MQTT protocol to encapsulate the library, and subscribe to the "teacher" topic; S3、教师选择题目,将题目信息封装为JSON格式,将JSON文本发布至“全体学生”主题,同时将分发试题环节所产生的数据,以xAPI标准格式上传至数据采集服务器;S3. The teacher selects a topic, encapsulates the topic information in JSON format, publishes the JSON text to the topic of "all students", and uploads the data generated in the distribution of test questions to the data collection server in the xAPI standard format; S4、学生接收到JSON格式的题目后,进行解析,还原为原题目,展现至学生端界面,供学生回答;S4. After students receive the questions in JSON format, they analyze them, restore them to the original questions, and display them on the student terminal interface for students to answer; S5、学生回答完毕后,一方面将结果信息封装为JSON格式发布至“教师”主题,另一方面将作答环节所产生的数据以xAPI标准格式上传至数据采集服务器;S5. After the students have finished answering, on the one hand, the result information is packaged in JSON format and published to the topic of "teacher", on the other hand, the data generated in the answering session is uploaded to the data collection server in the xAPI standard format; S6、教师端收到学生的作答结果的JSON文本后,进行解析,还原为学生作答的结果,展现至教师端界面,供教师观察学生作答情况,并进行评分;S6. After the teacher receives the JSON text of the student's answer result, it parses it, restores it to the student's answer result, and displays it on the teacher's interface for the teacher to observe the student's answer and score; S7、数据采集服务器的数据库中,以xAPI标准保存的所有数据,根据不同需求,开发各种接口,供学生端或教师端查看所有出题信息、作答信息、评分信息或者其他数据。S7. In the database of the data acquisition server, all the data stored in the xAPI standard are developed according to different requirements, and various interfaces are developed for the student or teacher to view all question information, answer information, scoring information or other data. 2.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,步骤S1和S2中,所述登录MQTT服务器,需使用MQTT在各移动端的封装库,同时设置参数,所述参数包括服务器IP、端口号、用户名、密码、心跳时间、超时时间;登陆成功后,需建立后台消息监听机制,等待响应MQTT服务器送达的消息。2. according to the method for distributing and answering the mobile terminal test questions based on the MQTT protocol of claim 1, it is characterized in that, in steps S1 and S2, the described login MQTT server needs to use the encapsulation storehouse of MQTT at each mobile terminal, and set parameters simultaneously , the parameters include server IP, port number, user name, password, heartbeat time, and timeout time; after successful login, a background message monitoring mechanism needs to be established to wait for the message delivered by the MQTT server. 3.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,步骤S3中,所述题目有两种生成方式:一种是使用Office相关插件或其他第三方试题编辑工具而生成的关于题目的文本数据,另外一种是使用移动端截屏功能或者拍照功能所形成的图片格式。3. The method for distributing and answering test questions at the mobile terminal based on the MQTT protocol according to claim 1, characterized in that, in step S3, the title has two ways of generating: one is to use Office related plug-ins or other third-party test questions The text data about the topic generated by editing tools, and the other is the image format formed by using the screen capture function or camera function of the mobile terminal. 4.根据权利要求3所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,所述题目若是文本格式,将其直接封装为JSON格式发送;所述题目若是图片格式,则需另外搭建一个文件服务器,先将文件上传至服务器,并获得图片在服务器的URL后,将URL封装到JSON中发送。4. according to the method for distributing and answering the mobile terminal test questions based on the MQTT protocol according to claim 3, it is characterized in that, if the title is in text format, it is directly encapsulated as JSON format and sent; if the title is in picture format, it needs to be In addition, build a file server, first upload the file to the server, and obtain the URL of the image on the server, then encapsulate the URL into JSON and send it. 5.根据权利要求3所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,所述文本数据的格式为XML或JSON。5. The method for distributing and answering mobile terminal test questions based on the MQTT protocol according to claim 3, wherein the format of the text data is XML or JSON. 6.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,步骤S4中,所述题目若为图片格式,则需先根据收到的图片URL,将图片从文件服务器中下载下来。6. The method for distributing and answering test questions based on the mobile terminal of the MQTT protocol according to claim 1, wherein in step S4, if the title is in a picture format, the picture needs to be downloaded from the picture URL according to the received picture URL downloaded from the file server. 7.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,步骤S5中,所述题目若为客观题直接在学生作答完毕以后,直接在学生端显示作答结果;若学生作答结果为图片格式,则需先将文件上传至服务器,并获得图片在服务器的URL后,将URL封装到JSON中发送。7. The method for distributing and answering test questions based on the MQTT protocol of claim 1, characterized in that, in step S5, if the title is an objective question, the answer result will be displayed directly on the student terminal after the students have finished answering ; If the answer result of the student is in the image format, the file needs to be uploaded to the server first, and after obtaining the URL of the image on the server, the URL is encapsulated in JSON and sent. 8.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,所述教师端允许教师强制所有学生提交作答结果;同时若题目为客观题则直接显示已提交学生的作答结果和分数;若为主观题,则允许教师进行即时评分,并把评分结果发送至响应学生;最终无论主观题还是客观题,都需要把得分结果以xAPI标准格式上传至服务器;同时,若学生作答的结果为图片格式,则需先根据收到的图片URL,将图片从文件服务器中下载下来。8. The method for distributing and answering test questions on mobile terminals based on the MQTT protocol according to claim 1, wherein the teacher allows teachers to force all students to submit answer results; if the title is an objective question, it will directly display the submitted students answer results and scores; if it is a subjective question, the teacher is allowed to perform instant grading and send the grading results to the responding students; in the end, regardless of the subjective or objective questions, the score results need to be uploaded to the server in the xAPI standard format; at the same time, If the student's answer is in picture format, the picture needs to be downloaded from the file server according to the received picture URL. 9.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,步骤S7中,所述数据采集服务器使用非关系型数据库存储数据。9. The method for distributing and answering mobile terminal test questions based on the MQTT protocol according to claim 1, characterized in that, in step S7, the data collection server uses a non-relational database to store data. 10.根据权利要求1所述基于MQTT协议的移动端试题分发与作答的方法,其特征在于,所述移动端包括Android设备、WP设备或者iOS设备。10. The method for distributing and answering mobile terminal test questions based on the MQTT protocol according to claim 1, wherein the mobile terminal comprises an Android device, a WP device or an iOS device.
CN201710051907.4A 2017-01-20 2017-01-20 A method of mobile terminal test question distribution and answering based on MQTT protocol Expired - Fee Related CN106844667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710051907.4A CN106844667B (en) 2017-01-20 2017-01-20 A method of mobile terminal test question distribution and answering based on MQTT protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710051907.4A CN106844667B (en) 2017-01-20 2017-01-20 A method of mobile terminal test question distribution and answering based on MQTT protocol

Publications (2)

Publication Number Publication Date
CN106844667A true CN106844667A (en) 2017-06-13
CN106844667B CN106844667B (en) 2020-06-19

Family

ID=59119671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710051907.4A Expired - Fee Related CN106844667B (en) 2017-01-20 2017-01-20 A method of mobile terminal test question distribution and answering based on MQTT protocol

Country Status (1)

Country Link
CN (1) CN106844667B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616584A (en) * 2018-04-19 2018-10-02 华南师范大学 A kind of wisdom classroom collecting method and system based on xAPI
CN108897507A (en) * 2018-05-02 2018-11-27 华南理工大学 A kind of synchronizing white display methods and system based on Android end wisdom classroom
CN109243225A (en) * 2018-10-23 2019-01-18 安徽慧视金瞳科技有限公司 A kind of intelligent Teaching System and method based on cloud
CN109800244A (en) * 2019-01-17 2019-05-24 恒峰信息技术有限公司 A kind of online testing data processing method and system
CN110247941A (en) * 2018-03-09 2019-09-17 鸿合科技股份有限公司 The method and system of switching terminal use state
CN110473437A (en) * 2018-05-11 2019-11-19 鸿合科技股份有限公司 A kind of method and apparatus set a question of taking pictures
CN110941653A (en) * 2019-12-19 2020-03-31 北京大米未来科技有限公司 Data processing method, device, storage medium and terminal
CN111385346A (en) * 2019-04-12 2020-07-07 鸿合科技股份有限公司 Interactive answer method, client and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
CN105099882A (en) * 2015-07-09 2015-11-25 杭州电子科技大学 MQTT-based cloud pushing method and system
CN105577780A (en) * 2015-12-21 2016-05-11 武汉理工大学 A microservice-based university teaching cloud platform
US20160337465A1 (en) * 2015-05-15 2016-11-17 Cisco Technology, Inc. Multi-datacenter message queue

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682640A (en) * 2012-05-17 2012-09-19 江苏中科梦兰电子科技有限公司 Electronic lesson test system and test method
US20160337465A1 (en) * 2015-05-15 2016-11-17 Cisco Technology, Inc. Multi-datacenter message queue
CN105099882A (en) * 2015-07-09 2015-11-25 杭州电子科技大学 MQTT-based cloud pushing method and system
CN105577780A (en) * 2015-12-21 2016-05-11 武汉理工大学 A microservice-based university teaching cloud platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨鹏: "基于MQTT协议的信息推送平台系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247941A (en) * 2018-03-09 2019-09-17 鸿合科技股份有限公司 The method and system of switching terminal use state
CN110247941B (en) * 2018-03-09 2022-12-13 鸿合科技股份有限公司 Method and system for switching use state of terminal
CN108616584A (en) * 2018-04-19 2018-10-02 华南师范大学 A kind of wisdom classroom collecting method and system based on xAPI
CN108897507A (en) * 2018-05-02 2018-11-27 华南理工大学 A kind of synchronizing white display methods and system based on Android end wisdom classroom
CN108897507B (en) * 2018-05-02 2021-11-23 华南理工大学 Whiteboard synchronous display method and system based on android intelligent classroom
CN110473437A (en) * 2018-05-11 2019-11-19 鸿合科技股份有限公司 A kind of method and apparatus set a question of taking pictures
CN109243225A (en) * 2018-10-23 2019-01-18 安徽慧视金瞳科技有限公司 A kind of intelligent Teaching System and method based on cloud
CN109800244A (en) * 2019-01-17 2019-05-24 恒峰信息技术有限公司 A kind of online testing data processing method and system
CN111385346A (en) * 2019-04-12 2020-07-07 鸿合科技股份有限公司 Interactive answer method, client and electronic equipment
CN110941653A (en) * 2019-12-19 2020-03-31 北京大米未来科技有限公司 Data processing method, device, storage medium and terminal

Also Published As

Publication number Publication date
CN106844667B (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN106844667B (en) A method of mobile terminal test question distribution and answering based on MQTT protocol
CN108616584A (en) A kind of wisdom classroom collecting method and system based on xAPI
CN104539436B (en) A kind of class offerings real-time live broadcast method and system
CN105448149B (en) Interaction and immediate feedback system and method in a kind of teaching
CN108173946B (en) Method, system and related method for realizing real-time classroom interaction
CN108897507A (en) A kind of synchronizing white display methods and system based on Android end wisdom classroom
CN103473297A (en) Multimedia question-answering system and method based on intelligent mobile terminal
CN105047033A (en) Classroom cloud and education cloud collaborative teaching interaction system and method
CN111669606A (en) Live broadcast system for offline and online synchronous teaching
CN107040816A (en) A kind of client application operation exception analysis method and device
CN108230795A (en) A kind of university's applied mathematics Teaching System
CN108538118A (en) A kind of on-line education system
CN103685555B (en) Online examination system and information processing method applied to online examination system
CN205158690U (en) A teaching interaction system for classroom cloud and education cloud collaboration
CN108156223A (en) A kind of accurate supplying system of message based on websocket and method
CN105448008B (en) Implementation method, device and system that a kind of electronic classroom is raced to be the first to answer a question
CN106981229A (en) A kind of open visualization Teaching System based on wireless network
CN108347448A (en) Online Live Interactive Method and System
WO2018098739A1 (en) Interaction method and device for interactive teaching platform
CN110620934A (en) Interaction method and device for live broadcast teaching
CN105657024A (en) Online information interaction method
CN114861611A (en) A kind of hypertext collaborative editing method, device and equipment
CN107423446B (en) New media automated trusted deployment system and method based on cloud storage
CN110033660B (en) Interactive teaching system
CN108806375A (en) A kind of interactive teaching method and system based on image recognition

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
CB03 Change of inventor or designer information

Inventor after: Lu Lu

Inventor after: Gu Shaoyuan

Inventor after: Jia Jianye

Inventor before: Lu Lu

Inventor before: Jia Jianye

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200619

CF01 Termination of patent right due to non-payment of annual fee