CN108491339A - A kind of signal processing method and electronic equipment - Google Patents

A kind of signal processing method and electronic equipment Download PDF

Info

Publication number
CN108491339A
CN108491339A CN201810265930.8A CN201810265930A CN108491339A CN 108491339 A CN108491339 A CN 108491339A CN 201810265930 A CN201810265930 A CN 201810265930A CN 108491339 A CN108491339 A CN 108491339A
Authority
CN
China
Prior art keywords
signal
electronic device
interface
target interface
electronic equipment
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.)
Granted
Application number
CN201810265930.8A
Other languages
Chinese (zh)
Other versions
CN108491339B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810265930.8A priority Critical patent/CN108491339B/en
Publication of CN108491339A publication Critical patent/CN108491339A/en
Application granted granted Critical
Publication of CN108491339B publication Critical patent/CN108491339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • 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/382Information transfer, e.g. on bus using universal interface adapter

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a kind of signal processing methods, are applied to the first electronic equipment, and the support of the first electronic equipment is connected with the second electronic equipment, and the first electronic equipment includes the first memory interface;The method includes:By the first memory interface, the first signal transmitted between the first electronic equipment and the second electronic equipment is obtained;According to the first signal transformation rule, the first signal is converted to the second signal that the target interface of the receiving device of the first signal can identify;Second signal is transmitted to target interface by the first memory interface.The invention also discloses a kind of electronic equipment.

Description

Signal processing method and electronic equipment
Technical Field
The present invention relates to an electronic device interface expansion technology, and in particular, to a signal processing method and an electronic device.
Background
The existing electronic equipment reduces the number of interfaces provided for a user while compressing the size of the equipment, and when the user needs to use various external equipment, the number of the interfaces of the existing electronic equipment needs to be expanded through the electronic equipment with an expansion function. When electronic devices with extended functions are used, signal conversion between different devices needs to be implemented so that the electronic devices normally recognize respective corresponding signals.
Disclosure of Invention
Embodiments of the present invention provide a signal processing method and an electronic device, which can ensure that a main electronic device in an electronic device system is normally used, and at the same time, realize the use of an electronic device with an extended function, thereby increasing the number of different interfaces of the electronic device system.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a signal processing method, which is applied to first electronic equipment, wherein the first electronic equipment supports connection with second electronic equipment, and comprises a first storage interface;
the method comprises the following steps:
acquiring a first signal transmitted between the first electronic device and the second electronic device through the first storage interface;
converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule;
transmitting the second signal to the target interface through the first storage interface.
In the foregoing solution, the converting, according to a first signal conversion rule, the first signal into a second signal that can be recognized by a target interface of a receiving device of the first signal includes:
when the target interface is an interface of the second electronic device for accessing the first electronic device,
acquiring type information of the target interface of the second electronic equipment;
and converting the first signal sent by the first electronic equipment to the second electronic equipment into a signal which can be identified by the target interface of the second electronic equipment based on the type information of the target interface of the second electronic equipment.
In the above scheme, the first signal is a PCIE signal.
In the above solution, the target interface includes at least one of:
a Universal Serial Bus (USB) transmission interface of the second electronic equipment;
a Local Area Network (LAN) transmission interface of the second electronic device;
an asynchronous transmission standard RS232 transmission interface of the second electronic device;
and the digital input/output DIO transmission interface of the second electronic equipment.
In the foregoing solution, the converting, according to a first signal conversion rule, the first signal into a second signal that can be recognized by a target interface of a receiving device of the first signal includes:
when the target interface is an interface for the second electronic device to access in the first electronic device,
acquiring type information of a target interface of the first electronic equipment;
and converting the signal of the second electronic equipment into a signal which can be identified by the target interface of the first electronic equipment based on the type information of the target interface of the first electronic equipment.
In the above scheme, the method further comprises:
when the target interface is an interface of the first electronic device for the second electronic device to access and the second signal is transmitted to the target interface,
and sending the second signal to a third device accessing the second electronic device via a target interface of the second electronic device, wherein the second signal is used for controlling the third device accessing the second electronic device.
In the foregoing solution, the first electronic device includes: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment;
the first signal is converted into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; transmitting the second signal to the target interface through the first storage interface, including:
receiving, by the expansion device, a first signal converted by the second storage interface according to a second rule, where the first signal before conversion is received by the expansion device from the second electronic device through the first storage interface; the second rule represents that the transmission direction of the signal is that the second electronic equipment sends the signal to the first electronic equipment;
or,
and sending the first signal from the host to the expansion device through the second storage interface, wherein the sent first signal is used for being converted by the expansion device through the first conversion rule, and sending the converted first signal to the second electronic device through the first storage interface.
In the above scheme, the method further comprises:
when the process of converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal fails, sending first prompt information;
the first prompt message is used for representing that the first signal conversion process fails.
An embodiment of the present invention further provides a first electronic device, where the electronic device includes:
the first storage interface is used for connecting the first electronic equipment with second electronic equipment;
the first storage interface is used for acquiring a first signal transmitted between the first electronic device and the second electronic device;
the signal processing module is used for converting the first signal into a second signal which can be identified by a target interface of the receiving equipment of the first signal according to a first signal conversion rule;
and the signal transmission module is used for transmitting the second signal to the target interface through the first storage interface.
In the above-mentioned scheme, the first step of the method,
the signal processing module is used for acquiring the type information of the target interface of the second electronic equipment;
the signal processing module is configured to convert the first signal sent by the first electronic device to the second electronic device into a signal that can be identified by a target interface of the second electronic device based on the type information of the target interface of the second electronic device.
In the above scheme, the first signal is a PCIE signal.
In the above solution, the target interface includes at least one of:
a Universal Serial Bus (USB) transmission interface of the second electronic equipment;
a Local Area Network (LAN) transmission interface of the second electronic device;
an asynchronous transmission standard RS232 transmission interface of the second electronic device;
and the digital input/output DIO transmission interface of the second electronic equipment.
In the above-mentioned scheme, the first step of the method,
the signal processing module is used for acquiring type information of a target interface of the first electronic equipment;
the signal processing module is configured to convert the signal of the second electronic device into a signal that can be recognized by the target interface of the first electronic device based on the type information of the target interface of the first electronic device.
In the above-mentioned scheme, the first step of the method,
the signal transmission module is configured to send the second signal to a third device accessing the second electronic device via a target interface of the second electronic device, where the second signal is used to control the third device accessing the second electronic device.
In the foregoing solution, the first electronic device includes: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment;
the signal transmission module is configured to receive, through the second storage interface, a first signal converted by the expansion device according to a second rule, where the first signal before conversion is received by the expansion device from the second electronic device through the first storage interface;
the signal transmission module is configured to send the first signal from the host to the expansion device through the second storage interface, where the sent first signal is used for the expansion device to perform conversion through the first conversion rule;
the signal transmission module is configured to send the converted first signal to the second electronic device through the first storage interface.
In the above solution, the electronic device further includes:
the information prompting module is used for sending out first prompting information when the process of converting the first signal into a second signal which can be identified by a target interface of the receiving equipment of the first signal fails;
the first prompt message is used for representing that the first signal conversion process fails.
An embodiment of the present invention further provides a first electronic device, where the first electronic device includes:
a memory for storing executable instructions;
a processor, configured to execute the executable instructions stored in the memory, to:
acquiring a first signal transmitted between the first electronic device and the second electronic device through the first storage interface;
converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule;
transmitting the second signal to the target interface through the first storage interface.
In the embodiment of the invention, the acquired first signal is converted into the second signal and is transmitted to the target interface, so that the normal communication between the first electronic equipment and the second electronic equipment is ensured, and the number of the available external interfaces of the first electronic equipment can be increased through the second signal transmitted by the target interface.
Drawings
Fig. 1 is a schematic flow chart of an alternative signal processing method according to an embodiment of the present invention;
fig. 2 is an alternative structural schematic diagram of a first electronic device according to an embodiment of the present invention;
fig. 3A is an alternative structural schematic diagram of a first electronic device and a second electronic device according to an embodiment of the present invention;
fig. 3B is an alternative structural schematic diagram of the first storage interface in the first electronic device according to the embodiment of the present invention;
fig. 3C is an alternative structural schematic diagram of the first storage interface in the first electronic device according to the embodiment of the present invention;
fig. 3D is an alternative structural schematic diagram of the first storage interface in the first electronic device according to the embodiment of the present invention;
fig. 3E is an alternative structural schematic diagram of the first electronic device and the second electronic device according to the embodiment of the present invention;
fig. 4 is an alternative structural schematic diagram of the first electronic device according to the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is an optional flowchart of a signal processing method according to an embodiment of the present invention, and as shown in fig. 1, an optional flowchart of a signal processing method according to an embodiment of the present invention explains the steps shown.
The signal processing method shown in fig. 1 is applied to a first electronic device, where the first electronic device supports connection with a second electronic device, and the first electronic device includes a first storage interface.
Step 101: and acquiring a first signal transmitted between the first electronic device and the second electronic device through the first storage interface.
Step 102: according to a first signal conversion rule, the first signal is converted into a second signal which can be recognized by a target interface of a receiving device of the first signal.
Step 103: transmitting the second signal to the target interface through the first storage interface.
In an embodiment of the present invention, the converting the first signal into a second signal that can be recognized by a target interface of a receiving device of the first signal according to a first signal conversion rule includes: when the target interface is an interface used for accessing the first electronic equipment in the second electronic equipment, acquiring type information of the target interface of the second electronic equipment; and converting the first signal sent by the first electronic equipment to the second electronic equipment into a signal which can be identified by the target interface of the second electronic equipment based on the type information of the target interface of the second electronic equipment. Through the technical scheme shown in this embodiment, the type information of the target interface can be acquired through the target interface, so that the first signal sent by the first electronic device to the second electronic device is converted into a signal which can be identified by the target interface of the second electronic device, so that the first electronic device and the second electronic device are connected, and the second electronic device can identify the signal sent by the first electronic device, so as to further respond to the identified signal to perform corresponding operation.
In an embodiment of the present invention, the first signal is a (PCIE) signal. Through the technical scheme shown in this embodiment, when the first signal is a PCIE signal, since the PCIE belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, the connected devices allocate an independent channel bandwidth and do not share a bus bandwidth, and mainly support functions such as active power management, error reporting, end-to-end reliable transmission, hot plug, quality of service (QOS), and the like. Further, when PCI-E3.0 is adopted, the technical solution shown in this embodiment is more suitable for I/O architectures of workstations, servers, communication platforms, and embedded devices; when PCI-E4.0 is adopted, the technical solution shown in this embodiment is more suitable for application scenarios requiring gigabit transmission speed required by mobile data.
In one embodiment of the invention, the target interface comprises at least one of: a USB transmission interface of the second electronic device; a LAN transmission interface of the second electronic device; an RS232 transmission interface of the second electronic device; a DIO transport interface of the second electronic device. Through the technical scheme shown in the embodiment, as the number and the types of the target interfaces can be combined at will, multiple choices are provided for the expansion of the number and the types of the interfaces of the first electronic device, so that the number and the types of the interfaces which can be used by the first electronic device are effectively increased on the basis that the original interface is used by the first electronic device without expanding the volume of the first electronic device, thereby ensuring the small volume and the usability of the first electronic device and enhancing the use experience of a user.
In an embodiment of the present invention, the converting the first signal into a second signal that can be recognized by a target interface of a receiving device of the first signal according to a first signal conversion rule includes: when the target interface is an interface used for being accessed by the second electronic equipment in the first electronic equipment, acquiring type information of the target interface of the first electronic equipment; and converting the signal of the second electronic equipment into a signal which can be identified by the target interface of the first electronic equipment based on the type information of the target interface of the first electronic equipment. Through the technical scheme shown in this embodiment, the type information of the target interface can be acquired through the target interface, so as to further convert the first signal sent by the second electronic device to the first electronic device into a signal that can be recognized by the target interface of the first electronic device, so as to establish a connection between the first electronic device and the second electronic device, and enable the first electronic device to recognize the signal sent by the second electronic device, so as to further respond to the recognized signal to perform a corresponding operation. The first electronic device and the second electronic device are connected and signal interaction is achieved, and therefore the number of interfaces of the first electronic device is increased.
In an embodiment of the present invention, when the target interface is an interface of the first electronic device for accessing by the second electronic device, and the second signal is transmitted to the target interface, the second signal is sent to a third device accessing the second electronic device via the target interface of the second electronic device, and the second signal is used for controlling the third device accessing the second electronic device. Through the technical solution shown in this embodiment, when the second electronic device has access to a third electronic device, the third access device can be controlled by a second signal through a target interface of the second electronic device. Therefore, on the basis that the size of the first electronic device is not increased, the available interfaces of the first electronic device are increased by accessing the second electronic device, the third electronic device accessed to the second electronic device is controlled by the second signal, the number and/or the types of the available interfaces are further increased, and further, when the third electronic device is a device with an information storage function, the first electronic device can read the data stored in the third electronic device and can store the data information of the first electronic device in the third electronic device so as to realize data backup, and the safety of the data in the first electronic device is ensured.
In one embodiment of the present invention, the first electronic device includes: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment; the first signal is converted into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; transmitting the second signal to the target interface through the first storage interface, including: and receiving a first signal converted by the extension equipment according to a second rule through the second storage interface, wherein the first signal before conversion is received by the extension equipment from the second electronic equipment through the first storage interface. According to the technical scheme of the embodiment, the first electronic device can be composed of a host and an expansion device and is connected through a second storage interface, in the process that the second electronic device and the first electronic device are connected and perform signal transmission, a first signal is transmitted to the first electronic device by the second electronic device, and the second storage interface receives the first signal converted by the expansion device according to a second rule and transmits the first signal to the first electronic device, so that the type of the expansion device can be changed or the number of the expansion device can be increased according to different use environments under the condition that the size of the host is not increased, and different application environments can be adapted better; meanwhile, the first electronic device is formed by connecting the host and the expansion device through the second storage interface, so that the technical scheme shown in the embodiment can more flexibly set the relative positions of the host and the expansion device in the case of a use environment with a small use space.
In one embodiment of the present invention, the first electronic device includes: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment; the first signal is converted into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; transmitting the second signal to the target interface through the first storage interface, including: and sending the first signal from the host to the expansion device through the second storage interface, wherein the sent first signal is used for being converted by the expansion device through the first conversion rule, and sending the converted first signal to the second electronic device through the first storage interface. According to the technical scheme of the embodiment, the first electronic device can be composed of a host and an expansion device and is connected through a second storage interface, in the process that the second electronic device is connected with the first electronic device and performs signal transmission, a first signal is transmitted to the second electronic device by the first electronic device, and the second storage interface receives the first signal converted by the expansion device according to a second rule and transmits the first signal to the second electronic device, so that the type of the expansion device can be changed or the number of the expansion device can be increased according to different use environments under the condition that the size of the host is not increased, and different application environments can be adapted better; meanwhile, the first electronic device is formed by connecting the host and the expansion device through the second storage interface, so that the technical scheme shown in the embodiment can more flexibly set the relative positions of the host and the expansion device in the case of a use environment with a small use space.
In one embodiment of the invention, when the process of converting the first signal into the second signal which can be identified by the target interface of the receiving equipment of the first signal fails, first prompt information is sent out; the first prompt message is used for representing that the first signal conversion process fails. Through the technical scheme shown in this embodiment, when the process of converting the first signal into the second signal which can be identified by the target interface of the receiving device of the first signal fails, the user can be prompted through the first prompt message, so that the user can further adjust in time.
Fig. 2 is an optional structural schematic diagram of a first electronic device according to an embodiment of the present invention, and as shown in fig. 2, an optional structural diagram of a first electronic device according to an embodiment of the present invention is provided, and the following describes modules related to fig. 2 respectively.
A first storage interface 201, configured to connect the first electronic device with a second electronic device;
the first storage interface 201 is configured to obtain a first signal transmitted between the first electronic device and the second electronic device;
a signal processing module 202, configured to convert, according to a first signal conversion rule, the first signal into a second signal that can be recognized by a target interface of a receiving device of the first signal;
a signal transmission module 203, configured to transmit the second signal to the target interface through the first storage interface.
In an embodiment of the present invention, the signal processing module 202 is configured to obtain type information of the target interface of the second electronic device; the signal processing module is configured to convert the first signal sent by the first electronic device to the second electronic device into a signal that can be identified by a target interface of the second electronic device based on the type information of the target interface of the second electronic device. Through the technical scheme shown in this embodiment, the type information of the target interface can be acquired through the target interface, so that the first signal sent by the first electronic device to the second electronic device is converted into a signal which can be identified by the target interface of the second electronic device, so that the first electronic device and the second electronic device are connected, and the second electronic device can identify the signal sent by the first electronic device, so as to further respond to the identified signal to perform corresponding operation.
In an embodiment of the present invention, the first signal is a PCIE signal. Through the technical scheme shown in this embodiment, when the first signal is a PCIE signal, since the PCIE belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, the connected devices allocate an independent channel bandwidth and do not share a bus bandwidth, and mainly support functions such as active power management, error reporting, end-to-end reliable transmission, hot plug, quality of service (QOS), and the like. Further, when PCI-E3.0 is adopted, the technical solution shown in this embodiment is more suitable for I/O architectures of workstations, servers, communication platforms, and embedded devices; when PCI-E4.0 is adopted, the technical solution shown in this embodiment is more suitable for application scenarios requiring gigabit transmission speed required by mobile data.
In one embodiment of the invention, the target interface comprises at least one of: a USB transmission interface of the second electronic device; a LAN transmission interface of the second electronic device; an RS232 transmission interface of the second electronic device; a DIO transport interface of the second electronic device. Through the technical scheme shown in the embodiment, as the number and the types of the target interfaces can be combined at will, multiple choices are provided for the expansion of the number and the types of the interfaces of the first electronic device, so that the number and the types of the interfaces which can be used by the first electronic device are effectively increased on the basis that the original interface is used by the first electronic device without expanding the volume of the first electronic device, thereby ensuring the small volume and the usability of the first electronic device and enhancing the use experience of a user.
In an embodiment of the present invention, the signal processing module is configured to obtain type information of a target interface of the first electronic device; the signal processing module is configured to convert the signal of the second electronic device into a signal that can be recognized by the target interface of the first electronic device based on the type information of the target interface of the first electronic device. Through the technical scheme shown in this embodiment, the type information of the target interface can be acquired through the target interface, so as to further convert the first signal sent by the second electronic device to the first electronic device into a signal that can be recognized by the target interface of the first electronic device, so as to establish a connection between the first electronic device and the second electronic device, and enable the first electronic device to recognize the signal sent by the second electronic device, so as to further respond to the recognized signal to perform a corresponding operation. The first electronic device and the second electronic device are connected and signal interaction is achieved, and therefore the number of interfaces of the first electronic device is increased.
In an embodiment of the present invention, the signal transmission module is configured to send the second signal to a third device accessing the second electronic device via a target interface of the second electronic device, where the second signal is used to control the third device accessing the second electronic device. Through the technical solution shown in this embodiment, when the second electronic device has access to a third electronic device, the third access device can be controlled by a second signal through a target interface of the second electronic device. Therefore, on the basis that the size of the first electronic device is not increased, the available interfaces of the first electronic device are increased by accessing the second electronic device, the third electronic device accessed to the second electronic device is controlled by the second signal, the number and/or the types of the available interfaces are further increased, and further, when the third electronic device is a device with an information storage function, the first electronic device can read the data stored in the third electronic device and can store the data information of the first electronic device in the third electronic device so as to realize data backup, and the safety of the data in the first electronic device is ensured.
In one embodiment of the present invention, the first electronic device includes: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment; the signal transmission module is configured to receive, through the second storage interface, the first signal converted by the expansion device according to the second rule, where the first signal before conversion is received by the expansion device from the second electronic device through the first storage interface. According to the technical scheme of the embodiment, the first electronic device can be composed of a host and an expansion device and is connected through a second storage interface, in the process that the second electronic device and the first electronic device are connected and perform signal transmission, a first signal is transmitted to the first electronic device by the second electronic device, and the second storage interface receives the first signal converted by the expansion device according to a second rule and transmits the first signal to the first electronic device, so that the type of the expansion device can be changed or the number of the expansion device can be increased according to different use environments under the condition that the size of the host is not increased, and different application environments can be adapted better; meanwhile, the first electronic device is formed by connecting the host and the expansion device through the second storage interface, so that the technical scheme shown in the embodiment can more flexibly set the relative positions of the host and the expansion device in the case of a use environment with a small use space.
In one embodiment of the present invention, the first electronic device includes: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment; the signal transmission module is configured to send the first signal from the host to the expansion device through the second storage interface, where the sent first signal is used for the expansion device to perform conversion through the first conversion rule; the signal transmission module is configured to send the converted first signal to the second electronic device through the first storage interface. According to the technical scheme of the embodiment, the first electronic device can be composed of a host and an expansion device and is connected through a second storage interface, in the process that the second electronic device is connected with the first electronic device and performs signal transmission, a first signal is transmitted to the second electronic device by the first electronic device, and the second storage interface receives the first signal converted by the expansion device according to a second rule and transmits the first signal to the second electronic device, so that the type of the expansion device can be changed or the number of the expansion device can be increased according to different use environments under the condition that the size of the host is not increased, and different application environments can be adapted better; meanwhile, the first electronic device is formed by connecting the host and the expansion device through the second storage interface, so that the technical scheme shown in the embodiment can more flexibly set the relative positions of the host and the expansion device in the case of a use environment with a small use space.
In one embodiment of the present invention, the electronic device further includes: the information prompting module is used for sending out first prompting information when the process of converting the first signal into a second signal which can be identified by a target interface of the receiving equipment of the first signal fails; the first prompt message is used for representing that the first signal conversion process fails. Through the technical scheme shown in this embodiment, when the process of converting the first signal into the second signal which can be identified by the target interface of the receiving device of the first signal fails, the user can be prompted through the first prompt message, so that the user can further adjust in time.
Fig. 3A is an alternative schematic structural diagram of a first electronic device and a second electronic device according to an embodiment of the present invention, and as shown in fig. 3A, an alternative structural diagram of a first electronic device and a second electronic device according to an embodiment of the present invention is described below with reference to the electronic devices in fig. 3A, respectively.
The first electronic device 301, the second electronic device 302, wherein the first storage interface is disposed in the first electronic device 301.
The first electronic device 301 is configured to acquire, through the first storage interface, a first signal transmitted between the first electronic device 301 and the second electronic device 302 when the first electronic device 301 or the second electronic device 302 is connected; converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; transmitting the second signal to the target interface through the first storage interface.
In an embodiment of the present invention, the converting the first signal into a second signal that can be recognized by a target interface of a receiving device of the first signal according to a first signal conversion rule includes: when the target interface is an interface used for accessing the first electronic equipment in the second electronic equipment, acquiring type information of the target interface of the second electronic equipment; and converting the first signal sent by the first electronic equipment to the second electronic equipment into a signal which can be identified by the target interface of the second electronic equipment based on the type information of the target interface of the second electronic equipment. Through the technical scheme shown in this embodiment, the type information of the target interface can be acquired through the target interface, so that the first signal sent by the first electronic device to the second electronic device is converted into a signal which can be identified by the target interface of the second electronic device, so that the first electronic device and the second electronic device are connected, and the second electronic device can identify the signal sent by the first electronic device, so as to further respond to the identified signal to perform corresponding operation.
Fig. 3B is an alternative structural diagram of the first storage interfaces in the first electronic device according to an embodiment of the present invention, where each first storage interface has a fixed vendor identifier (vidsupplier ID) and a Product identifier (PID Product ID). Through the VID, PID and ID corresponding to the combination shown in table 1, the related information of each first storage interface can be accurately known.
In an embodiment of the present invention, the first signal is a pcie (peripheral component interconnect) signal. Through the technical scheme shown in this embodiment, when the first signal is a PCIE signal, since the PCIE belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, the connected devices allocate an independent channel bandwidth and do not share a bus bandwidth, and mainly support functions such as active power management, error reporting, end-to-end reliable transmission, hot plug, quality of service (QOS), and the like. Further, when PCI-E3.0 is adopted, the technical solution shown in this embodiment is more suitable for I/O architectures of workstations, servers, communication platforms, and embedded devices; when PCI-E4.0 is adopted, the technical solution shown in this embodiment is more suitable for application scenarios requiring gigabit transmission speed required by mobile data.
In one embodiment of the invention, the target interface comprises at least one of: a USB transmission interface of the second electronic device; a LAN transmission interface of the second electronic device; an RS232 transmission interface of the second electronic device; a DIO transport interface of the second electronic device. Through the technical scheme shown in the embodiment, as the number and the types of the target interfaces can be combined at will, multiple choices are provided for the expansion of the number and the types of the interfaces of the first electronic device, so that the number and the types of the interfaces which can be used by the first electronic device are effectively increased on the basis that the original interface is used by the first electronic device without expanding the volume of the first electronic device, thereby ensuring the small volume and the usability of the first electronic device and enhancing the use experience of a user.
VID PID Custom ID Power consumption
VID_17EF PID_60A9 Mod0001 Power PCB1:72W
VID_1701 PID_60B3 Mod0002 Lan1W
VID_1702 PID_60C4 Mod0003 RS232:2W
VID_1703 PID_60D3 Mod0004 DIO:10W
VID_17 PID_60A9 Mod0001 PowerPCB2:36W
VID_1701 PID_60B3 Mod0002 Lan2:2W
VID_1702 PID_60C4 Mod0003 RS232 2:3W
VID_17XX PID_60XX Mod00XX DIO 2:3W
TABLE 1
Fig. 3B is an alternative structural schematic diagram of the first storage interface in the first electronic device according to the embodiment of the present invention, and as shown in fig. 3B, an M2.2280 interface may be disposed in the first electronic device to connect to the second electronic device through the M2.2280 interface.
Fig. 3C is an alternative structural schematic diagram of the first storage interface in the first electronic device according to the embodiment of the present invention, and the interface shown in fig. 3B can be converted into a standard interface of the docking station through the structure of the interface in the first electronic device shown in fig. 3C.
Fig. 3D is an alternative structural schematic diagram of the first storage interface in the first electronic device according to the embodiment of the present invention; the first storage interface shown in fig. 3B can be converted into a standard interface of the docking station by the structure of the first storage interface in the first electronic device shown in fig. 3D.
Fig. 3E is an optional structural schematic diagram of a first electronic device and a second electronic device according to an embodiment of the present invention, and an optional structural diagram of a first electronic device and a second electronic device according to an embodiment of the present invention are described below with reference to modules in fig. 3E, respectively.
The system comprises a first electronic device 301 and a second electronic device 302, wherein a first storage interface is arranged in the first electronic device 301;
the first electronic device 301 is configured to acquire, through the first storage interface, a first signal transmitted between the first electronic device 301 and the second electronic device 302 when the first electronic device 301 or the second electronic device 302 is connected; converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; transmitting the second signal to the target interface through the first storage interface. In the technical solution shown in this embodiment, the first electronic device 301 is a notebook computer, the second electronic device 302 is a docking station, and the first storage interface is a data line with an information transmission function.
Fig. 4 is an alternative structure diagram of the first electronic device according to the embodiment of the present invention, and as shown in fig. 4, the first electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, an information transceiver device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc. with signal processing function. The first electronic device 400 shown in fig. 4 includes: at least one processor 401, memory 402, at least one network interface 404, and a user interface 403. The various components in the first electronic device 400 are coupled together by a bus system 405. It is understood that the bus system 405 is used to enable connection communication between these components. The bus system 405 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 405 in fig. 4.
The user interface 403 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 402 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 402 described in connection with embodiments of the invention is intended to comprise these and any other suitable types of memory.
Memory 402 in embodiments of the present invention includes, but is not limited to: the ternary content addressable memory, static random access memory, and the like, may be capable of storing a wide variety of data such as various types of signal information, signal conversion rules, device codes, and the like to support the operation of the first electronic device 400. Examples of such data include: any computer program for operating on the first electronic device 400, such as an operating system 4021 and an application 4022, various types of signal information, a signal conversion rule, device codes, and the like. The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is configured to implement various basic services and process hardware-based tasks. The application 4022 may include various applications, such as a client with a signal processing function, an application, or the like, for acquiring a first signal transmitted between the first electronic device and the second electronic device through the first storage interface; converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; and transmitting the second signal to various application services including the target interface through the first storage interface. A program for implementing the signal processing method according to the embodiment of the present invention may be included in the application 4022.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the method may be implemented by integrated logic circuits of hardware or operations in the form of software in the processor 401. The Processor 401 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 401 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 402, and the processor 401 reads the information in the memory 402 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the first electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the signal processing method.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as a memory 402, comprising a computer program, which is executable by a processor 401 of the first electronic device 400 to perform the steps of the aforementioned method. The computer readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flashmemory, magnetic surface memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs:
acquiring a first signal transmitted between the first electronic device and the second electronic device through the first storage interface;
converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule;
transmitting the second signal to the target interface through the first storage interface.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, embodiments of the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including magnetic disk storage, optical storage, and the like) having computer-usable program code embodied in the medium.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program operations. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the operations performed by the processor of the computer or other programmable data processing apparatus produce means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program operations may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the operations stored in the computer-readable memory produce an article of manufacture including operating means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program operations may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the operations executed on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (10)

1. The signal processing method is applied to first electronic equipment, wherein the first electronic equipment supports connection with second electronic equipment, and the first electronic equipment comprises a first storage interface;
the method comprises the following steps:
acquiring a first signal transmitted between the first electronic device and the second electronic device through the first storage interface;
converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule;
transmitting the second signal to the target interface through the first storage interface.
2. The method of claim 1, wherein converting the first signal into a second signal recognizable by a target interface of a receiving device of the first signal according to a first signal conversion rule comprises:
when the target interface is an interface of the second electronic device for accessing the first electronic device,
acquiring type information of the target interface of the second electronic equipment;
and converting the first signal sent by the first electronic equipment to the second electronic equipment into a signal which can be identified by the target interface of the second electronic equipment based on the type information of the target interface of the second electronic equipment.
3. The method of claim 1, wherein the first signal is a high speed serial computer expansion bus standard PCIE signal.
4. The method of claim 2, wherein the target interface comprises at least one of:
a Universal Serial Bus (USB) transmission interface of the second electronic equipment;
a Local Area Network (LAN) transmission interface of the second electronic device;
an asynchronous transmission standard RS232 transmission interface of the second electronic device;
and the digital input/output DIO transmission interface of the second electronic equipment.
5. The method of claim 1, wherein converting the first signal into a second signal recognizable by a target interface of a receiving device of the first signal according to a first signal conversion rule comprises:
when the target interface is an interface for the second electronic device to access in the first electronic device,
acquiring type information of a target interface of the first electronic equipment;
and converting the signal of the second electronic equipment into a signal which can be identified by the target interface of the first electronic equipment based on the type information of the target interface of the first electronic equipment.
6. The method of claim 1, further comprising:
when the target interface is an interface of the first electronic device for the second electronic device to access and the second signal is transmitted to the target interface,
sending the second signal to a third device accessing the second electronic device via a target interface of the second electronic device, where the second signal is used to control the third device accessing the second electronic device.
7. The method of claim 2, wherein the first electronic device comprises: the host comprises a second storage interface, the second storage interface is used for the expansion equipment to access the host, and the first storage interface is used for the second electronic equipment to access the expansion equipment;
the first signal is converted into a second signal which can be identified by a target interface of receiving equipment of the first signal according to a first signal conversion rule; transmitting the second signal to the target interface through the first storage interface, including:
receiving, by the expansion device, a first signal converted by the second storage interface according to a second rule, where the first signal before conversion is received by the expansion device from the second electronic device through the first storage interface;
or,
and sending the first signal from the host to the expansion device through the second storage interface, wherein the sent first signal is used for being converted by the expansion device through the first conversion rule, and sending the converted first signal to the second electronic device through the first storage interface.
8. The method of claim 1, further comprising:
when the process of converting the first signal into a second signal which can be identified by a target interface of receiving equipment of the first signal fails, sending first prompt information;
the first prompt message is used for representing that the first signal conversion process fails.
9. A first electronic device, wherein the first electronic device comprises:
the first storage interface is used for connecting the first electronic equipment with second electronic equipment;
the first storage interface is used for acquiring a first signal transmitted between the first electronic device and the second electronic device;
the signal processing module is used for converting the first signal into a second signal which can be identified by a target interface of the receiving equipment of the first signal according to a first signal conversion rule;
and the signal transmission module is used for transmitting the second signal to the target interface through the first storage interface.
10. A first electronic device, wherein the first electronic device comprises:
a memory for storing executable instructions;
a processor for executing the executable instructions stored by the memory to perform the signal processing method of claims 1 to 8.
CN201810265930.8A 2018-03-28 2018-03-28 Signal processing method and electronic equipment Active CN108491339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810265930.8A CN108491339B (en) 2018-03-28 2018-03-28 Signal processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810265930.8A CN108491339B (en) 2018-03-28 2018-03-28 Signal processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN108491339A true CN108491339A (en) 2018-09-04
CN108491339B CN108491339B (en) 2021-09-14

Family

ID=63316675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810265930.8A Active CN108491339B (en) 2018-03-28 2018-03-28 Signal processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN108491339B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719428A (en) * 2004-07-08 2006-01-11 华为技术有限公司 Interface device
CN1992750A (en) * 2005-11-16 2007-07-04 三星电子株式会社 Interface device, interface cable apparatus and communication system compriging the same
CN100478864C (en) * 2004-08-27 2009-04-15 薛萍 Method and device for connecting hardware on a handhold electronic device
US20100228993A1 (en) * 2009-03-06 2010-09-09 Nec Electronics Corporation USB interface apparatus and USB packet transmitting/receiving method
CN103441393A (en) * 2013-08-23 2013-12-11 深圳一电科技有限公司 Electronic device and multifunctional interface and communication system thereof
CN105573926A (en) * 2015-12-11 2016-05-11 联想(北京)有限公司 Information processing method and electronic devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719428A (en) * 2004-07-08 2006-01-11 华为技术有限公司 Interface device
CN100478864C (en) * 2004-08-27 2009-04-15 薛萍 Method and device for connecting hardware on a handhold electronic device
CN1992750A (en) * 2005-11-16 2007-07-04 三星电子株式会社 Interface device, interface cable apparatus and communication system compriging the same
US20100228993A1 (en) * 2009-03-06 2010-09-09 Nec Electronics Corporation USB interface apparatus and USB packet transmitting/receiving method
CN103441393A (en) * 2013-08-23 2013-12-11 深圳一电科技有限公司 Electronic device and multifunctional interface and communication system thereof
CN105573926A (en) * 2015-12-11 2016-05-11 联想(北京)有限公司 Information processing method and electronic devices

Also Published As

Publication number Publication date
CN108491339B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
US20160364346A1 (en) DATA ACCESSING METHOD AND PCIe STORAGE DEVICE
US9983930B2 (en) Systems and methods for implementing error correcting code regions in a memory
CN107391419B (en) Support general sequence busbar concentrator of many host computers and automobile-used host computer
US10614011B2 (en) Apparatus, method, and electronic device for implementing solid-state drive data interaction
CN115408707B (en) Data transmission method, device and system, electronic equipment and storage medium
CN105335309A (en) Data transmission method and computer
CN106407145A (en) An interface access method and system and a memory card
CN111984557A (en) Data processing method, device and system
CN103309784A (en) Test system and test method
CN109684258B (en) Signal processing device and method
CN108491339B (en) Signal processing method and electronic equipment
US20130282852A1 (en) Multi-functional portable information sharing management device
CN109460379B (en) Serial port selection method and switching device
EP3373140A1 (en) Method for processing ordered broadcast and electronic device
US11012372B2 (en) Electronic apparatus and method for control thereof
CN114827268B (en) Remote debugging method and device
US20190286606A1 (en) Network-on-chip and computer system including the same
CN104765704A (en) Movable communication device and electronic device
US9977757B2 (en) Prevented inter-integrated circuit address conflict service system and method thereof
CN107402898B (en) Information processing method and electronic equipment
US10579394B2 (en) Control method and control device
JP5010471B2 (en) Data processing system
KR102656991B1 (en) Communication control system, control device, communication control method, and communication control program stored in computer-readable recording medium
CN115827284B (en) System on chip, electronic component, electronic device, and transmission processing method
US12099404B2 (en) Method for determining stripe consistency and apparatus

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