CN113326223A - Information interaction and serial port configuration method, device, equipment and medium - Google Patents

Information interaction and serial port configuration method, device, equipment and medium Download PDF

Info

Publication number
CN113326223A
CN113326223A CN202110670734.0A CN202110670734A CN113326223A CN 113326223 A CN113326223 A CN 113326223A CN 202110670734 A CN202110670734 A CN 202110670734A CN 113326223 A CN113326223 A CN 113326223A
Authority
CN
China
Prior art keywords
serial port
target
information
bluetooth
transmission link
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.)
Pending
Application number
CN202110670734.0A
Other languages
Chinese (zh)
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.)
Eversec Beijing Technology Co Ltd
Original Assignee
Eversec Beijing Technology Co Ltd
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 Eversec Beijing Technology Co Ltd filed Critical Eversec Beijing Technology Co Ltd
Priority to CN202110670734.0A priority Critical patent/CN113326223A/en
Publication of CN113326223A publication Critical patent/CN113326223A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • H04B5/72

Abstract

The invention discloses a method, a device, equipment and a medium for information interaction and serial port configuration, wherein the method comprises the following steps: the computing rod receives at least one operation instruction transmitted by a target client through a preset transmission link; the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in a target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick; and executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link. The technical scheme of the embodiment of the invention can improve the usability and portability of the computing stick in the information interaction process and improve the use experience of a user on the computing stick.

Description

Information interaction and serial port configuration method, device, equipment and medium
Technical Field
The embodiment of the invention relates to a communication technology, in particular to a method, a device, equipment and a medium for information interaction and serial port configuration.
Background
A computing Stick (Computer Stick) is a Personal Computer (PC) that looks like a usb disk and has a memory, an arithmetic unit, a processor, and the like built therein. The computing bar can be used as an interface machine to be placed in a machine room or a laboratory, so that the space is not occupied, and much electric energy is not consumed; or the system can be taken as a portable tool server, so that a user can conveniently carry the system to a development site to carry out debugging, troubleshooting and other work.
However, there is no screen on the computing stick, and only a USB Interface and a High Definition Multimedia Interface (HDMI) are available. Under the condition that the computing stick is not connected with a network, when a user performs information interaction with the computing stick, the computing stick is usually connected with an external screen through an HDMI interface, and then an input device (such as a keyboard, a mouse and the like) is connected with the computing stick through a USB interface so as to input data into the computing stick and display data fed back by the computing stick through the external screen.
In the existing information interaction method, the input and output equipment of the peripheral equipment is generally required to be connected with the computing stick in a wired mode, the characteristic of portability of the computing stick cannot be brought into play, the operation process is complex, and the user experience is low.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device and a medium for information interaction and serial port configuration, which can improve usability and portability of a computing stick in an information interaction process, and improve user experience of the computing stick.
In a first aspect, an embodiment of the present invention provides an information interaction method, which is applied to a computing stick, and the method includes:
receiving at least one operation instruction transmitted by a target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
and executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
In a second aspect, an embodiment of the present invention further provides an information interaction method, which is applied to a client, and the method includes:
transmitting user login information to a target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
after the information of successful login transmitted by the target computing rod is received through the transmission link, at least one operation instruction is transmitted to the target computing rod through the transmission link;
and receiving the execution result output by the target computing rod aiming at each operation instruction through the transmission link.
In a third aspect, an embodiment of the present invention further provides a bluetooth serial port configuration method, where the method includes:
modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick;
configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to start a serial port service function of the virtual Bluetooth serial port;
and configuring the Bluetooth equipment information of the target computing stick so that the target Bluetooth equipment establishes a target Bluetooth serial port according to the Bluetooth equipment information and connects the target Bluetooth serial port with the virtual Bluetooth serial port.
In a fourth aspect, an embodiment of the present invention further provides an information interaction apparatus, which is applied to a computing stick, and includes:
the instruction receiving module is used for receiving at least one operation instruction transmitted by the target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
and the instruction execution module is used for executing each operation instruction and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
In a fifth aspect, an embodiment of the present invention further provides an information interaction apparatus, which is applied to a client, and the apparatus includes:
the information transmission module is used for transmitting the user login information to the target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
the instruction transmission module is used for transmitting at least one operation instruction to the target computing rod through the transmission link after receiving the information of successful login transmitted by the target computing rod through the transmission link;
and the execution result receiving module is used for receiving the execution result output by the target computing rod aiming at each operation instruction through the transmission link.
In a sixth aspect, an embodiment of the present invention further provides a bluetooth serial port configuration apparatus, where the apparatus includes:
the serial port creating module is used for modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick;
the serial port opening module is used for configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to open the serial port service function of the virtual Bluetooth serial port;
and the information configuration module is used for configuring the Bluetooth equipment information of the target computing stick so as to enable the target Bluetooth equipment to establish a target Bluetooth serial port according to the Bluetooth equipment information and connect the target Bluetooth serial port with the virtual Bluetooth serial port.
In a seventh aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement an information interaction method provided in any embodiment of the present invention, or implement a bluetooth serial port configuration method provided in any embodiment of the present invention.
In an eighth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements an information interaction method provided in any embodiment of the present invention, or implements a bluetooth serial port configuration method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the computing stick receives at least one operation instruction transmitted by the target client according to the preset transmission link, then executes each operation instruction, and outputs the execution result corresponding to each operation instruction to the target client through the transmission link, so that the usability and the portability of the computing stick in the information interaction process can be improved, and the use experience of a user on the computing stick is improved.
Drawings
Fig. 1 is a flowchart of an information interaction method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an information interaction method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of an information interaction method according to a third embodiment of the present invention;
FIG. 4a is a flowchart of an information interaction method in a fourth embodiment of the present invention;
fig. 4b is a schematic interface diagram of creating a target bluetooth serial port in the fourth embodiment of the present invention;
fig. 4c is a schematic interface diagram of creating a target bluetooth serial port in the fourth embodiment of the present invention;
fig. 4d is a schematic interface diagram of a serial port connection according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a bluetooth serial port configuration method in the fifth embodiment of the present invention;
FIG. 6 is a block diagram of an information interaction apparatus according to a sixth embodiment of the present invention;
FIG. 7 is a block diagram of an information interaction apparatus according to a seventh embodiment of the present invention;
fig. 8 is a structural diagram of a bluetooth serial port configuration apparatus in an eighth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a computer device in the ninth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an information interaction method according to an embodiment of the present invention, where this embodiment is applicable to a case where a user performs information interaction with a computing stick through a client, and the method may be executed by an information interaction device, where the information interaction device may be implemented by software and/or hardware, and may be generally integrated in the computing stick, and specifically includes the following steps:
and step 110, receiving at least one operation instruction transmitted by the target client through a preset transmission link.
In this embodiment, the transmission link is obtained by connecting a virtual bluetooth serial port preconfigured in the computing rod and a target bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick.
The computing bar only comprises a USB interface and an HDMI interface, and no reserved serial port is provided. In order to realize information interaction between a user and the computing stick through the target client, the configuration information of the Bluetooth serial port of the Bluetooth module in the computing stick can be modified according to a preset Bluetooth protocol specification to obtain the virtual Bluetooth serial port.
The target client can create a target bluetooth serial port according to the bluetooth device information of the computing stick (for example, information such as a bluetooth device name or an identifier corresponding to the computing stick), and the transmission link can be obtained by connecting the target bluetooth serial port with the virtual bluetooth serial port.
In this step, the user can transmit at least one operation instruction, which may be a calculation instruction, a data acquisition instruction, a search instruction, and the like, to the computing stick through the transmission link by using the target client.
And step 120, executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
In this step, after the computing stick executes each operation instruction, the execution result corresponding to each operation instruction can be output to the target client through the transmission link, and the target client can display the received execution result to the user through the screen, so that the human-computer interaction between the computing stick and the user is completed.
In this embodiment, by constructing a transmission link between the virtual bluetooth serial port and the target bluetooth serial port, information interaction between the computing stick and a user can be realized, and the computing stick is not required to be in wired connection with an external input/output device, so that the usability and portability of the computing stick can be improved, the operation complexity of the user in man-machine interaction with the computing stick is reduced, and the use experience of the user on the computing stick is improved; and secondly, when data are transmitted through the transmission link between the serial ports, the time consumed by data transmission can be reduced, and the data transmission efficiency is improved.
According to the technical scheme of the embodiment of the invention, the computing stick receives at least one operation instruction transmitted by the target client according to the preset transmission link, then executes each operation instruction, and outputs the execution result corresponding to each operation instruction to the target client through the transmission link, so that the usability and the portability of the computing stick in the information interaction process can be improved, and the use experience of a user on the computing stick is improved.
Example two
This embodiment is a further refinement of the above embodiment, and the same or corresponding terms as those of the above embodiment are explained, and this embodiment is not described again. Fig. 2 is a flowchart of an information interaction method provided in the second embodiment, in this embodiment, the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 2, the method provided in this embodiment may further include:
step 210, receiving user login information transmitted by the target client through the transmission link.
The transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick.
In this embodiment, before a user performs information interaction with the computing stick through a target client, user login information needs to be transmitted to the computing stick through a transmission link, where the user login information may be a login account, a login password, and the like of the user.
Step 220, the user login information is verified, and if the user login information passes the verification, at least one operation instruction transmitted by the target client is received through a preset transmission link.
In this embodiment, optionally, a plurality of standard login information is pre-stored in the computing stick, and the standard login information may be login information of a plurality of users allowed to perform information interaction by the computing stick.
After receiving the current user login information, optionally comparing the user login information with a plurality of pre-stored standard login information, and if the standard login information contains information consistent with the user login information, determining that the user login information passes verification; otherwise, confirming that the user login information is not verified.
In this embodiment, if the user login information passes the verification, the computing rod transmits login success information to the target client through a preset transmission link, and receives at least one operation instruction transmitted by the target client; and if the user login information does not pass the verification, the computing bar transmits login failure information to the target client through a preset transmission link so as to remind the user to transmit the user login information through the target client again until the login is successful.
And step 230, executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
According to the technical scheme of the embodiment of the invention, the computing rod receives the user login information transmitted by the target client according to the transmission link, then the user login information is verified, if the user login information passes the verification, at least one operation instruction transmitted by the target client is received through the preset transmission link, finally each operation instruction is executed, the execution result corresponding to each operation instruction is output to the target client through the transmission link, the usability and the portability of the computing rod in the information interaction process can be improved, and the use experience of the user on the computing rod is improved.
EXAMPLE III
Fig. 3 is a flowchart of an information interaction method provided in a third embodiment of the present invention, where this embodiment is applicable to a case where a user performs information interaction with a computing stick through a client, and the method may be executed by an information interaction device, where the information interaction device may be implemented by software and/or hardware, and may be generally integrated in the client, and specifically includes the following steps:
and 310, transmitting the user login information to the target computing bar through a preset transmission link.
The transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick.
In this step, the user can transmit user login information, which may be a login account, a login password, and the like of the user, to the computing stick through the transmission link through the target client.
And step 320, after receiving the information of successful login transmitted by the target computing stick through the transmission link, transmitting at least one operation instruction to the target computing stick through the transmission link.
In the step, if the information of successful login transmitted by the target computing stick is received through the transmission link, at least one operation instruction is transmitted to the target computing stick through the transmission link; and if the login failure information transmitted by the target computing bar is received through the transmission link, transmitting the user login information again through the target client.
If the client receives the login failure information transmitted by the target computing rod through the transmission link, the operating instruction is transmitted to the target computing rod through the transmission link, the target computing rod does not execute the operating instruction, and the login failure information is continuously transmitted to the client.
And 330, receiving the execution result of the target computing rod for each operation instruction through the transmission link.
According to the technical scheme of the embodiment of the invention, the client transmits the user login information to the target computing rod according to the preset transmission link, then receives the login success information transmitted by the target computing rod through the transmission link, transmits at least one operation instruction to the target computing rod through the transmission link, and finally receives the execution result output by the target computing rod aiming at each operation instruction through the transmission link, so that the usability and the portability of the computing rod in the information interaction process can be improved, and the use experience of the user on the computing rod is improved.
Example four
This embodiment is a further refinement of the above embodiment, and the same or corresponding terms as those of the above embodiment are explained, and this embodiment is not described again. Fig. 4a is a flowchart of an information interaction method provided in the fourth embodiment, in this embodiment, the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 4a, the method provided in this embodiment may further include:
and step 410, creating a target Bluetooth serial port corresponding to the target computing stick according to the Bluetooth device information of the target computing stick.
In this step, the bluetooth device information may be a name or an Identity (ID) of the bluetooth device corresponding to the computing stick.
In a specific embodiment, fig. 4b is a schematic interface diagram of creating a target bluetooth serial port in this embodiment. As shown in fig. 4b, assuming that the client is a notebook computer supporting bluetooth function, the "bluetooth and other devices" option on the computer can be opened, then click on "more bluetooth option", select "COM Port", click on "add" option, select "go out" direction, and select the bluetooth device ID corresponding to the computing stick, such as "Ir-STK 1AW32SC 'Serial Port'" in fig. 4 b.
After the user selects and determines in fig. 4b, he sees a target bluetooth serial port generated in the device manager, for example, the "standard serial over bluetooth link (COM 4)" in fig. 4 c.
And step 420, connecting the target Bluetooth serial port with a virtual Bluetooth serial port which is configured in advance in the target computing stick through a preset serial port connecting tool to obtain the transmission link.
In this step, optionally, the target bluetooth serial port may be connected to a virtual bluetooth serial port pre-configured in the target computing stick by using a preset serial port connection tool (e.g., Putty), so as to obtain the transmission link. Fig. 4d is a schematic interface diagram of a serial port connection in this embodiment, where the baud rate may be set to 115200, and other options may be set to default.
And 430, transmitting the user login information to the target computing bar through a preset transmission link.
Step 440, after receiving the information of successful login transmitted by the target computing stick through the transmission link, transmitting at least one operation instruction to the target computing stick through the transmission link.
And 450, receiving an execution result output by the target computing rod for each operation instruction through the transmission link.
According to the technical scheme of the embodiment of the invention, the client establishes the target Bluetooth serial port according to the Bluetooth equipment information of the target computing stick, the target Bluetooth serial port is connected with the virtual Bluetooth serial port which is configured in advance in the target computing stick through the serial port connecting tool to obtain the transmission link, the user login information is transmitted to the target computing stick through the transmission link, at least one operation instruction is transmitted to the target computing stick after the login success information is received through the transmission link, and finally the execution result which is output by the target computing stick aiming at each operation instruction is received through the transmission link.
EXAMPLE five
Fig. 5 is a flowchart of a bluetooth serial port configuration method according to a fifth embodiment of the present invention, where this embodiment is applicable to a situation where a user configures a virtual bluetooth serial port for a computing stick, and the method may be executed by a bluetooth serial port configuration device, where the device may be implemented by software and/or hardware, and may generally be integrated in a terminal or a server having a data processing function, and specifically includes the following steps:
and step 510, modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick.
In this embodiment, the preset Serial Port protocol may be Serial Port Profile (SPP). A series of specifications and processes are defined in the SPP Protocol, and detailed specifications of necessary processes such as link establishment, virtual serial connection setting, link receiving, virtual serial connection establishment, Service Discovery Protocol (SDP) database registration Service record and the like are stipulated.
In a specific embodiment, the virtual bluetooth serial port can be obtained by modifying the bluetooth serial port configuration information in the bluetooth service of the target computing stick and adding the means of supporting the SPP protocol, and the specific process is as follows:
vi/etc/systemd/system/dbus-org.bluez.service;
ExecStart=/usr/lib/bluetooth/bluetoothd;
ExecStartPost=/usr/bin/sdptool add SP;
after the above processes are executed, saving and quitting are carried out, and finally, system restart dbus-org
And step 520, configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to start the serial port service function of the virtual Bluetooth serial port.
In this step, the predetermined transmission protocol may be a serial linear simulation protocol RFCOMM.
In a specific embodiment, a new service bluecom may be added to the service information of the virtual bluetooth serial port to monitor a new bluetooth connection and map to the virtual bluetooth serial port/dev/rfcomm 0, which includes the following steps:
vi/lib/systemd/system/bluecom.service;
after the above process is executed, the following contents are input and stored:
[Unit]
Description=Bluetooth Serial Console Service;
[Service]
ExecStart=/usr/bin/rfcomm watch hci0;
Restart=always;
[Install]
WantedBy=multi-user.target;
and finally, executing system enable blue com to start the serial port service function of the virtual Bluetooth serial port.
And step 530, configuring the Bluetooth equipment information of the target computing bar so that the target Bluetooth equipment creates a target Bluetooth serial port according to the Bluetooth equipment information and connects the target Bluetooth serial port with the virtual Bluetooth serial port.
In a specific embodiment, the bluetooth device information may be information such as a name or an identifier of the bluetooth device corresponding to the computing stick. Specifically, a new service bluetty may be added to the service information of the virtual bluetooth serial port, and the new tty is opened and mapped to the virtual bluetooth serial port/dev/rfcomm 0, which includes the following specific processes:
vi/lib/systemd/system/bluetty.service;
after the above process is executed, the following contents are input and stored:
[Unit]
Description=Bluetooth tty Service;
[Service]
ExecStart=-/sbin/getty-iL rfcomm0 115200vt100;
Restart=always;
[Install]
WantedBy=multi-user.target;
finally, system enable bluetty is executed to configure the Bluetooth device information of the target computing stick.
According to the technical scheme of the embodiment of the invention, the Bluetooth serial port configuration information of the target computing stick is modified according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick, then the service information of the virtual Bluetooth serial port is configured according to a preset transmission protocol to start the serial port service function of the virtual Bluetooth serial port, and finally the Bluetooth equipment information of the target computing stick is configured to enable the target Bluetooth equipment to establish the target Bluetooth serial port according to the Bluetooth equipment information and connect the target Bluetooth serial port with the virtual Bluetooth serial port.
EXAMPLE six
Fig. 6 is a structural diagram of an information interaction apparatus according to a sixth embodiment of the present invention, where the apparatus is applied to a computing stick, and includes: an instruction receiving module 610 and an instruction executing module 620.
The instruction receiving module 610 is configured to receive at least one operation instruction transmitted by a target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
the instruction executing module 620 is configured to execute each operation instruction, and output an execution result corresponding to each operation instruction to the target client through the transmission link.
According to the technical scheme of the embodiment of the invention, the computing stick receives at least one operation instruction transmitted by the target client according to the preset transmission link, then executes each operation instruction, and outputs the execution result corresponding to each operation instruction to the target client through the transmission link, so that the usability and the portability of the computing stick in the information interaction process can be improved, and the use experience of a user on the computing stick is improved.
On the basis of the foregoing embodiments, the instruction receiving module 610 may include:
the login information receiving unit is used for receiving the user login information transmitted by the target client through the transmission link;
and the information checking unit is used for checking the user login information, and if the user login information passes the checking, at least one operation instruction transmitted by the target client is received through a preset transmission link.
The information interaction device provided by the embodiment of the invention can execute the information interaction method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 7 is a structural diagram of an information interaction apparatus according to a seventh embodiment of the present invention, where the apparatus is applied to a client, and includes: an information transmission module 710, an instruction transmission module 720, and an execution result reception module 730.
The information transmission module 710 is configured to transmit user login information to the target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
the instruction transmission module 720 is configured to transmit at least one operation instruction to the target computing stick through the transmission link after receiving the information of successful login transmitted by the target computing stick through the transmission link;
and the execution result receiving module 730 is configured to receive, through the transmission link, an execution result output by the target computing stick for each operation instruction.
According to the technical scheme of the embodiment of the invention, the client transmits the user login information to the target computing rod according to the preset transmission link, then receives the login success information transmitted by the target computing rod through the transmission link, transmits at least one operation instruction to the target computing rod through the transmission link, and finally receives the execution result output by the target computing rod aiming at each operation instruction through the transmission link, so that the usability and the portability of the computing rod in the information interaction process can be improved, and the use experience of the user on the computing rod is improved.
On the basis of the foregoing embodiments, the information transmission module 710 may include:
the serial port creating unit is used for creating a target Bluetooth serial port corresponding to a target computing stick according to the Bluetooth equipment information of the target computing stick;
and the serial port connecting unit is used for connecting the target Bluetooth serial port with a virtual Bluetooth serial port which is configured in advance in the target computing stick through a preset serial port connecting tool to obtain the transmission link.
The information interaction device provided by the embodiment of the invention can execute the information interaction method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example eight
Fig. 8 is a structural diagram of a bluetooth serial port configuration apparatus according to an eighth embodiment of the present invention, where the apparatus includes: a serial port creating module 810, a serial port opening module 820 and an information configuration module 830.
The serial port creating module 810 is configured to modify the bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual bluetooth serial port corresponding to the target computing stick;
a serial port opening module 820, configured to configure the service information of the virtual bluetooth serial port according to a preset transmission protocol, so as to open a serial port service function of the virtual bluetooth serial port;
and an information configuration module 830, configured to configure the bluetooth device information of the target computing stick, so that the target bluetooth device creates a target bluetooth serial port according to the bluetooth device information, and connects the target bluetooth serial port with the virtual bluetooth serial port.
According to the technical scheme of the embodiment of the invention, the Bluetooth serial port configuration information of the target computing stick is modified according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick, then the service information of the virtual Bluetooth serial port is configured according to a preset transmission protocol to start the serial port service function of the virtual Bluetooth serial port, and finally the Bluetooth equipment information of the target computing stick is configured to enable the target Bluetooth equipment to establish the target Bluetooth serial port according to the Bluetooth equipment information and connect the target Bluetooth serial port with the virtual Bluetooth serial port.
The Bluetooth serial port configuration device provided by the embodiment of the invention can execute the Bluetooth serial port configuration method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example nine
Fig. 9 is a schematic structural diagram of a computer apparatus according to a ninth embodiment of the present invention, as shown in fig. 9, the computer apparatus includes a processor 910, a memory 920, an input device 930, and an output device 940; the number of the processors 910 in the computer device may be one or more, and one processor 910 is taken as an example in fig. 9; the processor 910, the memory 920, the input device 930, and the output device 940 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 9.
The computer device may be a computing stick, and the memory 920 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to an information interaction method in the embodiment of the present invention (for example, the instruction receiving module 610 and the instruction executing module 620 in an information interaction apparatus). The processor 910 executes various functional applications of the computing stick and data processing by running software programs, instructions and modules stored in the memory 920, so as to implement one of the above-mentioned information interaction methods. That is, the program when executed by the processor implements:
receiving at least one operation instruction transmitted by a target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
and executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
The computer device may be a client, and the memory 920 is used as a computer-readable storage medium and may be further used to store program instructions/modules corresponding to an information interaction method according to an embodiment of the present invention (for example, the information transmission module 710, the instruction transmission module 720, and the execution result receiving module 730 in an information interaction apparatus). The processor 910 executes various functional applications of the client and data processing by running software programs, instructions and modules stored in the memory 920, so as to implement one of the above-mentioned information interaction methods. That is, the program when executed by the processor implements:
transmitting user login information to a target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
after the information of successful login transmitted by the target computing rod is received through the transmission link, at least one operation instruction is transmitted to the target computing rod through the transmission link;
and receiving the execution result output by the target computing rod aiming at each operation instruction through the transmission link.
The computer device may also be a terminal or a server, and the memory 920 is used as a computer readable storage medium, and may also be used to store program instructions/modules corresponding to a bluetooth serial port configuration method in the embodiment of the present invention (for example, the serial port creating module 810, the serial port opening module 820, and the information configuring module 830 in a bluetooth serial port configuration apparatus). The processor 910 executes various functional applications and data processing of the terminal or the server by running software programs, instructions and modules stored in the memory 920, that is, the above-mentioned bluetooth serial port configuration method is implemented. That is, the program when executed by the processor implements:
modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick;
configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to start a serial port service function of the virtual Bluetooth serial port;
and configuring the Bluetooth equipment information of the target computing stick so that the target Bluetooth equipment establishes a target Bluetooth serial port according to the Bluetooth equipment information and connects the target Bluetooth serial port with the virtual Bluetooth serial port.
The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 920 may further include memory located remotely from the processor 910, which may be connected to a computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
When the computer device is a client, a terminal or a server, the input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer device, and may include a keyboard, a mouse, and the like. The output device 940 may include a display device such as a display screen.
Example ten
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to any embodiment of the present invention. Of course, the computer-readable storage medium provided in the embodiments of the present invention may perform related operations in an information interaction method provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
receiving at least one operation instruction transmitted by a target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
and executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
The computer-readable storage medium provided by the embodiment of the present invention may further perform related operations in another information interaction method provided by any embodiment of the present invention. That is, the program when executed by the processor implements:
transmitting user login information to a target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
after the information of successful login transmitted by the target computing rod is received through the transmission link, at least one operation instruction is transmitted to the target computing rod through the transmission link;
and receiving the execution result output by the target computing rod aiming at each operation instruction through the transmission link.
The computer-readable storage medium provided in the embodiments of the present invention may further perform related operations in a bluetooth serial port configuration method provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick;
configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to start a serial port service function of the virtual Bluetooth serial port;
and configuring the Bluetooth equipment information of the target computing stick so that the target Bluetooth equipment establishes a target Bluetooth serial port according to the Bluetooth equipment information and connects the target Bluetooth serial port with the virtual Bluetooth serial port.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiments of the information interaction device and the bluetooth serial port configuration device, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An information interaction method applied to a computing stick comprises the following steps:
receiving at least one operation instruction transmitted by a target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
and executing each operation instruction, and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
2. The method according to claim 1, wherein the receiving at least one operation instruction transmitted by a target client via a preset transmission link comprises:
receiving user login information transmitted by a target client through the transmission link;
and checking the user login information, and if the user login information passes the check, receiving at least one operation instruction transmitted by the target client through a preset transmission link.
3. An information interaction method is applied to a client and comprises the following steps:
transmitting user login information to a target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
after the information of successful login transmitted by the target computing rod is received through the transmission link, at least one operation instruction is transmitted to the target computing rod through the transmission link;
and receiving the execution result output by the target computing rod aiming at each operation instruction through the transmission link.
4. The method of claim 3, before transmitting the user login information to the target computing stick via a predetermined transmission link, further comprising:
according to the Bluetooth equipment information of a target computing stick, creating a target Bluetooth serial port corresponding to the target computing stick;
and connecting the target Bluetooth serial port with a virtual Bluetooth serial port which is configured in advance in the target computing stick through a preset serial port connecting tool to obtain the transmission link.
5. A Bluetooth serial port configuration method is characterized by comprising the following steps:
modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick;
configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to start a serial port service function of the virtual Bluetooth serial port;
and configuring the Bluetooth equipment information of the target computing stick so that the target Bluetooth equipment establishes a target Bluetooth serial port according to the Bluetooth equipment information and connects the target Bluetooth serial port with the virtual Bluetooth serial port.
6. An information interaction device applied to a computing stick, comprising:
the instruction receiving module is used for receiving at least one operation instruction transmitted by the target client through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in the computing rod with a target Bluetooth serial port in the target client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the computing stick;
and the instruction execution module is used for executing each operation instruction and outputting an execution result corresponding to each operation instruction to the target client through the transmission link.
7. An information interaction device applied to a client side comprises:
the information transmission module is used for transmitting the user login information to the target computing bar through a preset transmission link;
the transmission link is obtained by connecting a virtual Bluetooth serial port which is pre-configured in a target computing rod and a target Bluetooth serial port in the client; the target Bluetooth serial port is created in advance according to the Bluetooth equipment information of the target computing stick;
the instruction transmission module is used for transmitting at least one operation instruction to the target computing rod through the transmission link after receiving the information of successful login transmitted by the target computing rod through the transmission link;
and the execution result receiving module is used for receiving the execution result output by the target computing rod aiming at each operation instruction through the transmission link.
8. The utility model provides a bluetooth serial ports configuration device which characterized in that includes:
the serial port creating module is used for modifying the Bluetooth serial port configuration information of the target computing stick according to a preset serial port protocol to obtain a virtual Bluetooth serial port corresponding to the target computing stick;
the serial port opening module is used for configuring the service information of the virtual Bluetooth serial port according to a preset transmission protocol so as to open the serial port service function of the virtual Bluetooth serial port;
and the information configuration module is used for configuring the Bluetooth equipment information of the target computing stick so as to enable the target Bluetooth equipment to establish a target Bluetooth serial port according to the Bluetooth equipment information and connect the target Bluetooth serial port with the virtual Bluetooth serial port.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the information interaction method as claimed in any one of claims 1-4, or the bluetooth serial port configuration method as claimed in claim 5, when the programs are executed by the one or more processors.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the information interaction method according to any one of claims 1 to 4, or the bluetooth serial port configuration method according to claim 5.
CN202110670734.0A 2021-06-17 2021-06-17 Information interaction and serial port configuration method, device, equipment and medium Pending CN113326223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110670734.0A CN113326223A (en) 2021-06-17 2021-06-17 Information interaction and serial port configuration method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110670734.0A CN113326223A (en) 2021-06-17 2021-06-17 Information interaction and serial port configuration method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113326223A true CN113326223A (en) 2021-08-31

Family

ID=77423607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110670734.0A Pending CN113326223A (en) 2021-06-17 2021-06-17 Information interaction and serial port configuration method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113326223A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089761A (en) * 2021-11-22 2022-02-25 江苏科技大学 System and method for controlling pilotage follower multi-unmanned ship formation based on ROS

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114089761A (en) * 2021-11-22 2022-02-25 江苏科技大学 System and method for controlling pilotage follower multi-unmanned ship formation based on ROS

Similar Documents

Publication Publication Date Title
CN107493344B (en) Method and system for Web access to Docker container
EP3132621B1 (en) Mobile terminal control method, apparatus and system
JP2009253811A (en) Terminal device, network connection method, and program
CN111866160B (en) Multi-machine control method, device, equipment and storage medium
CN103346952B (en) A kind of method and device adding group
CN112583867B (en) Sharing method and device of intelligent household electrical appliance, electronic equipment and medium
CN105550109A (en) Equipment debugging method and electronic equipment
CN112583815B (en) Operation instruction management method and device
KR20160089747A (en) System and method of providing embedded software development environment for IoT device
CN108733403B (en) BIOS setting method and device
CN110059472A (en) Menu authority configuring method, device, equipment and readable storage medium storing program for executing
CN102932791A (en) Method for collaboratively processing information through WIFI wireless network between smart phone and computer
CN113326223A (en) Information interaction and serial port configuration method, device, equipment and medium
CN204989857U (en) Remote control device based on pioneer robot
CN101719991A (en) video matrix protocol converter
CN111143017B (en) Cloud operation system interaction processing method, client and cloud operation system
CN111461718A (en) Access method, device and system of block chain node
CN107770219A (en) A kind of sharing method, gateway server and the system of form window
CN110636482A (en) Switch maintenance method, device, switch, terminal and readable storage medium
CN110971708B (en) Android and Ubuntu system information transmission method, system, device and medium
US9280358B1 (en) Configuring a computer for using mobile devices as input and output devices
CN114491956A (en) Simulation model design system, method, electronic device, and storage medium
CN116257427A (en) Heterogeneous test method, heterogeneous test system, heterogeneous test equipment and heterogeneous test storage medium for federal learning task
CN112559472A (en) File transmission method and device, computer equipment and storage medium
US20210334120A1 (en) Computer Back Control System and 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