Wireless data transfer device and system based on 5G

By adopting a 5G-based wireless data transfer device in the wireless data transfer system, using DHCP protocol and breakpoint continuous transmission technology, the problem of data retransmission overhead when the wireless transmission link is interrupted is solved, and efficient and stable data transmission is achieved.

CN119854283APending Publication Date: 2025-04-18QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510060073.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-15
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Under the condition of interruption of wireless transmission links, traditional data transfer methods are difficult to effectively reduce the overhead caused by data retransmission.

Method used

A 5G-based wireless data transfer device and system are adopted, and the device includes an embedded computer, a data reading module and a data transmission module. Automatically allocate IP addresses through the DHCP protocol, monitor the log files of the DHCP server in real time, and use 5G modules and Python scripts to achieve the breakpoint continuous transmission function.

Benefits of technology

When the wireless transmission link is interrupted, the overhead of data retransmission is reduced through breakpoint continuous transmission technology, the stability and integrity of data transmission are improved, the device connection process is simplified, and the normality of network communication is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854283A_ABST
    Figure CN119854283A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless data transfer device and system based on 5G, belongs to the technical field of data storage, and aims to solve the technical problem of how to reduce overhead caused by data retransmission under the condition of interruption of a wireless transmission link during data transfer. Comprising an embedded computer, a data reading module and a data transmission module, the embedded computer is matched with the DHCP server to be used for distributing an IP address and network parameters for a target computer connected with the embedded computer, the DHCP server records distribution of the IP address through a log file of the DHCP server, and the target computer stores a target file to be transmitted to a specified directory; the data reading module is used for monitoring a log file of the HDCP server in real time, executing reading operation when a newly distributed IP address is updated in the log file, and sending the read file to the embedded computer; and the data transmission module is a 5G module and uploads the file read from the target computer to the cloud platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data storage technology, and specifically to a 5G-based wireless data transfer device and system. Background Art

[0002] Data transfer refers to the process of transferring data from one storage medium to another, which can improve data security, availability and performance. Through transfer, data backup, recovery and migration to a more efficient storage system can be achieved. It has important applications in smart industry, aerospace, transportation systems and other fields.

[0003] Traditional data transfer methods mainly use memory cards to transfer or use third-party devices to transfer through network interfaces. These methods are simple and flexible to operate, can adapt to users' use in various application scenarios, and are relatively low-cost and economical. However, the above methods have the defects of slow transmission speed and untimely transmission. In addition, although some technologies use wireless transmission, there is inevitably data transmission interruption caused by wireless link interruption when using wireless transmission. Traditional technologies do not consider the problem of incomplete data caused by communication interruption.

[0004] How to reduce the overhead caused by data retransmission when the wireless transmission link is interrupted during data transfer is a technical problem that needs to be solved. Summary of the invention

[0005] The technical task of the present invention is to address the above shortcomings and provide a 5G-based wireless data transfer device and system to solve the technical problem of how to reduce the overhead caused by data retransmission when the wireless transmission link is interrupted during data transfer.

[0006] In a first aspect, the present invention provides a 5G-based wireless data transfer device for realizing data transfer between a target computer as a source end and a cloud platform as a destination end, wherein the device includes an embedded computer and a data reading module and a data transmission module deployed in the embedded computer;

[0007] The embedded computer is deployed with a DHCP protocol and is connected to a DHCP server. The embedded computer cooperates with the DHCP server to allocate an IP address and network parameters to a target computer connected to the embedded computer, and specifies a directory for the target computer so that the embedded computer can read files from the specified directory of the target computer. The DHCP server records the allocation of IP addresses through its log file, and the target computer stores the target files to be transmitted in the specified directory.

[0008] The data reading module is used to monitor the log file of the HDCP server in real time, and executes a reading operation when a newly assigned IP address is updated in the log file. Through the reading operation, the data reading module establishes a connection with the target computer corresponding to the new IP address, reads the file in the specified directory of the target computer, and sends the read file to the local embedded computer;

[0009] The data transmission module is a 5G module, which is used to establish a connection between the embedded computer and the cloud platform and upload the files read from the target computer to the cloud platform.

[0010] Preferably, the data transmission module cooperates with the embedded computer to perform the following operations for connection deployment:

[0011] Select a domestically produced 5G module as the data transmission module, check the model and interface type of the 5G module through the device manager, and download the appropriate driver to connect the 5G module to the embedded computer;

[0012] Identify the installed 5G module in the device manager;

[0013] Connect the 5G module through the Zhengdian Atom software, enter the AT command set for functional testing, check the 5G module response through AT commands, query the signal command through AT+CSQ commands, send test messages through AT+CMGS, verify the message sending and receiving functions, and record the test results.

[0014] Preferably, the DHCP protocol is deployed in the embedded computer and a connection between the embedded computer and the DHCP server is established through the following steps:

[0015] Install DHCP service in the embedded computer, edit the DHCP configuration file, which is located in / etc / dhcp / dhcpd.conf, and edit the IP address pool to define the subnet range, assignable IP address range, gateway address, and DNS server;

[0016] Start the DHCP server, detect whether the DHCP server is working properly, and establish a connection between the embedded computer and the DHCP server;

[0017] Embed the DHCP startup script into the profile file of the embedded computer, and the DHCP service will start automatically when the embedded computer starts.

[0018] Preferably, a Python script is configured in the data reading module, and the following operations are performed through the Python script:

[0019] Use the watchdog library to monitor the DHCP server log files in real time;

[0020] When a new IP address allocation record is updated in the log file, a read event is triggered;

[0021] Perform the read operation, establish an SSH connection with the target computer corresponding to the new IP address through paramiko, automatically read the files in the specified directory of the target computer, and store the read files locally on the embedded computer.

[0022] Preferably, the 5G module is used to establish a connection between the embedded computer and the cloud platform based on the FTP protocol, and provide breakpoint-resume transmission service for data transmission between the embedded computer and the cloud platform;

[0023] The data transmission module is configured with a Python script, which is used to perform the following based on the Python script:

[0024] Based on Python's ftplib library, the embedded computer user specifies the cloud platform's IP address, port number, and login credentials, and establishes an FTP connection between the embedded computer and the cloud platform;

[0025] The embedded computer and the cloud platform communicate with the serial port through the pyserial library, and call the AT command to obtain the RSSI value of the current 5G signal between the embedded computer and the cloud platform in real time. If the RSSI value of the current 5G signal is greater than the threshold, the current network signal is determined to be stable. If the RSSI value of the current 5G signal is less than the threshold, the current network signal is determined to be abnormal.

[0026] For the files to be uploaded, when the network signal is stable, use the ftp.storbinary() method to upload the data in the file to the cloud platform. When the network signal is abnormal, the file upload is interrupted and the offset of the transmitted data in the file is recorded. After the network signal is restored to stability, the REST command based on the FTP protocol continues to transmit the remaining data in the file according to the offset of the transmitted data.

[0027] In a second aspect, the present invention provides a 5G-based wireless data transfer system, comprising a target computer as a source end, a cloud platform as a target end, and a 5G-based wireless data transfer device as described in any one of the first aspects, wherein the target computer is connected to an embedded computer via a network cable, the embedded computer cooperates with a DHCP server to assign an IP address to the target computer, the embedded computer cooperates with a data reading module to read files in a specified directory of the target computer, and cooperates with a data transmission module to send the read files to the cloud platform;

[0028] The cloud platform is developed based on Python's Django framework, and includes a cloud platform interface, a cloud server and a database, and is used to provide user registration and login services, user authority management services, file management services and database synchronization services. The user registration and login service supports users to register and log in to the cloud platform based on their account information. The user authority management service is used to set the user's operating permissions and support users to perform personalized account management. The file management service is used to support users to upload, download, manage and query files. The database synchronization service is used to synchronize files stored in the cloud server with files displayed through the cloud platform interface, wherein files uploaded by users and files transferred through the data transmission module are stored in a specified folder of the cloud server, the metadata of the files in the specified folder is stored in the database, and a file list is formed based on the metadata of the files. The cloud platform interface is used to display files in the form of a file list.

[0029] Preferably, the cloud platform is used to provide user registration and login services as follows:

[0030] Create a user registration form based on Django's built-in User model, which is used to verify the registration information entered by the user;

[0031] Respond to the registration and login requests submitted by users through the written view functions, and set URL routing to map the registration and login requests submitted by users to the corresponding views;

[0032] Create HTML templates to dynamically render the content of the cloud platform interface;

[0033] Ensure users stay logged in through Django's session management, and ensure user account security through password hashing and CSRF protection.

[0034] Preferably, the cloud platform is used to provide the following user rights management services:

[0035] Create a custom model, define user messages and user account information through the custom model, and form a message form for user messages;

[0036] Based on Django's permission system, specific operation permissions are assigned to different users. Each user can only access and operate files within their permissions.

[0037] Process the message form through Django's ModelForm, and receive and process user feedback in the message form through a custom view;

[0038] By extending the User model or associating the Profile model, users are supported to perform personalized account management. Users can modify and edit their account information through personalized account management, including changing avatars and passwords.

[0039] Preferably, the cloud platform is used to provide the following file management services:

[0040] The Django template system supports users to upload files through the cloud platform interface, and checks the file type and size of the uploaded files to ensure that the uploaded files comply with the predetermined rules;

[0041] For successfully uploaded files, the database synchronization service records the file-related metadata in the database, and builds a file list based on the file metadata. The file is displayed in the form of a file list through the cloud platform interface, where the file metadata includes the file name, upload time, and uploader ID;

[0042] The cloud platform interface supports users to select files to download. After the cloud server verifies the user's permissions, the relevant files are transferred to the verified user.

[0043] Preferably, the cloud platform is used to perform the following to provide database synchronization services: configure periodic tasks, and regularly detect whether there are new files in the specified folder of the cloud server through periodic tasks. If so, write the metadata of the new files into the database and update the file list.

[0044] The 5G-based wireless data transfer device and system of the present invention have the following advantages:

[0045] 1. A DHCP service is deployed in the embedded computer. For the target computer that establishes a connection with the embedded computer, the embedded computer cooperates with the DHCP server to automatically allocate an IP address and network parameters to the target computer, thereby simplifying the connection process and avoiding the complexity and possible errors of manual configuration. This automatic configuration not only speeds up the initialization process between devices, but also ensures the uniqueness of the IP address and the normal communication of the network;

[0046] 2. After the target computer and the embedded computer establish a stable network cable connection, the parameters to be read are stored in the specified directory of the target computer. The embedded computer can read the files in the specified directory of the target computer in real time through the data reading module. The data in the files are related to the application scenarios of the target computer, such as aircraft flight data, industrial production, agricultural production and other fields. The read files are quickly uploaded to the cloud platform through the data transmission module, thereby realizing the remote monitoring, analysis and management of the target computer. Through the design of DHCP service, the deployment and operation of the entire system become simpler and more efficient;

[0047] 3. The data transmission module establishes a connection between the embedded computer and the cloud platform through the FTP protocol, and provides breakpoint resume function through Python script, realizing efficient data recovery and ensuring the stability and integrity of data transmission;

[0048] 4. The data reading module establishes an SSH connection with the target computer corresponding to the new IP address through paramiko, ensuring the security and stability during the transmission process, which is especially suitable for transmitting sensitive data in a network environment;

[0049] 5. The cloud platform provides user registration and login services, user rights management services, file management services, and database synchronization services. The user registration and login services ensure the security of user accounts. The user rights management services ensure file access rights control and file security, and support users to perform personalized configuration of their personal account information. The file management services ensure users' various file operations, enhance user experience, realize efficient and secure file management, and greatly improve user experience and data processing reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] The present invention is further described below in conjunction with the accompanying drawings.

[0052] Figure 1 This is a working block diagram of a 5G-based wireless data transfer device according to Example 1;

[0053] Figure 2 This is a principle block diagram of IP allocation in a 5G-based wireless data transfer device according to Example 1;

[0054] Figure 3 This is a principle block diagram of a reading module triggering a reading operation in a 5G-based wireless data transfer device according to Example 1;

[0055] Figure 4 This is a principle block diagram of data transmission performed by a data transmission module in a 5G-based wireless data transfer device according to Example 1. DETAILED DESCRIPTION

[0056] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.

[0057] The embodiments of the present invention provide a 5G-based wireless data transfer device and a method for solving the technical problem of how to reduce the overhead caused by data retransmission when the wireless transmission link is interrupted during data transfer.

[0058] Embodiment 1:

[0059] The present embodiment provides a 5G-based wireless data transfer device for realizing data transfer between a target computer as a source end and a cloud platform as a destination end. The device includes an embedded computer and a data reading module and a data transmission module deployed in the embedded computer.

[0060] The data transmission module is deployed on the embedded computer. As a specific implementation, the data transmission module cooperates with the embedded computer to perform the following operations for connection deployment:

[0061] (1) Select a domestically produced 5G module as the data transmission module, check the model and interface type of the 5G module through the device manager, download the appropriate driver, connect the 5G module to the embedded computer, and install it according to the installation instructions;

[0062] (2) Connect the 5G module to the embedded computer and identify the installed 5G module in the device manager;

[0063] (3) Connect the 5G module through the Zhengdian Atom software and enter the AT command set for functional testing. Check the response of the 5G module through AT commands, query the signal command through AT+CSQ commands, send test messages through AT+CMGS, verify the message sending and receiving functions, and record the test results. Solve the problems found in a timely manner to ensure the correct configuration of the driver and the stability and reliability of the system.

[0064] During the 5G module driver installation process in this embodiment, the transmission module uses the domestically produced Fibocom 5G module FM650-CN to ensure compatibility and correct identification between the device and the system.

[0065] The embedded computer is deployed with a DHCP protocol and connected to a DHCP server. The embedded computer and the DHCP server cooperate to allocate an IP address and network parameters to a target computer connected to the embedded computer, and specify a directory for the target computer so that the embedded computer can read files from the specified directory of the target computer. The DHCP server records the allocation of IP addresses through its log file, and the target computer stores the target files to be transmitted in the specified directory. The data in the target file to be transmitted by the target computer is data related to its application scenario, such as aircraft flight data, industrial production, agricultural production and other fields.

[0066] In this embodiment, the DHCP protocol is deployed in the embedded computer and a connection between the embedded computer and the DHCP server is established through the following steps:

[0067] (1) Install the DHCP service in the embedded computer, edit the DHCP configuration file, which is located in / etc / dhcp / dhcpd.conf, and edit the IP address pool to define the subnet range, the assignable IP address range, the gateway address, and the DNS server;

[0068] (2) Start the DHCP server, detect whether the DHCP server is working properly, and establish a connection between the embedded computer and the DHCP server;

[0069] (3) The DHCP startup script is embedded into the profile file of the embedded computer, and the DHCP service is automatically started when the embedded computer starts.

[0070] The above steps can successfully create and configure a DHCP server so that it can automatically assign IP addresses and other network configuration parameters.

[0071] The DHCP service implements dynamic IP address allocation and network configuration through a series of interactive processes. The IP address allocation and network configuration process is as follows: First, when the target computer is connected to the embedded computer via a network cable, the target computer broadcasts a DHCP Discover request to find an available DHCP server. After receiving the request, the DHCP server selects an available IP address from its IP address pool and sends the address and other configuration parameters (such as subnet mask and default gateway) back to the target computer through a DHCP Offer message; after receiving the DHCP Offer, the target computer selects one to respond and sends a DHCP Request message to confirm the request for the IP address; finally, the DHCP server confirms the request through a DHCPAcknowledge message to complete the IP address allocation. The purpose of this service is to use an embedded computer to read the key parameters of the target computer in real time, and transmit these data efficiently and securely to the cloud platform through a 5G module to achieve remote monitoring and data analysis functions.

[0072] Through the DHCP service, the embedded computer can automatically obtain the network parameters of the target computer when connecting to the network, thereby simplifying the connection process and avoiding the complexity and possible errors of manual configuration. This automated configuration not only speeds up the initialization process between devices, but also ensures the uniqueness of the IP address and the normal communication of the network. After establishing a stable network cable connection, the parameters to be read are stored in the specified directory of the target computer. The embedded computer can read the various parameters of the target computer in real time, such as CPU usage, memory status, temperature sensor data and other key performance indicators. Finally, these collected data will be quickly uploaded to the cloud platform through the data transmission module configured in the embedded computer, supporting remote monitoring, analysis and management. Through the design of the DHCP service, the deployment and operation of the entire system becomes easier and more efficient.

[0073] The data reading module is used to monitor the log files of the HDCP server in real time. When a newly assigned IP address is updated in the log file, a reading operation is performed. Through the reading operation, the data reading module establishes a connection with the target computer corresponding to the new IP address, reads the files in the specified directory of the target computer, and sends the read files to the local embedded computer.

[0074] The data reading module of this embodiment is configured with a Python script, and the following operations are performed through the Python script:

[0075] (1) Use the watchdog library to monitor the DHCP server log files in real time;

[0076] (2) When a new IP address allocation record is updated in the log file, a read event is triggered;

[0077] (3) Execute the read operation, establish an SSH connection with the target computer corresponding to the new IP address through paramiko, automatically read the files in the specified directory of the target computer, and store the read files locally on the embedded computer.

[0078] The data reading module of this embodiment is implemented by using Python package paramiko. When executing data reading, SSH protocol is used to connect to the target computer. The process is as follows: First, the user needs to correctly input the connection information such as the IP address, port number, user name and password assigned to the recorder by the DHCP server. After establishing an SSH session with the target computer through paramiko, FTP (File Transfer Protocol) is used to download the target file from the target computer directory specified by the embedded computer. The above-mentioned downloaded files can not only be opened and browsed normally, but also can be directly run, thereby ensuring the integrity of the data and the validity of the operation. In addition, the use of paramiko ensures security and stability during the transmission process, and is particularly suitable for transmitting sensitive data in a network environment.

[0079] The data transmission module is a 5G module, which is used to establish a connection between the embedded computer and the cloud platform and upload the read files to the cloud platform.

[0080] In this embodiment, the 5G module is used to establish a connection between the embedded computer and the cloud platform based on the FTP protocol, and provide breakpoint-resume transmission service for data transmission between the embedded computer and the cloud platform. A Python script is configured in the data transmission module, which is used to execute the following based on the Python script:

[0081] (1) Based on the Python ftplib library, the IP address, port number and login credentials of the cloud platform are specified for the user of the embedded computer, and an FTP connection is established between the embedded computer and the cloud platform;

[0082] (2) The embedded computer and the cloud platform communicate with each other through the pyserial library and the serial port, and call the AT command to obtain the RSSI value of the current 5G signal between the embedded computer and the cloud platform in real time. If the RSSI value of the current 5G signal is greater than the threshold, the current network signal is determined to be stable. If the RSSI value of the current 5G signal is less than the threshold, the current network signal is determined to be abnormal.

[0083] (3) For the files to be uploaded, when the network signal is stable, use the ftp.storbinary() method to upload the data in the file to the cloud platform. When the network signal is abnormal, the file upload is interrupted and the offset of the transmitted data in the file is recorded. After the network signal is restored to stability, the REST command based on the FTP protocol is used to continue to transmit the remaining data in the file according to the offset of the transmitted data.

[0084] In this embodiment, during the data transmission process, the data transmission module establishes a connection between the embedded computer and the cloud server through the FTP protocol, and uses Python programming to implement the breakpoint resume function. The breakpoint resume function records the number of bytes that have been successfully transmitted during the upload process to ensure that the file can be uploaded from the last stopped position when the network is interrupted. In the specific implementation, when uploading files, the data transmission module in the data transfer system divides the file into small blocks and uploads them one by one. After each block is uploaded, the number of bytes uploaded is recorded in the local log file; when the upload process is interrupted due to network problems, the records in the local log file are read to determine the location of the last transmission interruption, and then the REST command of the FTP protocol is used to inform the server to continue the transmission from the specified byte position. When actually uploading, the storbinary() method of the Python ftplib library is used, combined with the REST command, to achieve efficient data recovery. To ensure the stability and integrity of data transmission.

[0085] By using Python's ftplib library, users can create an FTP connection to a cloud server, which requires specifying the server's IP address, port number, and login credentials. Before transmission, the data to be uploaded will be read and temporarily stored on the local hard disk of the embedded computer to ensure that the file is ready. Next, the pyserial library is used to communicate with the serial port, and the AT command is called to obtain the RSSI value (received signal strength indication) of the current 5G signal, and the signal threshold is set to -85dBm to determine the stability of the signal. When the RSSI value is higher than the threshold, data transmission will continue; if it is lower than the threshold, the transmission will be automatically paused until the signal is restored. Finally, the ftp.storbinary() method is used to upload the temporarily stored file to the cloud platform, and the breakpoint resume function is supported to ensure that if an interruption occurs during the transmission process, the upload can be restarted from the interruption position. This series of operations effectively improves the reliability of data transmission and user experience. Among them, the serial port is the physical communication interface between the embedded computer and the data transmission module. Through this interface, the pyserial library and AT commands can be used to obtain the RSSI value of the 5G signal in real time.

[0086] The transfer system of this embodiment allocates an IP address and network configuration to a target computer connected to an embedded computer based on a DHCP service, thereby achieving automatic connection without manual configuration. At the same time, a data reading module configured in the embedded computer can automatically read files from a specified directory of the target computer and upload the files to the embedded computer. A data transmission module establishes a connection between the embedded computer and a cloud platform, and can upload files obtained from the target computer to the cloud platform. A breakpoint resume service is provided during the process of transferring files to the cloud platform, thereby ensuring the stability and integrity of data transmission.

[0087] Embodiment 2:

[0088] The present invention provides a 5G-based wireless data transfer system, including a target computer as a source end, a cloud platform as a target end, and a 5G-based wireless data transfer device as disclosed in Example 1. The target computer is connected to an embedded computer via a network cable, the embedded computer cooperates with a DHCP server to assign an IP address to the target computer, the embedded computer cooperates with a data reading module to read files in a specified directory of the target computer, and cooperates with a data transmission module to send the read files to the cloud platform.

[0089] The cloud platform is developed based on Python's Django framework, including a cloud platform interface, a cloud server and a database, which is used to provide user registration and login services, user authority management services, file management services and database synchronization services. The user registration and login service supports users to register and log in to the cloud platform based on their account information. The user authority management service is used to set the user's operating permissions and support users to perform personalized account management. The file management service is used to support users to upload, download, manage and query files. The database synchronization service is used to synchronize files stored in the cloud server with files displayed through the cloud platform interface, wherein files uploaded by users and files transferred through the data transmission module are stored in a specified folder of the cloud server, the metadata of the files in the specified folder is stored in the database, and a file list is formed based on the metadata of the files, and the cloud platform interface is used to display files in the form of a file list.

[0090] In this embodiment, the cloud platform deployment process is as follows: First, you need to prepare the environment, including installing Python3.9 and pip, and creating a virtual environment to isolate project dependencies. Upload the Django project code to the server, and after activating the virtual environment, install the required Python libraries through pip install-r requirements.txt; then configure the database, update the database connection parameters in settings.py, and run the python manage.py migrate command to create the necessary data tables; next, use python manage.py collectstatic to collect static files, and install and configure the Web server (Nginx) and WSGI server (or uWSGI) to ensure that the Django application can handle HTTP requests. If necessary, purchase a domain name and configure an SSL certificate to enable HTTPS; finally, start WSGI and the Web server to ensure that the Django application runs normally.

[0091] As a specific implementation of the cloud platform user registration and login service, the cloud platform is used to perform the following operations:

[0092] (1) Create a user registration form based on Django's built-in User model, which is used to verify the registration information entered by the user;

[0093] (2) Respond to the registration request and login request submitted by the user through the written view function, and set the URL routing to map the registration request and login request submitted by the user to the corresponding view;

[0094] (3) Create HTML templates to dynamically render the content of the cloud platform interface;

[0095] (4) Ensure that users remain logged in through Django's session management, and ensure user account security through password hashing and CSRF protection.

[0096] Based on the user registration and login service, users access the platform through a simple registration and login process. The cloud platform uses Django's built-in authentication system (django.contrib.auth) to ensure account security. The cloud platform supports the following: First, use Django's built-in User model to create a user registration form (UserCreationForm), which is used to handle the verification of user input and ensure the validity of registration information; then, write view functions to respond to user registration and login requests, and set URL routing to map requests to corresponding views. This process ensures that user requests can be processed correctly; then, create HTML templates to dynamically render content and provide a user-friendly interface; use Django's session management to ensure that users can remain logged in after logging in, and enable security features such as password hashing and CSRF protection to further enhance account security. Through these measures, the cloud platform implements a safe and reliable user authentication function, providing a foundation for subsequent file management.

[0097] As a specific implementation of the user rights management service, the cloud platform is used to perform the following operations:

[0098] (1) Create a custom model, define user messages and user account information through the custom model, and form a message form for user messages;

[0099] (2) Based on Django's permission system, specific operation permissions are assigned to different users. Each user can only access and operate files within his or her permissions.

[0100] (3) Process the message form through Django's ModelForm, and receive and process user feedback in the message form through a custom view;

[0101] (4) Supporting users to perform personalized account management by extending the User model or associating the Profile model. Users can modify and edit their account information through personalized account management, including changing avatars and passwords.

[0102] In terms of user permissions, users can apply for specific permissions through the platform and use Django's permission system (django.contrib.auth.models.Permission) to finely control the operation permissions of different users. The cloud platform supports the following: First, create a custom model to define messages and user personal information for easy storage and management; then, use Django's permission system to assign specific operation permissions to different users, so as to ensure that users can only access and operate the content they have permission to; next, use Django's ModelForm to process the message form to ensure that user input is valid, and receive and process user feedback through custom views to provide personalized support; in order to support personalized account customization, users can change avatars, modify passwords, etc. The cloud platform manages personal information by extending the User model or associating the Profile model. The avatar upload function is provided by FileField to ensure the security of file storage and processing; finally, use PasswordChangeForm to implement a secure password modification function, and integrate these functions into the user interface through Django's view and template system to ensure that users can easily manage their personal information.

[0103] As a specific implementation of the file management service, the cloud platform is used to perform the following:

[0104] (1) Support users to upload files through the cloud platform interface through Django's template system, and check the file type and size of the uploaded files to ensure that the uploaded files comply with the predetermined rules;

[0105] (2) For successfully uploaded files, the database synchronization service records the file-related metadata in the database, and builds a file list based on the file metadata. The file is displayed in the form of a file list through the cloud platform interface, where the file metadata includes the file name, upload time, and uploader ID;

[0106] (3) The cloud platform interface supports users to select files to be downloaded. After the cloud server verifies the user's permissions, the relevant files are transferred to the verified user.

[0107] Different from the upload and download on the embedded computer side, this function is implemented on the cloud platform side to facilitate users to better manage data. After successful login, the user enters the cloud platform interface (an intuitive HTML interface) and uses Django's template system to select the file to be uploaded. When submitting the form, the cloud platform processes the upload through FileField and ImageField, automatically checks the file type and size, and ensures that the file uploaded by the user meets the specified standards. After each successful upload, the relevant metadata (file name, upload time, uploader ID, etc.) will be recorded in the database for subsequent management and query. Users can also view the list of files they uploaded. The cloud platform queries the database through the view function and renders the results to the cloud platform interface. When the user chooses to download a file, the cloud platform will perform permission verification to ensure that the user has the right to access the file. Once the permission is confirmed, the cloud platform uses FileResponse or StreamingHttpResponse to securely transfer the file to the user to ensure the integrity and security of the data. In addition, Django's CSRF protection mechanism is used throughout the process to prevent potential security threats and ensure the security of user data. Through the collaborative work of this series of technologies, the cloud platform achieves efficient and secure file management, greatly improving the user experience and the reliability of data processing.

[0108] As a specific implementation of database synchronization, the cloud platform is used to perform the following operations: configure periodic tasks, and use periodic tasks to regularly detect whether there are new files in the specified folder of the cloud server. If so, write the metadata of the new files into the database and update the file list.

[0109] When the embedded computer sends data to the specified directory of the cloud platform, it needs to be synchronized to the database at all times, so that the cloud platform interface will show that the file transfer is successful, which is convenient for users to download. In the cloud server, the function of regularly checking whether there are new files in the folder and writing its metadata to the database is realized through scheduled tasks and file system monitoring. First, using the scheduled task framework (APScheduler), a periodic task is set to run once every certain time (every ten seconds) to detect file changes in the specified folder of the specified cloud server. This scheduled task will read the files in the cloud server and compare them with the file records stored in the database to identify new files. Next, using Python's os module, access the folder content and extract the relevant information of the new file (such as file name and path). Once a new file is found, the relevant information of the new file is written to the database to ensure that the file metadata (including upload time, file path, etc.) is correctly recorded for subsequent management and display; finally, an interface is implemented in the Django view for the cloud platform interface to display the list of these files, so that users can access the newly uploaded files in real time. The whole process improves the response speed and user experience of the cloud platform and the transfer device through the automation of scheduled tasks and the monitoring of the file system.

[0110] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A 5G-based wireless data transfer device, characterized in that: Used to realize data transfer between a target computer as a source end and a cloud platform as a destination end, the device includes an embedded computer and a data reading module and a data transmission module deployed in the embedded computer; The embedded computer is deployed with a DHCP protocol and is connected to a DHCP server. The embedded computer cooperates with the DHCP server to allocate an IP address and network parameters to a target computer connected to the embedded computer, and specifies a directory for the target computer so that the embedded computer can read files from the specified directory of the target computer. The DHCP server records the allocation of IP addresses through its log file, and the target computer stores the target files to be transmitted in the specified directory. The data reading module is used to monitor the log file of the HDCP server in real time, and executes a reading operation when a newly assigned IP address is updated in the log file. Through the reading operation, the data reading module establishes a connection with the target computer corresponding to the new IP address, reads the file in the specified directory of the target computer, and sends the read file to the local embedded computer; The data transmission module is a 5G module, which is used to establish a connection between the embedded computer and the cloud platform and upload the files read from the target computer to the cloud platform.

2. The 5G-based wireless data transfer device according to claim 1, characterized in that: The data transmission module cooperates with the embedded computer to perform the following operations for connection deployment: Select a domestically produced 5G module as the data transmission module, check the model and interface type of the 5G module through the device manager, and download the appropriate driver to connect the 5G module to the embedded computer; Identify the installed 5G module in the device manager; Connect the 5G module through the Zhengdian Atom software, enter the AT command set for functional testing, check the 5G module response through AT commands, query the signal command through AT+CSQ commands, send test messages through AT+CMGS, verify the message sending and receiving functions, and record the test results.

3. The 5G-based wireless data transfer device according to claim 1, characterized in that: Use the following steps to deploy the DHCP protocol in the embedded computer and establish a connection between the embedded computer and the DHCP server: Install DHCP service in the embedded computer, edit the DHCP configuration file, which is located in / etc / dhcp / dhcpd.conf, and edit the IP address pool to define the subnet range, assignable IP address range, gateway address, and DNS server; Start the DHCP server, detect whether the DHCP server is working properly, and establish a connection between the embedded computer and the DHCP server; Embed the DHCP startup script into the profile file of the embedded computer, and the DHCP service will start automatically when the embedded computer starts.

4. The 5G-based wireless data transfer device according to claim 1, characterized in that: The data reading module is configured with a Python script, which performs the following operations: Use the watchdog library to monitor the DHCP server log files in real time; When a new IP address allocation record is updated in the log file, a read event is triggered; Perform the read operation, establish an SSH connection with the target computer corresponding to the new IP address through paramiko, automatically read the files in the specified directory of the target computer, and store the read files locally on the embedded computer.

5. The 5G-based wireless data transfer device according to claim 1, characterized in that: The 5G module is used to establish a connection between the embedded computer and the cloud platform based on the FTP protocol, and provide breakpoint-resume transmission service for data transmission between the embedded computer and the cloud platform; The data transmission module is configured with a Python script, which is used to perform the following based on the Python script: Based on Python's ftplib library, the embedded computer specifies the cloud platform's IP address, port number, and login credentials, and establishes an FTP connection between the embedded computer and the cloud platform; The embedded computer and the cloud platform communicate with the serial port through the pyserial library, and call the AT command to obtain the RSSI value of the current 5G signal between the embedded computer and the cloud platform in real time. If the RSSI value of the current 5G signal is greater than the threshold, the current network signal is determined to be stable. If the RSSI value of the current 5G signal is less than the threshold, the current network signal is determined to be abnormal. For the files to be uploaded, when the network signal is stable, use the ftp.storbinary() method to upload the data in the file to the cloud platform. When the network signal is abnormal, the file upload is interrupted and the offset of the transmitted data in the file is recorded. After the network signal is restored to stability, the REST command based on the FTP protocol continues to transmit the remaining data in the file according to the offset of the transmitted data.

6. A 5G-based wireless data transfer system, characterized in that: The invention comprises a target computer as a source end, a cloud platform as a target end, and a 5G-based wireless data transfer device as described in any one of claims 1 to 5, wherein the target computer is connected to the embedded computer via a network cable, the embedded computer cooperates with a DHCP server to assign an IP address to the target computer, the embedded computer cooperates with a data reading module to read files in a specified directory of the target computer, and cooperates with a data transmission module to send the read files to the cloud platform; The cloud platform is developed based on Python's Django framework, and includes a cloud platform interface, a cloud server and a database, and is used to provide user registration and login services, user authority management services, file management services and database synchronization services. The user registration and login service supports users to register and log in to the cloud platform based on their account information. The user authority management service is used to set the user's operating permissions and support users to perform personalized account management. The file management service is used to support users to upload, download, manage and query files. The database synchronization service is used to synchronize files stored in the cloud server with files displayed through the cloud platform interface, wherein files uploaded by users and files transferred through the data transmission module are stored in a specified folder of the cloud server, the metadata of the files in the specified folder is stored in the database, and a file list is formed based on the metadata of the files. The cloud platform interface is used to display files in the form of a file list.

7. The 5G-based wireless data transfer system according to claim 6, characterized in that: The cloud platform is used to provide user registration and login services as follows: Create a user registration form based on Django's built-in User model, which is used to verify the registration information entered by the user; Respond to the registration and login requests submitted by users through the written view functions, and set URL routing to map the registration and login requests submitted by users to the corresponding views; Create HTML templates to dynamically render the content of the cloud platform interface; Ensure users stay logged in through Django's session management, and ensure user account security through password hashing and CSRF protection.

8. The 5G-based wireless data transfer system according to claim 6, characterized in that: The cloud platform is used to perform the following user rights management services: Create a custom model, define user messages and user account information through the custom model, and form a message form for user messages; Based on Django's permission system, specific operation permissions are assigned to different users. Each user can only access and operate files within their permissions. Process the message form through Django's ModelForm, and receive and process user feedback in the message form through a custom view; By extending the User model or associating the Profile model, users are supported to perform personalized account management. Users can modify and edit their account information through personalized account management, including changing avatars and passwords.

9. The 5G-based wireless data transfer system according to claim 6, characterized in that: The cloud platform is used to perform the following file management services: The Django template system supports users to upload files through the cloud platform interface, and checks the file type and size of the uploaded files to ensure that the uploaded files comply with the predetermined rules; For successfully uploaded files, the database synchronization service records the file-related metadata in the database, and builds a file list based on the file metadata. The file is displayed in the form of a file list through the cloud platform interface, where the file metadata includes the file name, upload time, and uploader ID; The cloud platform interface supports users to select files to download. After the cloud server verifies the user's permissions, the relevant files are transferred to the verified user.

10. The 5G-based wireless data transfer system according to claim 6, characterized in that: The cloud platform is used to perform the following database synchronization services: configure periodic tasks, and regularly detect whether there are new files in the specified folder of the cloud server through periodic tasks. If there are new files, write the metadata of the new files into the database and update the file list.