CN111917559B - Text wireless transmitter and system based on USB - Google Patents

Text wireless transmitter and system based on USB Download PDF

Info

Publication number
CN111917559B
CN111917559B CN202010652760.6A CN202010652760A CN111917559B CN 111917559 B CN111917559 B CN 111917559B CN 202010652760 A CN202010652760 A CN 202010652760A CN 111917559 B CN111917559 B CN 111917559B
Authority
CN
China
Prior art keywords
text
usb
coded
target computer
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010652760.6A
Other languages
Chinese (zh)
Other versions
CN111917559A (en
Inventor
张天乐
田志宏
冯毅
周娜琴
郑莉雯
殷丽华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou University
Original Assignee
Guangzhou University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou University filed Critical Guangzhou University
Priority to CN202010652760.6A priority Critical patent/CN111917559B/en
Publication of CN111917559A publication Critical patent/CN111917559A/en
Application granted granted Critical
Publication of CN111917559B publication Critical patent/CN111917559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a text wireless transmitter and a system based on USB, wherein the transmitter comprises: the USB plug comprises a USB plug body, a shell body, a main control chip, a memory and a wireless communication module, wherein one end of the USB plug body is connected to the shell body and is electrically connected with the main control chip, and the main control chip is configured to execute a computer program stored in the memory so as to realize the following steps: receiving original coded data of a text transmitted by a currently connected information transmitting apparatus through a wireless communication module; the received original coding data is subjected to coding conversion to obtain a conversion coding character string uniquely corresponding to the original coding data; inputting the conversion coding character string to a target computer to which the USB plug is currently connected in a keyboard inputting mode; and controlling the target computer to automatically call a preset decoding program and restore the conversion coding character string into original coding data. The invention can safely and quickly realize the migration of the files among different devices.

Description

Text wireless transmitter and system based on USB
Technical Field
The invention relates to the technical field of computers, in particular to a text wireless transmitter and a text wireless transmitter system based on a USB.
Background
With the development of technology, each user has more and more smart devices, for example, most people generally have more of a smart phone, a notebook computer, a tablet computer and a desktop computer. The intelligent devices can be used as a medium for storing information, and can store some important file materials of the user, and the like, besides providing convenience for the user in learning, working and living. This inevitably involves migration of files between different smart devices. The current file migration mainly comprises the following steps: 1. storage medium (e.g., USB flash drive) based migration; 2. migrating through the data line; 3. migrating the network disk; 4. hua is the "one touch transfer" migration and so on. These file migration methods have the following problems:
1. the method is characterized in that the method comprises the following steps that a USB device is used for conducting work such as mutual transmission of texts and files, the files need to be stored on the USB device, the risk that the USB device carries viruses and malicious codes exists, and hidden dangers of file leakage and out of control exist.
2. Although the automatic playing function of the U disk of the Windows operating system can enable the U disk to automatically play files or programs in the U disk at the moment of plugging the U disk into a computer, the automatic file migration operation can be realized. However, the automatic playing function started by the operating system is dangerous and is easily utilized by viruses, an experienced system installer often disables the automatic playing function after the system is installed, and some safety software automatically disables the automatic playing function. The user also needs to use this function, but the user experiences insufficient experience to cause virus intrusion, "introduce a room", and this subjective will cause the system poisoning experience to be very unfriendly to the user, making it unwarranted for the user to use.
3. The method for automatically opening the USB device on the computer only achieves the purpose of automatically opening the resource manager of the USB device, and does not automatically execute programs.
4. In the method for automatically operating software on a computer by using a USB device, a program or an executable file is stored in a storage device of the USB device, a user needs to import the program or the executable file into the storage device of the USB device, sometimes, the program is difficult to automatically operate due to insufficient authority given by an operating system, and codes of the program are fixed, so that the user sometimes needs to modify in real time but is inconvenient to import and export the file.
5. The file can be transmitted and migrated between different devices by the existing network application program (such as a hundred-degree network disk, a WeChat transmission assistant and the like). But the chat tools such as a hundred-degree network disk, WeChat and QQ are more in steps and are more complicated. If a user needs to transmit a file of the mobile phone end to the computer end, the user needs to log in an account of the mobile phone application first, then transmit the file, then log in an account of the computer end application, and finally search and download the file, so that the user experience is not friendly. A plurality of users are required to operate the mouse and the keyboard, and the whole migration process is not transparent, automatic and maintenance-free. In addition, account numbers, passwords, links, extraction codes and the like are in software and digital forms, and parts of the account numbers, the passwords, the links, the extraction codes and the like are exposed or easy to crack, so that potential safety hazards of data leakage and data stealing exist. And the risks of wrong sending, missed sending and the like caused by misoperation exist. When a program such as WeChat transmits a shared text, various texts such as various icons and expressions which are included in Chinese and English cannot be well processed, and the problems of information loss, messy codes and the like can occur.
6. The Huache 'one touch transmission' technology realizes a maintenance-free migration process without user input, but has certain sealing property and limitation in the application process. The technology needs the notebook and the mobile phone equipment to be supported by an NFC (near field communication) module, the cost price is high, and many devices in the market are not available, so that the popularization is not high. When the user uses the technology, the user needs a Huawei notebook computer and also needs a Huawei mobile phone which meets the support of a collision transmission technology, and the technology has higher application threshold, poor interoperability and limited application range.
Disclosure of Invention
The invention aims to provide a USB-based text wireless transmitter and a system thereof, aiming at the problems and the defects, which can safely and quickly realize the migration of files among different devices.
The embodiment of the invention provides a text wireless transmitter based on a USB, which comprises: the USB plug, the casing, and be located main control chip, memory, wireless communication module in the casing, wherein, the one end of USB plug connect in the casing, and with the main control chip electricity is connected, wireless communication module and the memory with the main control chip electricity is connected, the main control chip is configured to through the computer program of carrying out the memory storage in order to realize following step:
receiving original coded data of a text transmitted by a currently connected information transmitting apparatus through a wireless communication module;
the received original coding data is subjected to coding conversion to obtain a conversion coding character string uniquely corresponding to the original coding data;
inputting the conversion coding character string to a target computer to which the USB plug is currently connected in a keyboard inputting mode;
and controlling the target computer to automatically call a preset decoding program, and reversely restoring the converted coding character string into original coding data and storing the original coding data.
Preferably, the wireless communication module is a bluetooth module, a WiFi module or an IR module.
Preferably, the obtaining of the conversion code string uniquely corresponding to the received original coded data through code conversion specifically includes:
the received original coding data is coded and converted into symbolic coding which is logically corresponding to the original coding data;
and converting the symbolic code into a conversion code character string uniquely corresponding to the symbolic code.
Preferably, the conversion coding character string is input into a target computer to which the USB plug is currently connected through keyboard input, and the target computer is controlled to automatically call a preset decoding program, and the conversion coding character string is reversely restored into original coding data and stored, specifically:
sending a keyboard command to a target computer and calling out an operation program interface;
creating an input text file in a target computer by operating a program interface, and inputting the conversion coding character string into the input file in a keyboard input mode;
and calling a preset decoding program on the target computer to enable the target computer to reversely restore the conversion coding character strings in the input text file into original coding data and generate a corresponding output file.
Preferably, the plurality of converted code strings obtained by converting the plurality of original code data are concatenated by a predetermined delimiter to form a concatenated code string.
Preferably, the original encoded data comprises: UTF-8 encoded data, GBK encoded data, GB2312 encoded data, Unicode encoded data, ANSI encoded data.
The embodiment of the invention also provides a text wireless transmission system based on the USB, which comprises information sending equipment, a target computer and the text wireless transmitter based on the USB; the USB-based text wireless transmitter is connected to a USB interface of the target computer through a USB plug; the USB-based text wireless transmitter is in wireless connection with the information sending equipment through the wireless communication module;
the information sending equipment is used for sending original coded data of a text to the text wireless transmitter in a wireless transmission mode;
the text wireless transmitter is used for receiving the original coded data through a wireless communication module, performing coding conversion on the received original coded data to obtain a conversion coded character string uniquely corresponding to the original coded data, and inputting the conversion coded character string to a target computer to which the USB plug is currently connected in a keyboard inputting mode;
and the target computer is used for automatically calling a preset decoding program, reversely restoring the converted coding character string into original coding data and storing the original coding data.
Preferably, the text wireless transmitter device is an embedded system based on a special/general purpose microprocessor or a single chip processor, and has a USB HID function.
Preferably, the target computer is further configured to copy the original encoded data in the output text into a sticky board for the target computer to share for the relevant application program.
In summary, the USB-based wireless text transmitter 100 provided in this embodiment automatically transmits various texts of an information sending device (such as a mobile phone) to a target computer, and the whole transmission process is automatically controlled without manual input of an interactive operation by a user, without installation of a driver (except that a simplified decoding program is preset in the target computer, and the program can be imported in advance through a network, automatic downloading by a cloud server, and the like), and without internet connection. The whole process of the whole text transmission and sharing operation scheduling does not need a user to touch human-computer interaction equipment such as a target computer keyboard and a mouse, so that the operation steps and the execution condition limitation of the user are reduced, the cross infection of viruses and bacteria caused by the contact of the surfaces of various equipment is reduced, and the intelligent, safe, healthy and efficient automatic office experience is provided.
In addition, when a program such as WeChat transmits a shared text to a target computer and other equipment through a mobile phone, various texts such as various icons, expressions and the like which are included in Chinese and English cannot be well processed, and the problems of information loss, messy codes and the like can occur. The text transmission through the mechanism provided by the embodiment can transmit the mixed texts of Chinese and English, various icons, emoticons and the like to the target computer without loss or distortion, so that the office quality, the office efficiency and the user experience are improved.
Drawings
Fig. 1 is a schematic structural diagram of a USB-based text wireless transmitter according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating the operation of the USB-based text wireless transmitter according to the first embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a USB-based text wireless transmission system according to a second embodiment of the present invention.
Fig. 4 is a schematic diagram of the operation of the USB-based text wireless transmission system according to the second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and 2, a first embodiment of the invention provides a USB-based text wireless transmitter 100, which includes: the USB plug comprises a USB plug 10, a shell, and a main control chip 21, a memory and a wireless communication module 30 which are positioned in the shell, wherein one end of the USB plug 10 is connected to the shell and is electrically connected with the main control chip 21, the wireless communication module 30 and the memory are electrically connected with the main control chip 21, and the main control chip 21 is configured to implement the following steps by executing a computer program stored in the memory:
s101, original encoded data of a text transmitted by the currently connected information transmitting apparatus is received through the wireless communication module 30.
In this embodiment, the main control chip 21 may be a single chip or a microprocessor, and the text wireless transmitter 100 is an embedded system based on a dedicated/general microprocessor or a single chip processor, and can execute a computer program to complete functions such as automatic execution of control scheduling, encoding and decoding, and data communication.
In this embodiment, the wireless communication module 30 may be a bluetooth module, a WiFi module, or an IR module, and the invention is not limited in particular.
In this embodiment, the information sending device may be, for example, a smart phone, a smart tablet, or a PDA, in which a text to be transmitted is stored, and the information sending device also has a wireless communication function, so as to send original encoded data of the text to the text wireless transmitter 100 based on the wireless communication function.
S102, the received original coding data is subjected to coding conversion to obtain a conversion coding character string uniquely corresponding to the original coding data.
And S103, inputting the conversion code character string to a target computer to which the USB plug is currently connected in a keyboard inputting mode.
And S104, controlling the target computer to automatically call a preset decoding program, and reversely restoring the converted coding character string into original coding data and storing the original coding data.
In this embodiment, the text may be a chinese character, an english character, a number, a punctuation mark, or the like, and the text may be injected into the target computer by a direct keyboard entry method. However, injection into the target computer through a USB interface typically only supports ASCII encoded characters. Different processing is required for different types of text.
(1) And for English characters, encoding modes such as ASCII encoding, UTF-8 and the like can be directly adopted, and the English characters are directly input into the target computer through a keyboard input mode and a USB interface.
(2) For Chinese characters, the Chinese characters cannot be directly input in a character input mode through a keyboard. Because the characters can not be directly input into a target computer through a USB interface in a character input mode, the characters can not be directly input automatically. If the ASCII code characters such as English characters, numeric characters and the like are input/input and then Chinese is input by a Chinese input method, the problem of repeated codes of Chinese input codes exists, so that manual selection and repeated removal are needed, and automatic conversion and Chinese input cannot be realized.
Therefore, the embodiment converts various non-ASCII coded original coded data (generally binary data, such as UTF-8 coded data, GBK coded data, GB2312 coded data, Unicode coded data and ANSI coded data) stored in a mobile phone and a computer, including Chinese codes, into a symbolic code by coding (such as converting into a symbol represented in a 16-system or 10-system form, a BCD code or a compressed BCD code), converts the symbolic code into a conversion coded character string uniquely corresponding to the symbolic code, so that the symbolic code can be input into a target computer in a keyboard sequence form through a USB HID, controls the target computer to automatically call a preset decoding program, reduces the conversion coded character string into the original coded data, stores the original coded data in a computer memory or a file, and realizes various non-ASCII coded binary data including Chinese codes, and inputting the characters into a target computer through a USB HID.
Specifically, for the chinese character, taking the UTF-8 encoding mode as an example, the UTF-8 encoding generally uses 3 bytes to represent a chinese character, and the highest bit of each byte is 1 (i.e. the encoding is a value exceeding 0X80 in hexadecimal or more than 128 in decimal according to an unsigned integer), and these bytes are all beyond the ASCII encoding representation range, so that the bytes cannot be directly entered as a keyboard character entry mode through the USB interface.
For this purpose, the present embodiment converts each non-ASCII encoded byte (including ASCII encoded bytes) into a symbolized code in decimal representation, then expresses the ASCII encoded number corresponding to the numeric bit of the symbolized code in decimal representation in character form, and then outputs each numeric bit in a character string composed of an ASCII encoded number character sequence. Because the UTF-8 coded Chinese characters adopt 3 bytes to represent one Chinese character, the highest bit of each byte is 1, the corresponding decimal value is a value above 128, the Chinese character needs to be represented by 3 digital characters, which is called a decimal digit conversion coded character string, and the string length is 3. A hexadecimal numerical representation form corresponding to the UTF-8 coded data can also be adopted to form corresponding characters, 2 hexadecimal bits (0-9 and A-F characters represent digital bits) are required to represent an 8-bit byte, and the method is called a hexadecimal digital conversion coding character string.
Taking decimal character strings as an example, a chinese character needs 3 decimal digit conversion coding character strings (each length is 3), that is, 9 decimal digit characters are needed to represent the character, for the convenience of processing, the conversion coding character string formed by every 3 digits represents a UTF-8 coded byte, and the character strings are separated by separators (such as;, "%," # ", and other non-numeric ASCII coding characters) to form a serial connection conversion coding character string.
For example, if a Chinese character "good" word is to be transmitted, taking UTF-8 encoding as an example, UTF-8 encoding generally uses 3 bytes to represent the words in hexadecimal numbers as: 0xE5, 0xA5, x0BD, the corresponding decimal values (decimal digit conversion code string) are expressed as: "229", "165", "189". The 3 decimal digit ASCII code character strings are connected in a 'connection mode' by using separators to form '229, 165 and 189' serial conversion coding character strings.
In addition, the original coded data can also be directly coded according to the symbol expressed in the hexadecimal numerical form to form a conversion coded character string. For example, the Chinese character "good" is represented by UTF-8, and the UTF-8 encoding generally uses 3 bytes and hexadecimal numerical values as follows: 0xE5, 0xA5, x0BD, in the form of hexadecimal numeric representation corresponding to UTF-8 encoded data, form a corresponding character, and require 2 hexadecimal bits (represented by 0-9 and A-F characters) to represent each byte, e.g., 0xE5 represents a hexadecimal digit conversion encoded string: "E5", connecting the strings by separators "to form a serial conversion code string composed of hexadecimal digital ASCII code strings: "E5, a5, BD".
It should be noted that in other embodiments of the present invention, other methods of Chinese transcoding may be used to convert the original encoded data into various character strings containing ASCII characters. For example, in Windows Powershell script language, the [ Web. HttpUtility ]: UrlEncode and UrlDecode functions, or C # HttpUtility. UrlEncode and HttpUtility. UrlDecode methods can also be used to convert the Chinese binary byte array into the encoded URL character string and to transcode it reversely, so as to realize the lossless and reliable HTTP transmission from the Web server to the client and the input of Chinese information between the mobile phone and the PC through the USB HID channel. Similar or same kind of encoding and decoding methods are adopted, and all belong to the protection scope of the invention.
In this embodiment, all the concatenated conversion code strings include ASCII code characters, and the characters can be directly injected through a keyboard, and the input into the target computer can be completed by the text wireless transmitter.
In this embodiment, after the text wireless transmitter 100 is inserted into the target computer, the converted concatenated and converted code string may be entered into the target computer by a keyboard entry method.
Specifically, first, text wireless transmitter 100 may automatically send keyboard commands to the target computer, such as: the Windows window key + R key is called out to run a program interface, then a command of 'not copied: \ in.txt' is automatically input, a text file is automatically created in a target computer, the whole serial connection conversion coding character string is automatically input into the target computer, and the text file is closed (through automatically inputting 'atl key + F4 key'), saved (whether the closed prompt is saved or not is confirmed through automatically inputting 'Y', or directly saved through 'atl key + F key + S key').
Then, after the text file (e.g. d: \ in.txt) containing the concatenated conversion code string is stored in the target computer, the conversion is required to be recovered to the UTF-8 coded Chinese character string, and the process needs a special decoding program to be completed, and the decoding program needs to be stored in the target computer in advance, and the storage path is configured to the text wireless transmitter 100, so that the dynamic calling of the text wireless transmitter 100 is facilitated. After the decoding program is called, the target computer automatically finishes reading the text file containing the serial connection conversion coding character string: d, completing decoding and recovering to original coded data, such as UTF-8 coded data, and generating a corresponding output file, or automatically opening and copying Chinese characters in the output file into a pasting board for sharing by a computer to other application programs.
Specifically, the decoding program reads the serial conversion code character string, decomposes the serial conversion code character string into conversion code character strings (including 3 decimal ASCII code character strings spaced by separators), respectively restores and converts the decimal ASCII code character strings spaced by separators into 3 16-system numerical values, and then writes the 3 hexadecimal numerical values into an output file d: \ out.txt in a hexadecimal (binary stream) form to correspondingly form UTF-8 coded data of one chinese character. Thus, the process of symbolizing and coding the Chinese character sent from the mobile phone, inputting the Chinese character into a target computer and decoding and restoring the Chinese character into the Chinese character by the text wireless transmitter 100 is realized.
For example, in one specific example:
taking the example of transmitting a chinese character "good" word, the text wireless transmitter 100 will generate in.txt at the target computer and form a conversion code string storing "229, 165, 189", the text wireless transmitter 100 will automatically call a decoding program to read in.txt and obtain the conversion code string "229, 165, 189", then obtain 3 decimal ASCII code strings "229", "165", "189", respectively, and recover the conversion to 3 16-ary numeric values, respectively: 0xE5, 0xA5 and x0BD, then writing 3 hexadecimal values into an output file d \.
Finally, the text wireless transmitter 100 automatically turns off the dedicated decoding program (by automatically inputting "atl key + F4 key"), and the text wireless transmitter 100 automatically sends keyboard commands to the target computer, such as: the method comprises the steps of calling a running program interface by a Windows window key + R key, then automatically inputting a ' not'd: \ in.txt ' command, opening an output file generated by a decoding program by a text editor, such as d: \.
In summary, the USB-based wireless text transmitter 100 provided in this embodiment automatically transmits various texts of an information sending device (such as a mobile phone) to a target computer, and the whole transmission process is automatically controlled without manual input of an interactive operation by a user, without installation of a driver (except that a simplified decoding program is preset in the target computer, and the program can be imported in advance through a network, automatic downloading by a cloud server, and the like), and without internet connection. The whole process of the whole text transmission and sharing operation scheduling does not need a user to touch human-computer interaction equipment such as a target computer keyboard and a mouse, so that the operation steps and the execution condition limitation of the user are reduced, the cross infection of viruses and bacteria caused by the contact of the surfaces of various equipment is reduced, and the intelligent, safe, healthy and efficient automatic office experience is provided.
In addition, when a program such as WeChat transmits a shared text to a target computer and other equipment through a mobile phone, various texts such as various icons, expressions and the like which are included in Chinese and English cannot be well processed, and the problems of information loss, messy codes and the like can occur. The text transmission through the mechanism provided by the embodiment can transmit the mixed texts of Chinese and English, various icons, emoticons and the like to the target computer without loss or distortion, so that the office quality, the office efficiency and the user experience are improved.
For example, in one possible exemplary application scenario: the user needs to import the text in the mobile phone, such as chat records, address books, memorandum, document copying and text paragraphs, etc., into the computer or other machine for display, modification, editing, processing, storage, etc. Especially under the conditions of no network or poor network coverage signals (such as remote mountainous areas, tunnels, airplanes and the like), the sharing and migration of network programs through WeChat and the like cannot be finished. Even under the condition of a network, by the APP mode, a user needs to pre-install a plurality of software, establish or input an account number and a password, log in, scan a code, authenticate, verify and the like, the operation is complex, and risks of network diffusion, mistaken distribution, leakage and the like exist.
When the embodiment is used for text migration, a user only needs to insert the text wireless transmitter 100 into a target computer, the user sends the text wireless transmitter 100 through a mobile phone Bluetooth communication program APP (such as various types of Bluetooth assistants, Bluetooth serial port debugging APPs and other general free software, or specially developed Bluetooth point-to-point transceiving APPs) and injects, guides and transmits the text to the target computer through a USB keyboard input mode, and the text is transparently transmitted to the computer for the user to use without other manual intervention operations.
In addition, by using the embodiment to perform text migration, a plurality of users can conveniently send texts to a target computer through terminals such as mobile phones and the like, and the texts are used for application scenes such as joint modification, editing, cooperative office work and the like.
Referring to fig. 3 and 4, a second embodiment of the present invention further provides a USB-based text wireless transmission system, which includes an information sending device 200, a target computer 300, and the USB-based text wireless transmitter 100 as described above; wherein the USB-based text wireless transmitter 100 accesses the USB interface of the target computer 300 through the USB plug 10; the USB-based text wireless transmitter 100 is wirelessly connected with the information transmitting apparatus 200 through the wireless communication module 30;
the information sending device 200 is configured to send original encoded data of a text to the text wireless transmitter 100 by wireless transmission;
the text wireless transmitter 100 is configured to receive the original encoding data through the wireless communication module 30, perform encoding conversion on the received original encoding data to obtain a conversion encoding character string uniquely corresponding to the original encoding data, and enter the conversion encoding character string into the target computer 300 to which the USB plug is currently connected in a keyboard entry manner;
the target computer 300 is configured to automatically invoke a preset decoding program, and restore the converted encoded character string to the original encoded data in the reverse direction and store the original encoded data.
Preferably, the text wireless transmitter 100 is an embedded system based on a special/general purpose microprocessor or a single chip processor, and has a USB HID function.
Preferably, the target computer 300 is further configured to copy the original encoded data in the output text into a sticky board for the target computer to share to the relevant application program.
Illustratively, the processes of embodiments of the present invention may be implemented by a computer program executed by a processor, which may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the implementation of the method.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is the control center for the various servers of the platform, with various interfaces and lines connecting the various parts of the overall method.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the platform by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system; the storage data area may store data created according to usage (such as audio data, text message data, etc.), and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the implemented module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. A USB based wireless text transmitter, comprising: the USB plug, the casing, and be located main control chip, memory, wireless communication module in the casing, wherein, the one end of USB plug connect in the casing, and with the main control chip electricity is connected, wireless communication module and the memory with the main control chip electricity is connected, the main control chip is configured to through the computer program of carrying out the memory storage in order to realize following step:
receiving original coded data of a text transmitted by a currently connected information transmitting apparatus through a wireless communication module;
the method comprises the steps of converting non-ASCII coded original coded data in a received text into symbolic codes through coding, converting the symbolic codes into conversion coded character strings uniquely corresponding to the symbolic codes, and connecting the conversion coded character strings in series through preset separators to form a serial conversion coded character string, wherein the serial conversion coded character string consists of ASCII coded characters;
inputting the serial conversion coding character string into a target computer to which the USB plug is currently connected in a keyboard input mode;
controlling the target computer to automatically call a preset decoding program, and restoring the serial conversion coding character string into non-ASCII coded original coding data in the text and storing the non-ASCII coded original coding data;
and inputting the received ASCII coded original coded data in the text into a target computer which is currently accessed by the USB plug in a keyboard input mode and storing the coded data.
2. The USB-based text wireless transmitter of claim 1, wherein the wireless communication module is a Bluetooth module, a WiFi module, or an IR module.
3. The USB-based text wireless transmitter according to claim 1, wherein the concatenated conversion code string is input to a target computer to which the USB plug is currently connected by means of keyboard entry; and controlling the target computer to automatically call a preset decoding program, reducing the serial connection conversion coding character string into original coding data which is not ASCII coded in the text, and storing the original coding data, wherein the specific steps are as follows:
sending a keyboard command to a target computer which is currently accessed by the USB plug, and calling out an operation program interface;
creating an input text file in the target computer by operating a program interface, and inputting the serial conversion coding character string into the input text file in a keyboard input mode;
and calling a preset decoding program on the target computer to enable the target computer to reversely restore the serial conversion coded character strings in the input text file to the non-ASCII coded original coded data in the text, and generating a corresponding output file.
4. The USB-based text wireless transmitter of claim 1, wherein the original encoded data comprises: UTF-8 encoded data, Unicode encoded data, ANSI encoded data.
5. A USB-based wireless transmission system of text, comprising an information sending device, a target computer, and a USB-based wireless transmitter according to any one of claims 1 to 4; the USB-based text wireless transmitter is connected to a USB interface of the target computer through a USB plug; the USB-based text wireless transmitter is in wireless connection with the information sending equipment through the wireless communication module;
the information sending equipment is used for sending original coded data of a text to the text wireless transmitter in a wireless transmission mode;
the text wireless transmitter is used for converting non-ASCII coded original coded data in a received text into symbolic codes through coding, converting the symbolic codes into conversion coded character strings uniquely corresponding to the symbolic codes, and connecting the conversion coded character strings in series through preset separators to form a serial conversion coded character string, wherein the serial conversion coded character string consists of ASCII coded characters; inputting the serial conversion coding character string to a target computer to which the USB plug is currently connected in a keyboard input mode; the USB plug is also used for inputting the received ASCII coded original coded data in the text into a target computer which is currently accessed by the USB plug in a keyboard input mode and storing the coded data;
and the target computer is used for automatically calling a preset decoding program, reversely reducing the serial connection conversion coding character string into non-ASCII coded original coding data in the text and storing the non-ASCII coded original coding data.
6. The USB-based wireless text transmission system according to claim 5, wherein the wireless text transmitter is an embedded system based on a special/general purpose microprocessor or a single chip processor and has a USB HID function.
7. The USB-based wireless text transmission system according to claim 5, wherein the target computer is further configured to copy the non-ASCII encoded raw encoded data in the output file into a sticker board for sharing by the target computer to the associated application.
CN202010652760.6A 2020-07-08 2020-07-08 Text wireless transmitter and system based on USB Active CN111917559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010652760.6A CN111917559B (en) 2020-07-08 2020-07-08 Text wireless transmitter and system based on USB

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010652760.6A CN111917559B (en) 2020-07-08 2020-07-08 Text wireless transmitter and system based on USB

Publications (2)

Publication Number Publication Date
CN111917559A CN111917559A (en) 2020-11-10
CN111917559B true CN111917559B (en) 2022-03-29

Family

ID=73227695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010652760.6A Active CN111917559B (en) 2020-07-08 2020-07-08 Text wireless transmitter and system based on USB

Country Status (1)

Country Link
CN (1) CN111917559B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954015B (en) * 2021-01-28 2022-08-16 广州大学 File transmission method, device, equipment and medium based on USB-HID

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286908A (en) * 2008-05-30 2008-10-15 成都穿越集成电路设计有限公司 Method and apparatus of wireless communication between digital media player and node of wireless network
KR100887931B1 (en) * 2008-07-30 2009-03-12 주식회사 유비콘테크놀로지 Method for bidirectional transmitting and receiving data in wireless usb system
CN102681950A (en) * 2011-03-09 2012-09-19 札拉姆科技株式会社 Input interface providing usb apparatus and interface providing method
CN205451070U (en) * 2016-01-04 2016-08-10 临沂大学 Can with secret type text editing ware of computer communication's mobile
CN109068087A (en) * 2018-09-14 2018-12-21 大连成者科技有限公司 Intelligent meeting optical projection system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286908A (en) * 2008-05-30 2008-10-15 成都穿越集成电路设计有限公司 Method and apparatus of wireless communication between digital media player and node of wireless network
KR100887931B1 (en) * 2008-07-30 2009-03-12 주식회사 유비콘테크놀로지 Method for bidirectional transmitting and receiving data in wireless usb system
CN102681950A (en) * 2011-03-09 2012-09-19 札拉姆科技株式会社 Input interface providing usb apparatus and interface providing method
CN205451070U (en) * 2016-01-04 2016-08-10 临沂大学 Can with secret type text editing ware of computer communication's mobile
CN109068087A (en) * 2018-09-14 2018-12-21 大连成者科技有限公司 Intelligent meeting optical projection system

Also Published As

Publication number Publication date
CN111917559A (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN112131162A (en) Data transmission method, system, device and medium based on USB equipment
CN106326018B (en) Data access method and terminal
CN111917559B (en) Text wireless transmitter and system based on USB
CN113836580A (en) Data desensitization method, system, equipment and storage medium
CN112783597A (en) Remote desktop implementation method and related equipment
CN110377888B (en) HTML-based manuscript auditing editor real-time trace marking method and device
CN111898340A (en) File processing method and device and readable storage medium
CN109614592B (en) Text processing method and device, storage medium and electronic equipment
CN111444085A (en) Test method, test device and related equipment
CN112954015B (en) File transmission method, device, equipment and medium based on USB-HID
CN104917826A (en) Method for realizing FTP access based on automatic code conversion in heterogeneous environment
CN104363348A (en) Information data processing method and device
CN114070470A (en) Encoding and decoding method and device
CN112363693A (en) Code text processing method, device, equipment and storage medium
CN112395656A (en) Method and system for sharing man-machine interaction equipment of notebook computer by security terminal
CN109407974B (en) Electronic device, picture deleting method based on mixed binary code and storage medium
CN104460490A (en) Programmable logic control processing method of frequency converter, digital processor and frequency converter
CN111507068B (en) Input information processing method and device and mobile terminal
CN104331017A (en) Method and device for realizing programmable logic control function of frequency converter as well as frequency converter
US8839102B2 (en) Method to automatically display filenames encoded in multiple code sets
CN112954016B (en) File transmission method, device, equipment and medium based on USB-HID
CN111064560A (en) Data encryption transmission method and device, terminal and data encryption transmission system
CN103475486A (en) Intelligent secret key equipment, mobile terminal and dynamic password output method and system
CN113283215B (en) Data confusion method and device based on UTF-32 coding
CN112491802B (en) Identity authentication communication device and identity authentication method

Legal Events

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