Electronic whiteboard system and its display method
By splitting the courseware data into the artboard page cache data in the electronic whiteboard system and generating a mapping table, only the necessary artboard page data is loaded, the problem of memory overflow and stuttering when displaying the courseware in the electronic whiteboard is solved, and the loading speed and saving efficiency are improved.
Patent Information
- Application Number
- CN202111485189.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-12-07
AI Technical Summary
Existing electronic whiteboards may cause memory overflow program crash when displaying courseware, especially when users add a large number of pictures, and will cause lag when saving.
By introducing data cache module, mapping table module, scheduler module and data provider module in the electronic whiteboard system, the courseware data is split into artboard page cache data according to the number of artboard pages, and a mapping table is generated. An index set is generated based on the current artboard page, and only the artboard page cache data corresponding to the artboard page ID contained in the index set is loaded.
It effectively solves the memory overflow problem, reduces the number of pages loaded in memory, improves loading speed, saves time, and avoids saving a large amount of data to the hard disk during saving, solving the problem of lag during saving.
Smart Images

Figure CN114238172B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of educational technology, and particularly to an electronic whiteboard system and its display method. Background Art
[0002] With the advent of educational informatization, the electronic whiteboard has become one of the essential products for providing high-quality and high-efficiency teaching models in information-based classrooms. Since it enriches the teaching means of teachers in the classroom and improves teaching efficiency, the application of the electronic whiteboard in the field of education has been very extensive.
[0003] The electronic whiteboard is similar to the blackboard used by teachers in traditional classrooms. In addition to providing basic writing, drawing, and erasing operations, it can also provide rich multimedia tools and resource displays, such as pictures, graphics, players, musical instruments, and various subject tools such as Chinese character grids, compasses, rulers, magnifying glasses, etc. However, while providing these rich teaching resources.
[0004] The existing electronic whiteboard imports all courseware data into the memory and displays it, and there are the following problems:
[0005] 1. When the user adds pages or content to the courseware, the memory occupancy will become larger and larger, which may lead to a program crash due to memory overflow, especially when the user adds a large number of pictures.
[0006] 2. When the courseware is saved, the data in the memory needs to be saved to the hard disk. Since all the data of the courseware is loaded in the memory, it will cause lag during saving.
[0007] 3. When the user opens the courseware for the non-first time, that is, for secondary loading, the process is the same as when opening the courseware for the first time. Summary of the Invention
[0008] The technical problem to be solved by the present invention is to provide an electronic whiteboard system and its display method to solve the problem that the existing electronic whiteboard may cause a program crash due to memory overflow when displaying courseware.
[0009] The technical solution adopted by the present invention to solve the above technical problem: An electronic whiteboard system, including a drawing board page, where the drawing board page is the page displayed by the electronic whiteboard, and further includes a data cache module, a mapping table module, a scheduler module, a data provider module, and a drawing board page interface;
[0010] The data cache module splits the courseware data into drawing board page cache data according to the number of drawing board pages, numbers each drawing board page to obtain a drawing board page ID, and names the drawing board page cache data to obtain the name of each drawing board page cache data;
[0011] The mapping table module corresponds the drawing board page ID and the name of the drawing board page cache data one by one to generate a mapping table;
[0012] The scheduler module generates an index set according to the current drawing board page, finds the name of the corresponding drawing board page cache data in the mapping table according to the index set, and sends the name of the drawing board page cache data to the data provider module;
[0013] The data provider module finds the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and sends the found corresponding drawing board page cache data and name to the memory;
[0014] The drawing board page interface finds the corresponding drawing board page cache data in the memory according to the current drawing board page ID and the mapping table, and parses and draws the found drawing board data and displays it to the user.
[0015] Further, the index set includes the current drawing board page ID and the ID of the next page of the current drawing board page. If the current drawing board page ID is not the first page, the index set further includes the ID of the previous page of the previous drawing board page.
[0016] Further, the mapping table module is further configured to add the corresponding drawing board page ID and the name of the drawing board page cache data to the mapping table according to the user's operation of adding a drawing board page, and delete the corresponding drawing board page ID and the name of the drawing board page cache data from the mapping table according to the user's operation of deleting a drawing board page; the data cache module is further configured to add the drawing board page ID and the name of the drawing board page cache data, and is further configured to merge the drawing board page cache data into a courseware according to the order of the drawing board IDs in the mapping table.
[0017] Further, the electronic whiteboard further includes a judgment module, which judges whether the user has modified the current drawing board page when the user changes pages or saves. If there is a modification, the data provider module replaces the current drawing board page cache data in the data cache module with the modified current drawing board page cache data in the memory.
[0018] An electronic whiteboard display method is applied to the electronic whiteboard system according to claim 1. When the electronic whiteboard first opens a certain courseware, the following steps are executed:
[0019] S01. Split the courseware data to be displayed into drawing board page cache data according to the drawing board pages, save and number each drawing board page to obtain the drawing board page ID, and name the drawing board page cache data to obtain the name of each drawing board page cache data;
[0020] S02. Make the drawing board page ID and the name of the drawing board page cache data correspond one by one to generate a mapping table;
[0021] S03. Generate an index set according to the current drawing board page, and find the name of the corresponding drawing board page cache data in the mapping table according to the index set;
[0022] S04. Find the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and send the found corresponding drawing board page cache data and name to the memory;
[0023] S05. Find the corresponding drawing board page cache data in the memory according to the current drawing board page ID and the mapping table, and parse and draw the found drawing board data and display it to the user.
[0024] Further, the index set includes the current drawing board page ID and the ID of the next page of the current drawing board page. If the current drawing board page ID is not the first page, the index set further includes the ID of the previous page of the previous drawing board page.
[0025] Further, the electronic whiteboard display method further includes step S06: Add the corresponding drawing board page ID and the name of the drawing board page cache data to the mapping table according to the user's operation of adding a drawing board page, and delete the corresponding drawing board page ID and the name of the drawing board page cache data from the mapping table according to the user's operation of deleting a drawing board page.
[0026] Further, the electronic whiteboard display method further includes step S07: When the user changes pages or saves, determine whether the user has modified the current drawing board page. If there is a modification, the data provider module replaces the current drawing board page cache data in the data cache module with the modified current drawing board page cache data in the memory.
[0027] Further, when the electronic whiteboard opens a certain courseware for the non-first time, the following steps are executed:
[0028] S001. Generate an index set according to the current drawing board page, and find the name of the corresponding drawing board page cache data in the mapping table according to the index set;
[0029] S002. Find the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and send the found corresponding drawing board page cache data and name to the memory;
[0030] S003. Find the corresponding drawing board page cache data in the memory according to the current drawing board page ID and the mapping table, and parse and draw the found drawing board data and display it to the user.
[0031] Advantages of the present invention: For the electronic whiteboard system and its display method of the present invention, the courseware data is split into drawing board page cache data according to the number of drawing board pages by the data cache module, each drawing board page is numbered to obtain the drawing board page ID, the drawing board page cache data is named to obtain the name of each drawing board page cache data, and a mapping table is generated. An index set is generated according to the current drawing board page, the name of the corresponding drawing board page cache data is found in the mapping table according to the index set, the corresponding drawing board page cache data is found in the data cache module according to the name of the drawing board page cache data, and the found corresponding drawing board page cache data and name are sent to the memory. Only the drawing board page cache data corresponding to the drawing board page ID included in the index set is loaded in the memory. Compared with the prior art in which the entire courseware content is loaded into the memory, the number of pages loaded in the memory is much reduced, solving the problem that the program may crash due to memory overflow when the existing electronic whiteboard displays the courseware. Further, when the user saves, the drawing board page cache data is merged into the courseware according to the order of the drawing board IDs in the mapping table to complete the saving, and it is not necessary to save a large amount of data in the memory to the hard disk, solving the problem of lag during saving. Further, during secondary loading, it is not necessary to import all the courseware data into the memory. Compared with the secondary loading of the prior art, the loading speed is increased and time is saved. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Attached Figure 1 is a flowchart of the electronic whiteboard display method in the electronic whiteboard system and its display method of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0033] The electronic whiteboard system in the electronic whiteboard system and its display method of the present invention includes a drawing board page, where the drawing board page is the page displayed by the electronic whiteboard, and further includes a data cache module, a mapping table module, a scheduler module, a data provider module, and a drawing board page interface;
[0034] The data cache module splits the courseware data into drawing board page cache data according to the number of drawing board pages, numbers each drawing board page to obtain the drawing board page ID, and names the drawing board page cache data to obtain the name of each drawing board page cache data;
[0035] Specifically, the drawing board page ID is only used to identify the drawing board page, and the ID of each drawing board page is different. The name of the drawing board page cache data is used to find the specific drawing board page cache data, and the name of each drawing board page cache data is different.
[0036] The mapping table module corresponds the drawing board page ID and the name of the drawing board page cache data one by one to generate a mapping table;
[0037] Specifically, there is only the corresponding relationship between the drawing board page ID and the name of the drawing board page cache data in the mapping table, and its data volume is very small compared with the courseware.
[0038] The scheduler module generates an index set according to the current drawing board page, finds the name of the corresponding drawing board page cache data in the mapping table according to the index set, and sends the name of the drawing board page cache data to the data provider module;
[0039] Specifically, the index set includes the current drawing board page ID and the ID of the next page of the current drawing board page. If the current drawing board page ID is not the first page, the index set further includes the ID of the previous page of the current drawing board page, and the first page is the first page of the courseware.
[0040] The data provider module finds the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and sends the found corresponding drawing board page cache data and name to the memory;
[0041] Specifically, when the page displayed on the drawing board interface is the first page of the courseware, there is only the cache data corresponding to the first page of the courseware and the cache data corresponding to the second page in the memory. When the page displayed on the drawing board interface is not the first page of the courseware, there is only the cache data corresponding to the current drawing board page of the courseware, the cache data corresponding to the previous page of the current drawing board page, and the cache data corresponding to the next page of the current drawing board page in the memory.
[0042] The drawing board page interface finds the corresponding drawing board page cache data in the memory according to the current drawing board page ID and the mapping table, and parses and draws the found drawing board data and displays it to the user.
[0043] Specifically, the current drawing board page ID is the ID corresponding to the number of pages of the courseware currently displayed to the user.
[0044] Furthermore, the mapping table module is also used to add the corresponding drawing board page ID and the name of the drawing board page cache data in the mapping table according to the user's operation of adding a drawing board page, and delete the corresponding drawing board page ID and the name of the drawing board page cache data in the mapping table according to the user's operation of deleting a drawing board page; the data cache module is also used to add the drawing board page ID and the name of the drawing board page cache data, and is also used to merge the drawing board page cache data into the courseware according to the order of the drawing board IDs in the mapping table.
[0045] Specifically, when the user adds or deletes a drawing board page, the corresponding drawing board page ID and the name of the drawing board page cache data are newly added in the data cache module, and the mapping table is modified accordingly. The order of the drawing board IDs in the mapping table corresponds to the order of the number of pages of the courseware. When saving the courseware, the drawing board page cache data is merged into the courseware according to the order of the drawing board IDs in the mapping table, and there is no need to save a large amount of data in the memory to the hard disk, which solves the problem of lag during saving.
[0046] Further, the electronic whiteboard further includes a judgment module. When the user turns the page or saves, it judges whether the user has modified the current drawing board page. If there is a modification, the data provider module replaces the cached data of the current drawing board page in the data cache module with the cached data of the modified current drawing board page in the memory.
[0047] Specifically, since there are at most three cached data pages of the drawing board in the memory, when the user turns the page, new cached data of the drawing board page will be loaded in the memory and one page of cached data will be released. Therefore, it is necessary to judge whether the user has modified the current drawing board page. If there is a modification, the cached data of the drawing board page in the data cache module should be replaced in time to avoid data loss.
[0048] The electronic whiteboard display method in the electronic whiteboard system and its display method of the present invention, as shown in the appendix Figure 1 When the electronic whiteboard first opens a certain courseware, the following steps are executed:
[0049] S01. Split the courseware data to be displayed into cached data of drawing board pages according to the drawing board pages, save and number each drawing board page to obtain the drawing board page ID, and name the cached data of the drawing board page to obtain the name of each cached data of the drawing board page;
[0050] S02. Make the drawing board page ID and the name of the cached data of the drawing board page correspond one by one to generate a mapping table;
[0051] S03. Generate an index set according to the current drawing board page, and find the corresponding name of the cached data of the drawing board page in the mapping table according to the index set;
[0052] S04. Find the corresponding cached data of the drawing board page in the data cache module according to the name of the cached data of the drawing board page, and send the found corresponding cached data of the drawing board page and the name to the memory;
[0053] S05. Find the corresponding cached data of the drawing board page in the memory according to the current drawing board page ID and the mapping table, and parse and draw the found drawing board data and display it to the user.
[0054] Further, the electronic whiteboard display method further includes step S06: Add the corresponding drawing board page ID and the name of the cached data of the drawing board page to the mapping table according to the user's operation of adding a drawing board page, and delete the corresponding drawing board page ID and the name of the cached data of the drawing board page from the mapping table according to the user's operation of deleting a drawing board page.
[0055] Further, the electronic whiteboard display method further includes step S07: When the user turns the page or saves, judge whether the user has modified the current drawing board page. If there is a modification, the data provider module replaces the cached data of the current drawing board page in the data cache module with the cached data of the modified current drawing board page in the memory.
[0056] Specifically, generally speaking, when the electronic whiteboard first opens a certain courseware, the first page of the courseware is always displayed. In the index set, there are only the drawing board page IDs corresponding to the first page of the courseware and the drawing board page ID corresponding to the second page, that is, at this time, only the cache data of the first page and the second page of the courseware are cached in the memory. During the user's operation, the user will turn the pages of the courseware. When the last page of the courseware is displayed, in the index set, there are only the drawing board page ID corresponding to the last page of the courseware and the drawing board page ID corresponding to the second last page of the courseware, that is, at this time, only the cache data of the last page and the second last page of the courseware are cached in the memory. When the page displayed is neither the first page nor the last page of the courseware, in the index set, there are the drawing board page ID corresponding to the current page of the courseware, the drawing board page ID corresponding to the previous page of the current page of the courseware, and the drawing board page ID corresponding to the next page of the current page of the courseware, that is, at this time, the data of the current page, the previous page of the current page, and the next page of the current page of the courseware are cached in the memory. When the user operates on the courseware, such as adding a page to the courseware, the corresponding drawing board page ID and the name of the drawing board page cache data are newly added in the data cache module, and the mapping table is modified accordingly. The order of the drawing board IDs in the mapping table corresponds to the order of the pages of the courseware. The user edits the added page. When the user turns the page or saves, the judgment module determines that the user has made a modification, and then replaces the cache data of the current page in the data cache module with the data corresponding to the current page in the memory at this time, so as to realize that when the user turns the page, the previous page is saved. When reducing the number of pages of the courseware, the corresponding drawing board page ID and the name of the drawing board page cache data are deleted from the mapping table. When the user saves, according to the order of the drawing board IDs in the mapping table, the drawing board page cache data is merged into the courseware.
[0057] Further, when the electronic whiteboard does not open a certain courseware for the first time, the following steps are executed:
[0058] S001. Generate an index set according to the current drawing board page, and find the name of the corresponding drawing board page cache data in the mapping table according to the index set;
[0059] S002. Find the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and send the found corresponding drawing board page cache data and name to the memory;
[0060] S003. Find the corresponding drawing board page cache data in the memory according to the current drawing board page ID and the mapping table, and parse and draw the found drawing board page data and display it to the user.
[0061] Specifically, when a certain courseware is not opened for the first time, that is, when it is opened for the second time, there are already the courseware split into drawing board page cache data and a mapping table according to the drawing board pages, so it takes less time than when it is opened for the first time.
[0062] In the present invention, the number of drawing board page IDs in the index set does not have to be only 2 or 3 as described in this application, and can be set according to actual needs. For example, the index set may also include the drawing board page ID of the first page of the courseware, so that it is possible to quickly jump to the first page because the cached data of the first page of the courseware is always in the memory. It may also include the ID of the last page of the courseware, allowing for a quick jump to the last page.
Claims
1. An electronic whiteboard system, including a drawing board page, where the drawing board page is the page displayed on the electronic whiteboard, characterized in that, It also includes a data cache module, a mapping table module, a scheduler module, a data provider module, and a drawing board page interface; The data cache module splits the courseware data into drawing board page cache data according to the number of drawing board pages, numbers each drawing board page to obtain a drawing board page ID, and names the drawing board page cache data to obtain the name of each drawing board page cache data; The mapping table module maps the drawing board page ID and the name of the drawing board page cache data one by one to generate a mapping table; The scheduler module generates an index set according to the current drawing board page, finds the corresponding name of the drawing board page cache data in the mapping table according to the index set, and sends the name of the drawing board page cache data to the data provider module. The index set includes the current drawing board page ID and the ID of the next page of the current drawing board page. If the current drawing board page ID is not the first page, the index set also includes the ID of the previous page of the current drawing board page; The data provider module finds the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and sends the found corresponding drawing board page cache data and name to the memory; The drawing board page interface finds the corresponding drawing board page cache data in the memory according to the current drawing board page ID and the mapping table, and parses and draws the found drawing board data and displays it to the user.
2. The electronic whiteboard system according to claim 1, characterized in that The mapping table module is also used to add the corresponding drawing board page ID and the name of the drawing board page cache data to the mapping table according to the user's operation of adding a drawing board page, and delete the corresponding drawing board page ID and the name of the drawing board page cache data from the mapping table according to the user's operation of deleting a drawing board page; the data cache module is also used to add a new drawing board page ID and the name of the drawing board page cache data, and is also used to merge the drawing board page cache data into a courseware according to the order of the drawing board page IDs in the mapping table.
3. The electronic whiteboard system according to claim 1, characterized in that, It also includes a judgment module. When the user changes pages or saves, it judges whether the user has modified the current drawing board page. If there is a modification, the data provider module replaces the current drawing board page cache data in the data cache module with the modified current drawing board page cache data in the memory.
4. An electronic whiteboard display method, applied to the electronic whiteboard system according to claim 1, characterized in that, When the electronic whiteboard first opens a certain courseware, the following steps are executed: S01: Split the courseware data to be displayed into drawing board page cache data according to the drawing board pages, save and number each drawing board page to obtain a drawing board page ID, and name the drawing board page cache data to obtain the name of each drawing board page cache data; S02: Map the drawing board page ID and the name of the drawing board page cache data one by one to generate a mapping table; S03: Generate an index set according to the current drawing board page, and find the corresponding name of the drawing board page cache data in the mapping table according to the index set. The index set includes the current drawing board page ID and the ID of the next page of the current drawing board page. If the current drawing board page ID is not the first page, the index set also includes the ID of the previous page of the current drawing board page; S04: Find the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and send the found corresponding drawing board page cache data and name to the memory; S05. Find the corresponding drawing board page cache data in memory according to the current drawing board page ID and the mapping table, parse and draw the found drawing board page data, and display it to the user.
5. The electronic whiteboard display method according to claim 4, wherein, It further includes step S06: Add the corresponding drawing board page ID and the name of the drawing board page cache data to the mapping table according to the user's operation of adding a drawing board page, and delete the corresponding drawing board page ID and the name of the drawing board page cache data from the mapping table according to the user's operation of deleting a drawing board page.
6. The electronic whiteboard display method according to claim 4, characterized in that, It further includes step S07: When the user changes pages or saves, determine whether the user has modified the current drawing board page. If there is a modification, the data provider module replaces the current drawing board page cache data in the data cache module with the modified current drawing board page cache data in memory.
7. The electronic whiteboard display method according to claim 4, wherein When the electronic whiteboard opens a certain courseware for the non-first time, perform the following steps: S001. Generate an index set according to the current drawing board page, and find the name of the corresponding drawing board page cache data in the mapping table according to the index set; S002. Find the corresponding drawing board page cache data in the data cache module according to the name of the drawing board page cache data, and send the found corresponding drawing board page cache data and name to memory; S003. Find the corresponding drawing board page cache data in memory according to the current drawing board page ID and the mapping table, parse and draw the found drawing board page data, and display it to the user.
Citation Information
Patent Citations
Classroom operation track synchronization method and system
CN106534188A
Class note acquisition method and system
CN106599192A