Portable electronic genealogy rapid checking and displaying device and system
By using portable electronic genealogy devices and employing index files and multi-dimensional query algorithms, the problems of low storage and retrieval efficiency and poor interactivity of traditional genealogies are solved. This enables fast and convenient genealogy query and display, and supports offline operation and rich functional expansion.
Patent Information
- Application Number
- CN202511013407.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-11-07
AI Technical Summary
Traditional paper-based genealogies suffer from low storage and retrieval efficiency, poor interactivity, and difficulty in dynamic updates. Existing electronic genealogy devices are costly, bulky, difficult to carry, and have limited functionality in offline environments.
Design a portable electronic genealogy device, including a serial port screen component, a control board component, a power management module, and optional Beidou positioning and voice processing modules. It adopts an index file association control ID and text file name, supports touch screen operation, voice input and Beidou positioning, and realizes fast retrieval and multi-dimensional query.
It achieves millisecond-level biographical data retrieval, displays information intuitively and efficiently, supports offline operation, integrates rich functions, is easy to operate, convenient to maintain and update, and adapts to different genealogy queries.
Smart Images

Figure CN120910000A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electronic genealogy, in particular to a portable electronic genealogy rapid search and display device and system. BACKGROUND
[0002] In the traditional family culture inheritance, as an important carrier for recording family lineage, character relationship and history, the family tree has long relied on paper carrier for storage and retrieval. However, with the expansion of family size and intergenerational replacement, the traditional paper family tree has the following technical pain points:
[0003] Low storage and retrieval efficiency: paper family tree needs manual flipping, it is difficult to quickly locate specific character information, and it is easy to be damp, worm-eaten or lost; poor interactivity: unable to realize modern interactive functions such as touch operation and voice query, user experience is limited; dynamic updating difficulty: revision needs to be rewritten or printed, with high cost and long cycle, which is difficult to adapt to the change of family members; single function: existing electronic family tree applications (such as cloud family tree and speed connection family tree) rely on network services, lack of offline response capability, and cannot realize physical display through hardware devices.
[0004] In view of the above problems, part of the technical scheme tries to improve the efficiency of family tree management through software optimization. For example, the cloud family tree APP realizes multi-person collaborative revision through the Internet, but its function is limited to cloud data storage and basic query, and cannot run without network environment; the speed connection family tree supports mobile phone editing and generation of family tree, but it depends on centralized server, and the data security and offline availability are insufficient. In addition, the existing devices mostly use general display screen and complex operating system, resulting in high cost and large size, which is difficult to meet the demand of portable scene.
[0005] Therefore, it is urgent to develop an integrated, low-power and offline operation supporting hardware device, which optimizes the storage architecture, interaction protocol and display logic to realize the rapid retrieval, dynamic display and multi-dimensional correlation query of the family tree, and at the same time, compatible with the physical characteristics (such as touch page turning and highlight annotation) of traditional paper family tree and modern digital needs (such as voice input and positioning record). SUMMARY
[0006] The purpose of the present application is to provide a portable electronic family tree rapid search and display device and system.
[0007] In order to achieve the above purpose, the present application is realized by the following technical scheme: a portable electronic family tree rapid search and display device and system, including a matched casing, a serial port screen assembly, a control board assembly, a power management module, and an optional battery pack, a Beidou positioning module, a voice processing module and a body temperature monitoring module.
[0008] Serial screen component: adopt mature commercial serial screen on the market, equipped with RS232 or RS485 communication interface, USB port and TF card port. This component is mainly responsible for:
[0009] Processing and displaying of family tree.
[0010] Human-computer interaction (receiving user touch instructions).
[0011] Final display of character name and character biography.
[0012] Serial screen component contains various controls (such as text control, button control), which can define its attributes (such as switching screen, on-off function, text input and output) through the matching software development platform, as shown in Figure 1 、 Figure 2 、 Figure 3 The generated software installation package can be downloaded to the FLASH of the serial screen through the USB port or the TF card port, which is convenient for program updating.
[0013] Control board component: contains high-speed CPU and peripheral circuit, equipped with RS232 or RS485 communication interface, USB port, SD card port and TYPE-C port. This component is mainly responsible for: embedding FreeRTOS and FATFS file management system.
[0014] Searching, reading and writing operations on the character biography text files stored in the SD card (through the SD card port) or the U disk (through the USB port) and other storage media.
[0015] Processing user query requests and transmitting the processing results to the serial screen component for display.
[0016] Communication protocol: set serial communication protocol between serial screen component and control board component. The basic format of the protocol instruction is: frame header + instruction + interface ID + control ID + instruction parameter + CRC check code + frame tail. This protocol is the basis for the collaborative work of the two.
[0017] Data organization: each character biography in the genealogy is independently saved in a pure text file named after the character's name (such as "Wang Jianlong.txt"). When encountering characters with the same name, a suffix (such as "Wang Rangming II.txt") is added to the file name to distinguish them and ensure the uniqueness of the file.
[0018] Create index text file. This file establishes key associations: the interface ID + control ID of a specific control on the serial screen component is associated with the text file name named after the character's name stored in the SD card or U disk and other storage.
[0019] Associate the generation word in the clan pedigree language with the corresponding generation number (the number of generations).
[0020] Core function implementation: fast point biography: the user clicks the touch button control corresponding to any name in the genealogy chart (such as Figures 11-19 ) (its attribute is defined as a switch function, such as Figure 2 ). The serial screen component sends a command containing the control interface ID + control ID to the control board component according to the protocol. The control board component parses the command, finds the corresponding text file name through the index file, reads the file content, and returns it to the serial screen component to display in a specific interface ( Figure 23 ). Clicking the return control (such as Figure 23 ) can return to the original genealogy chart interface.
[0021] Lineage query: the user clicks the single-person name input control (7) in the main interface ( Figure 5 ), and a soft keyboard ( Figure 6 , Figure 20 , Figure 24 ) pops up to input the name (such as "Wang Jianlong") and confirm.
[0022] The serial screen component sends the name (GBK encoding) to the control board component through the protocol.
[0023] The control board component searches for the name in the index file. If it exists, then:
[0024] Open the corresponding text file (such as "Wang Jianlong.txt") and read the content (such as "Wang Zongyi's son. Wang Jianlong, first generation...").
[0025] Extract the generation word (such as "first") and find its generation number (such as the 21st) according to the index association.
[0026] Notify the serial screen component to switch to the lineage interface ( Figure 7 ) and display the name in the corresponding generation position (control ID = 21).
[0027] At the same time, in the corresponding genealogy chart interface (such as Figure 17 P16), set the state of the control corresponding to the name to "open" (such as display with background color / shadow).
[0028] Trace the parent information (such as "Wang Zongyi") and repeat the above process: read the file, extract the generation word ("open" corresponds to the 20th generation), display in the lineage interface ( Figure 7 ), and mark in the corresponding genealogy chart ( Figure 17 ), until the ancestor (such as "Wang Xianba") is traced. The spouse information is processed similarly, and the file is named after the husband's name (such as "Wang Jianlong's wife.txt") and displayed in the spouse's personal biography interfaceFigure 9 、 Figure 10 )。
[0029] If the name does not exist, an error prompt is displayed at the input control.
[0030] Same air connection (blood relationship comparison):
[0031] The user clicks the two name input controls on the main interface ( Figure 5 ) and pops up the soft keyboard ( Figure 20 、 Figure 34 ) to input the two names (such as “Wang Jianlong Wang Xianjun”) and confirm.
[0032] The serial screen component sends the two names to the control panel component through the protocol.
[0033] The control panel component separately looks up the two names in the index file. If both exist, then:
[0034] For each name, perform a similar “one bloodline” query process to build its direct ancestor chain, and save the results (name + generation number / control ID) in a separate structure array.
[0035] Compare the two structure arrays to find the common direct ancestors (i.e., the part of the array elements with the same name).
[0036] Notify the serial screen component to switch to the same air connection interface ( Figure 21 、 Figure 35 ).
[0037] Display the direct ancestor chains of the two people on the interface, and set the controls corresponding to the common ancestors to display with background color / shadow (such as the names corresponding to IDs 1-13 in Figure 35 ).
[0038] If either name does not exist, an error prompt is displayed at the input control.
[0039] Lineage chart association display: During the one bloodline query process, the system will mark the controls corresponding to the names involved in the query results in all lineage chart interfaces where they appear (such as P1 in Figure 11 , P2 in Figure 12 ,..., P20 in Figure 19 ) as “open” (such as displaying with background color / shadow), as shown in Figure 11 、 Figure 12 、 Figure 15 、 Figure 16 、 Figure 17 , which visually displays the bloodline path.
[0040] Quick switching: the main interface ( Figure 5The dashed box is provided with a plurality of touch key controls (such as 6), each of which corresponds to a key node person in the genealogy chart. Clicking these controls can directly switch to the genealogy chart interface containing the person (such as Figure 11 ).
[0041] Optional functions:
[0042] Beidou positioning: click the home page ( Figure 4 ) positioning control to enter the positioning interface ( Figure 36 ). The Beidou module sends the positioning data (longitude, latitude, and altitude) to the control board component through the serial port, and then transmits it to the serial screen display. The user can input the file name through the text control and click the save control to save the location information to the storage medium, solving the traditional family tree tomb description ambiguity problem.
[0043] Voice input: click the home page ( Figure 4 ) voice control to enter the voice interface ( Figure 37 ). The user speaks the name, and the voice module recognizes it and sends the name (GBK encoding) to the control board component through the serial port, and then displays it in the text control. Click the confirmation control, and the subsequent processing process is the same as keyboard input.
[0044] Temperature monitoring: Body temperature sensor data can be transmitted and displayed by the system (not detailed in the implementation).
[0045] Battery pack: provides a mobile power supply for the device.
[0046] TYPE-C port: used to connect a computer, which can convert the control board serial port data into USB signals through a chip (such as CH340), making it easy to debug or interact with other software ( Figure 38 ).
[0047] One machine, multiple uses: the same device only needs to replace the U disk or SD card containing different family tree software installation packages, biography text files, and index files to query different family trees. BRIEF DESCRIPTION OF DRAWINGS
[0048] Figure 1 is a dialog box schematic diagram for configuring the switching picture function of the key control attribute of the serial screen component software development platform;
[0049] Figure 2 is a dialog box schematic diagram for configuring the switching picture function of the key control attribute of the serial screen component software development platform;
[0050] Figure 3 is a dialog box schematic diagram for configuring the input and output text function of the text control attribute of the serial screen component software development platform;
[0051] Figure 4 is a schematic diagram of the display of the first interface of the serial screen component;
[0052] Figure 5 is a schematic diagram of a display main interface of a serial screen assembly;
[0053] Figure 6 is a schematic diagram of a display pop-up soft keyboard of a serial screen assembly;
[0054] Figure 7 is a schematic diagram of a display one-line interface of a serial screen assembly;
[0055] Figure 8 is a schematic diagram of a display personal biography data interface of a serial screen assembly;
[0056] Figure 9 is a schematic diagram of a display spouse personal biography data interface of a serial screen assembly;
[0057] Figure 10 is a schematic diagram of a display inheritance personal biography data interface of a serial screen assembly;
[0058] Figure 11 is a schematic diagram of a display pedigree chart P1 interface of a serial screen assembly;
[0059] Figure 12 is a schematic diagram of a display pedigree chart P2 interface of a serial screen assembly;
[0060] Figure 13 is a schematic diagram of a display pedigree chart P3 interface of a serial screen assembly;
[0061] Figure 14 is a schematic diagram of a display pedigree chart P4 interface of a serial screen assembly;
[0062] Figure 15 is a schematic diagram of a display pedigree chart P7 interface of a serial screen assembly;
[0063] Figure 16 is a schematic diagram of a display pedigree chart P15 interface of a serial screen assembly;
[0064] Figure 17 is a schematic diagram of a display pedigree chart P16 interface of a serial screen assembly;
[0065] Figure 18 is a schematic diagram of a display pedigree chart P18 interface of a serial screen assembly;
[0066] Figure 19 is a schematic diagram of a display pedigree chart P20 interface of a serial screen assembly;
[0067] Figure 20 is a schematic diagram of a display pop-up soft keyboard of a serial screen assembly, same as Figure 6 ;
[0068] Figure 21Figure 1 is a schematic diagram of a serial screen component displaying a same-gender sibling interface;
[0069] Figure 22 Figure 2 is a schematic diagram of a serial screen component displaying a quick point display personal biography data interface;
[0070] Figure 23 Figure 3 is a schematic diagram of a serial screen component displaying a quick point display personal biography data interface, and Figure 22 ;
[0071] Figure 24 Figure 4 is a schematic diagram of a serial screen component displaying a pop-up soft keyboard, and Figure 6 ;
[0072] Figure 25 Figure 5 is a schematic diagram of a serial screen component displaying a one-branch interface, and Figure 7 ;
[0073] Figure 26 Figure 6 is a schematic diagram of a serial screen component displaying a personal biography data interface, and Figure 8 ;
[0074] Figure 27 Figure 7 is a schematic diagram of a serial screen component displaying a family tree P1 interface, and Figure 11 ;
[0075] Figure 28 Figure 8 is a schematic diagram of a serial screen component displaying a family tree P2 interface, and Figure 12 ;
[0076] Figure 29 Figure 9 is a schematic diagram of a serial screen component displaying a family tree P3 interface, and Figure 13 ;
[0077] Figure 30 Figure 10 is a schematic diagram of a serial screen component displaying a family tree P4 interface, and Figure 14 ;
[0078] Figure 31 Figure 11 is a schematic diagram of a serial screen component displaying a family tree P8 interface;
[0079] Figure 32 Figure 12 is a schematic diagram of a serial screen component displaying a family tree P26 interface;
[0080] Figure 33 Figure 13 is a schematic diagram of a serial screen component displaying a family tree P33 interface;
[0081] Figure 34 Figure 14 is a schematic diagram of a serial screen component displaying a pop-up soft keyboard, and Figure 6 ;
[0082] Figure 35 Figure 15 is a schematic diagram of a serial screen component displaying a same-gender sibling interface, and Figure 21 ;
[0083] Figure 36 Fig. 1 is a schematic diagram of a Beidou satellite positioning interface displayed by a serial screen component;
[0084] Figure 37 Fig. 2 is a schematic diagram of a voice input interface displayed by a serial screen component;
[0085] Figure 38 Fig. 3 is an electrical function block diagram of the present application.
[0086] Advantages of the present application:
[0087] Query efficiency leap: through the index file association control ID and text file name, generation association and optimized query algorithm, the millisecond level retrieval of the biographical data of the characters is realized. Especially when the query generation is more than 10 generations, the efficiency is more than 100 times higher than that of the traditional method.
[0088] Display intuitive and efficient: the problem of cross-page search and display caused by the multiple pages of the traditional genealogy pedigree chart is solved.
[0089] The name displayed in the interface of the same line is displayed in the same name position of all related pedigree chart interfaces with shadow / highlight association display.
[0090] The problem of direct-line ancestor comparison display of any two people in the same genealogy is solved, and the common ancestor is identified by shadow.
[0091] Quick point display function is provided, and clicking any name in the pedigree chart can immediately view the biography, and return to the original position.
[0092] Man-machine interaction friendly: touch screen and graphical interface are adopted, the operation is simple and intuitive, and professional computer skills are not required. Keyboard and voice input are supported.
[0093] Rich and extensible function: in addition to the core genealogy query, optional functions such as Beidou positioning, voice input, and body temperature monitoring are integrated.
[0094] Convenient maintenance and update: the genealogy content is stored in a text file, and it is easy to add, delete, and modify; the serial screen program can be updated through a U disk / TF card.
[0095] One machine with multiple functions: different genealogies can be queried by replacing the storage card.
[0096] Saving and spreading: electronic storage solves the problems of paper genealogy saving difficulty and spreading limitation. DETAILED DESCRIPTION
[0097] Figure 1 As shown, it is a property definition dialog box of a key control in an application software developed in cooperation with a serial screen component, the touch control function is to switch the screen, the target screen to be switched is the home page, and the controls with similar functions only need to be configured with different target screens.
[0098] Figure 2 As shown, it is the attribute definition dialog of the key control in the application software developed with the serial screen component, the touch purpose shown is switch function, operating the control, the serial screen component will transmit the instruction to the control panel component according to the communication protocol: frame header + instruction + interface ID + control ID + instruction parameter + CRC check code + frame tail, the control panel component analyzes the received data frame according to the protocol, and then completes the reading and processing of the corresponding saved biographical data file with the index file, and after the processing is completed, the file content is converted into GBK Chinese code hexadecimal number and returned to the serial screen component for display.
[0099] Figure 3 As shown, it is the attribute definition dialog of the text control in the application software developed with the serial screen component, clicking the attribute control of the serial screen component will pop up the soft keyboard Figure 6 , input the name and press the enter key, the serial screen component will transmit the instruction to the control panel component according to the communication protocol: frame header + instruction + interface ID + control ID + instruction parameter + CRC check code + frame tail, the input name corresponding to the GBK Chinese code is contained in the instruction parameter, the control panel component analyzes the received data frame according to the protocol, and then completes the reading and processing of the corresponding saved biographical data file with the index file, and after the processing is completed, the file content is converted into GBK Chinese code hexadecimal number and returned to the serial screen component for display.
[0100] Figure 4 As shown, click the 1 family tree touch key control, the control is defined as Figure 1 The screen switching attribute shown, the interface displayed by the serial screen component is switched from Figure 4 the home page interface to Figure 5 the main page interface, at the same time, the serial screen component will transmit the instruction type and the target interface ID to the control panel component according to the above-mentioned communication protocol.
[0101] Figure 5 As shown, click the 7 control, the control is defined as Figure 3 The text attribute shown, the serial screen component automatically pops up Figure 6 the soft keyboard, input the name "Wang Jianlong" using the Chinese pinyin input method, and then press the enter key in the software keyboard, the serial screen component will transmit the GBK Chinese code hexadecimal number corresponding to "Wang Jianlong" contained in the instruction parameter item to the control panel component according to the above-mentioned communication protocol, the software system of the control panel component analyzes the command, and searches for the input name "Wang Jianlong" string in the index text file, if the input name is contained in the index file, it indicates that the input is correct, then the control panel component notifies the serial screen component to switch to the one-blood-line interface Figure 7, then the text file named "Wang Jianlong.txt" in the storage is opened, the content "Wang Zongyi's son. Wang Jianlong, the first generation, was born on a certain date" is read out and saved in the character array in the RAM, and the panel assembly transmits the text content to the serial screen assembly to display on the personal biography interface Figure 8 , then the content of the array is analyzed, "first" corresponds Figure 4 Wang's clan language 4 in the home interface, i.e. the 21st generation, according to the associated ID information of the index file, the name of Wang Jianlong is displayed in the 21st position of the serial screen assembly interface Figure 7 , and the control state corresponding to the name of Wang Jianlong in the family tree P16 interface shown in Figure 17 is set to open, i.e. with background display; then the information of "Wang Zongyi", i.e. the father of Wang Jianlong, is read out, and the process of reading the "Wang Zongyi.txt" text file is the same as that of reading "Wang Jianlong.txt", Wang Zongyi belongs to the "open" generation, and his father is Wang Shengfu, as shown in Figure 23 , the system extracts the "open" character information in the file, and according to the corresponding relationship between the clan language and the generation saved in the index file, "open" is found to correspond Figure 4 Wang's clan language 5 in the home interface, i.e. the 20th generation, the panel assembly transmits instructions to the serial screen assembly to display the name of Wang Zongyi in the 20th position of the serial screen assembly interface Figure 7 , i.e. the position of the text control with control ID number 20, and the control state corresponding to the name of Wang Zongyi in the family tree P16 interface shown in Figure 17 is set to open, i.e. with background display; and so on until the 1st ancestor "Wang Xianba" is displayed in the interface Figure 7 . Because the surname of the spouse is mostly different from that of the husband, the method of processing is to name the text file saving the personal biography data of the spouse with the name of the husband instead of the name of the spouse himself, such as "Wang Jianlong's wife.txt", and the process of reading the file of the wife is the same as that of reading the "Wang Jianlong.txt" file, and then the serial screen assembly is instructed to display the personal biography interface of the spouse Figure 9 When a person has multiple marriages, the personal biography data text files of multiple spouses are saved and named as "Wang's wife one.txt", "Wang's wife two.txt", "Wang's wife three.txt", etc., and are read and displayed respectively. When the input string of the name is not included in the index file, it is judged that the name input is incorrect, the serial screen assembly displays the interface still staying in Figure 5 the home interface, and the panel assembly instructs the serial screen assembly to display the error prompt information at the position of the 7th text control.
[0102] Figure 7 , click the 14th next page touch button control, the attribute of the control is the above-mentioned Figure 1The screen switching shown indicates that the serial port display component has switched to the personal biography information interface. Figure 8 This interface displays the personal biographical information corresponding to the entered name. The touch-sensitive controls below for all next page, previous page, and home page navigation, as well as... Figure 5 The 31 controls within the dashed box on the homepage all have the properties described above. Figure 1 The purpose of the screen switching shown is different, except that the target screen to which the screen is switched may not be the same, which will not be elaborated on below.
[0103] Figure 8 As shown, clicking the "Next Page" touch button control (16) switches the serial port screen component to the spouse's personal biography information interface. Figure 9 This will display the personal biographical information of the spouse corresponding to the entered name. If there is no spouse, a message indicating "no spouse" will be displayed.
[0104] Figure 9 As shown, clicking the touch button control on page 17 (next page) switches the serial port screen component to the personal biography data interface. Figure 10 The system displays the biographical information of the spouse corresponding to the entered name. If the spouse is married for the first time, a message indicating that they are married for the first time will be displayed, and so on. Clicking the 18 touch button controls will display the biographical information of the spouse who has been married three times or more.
[0105] Figure 7 As shown, clicking the touch button control on page 13 will return the serial port screen component to... Figure 5 On the homepage, click Figure 5 The quick-switch touch button controls within the dashed box, such as number 6, will switch the serial port screen to... Figure 11 That is, the genealogy chart P1 interface, where the names marked with shades are... Figure 7 The names appearing in the interface are consistent and correspond one-to-one.
[0106] Figure 11 As shown, clicking the touch button control on page 20 (next page) will switch the serial port screen component to... Figure 12 In the genealogy chart P2 interface, the names with shaded areas are... Figure 7 The names displayed on the interface correspond one-to-one with the overall structure. Figure 13 and Figure 14 Corresponding to lineage charts P3 and P4, none of the names in the interface have shadows because the names in these two interfaces do not appear in the main chart. Figure 7 In a consistent interface, Figure 15 Corresponding to the genealogy chart on page 7, some names are shaded, including "Wang Yonghuang". Figure 12 The "Yonghuang" in the text is a direct reference to "Wang Yonghuang". Figure 16 and Figure 17 Similarly, the names in the genealogy chart are linked to those appearing in the lineage, making it easy for users to clearly see the blood relationships between direct ancestors and collateral relatives. For example... Figure 11 —Figure 19 As shown, when the home touch button control on the interface is clicked, the interface will switch to the home page interface Figure 5 .
[0107] Figure 5 As shown, when 8 is clicked, the control defines the text attributes as shown in Figure 3 As shown, the serial port screen component will automatically pop up a soft keyboard identical to Figure 6 the one Figure 20 . Continuously input two names to be compared, "Wang Jianlong Wang Xianjun". Press the Enter key on the software keyboard. The serial port screen component will transmit the hexadecimal numbers of the GBK Chinese character codes corresponding to "Wang Jianlong Wang Xianjun" within the instruction parameter item to the control board component according to the above communication protocol. The software system of the control board component will parse the command, search for the string of the first name "Wang Jianlong" in the index text file. When the first name is included in the index file, it means a match. Then, search for the string of the second name "Wang Xianjun" in the index text file. When both names match, it means the input is correct. Then, the control board component will notify the serial port screen component to switch to Figure 21 the like-minded interface as shown. Then, open the text file named "Wang Jianlong.txt" in the storage body and read its content, "Son of Wang Zongyi. Wang Jianlong, of the Xian generation, born on a certain date in a certain month and year." into the character array in the RAM. The system extracts the character information of the character "Xian" in this array. According to the corresponding relationship between the generation words and generations saved in the index file, it is found that "Xian" corresponds to Figure 4 the Wang family generation word 4 shown on the home page interface, that is, the 21st generation. The control board component transmits an instruction to the serial port screen component to display Wang Jianlong's name on the serial port screen component at the position of the text control with the control ID number 21 in the 21st generation in the like-minded interface as shown in Figure 21 . At the same time, save this name and ID number to the structure array {, {"Wang Jianlong", 21},}. Then, follow the clues to read the information of "Wang Zongyi", that is, Wang Jianlong's father. The process of reading the text file "Wang Zongyi.txt" is the same as that of reading "Wang Jianlong.txt" and read this text file into the character array in the RAM. Wang Zongyi belongs to the "Kai" generation. His father is Wang Shengfu. As shown in Figure 23 As shown, the system extracts the character information of the character "Kai" in this array. According to the corresponding relationship between the generation words and generations saved in the index file, it is found that "Kai" corresponds to Figure 4 the Wang family generation word 5 shown on the home page interface, that is, the 20th generation. The control board component transmits an instruction to the serial port screen component to display Wang Zongyi's name on the serial port screen component as shown in Figure 17The position of the 20th generation in the same gas anastomosis interface is the position of the text control with control ID number 20, and the result of saving the name and ID number to the structure array is {, { "Wang Zongyi", 20}, { "Wang Jianlong", 21},}. Similarly, when the ancestor "Wang Xianba" is found, the content saved in the structure array is {{ "Wang Xianba", 1}, { "Wang Boming", 2}, { "Wang Tai", 3}, { "Wang Sigu", 4}, { "Wang Zhenglin", 5}, { "Wang Zongxian", 6}, { "Wang Hui", 7}, { "Wang Xionglu", 8}, { "Wang Yujun", 9}, { "Wang Yonghuang", 10}, { "Wang Xuecheng", 11}, { "Wang Zokun", 12}, { "Wang Hongrong", 13}, { "Wang Xingyan", 14}, { "Wang Renxi", 15}, { "Wang Rangming II", 16}, { "Wang Zhengkuang", 17}, { "Wang Jiayan", 18}, { "Wang Shengfu", 19}, { "Wang Zongyi", 20}, { "Wang Jianlong", 21},}. Reading the text file of "Wang Xianjun.txt" and the process of "Wang Jianlong.txt" are similar, and the processing result is similar. The content saved in the structure array is {{ "Wang Xianba", 31}, { "Wang Boming", 32}, { "Wang Tai", 33}, { "Wang Sigu", 34}, { "Wang Zhenglin", 35}, { "Wang Zongxian", 36}, { "Wang Hui", 37}, { "Wang Xionglu", 38}, { "Wang Yujun", 39}, { "Wang Yonghuang", 40}, { "Wang Xuecheng", 41}, { "Wang Zokun", 42}, { "Wang Hongrong", 43}, { "Wang Xingyu", 44}, { "Wang Rengan", 45}, { "Wang Zhanzhi", 46}, { "Wang Zhengqi", 47}, { "Wang Jiafu", 48}, { "Wang Zigong", 49}, { "Wang Xianjun", 50},}. Comparing the two structure arrays, it is found that the same array element content "Wang Xianba" and its ID number differ by 30. This is because the control ID number in the same interface of the serial screen component is unique. The control number in the first array is the same as the generation number, and the control ID number in the second array minus 30 is consistent with the generation number. "Wang Xianjun" belongs to the "Kai" character generation, as described above, corresponding to the 20th generation, 20+30=50, which corresponds to the corresponding control number ID 50. Then the system compares the two arrays one by one to compare the name strings. The comparison result is the same from "Wang Xianba" to "Wang Hongrong", representing that Wang Jianlong and Wang Xianjun have common direct ancestors from the 13th generation onwards. From the 14th onwards, the system notifies the serial screen component to display the different ID controls with background color according to the comparison result of the name strings in the two arrays. For example Figure 17 The ID numbers 1-13 and 31-43 in the same gas anastomosis interface are 1-13 generations, indicating common direct ancestors. When the input of any one of the two name strings is not included in the index file, it is judged that the name input is incorrect, and the serial screen component display interface still stays at Figure 5The control board component sends an error message command to the serial port screen component, displaying the name error message in the 8 text control.
[0108] Figure 11 — Figure 19 As shown, the property definition of any touch button control corresponding to a name in the genealogy chart is an on / off property, such as... Figure 2 As shown, clicking any of the buttons... Figure 11 As shown in Figure 19, the serial port screen component transmits the instruction and ID information to the control board component according to the communication protocol: frame header + instruction + interface ID + control ID + instruction parameters + CRC checksum + frame tail. The control board component parses the received instruction according to the protocol, and then, in conjunction with the one-to-one correspondence between ID and name in the index file, completes the reading, writing, and processing of the "Wang Xianba.txt" file. The control board component saves the current interface ID information in the integer data variable screen_id, and then notifies the serial port screen component to switch to... Figure 22 This involves displaying Wang Xianba's biographical information on the interface and transmitting his biographical data to the serial port display component. Figure 22 Displays biographical information matching the name; click... Figure 22 The 25th return touch button control is also like... Figure 2 As shown in the switch properties, the control board component receives the ID information of the returned touch control from the serial port screen component, and notifies the serial port screen component to switch the screen back to the interface with ID equal to screen_id. Figure 11 The processing flow is the same as other similar buttons, enabling users to quickly browse personal biographical information by clicking on any name in the lineage chart, and to return to the original lineage chart interface by clicking on 25.
[0109] Figure 16 As shown, ② corresponding to 22 represents a duplicate name, and Wang Rangming ② corresponds to... Figure 7 The name "Wang Rangming II" in the lineage chart is also repeated in other lineage charts (①②③④). Note: Because all names in the lineage charts share the same surname, for the sake of compact layout, there are cases where only the given name is shown without the surname. That is, "Rangming" is equivalent to "Wang Rangming". The names with only the given name and no surname in other charts have the same meaning.
[0110] Figure 17 As shown, click the "Wang Zongyi" button control corresponding to 23 in the genealogy chart on page 16, as described above. Figure 11 Similar to 19 in lineage chart P1, the serial port screen component displays the personal biographical information interface as shown below. Figure 23 As shown, Figure 23 and Figure 22 It's the same interface, the difference is in the displayed content. Clicking button 25 returns the serial port screen component to the genealogy chart P16 interface. Figure 17 .
[0111] Figure 24 — Figure 33 As shown in Figure 5 , click 7 in the input box, a soft keyboard pops up as shown in Figure 24 , input "Wang Fuxuan", and click the enter key of the soft keyboard. The interface of the serial screen component showing the lineage of Wang Fuxuan will be displayed as shown in Figure 25 , the interface of the serial screen component showing the biography of Wang Fuxuan will be displayed as shown in Figure 26 , Figure 27 — Figure 33 The interface of the serial screen component showing the lineage of Wang Fuxuan will be displayed as shown in Figure 25 , the interface of the serial screen component showing the lineage of Wang Fuxuan will be displayed as shown in
[0112] Figure 34 and Figure 35 As shown in Figure 5 , click 8 in the input box, a soft keyboard pops up as shown in Figure 34 , input "Wang Jianlong Wang Fuxuan", the serial screen component switches to the interface showing the same lineage as shown in Figure 35 , which displays the direct ancestors of the two persons respectively. The names of the same ancestors are displayed with shadows. The system software processing flow is the same as that of inputting "Wang Jianlong Wang Xianjun" described above, and will not be repeated.
[0113] Figure 36 As shown in Figure 4 , click the 2 positioning touch button control in the home interface, the serial screen component will switch to the satellite positioning interface Figure 36 . The satellite positioning module transmits data to the control board component through the USART serial port, and then the control board component packages the data according to the above-mentioned communication protocol and transmits it to the serial screen component. The serial screen component displays the longitude, latitude and altitude information of the device on the satellite positioning interface as shown in Figure 36 . Click the touch text control 26, input the text file name to be saved in the pop-up soft keyboard, and then click the save touch button control 27. The serial screen component will transmit the corresponding information to the control board component, and the control board component will save the above-mentioned positioning information to the U disk or SD card.
[0114] Figure 37 As shown in Figure 4 , click the 3 voice touch button control in the home interface, the serial screen component will switch to the voice input interface Figure 37, the serial screen assembly informs the control board assembly of the ID of the switching picture, the control board assembly activates the voice module 31, the user speaks the name to be searched, the voice module analyzes and processes the voice after receiving the voice, transmits the corresponding GBK Chinese character code of the name to the control board assembly through the connected USART serial port, then the control board assembly transmits the name to the serial screen assembly for display according to the above communication protocol, the name of a single person is displayed in the 28 text control, and the names of two persons are displayed in the 29 text control, the user clicks the 30 confirmation touch button control after confirming that the name is correct, and the subsequent system software processing flow is the same as that in Figure 5 The processing flow of clicking 7 and 8 in the main interface to input by using the soft keyboard is the same, except that when the name is wrong, the error prompt information is displayed in 28 or 29.
[0115] Figure 38 As shown in the figure, 37 is the TYPE-C port of the control board assembly 38, the serial TTL signal of the CPU is converted into a USB signal through the chip CH340, and the processing result of the control board assembly is transmitted to the serial debugging assistant application software and other application software of the computer through the port for display and comprehensive processing.
[0116] The technical scheme of the present application is various changes or modifications made by ordinary skilled in the art, which are within the protection scope of the present application.
[0117] Although the embodiments of the present application have been shown and described, it can be understood by those skilled in the art that various changes, modifications, replacements and variations can be made to the embodiments without departing from the principles and spirits of the present application, the scope of the present application is defined by the appended claims and their equivalents.
Claims
1. A portable electronic family tree quick search and display device and system, characterized by, Comprise: Serial screen component: configured with RS232 or RS485 communication interface, SD port, USB port and TF card port, used for: Processing and displaying genealogy pedigree chart; Realizing human-computer interaction, receiving user touch instructions; Displaying the name of the person and the biographical data of the person; Including controls with definable attributes, including switching screens, switch functions, and text input and output; Control board component: containing high-speed CPU and peripheral circuits, configured with RS232 or RS485 communication interface, USB port, SD card port and TYPE-C port, used for: Running embedded real-time operating system and file management system; Searching, reading and writing operations on the text files of the biographical data of the person stored in the SD card or U disk and other storage media; Analyzing and executing instructions from the serial screen component and returning the processing results; Power management module: providing power for the device; Casing: used to accommodate and fix the serial screen component, control board component and power management module; Wherein, the serial screen component and the control board component interact data through serial communication protocol, and the basic format of the protocol instruction is: frame header + instruction + interface ID + control ID + instruction parameter + CRC check code + frame tail.
2. The portable electronic genealogy quick display device and system according to claim 1, wherein: The device further comprises an index file stored in the SD card or U disk and other storage media; The index file establishes the following association relationship: Associating the interface ID + control ID of the control on the serial screen component with the text file name named after the name of the person stored in the storage medium; Associating the generation number in the genealogy with the corresponding generation number.
3. The portable electronic genealogy quick display device and system according to claim 2, wherein: Each biographical data of a person in the genealogy is independently saved in a pure text file named after the name of the person in the storage medium; When there are people with the same name, a suffix is added to the end of the text file name to distinguish them, so as to ensure the uniqueness of the file name.
4. The portable electronic family tree quick search and display device and system according to claim 1 or 2, characterized in that: The display interface of the serial screen component includes a continuous interface and a same-air connected branch interface; In the pedigree chart interface, each name corresponds to a touch button control, and the attribute of the touch button control is configured as a switch function; In the continuous interface, the name displayed is associated with the name appearing in the pedigree chart interface, and is displayed with shadow or highlight in the pedigree chart interface; In the same-air connected branch interface, the same name displayed in the upper and lower regions is specially marked.
5. The portable electronic family tree quick lookup device and system of claim 1, wherein: The main interface of the serial screen component is provided with a plurality of touch button controls; Each touch button control corresponds to a key node person in the pedigree chart interface; Clicking any touch button control, the serial screen component can directly switch to the pedigree chart interface containing the key node person.
6. The portable electronic family tree quick lookup device and system of claim 1, wherein, Further comprising one or more of the following optional components: Beidou positioning module: used to obtain the longitude, latitude and altitude information of the current position of the device, and can be displayed and saved in the Beidou satellite positioning interface (such as Figure 36); Voice module: for receiving user voice instructions, identifying as name information and displaying in the text control of voice input interface; Temperature sensor: for monitoring environmental or body temperature information; Battery pack: for providing mobile power supply for the device.
7. The portable electronic family tree quick lookup device and system of claim 1, wherein: The software of the serial screen component can be updated through the USB port or TF card port; The character biography text file and index file are stored in a pluggable SD card or U disk; By replacing the SD card or U disk storing the software installation package, character biography text file and index file, the device can be used to query different genealogies, realizing the function of one machine for multiple uses.
8. The portable electronic genealogy quick query and display device and system according to any one of claims 1-6; storage medium: storing: The software installation package of the serial screen component; The text file containing character biography information named by the character's name; The index file for associating the interface ID + control ID of the serial screen component control with the text file name, and associating the generation number with the generation number.
9. A portable electronic pedigree quick display method based on the device of any one of claims 1-6, characterized in that, Including the following steps: Quick point display character biography step: Receiving user operation of clicking name corresponding touch button control on the genealogy interface; The serial screen component sends an instruction containing the control interface ID + control ID to the control board component according to the communication protocol; The control board component parses the instruction and finds the corresponding text file name through the index file; The control board component reads the content of the text file and returns it to the serial screen component (33); The serial screen component displays the content on the quick point display personal biography interface.
10. The portable electronic family tree quick lookup device and system method of claim 8, wherein, Also including: One pulse query step: Receiving user input of single name through text control or voice input on the main interface; The serial screen component sends the name information to the control board component; The control board component searches for the name in the index file; If it exists, open the corresponding text file and read the content; Extract the generation word and find its generation number according to the index association; Notify the serial screen component to switch to the one pulse interface and display the name in the corresponding generation position; In the related genealogy interface, mark the control corresponding to the name as shadow or highlight display; Recursively analyze the information of the direct ancestor, repeat the above display and marking process until the ancestor; Process and display the spouse information; If it does not exist, display an error prompt. Same gas branch query step: Receiving user input of two names through text control or voice input on the main interface; The serial screen component sends the two name information to the control board component; The control board component searches for the two names in the index file respectively; If both exist, then: For each name, perform the one pulse query process to construct its direct ancestor chain (name + generation number / control ID); Compare the two ancestor chains to find the common direct ancestor; Notify the serial screen component to switch to the same gas branch interface; Display the direct ancestor chain of both on the interface, and mark the control corresponding to the common ancestor as shadow or highlight display; If either name does not exist, display an error prompt.