WO2019015080A1 - 一种接口切换装置及一种终端设备 - Google Patents

一种接口切换装置及一种终端设备 Download PDF

Info

Publication number
WO2019015080A1
WO2019015080A1 PCT/CN2017/102735 CN2017102735W WO2019015080A1 WO 2019015080 A1 WO2019015080 A1 WO 2019015080A1 CN 2017102735 W CN2017102735 W CN 2017102735W WO 2019015080 A1 WO2019015080 A1 WO 2019015080A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
switching
partition
driver
processor
Prior art date
Application number
PCT/CN2017/102735
Other languages
English (en)
French (fr)
Inventor
韩子英
Original Assignee
上海斐讯数据通信技术有限公司
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 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2019015080A1 publication Critical patent/WO2019015080A1/zh

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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an interface switching device and a terminal device.
  • USB Universal Serial Bus
  • PC Personal Computer
  • USB3.0 In order to improve the transmission rate of the USB interface, the technician proposed USB3.0 after the USB2.0 standard, which greatly improved the transmission rate. Therefore, USB3.0 interfaces have been added to various products. Although the USB3.0 transfer rate is about 10 times that of USB2.0, the data line reference frequency of the USB3.0 interface is 2.5GHz. When using the USB3.0 data line for high-speed transmission, electromagnetic waves are emitted outwards, thus 2.4. G's WiFi (Wireless-Fidelity) network generates interference, such as causing video jams, slow networking, and even dropped calls.
  • WiFi Wireless-Fidelity
  • USB3.0 has no effect on the 2.4G WiFi network
  • most wireless access devices are set to disable the USB3.0 interface by default. If you need to enable this function, you need to log in to the configuration page. Operation is more cumbersome; for some people who don't know much about technology, even if they don't know how to log in to the configuration page, many users don't open USB3.0, which is the interface of USB3.0, but the transmission speed is only USB2.
  • the level of 0 greatly wastes resources; even if the user turns on the USB3.0 function for high-speed transmission, it will cause video jamming and dropping.
  • the object of the present invention is to provide an interface switching device and a terminal device, which effectively solve the technical problem that the interface type switching in the terminal device is cumbersome in the prior art.
  • An interface switching device the interface switching device is connected to a universal interface in the terminal device, and the interface switching device includes:
  • the memory includes a plurality of partitions, and each of the partitions stores a driver of one interface type
  • the processor is in communication with the memory, and switches the driver in the different partition according to the received interface type switching request to implement switching of the universal interface type.
  • the switch of the common interface type is implemented by loading the driver in different partitions of the memory, and the combination of the software and the hardware realizes the switching of the common interface type by using different partitions, which is simple and convenient, and saves Resources, terminal devices can implement a variety of common interface functions without having to arrange too many common interfaces.
  • switching of different partitions is implemented by changing a starting address of the partition, and then loading drivers in different partitions to implement switching of the common interface type.
  • the start address of each partition is different, thereby switching the different partitions by changing the start address of the partition.
  • the interface switching device further includes a trigger button connected to the processor;
  • the processor switches the partition of the loading driver according to the trigger signal in the trigger button to implement switching of the common interface type.
  • the power level is switched by the hardware switch of the trigger button, which is simple and convenient, and does not need to log in to the configuration page for switching, even if the person who does not understand the technology can easily switch according to the demand and make full use of resources.
  • the method includes:
  • the processor when the trigger signal of the interface is triggered by the trigger button, the processor performs partition switching according to the order of the partitions in the memory, thereby realizing the switching of the common interface type, which is simple and convenient.
  • the method includes:
  • the processor when the user issues a trigger signal for switching the interface type through the trigger button, the processor then reads the intensity information of the current wireless signal, and switches to the corresponding partition according to the intensity information, thereby switching to the corresponding interface type.
  • the interface switching device further includes a display device connected to the processor;
  • the processor reads the intensity of the background noise of the terminal device and displays it in the display device.
  • the interface switching device further includes a display device for displaying the intensity of the background noise of the terminal device, which is convenient for the user to view, and serves as a theoretical basis for whether to switch the interface type.
  • the method includes:
  • the trigger signal of the interface type is issued by the trigger button, and the processor performs the partition switching according to the order of the partitions in the memory, thereby realizing the switching of the common interface type. ,easy and convenient.
  • the method includes:
  • the trigger signal is sent by the trigger button, and the processor then reads the intensity information of the background noise of the terminal device, and switches to the corresponding partition according to the intensity information. And switch to the corresponding interface type.
  • the invention also provides a terminal device comprising the above interface switching device.
  • the combination of the software and the hardware is adopted, and the interface type is switched at any time by the trigger button, which is simple and convenient, and the login configuration page is not required to be switched, even if the person who does not understand the technology can easily according to the demand. Switch and make the most of your resources.
  • FIG. 1 is a schematic diagram of an embodiment of an interface switching device according to the present invention.
  • FIG. 2 is a schematic diagram of another embodiment of an interface switching device according to the present invention.
  • FIG. 3 is a schematic diagram of another embodiment of an interface switching apparatus according to the present invention.
  • 100-Interface switching device 110-memory, 120-processor, 130-trigger button, 140-display device.
  • FIG. 1 is a schematic diagram of an embodiment of an interface switching apparatus according to the present invention.
  • the interface switching apparatus 100 is connected to a common interface in a terminal device.
  • the interface switching apparatus 100 includes:
  • the memory 110 includes a plurality of partitions (such as partition one, partition two, ... in the figure), each of which stores a driver of one interface type;
  • the processor 120 is communicably connected with the memory 110, according to the receiving The interface type switch request to load the driver in the different partition implements the switch of the common interface type.
  • the processor 120 implements switching of the general interface type by loading drivers in different partitions of the memory 110.
  • the switching of the driver is implemented by using different partitions.
  • the memory 110 is partitioned according to requirements, and the starting address is recorded according to the storage capacity of each partition. And the termination address; after that, the driver of each power level is written into each partition.
  • the starting address of the partition is changed to implement switching of different partitions, and then the driver in different partitions is loaded to implement switching of the common interface type, thereby implementing different interfaces in the same interface.
  • the interface type is switched, so that the functions of different interface types can be realized without arranging too many interfaces in the terminal device.
  • the interface type switching request can be sent by the user through the configuration page, or can be sent through the device management application (application), and can even be sent for periodic automatic switching configured by the user. Specifically, the user sends the information according to the actual application requirement.
  • the interface type switching request configures the interface type that needs to be switched. After receiving the interface type switching request, the processor determines the configured interface type, and then loads the driver in the corresponding partition.
  • the Nand Flash non-volatile memory is used in the interface switching device 100.
  • the Nand Flash is connected to a CPU (Central Processing Unit) through a GPIO (General Purpose Input Output) interface, and the CPU provides a stable clock frequency through a crystal oscillator.
  • the CPU Central Processing Unit
  • GPIO General Purpose Input Output
  • the CPU switches the starting address of the partition to 04000001, thereby loading the driver in the partition 2 to implement the interface type 1 to Switching of interface type 2.
  • the memory 110 may also adopt Spi Flash or the like, which is not specifically limited herein.
  • the interface type here is determined according to actual needs, such as USB2.0 interface, USB3.0 interface, video interface, and the like.
  • the interface switching device 100 includes, in addition to the foregoing memory 110 and the processor 120, The trigger button 130 connected to the processor 120; the processor 120 switches the partition of the load driver according to the trigger signal in the trigger button 130 to implement switching of the common interface type.
  • the user sends an interrupt control signal to the processor 120 through the trigger button 130, so that the processor 120 performs interface type switching according to the interrupt control signal, so that power can be performed without logging in the configuration page.
  • Switching is simple and convenient.
  • the partition of the interface type driver is further determined, and according to the partition condition of the memory 110 and the current driver. Load partitions for partition switching to achieve wireless signal power level switching. Specifically, the switching is performed in the order of the partitions, and each time a trigger signal sent by the trigger button 130 is received, the switching is performed once.
  • the Nand Flash non-volatile memory is used in the interface switching device 100.
  • the partition is divided into four partitions, and the storage capacity in each partition is 64 Mbyte.
  • the Nand Flash is connected to the CPU via a GPIO interface, and the CPU provides a stable clock frequency through the crystal oscillator.
  • the start address is switched to the partition three according to the order of the partitions.
  • the start address after restarting, loads the driver in partition three to switch the interface type.
  • the partition of the loaded driver is switched to the partition four, and the loop is repeated until The interrupt control signal is received again and no longer switches.
  • the processor 120 determines that the trigger signal sent by the user through the trigger button 130 is received, the background noise intensity of the current terminal device is read through the GPIO port, and the acquired intensity and the preset noise intensity are obtained.
  • the threshold is compared to determine the threshold interval to which it belongs; after that, it is determined whether the trigger signal sent by the user through the trigger button 130 is received; if yes, the threshold interval according to the determination is switched to the corresponding partition, wherein each partition is associated with a threshold interval;
  • the interface switching device 100 is restarted and the driver in the partition is loaded, and the general interface is switched to the corresponding interface type.
  • the memory 110 is partitioned according to requirements, and a driver of the corresponding interface type is written in each partition. Thereafter, a corresponding number of noise intensity thresholds and a relationship between the threshold interval and the partition are preset and stored in the processor 120.
  • the processor 120 receives the trigger signal of the trigger button 130, reads the current background noise intensity of the terminal device, compares it with the noise intensity threshold, determines the threshold interval to which it belongs, and then changes the start address according to the association relationship. The start address of the corresponding partition, and after the device is restarted, the driver in the corresponding partition is loaded to implement the switching of the common interface type.
  • the memory 110 includes a partition 1 and a partition 2.
  • the two partitions store drivers of different interface types.
  • the partition stores a driver of USB3.0/2.0/1.0
  • the partition has two kinds of storage.
  • the start address is switched to the start address of the partition 2, and the corresponding driver is loaded, thereby switching the universal interface. To USB2.0.
  • the memory 110 includes a partition 1 and a partition 2, and the two partitions store The driver of the same interface type, specifically, a driver that stores USB3.0/2.0/1.0, and two types of drivers that store USB2.0/1.0; in addition, two noise intensity thresholds are preset, respectively It is a noise intensity threshold 1 and a noise intensity threshold 2, and the noise intensity threshold 1 is smaller than the noise intensity threshold 2. If it is determined that the trigger signal sent by the trigger button 130 is received, and it is determined that the current signal strength is less than the noise intensity threshold 1, the start address is switched to the start address of the partition one, and the corresponding driver is loaded, thereby using the universal interface. Switch to USB3.0.
  • the start address is switched to the start address of the partition 2, and the corresponding driver is loaded, thereby switching the universal interface. To USB2.0. If it is determined that the trigger signal sent by the trigger button 130 is received, and it is determined that the current background noise intensity is between the two noise intensity thresholds, no switching is performed to maintain the current interface type.
  • the memory 110 includes a partition 1, a partition 2, and a partition 3.
  • the three partitions store drivers of different interface types, specifically, a partition-intermediate storage interface 1 driver, and a partition 2 internal storage interface 2 Driver, partition three internal storage interface 3 driver; in addition, two noise intensity thresholds are preset, namely noise intensity threshold 1 and noise intensity threshold 2, respectively, and noise intensity threshold 1 is smaller than noise intensity threshold 2. Thereafter, if it is determined that the trigger signal sent by the trigger button 130 is received, and it is determined that the current background noise intensity is less than the noise intensity threshold 1, the start address is switched to the start address of the partition 2, and the corresponding driver is loaded, and the interface is Switch to interface 2.
  • the start address is switched to the start address of the partition three, the corresponding driver is loaded, and the interface is switched to Interface 3. If it is determined that the trigger signal sent by the trigger button 130 is received, and it is determined that the current background noise intensity is between the two noise intensity thresholds, the start address is switched to the start address of the partition one, and the corresponding driver is loaded, The interface is switched to interface 1.
  • the interface switching device 100 includes a display device 140 in addition to the memory 110, the processor 120, and the trigger button 130.
  • the processor 120 reads the intensity of the background noise of the terminal device and Display is performed in the display device 140.
  • the processor 120 periodically reads the intensity of the background noise of the terminal device and displays it on the display device 140 to provide the user with a theoretical basis for switching power.
  • the processor 120 reads the intensity of the background noise of the terminal device, and compares it with the preset signal strength threshold to determine the noise level to which the current background noise intensity belongs (pre-set the noise threshold interval and noise). The relationship between the levels is displayed in the display device 140 for the user to view.
  • the processor 120 periodically reads the background noise intensity of the terminal device and displays it in the display device 140.
  • the user checks the signal strength displayed in the display device 140, determines that the interface can be switched, and sends a trigger signal to the processor 120 through the trigger button 130.
  • the processor 120 determines that the trigger signal sent by the user through the trigger button 130 is received, further determines the partition of the interface type driver, and performs partition switching according to the partition condition of the memory 110 and the current driver loading partition to implement wireless signal power. Level switching. Specifically, the switching is performed in the order of the partitions, and each time a trigger signal sent by the trigger button 130 is received, the switching is performed once.
  • the memory 110 includes a partition 1, a partition 2, and a partition 3.
  • the processor 120 receives the trigger signal sent by the trigger button 130, and determines that the driver currently in the partition 1 is loaded, according to the partition.
  • the start address is switched to the start address of partition two, and so on.
  • the partitioning order here can be preset by the user, so that the processor 120 receives the trigger signal sent by the trigger button 130 every time, and switches according to the set partitioning order, thereby circulating.
  • the processor 120 periodically reads the intensity of the background noise of the terminal device; compares the acquired intensity with a preset noise intensity threshold, determines the threshold interval to which it belongs, and further obtains the noise level and displays the device in the display device 140. Shown in .
  • the user checks the information displayed on the display device 140 to determine whether interface switching is possible. If so, the trigger signal is sent to the processor 120 via the trigger button 130.
  • the threshold interval is determined according to the determined threshold interval, wherein each partition is associated with a threshold interval; finally, the interface switching device 100 is restarted and loaded.
  • the driver in the partition is horizontally bound, and the interface is Line switching.
  • the memory 110 is partitioned according to requirements, and the driver of the corresponding interface is written in each partition. Thereafter, a corresponding number of signal strength thresholds and a relationship between the threshold interval and the partition are preset and stored in the processor 120.
  • the processor 120 receives the trigger signal of the trigger button 130, reads the intensity of the current background noise, compares it with the signal strength threshold, determines the threshold interval to which it belongs, and then changes the starting address to the corresponding relationship according to the association relationship.
  • the start address of the partition, and the driver in the corresponding partition is loaded after the device is restarted, and the interface is switched.
  • the invention also provides a terminal device comprising the above interface switching device.
  • the terminal device may be a wireless router, a computer, or the like.
  • the trigger signal is sent to the processor through the trigger button.
  • the processor performs interface switching according to the trigger signal, which is simple and convenient, and fully utilizes resources.
  • the Nand Flash and the CPU (connected through the GPIO interface, in addition, the CPU provides a stable clock frequency through the crystal oscillator.
  • the signal strength threshold 1 and the signal strength threshold 2 are preset to -75 dBm and -65 dBm, respectively.
  • a switch SW is included. Specifically, the switch SW includes a closed and an open state.
  • the CPU reads the background noise intensity of the wireless router in real time through an internal register and displays the value in the display in the wireless router.
  • the current wireless router background noise is within the controllable range.
  • the current universal interface is USB3.0
  • the current USB3.0 is used for the wireless router's WiFi. The performance impact is small and can be used continuously. Of course, users can also rely on themselves The requirements, such as the discovery of video card and other phenomena, the interface switching.
  • USB3.0 USB3.0
  • the user is reminded through the display screen. You can switch to USB3.0 to improve data transfer efficiency. After that, it is judged whether the switch SW is turned off. If so, the wireless router will jump from 04000001 to 00000000.
  • the wireless router After restarting, after starting the partition, after completing the hardware self-test, start to read the driver in the partition one, and load the USB3 by default. The .0/2.0/1.0 driver is fully booted to ensure that the USB3.0 interface is used normally without affecting the user's use of the WiFi network.
  • USB3.0 the performance of the WiFi network will be affected, such as slow Internet access, video jamming, or even dropped calls.
  • the interface uses USB3.0 to transmit data, and the display screen reminds the user to switch to USB2.0, thus ensuring the performance of the 2.4G WiFi network.
  • the switch SW is turned on, and if so, the wireless router jumps from 000000 to 04000001, starts from the partition 2 after the restart, and after completing the hardware self-test, starts to read the driver in the partition 2, and loads the USB2 by default.
  • the driver of .0/1.0 is started, ensuring that the USB2.0 interface is used normally without affecting the user's use of the WiFi network.

Abstract

本发明公开了一种接口切换装置及一种终端设备,其中,接口切换装置中包括:存储器,包括多个分区,每个分区中对应存储一种接口类型的驱动程序;处理器,与存储器通信连接,通过加载不同分区中的驱动程序实现该通用接口类型的切换。其通过这种软硬件结合的方式,采用不同分区的方式实现通用接口类型的切换,简单方便,节约资源,终端设备中无需布置过多的通用接口就能实现多种通用接口的功能。

Description

一种接口切换装置及一种终端设备 技术领域
本发明涉及通信技术领域,尤其涉及一种接口切换装置及一种终端设备。
背景技术
USB(Universal Serial Bus,通用串行总线)是一个外部总线标准,用于规范电脑与外部设备的连接和通讯,主要是应用在PC(Personal Computer,个人电脑)领域的接口技术,该类型接口支持设备的即插即用和热插拔功能。
为了提升USB接口的传输速率,技术人员继USB2.0标准之后,提出了USB3.0,大大提升了传输速率,因此目前各类产品中都添加了USB3.0接口。虽然USB3.0传输速率是USB2.0的10倍左右,但是USB3.0接口中数据线基准频率是2.5GHz,在使用USB3.0数据线进行高速传输时,会向外发射电磁波,从而对2.4G的WiFi(Wireless-Fidelity,无线保真)网络产生干扰,如导致视频卡顿、连网慢、甚至掉线等。
目前,由于无法保证USB3.0对2.4G的WiFi网络完全无影响,因此大多数无线接入设备都是默认设为关闭USB3.0接口,若需要打开该功能,则需要登录配置页面才可以进行操作,较为繁琐;对于一些不太懂技术的人来说,甚至不懂如何登录配置页面,导致很多用户没开启USB3.0,也就是用着USB3.0的接口,而传输速度却只是USB2.0的水平,大大浪费了资源;即便用户为了高速传输,打开USB3.0功能,会导致视频卡顿,掉线等现象。
发明内容
本发明的目的是提供一种接口切换装置及一种终端设备,有效解决了现有技术中终端设备中接口类型切换较为繁琐的技术问题。
本发明提供的技术方案如下:
一种接口切换装置,所述接口切换装置与终端设备中一通用接口连接,所述接口切换装置中包括:
存储器,包括多个分区,每个分区中对应存储一种接口类型的驱动程序;
处理器,与所述存储器通信连接,根据接收到的接口类型切换请求加载不同分区中的驱动程序实现该通用接口类型的切换。
在本技术方案中,处理器中通过加载存储器不同分区中的驱动程序实现通用接口类型的切换,通过这种软硬件结合的方式,采用不同分区的方式实现通用接口类型的切换,简单方便,节约资源,终端设备中无需布置过多的通用接口就能实现多种通用接口的功能。
进一步优选地,在所述处理器中,通过改变分区的起始地址实现不同分区的切换,进而加载不同分区中的驱动程序实现通用接口类型的切换。
在本技术方案中,由每个分区的起始地址不同,以此通过改变分区的起始地址实现不同分区的切换。
进一步优选地,所述接口切换装置中还包括与所述处理器连接的触发按键;
所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换。
在本技术方案中,通过触发按键这种硬件开关进行功率等级的切换,简单方便,无需登录配置页面进行切换,即便不懂技术的人员也能根据需求轻松切换,充分利用资源。
进一步优选地,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
判定是否接收到用户通过触发按键发送的触发信号;若是,
根据分区前后顺序进行一次分区切换;
重新启动接口切换装置并加载该分区中的驱动程序,实现通用接口类型的切换。
在本技术方案中,当用户通过触发按键发出接口切换的触发信号,处理器根据存储器中分区的先后顺序进行分区切换,以此实现通用接口类型的切换,简单方便。
进一步优选地,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
读取终端设备背景噪声的强度;
将获取的强度与预设的噪声强度阈值进行比较,判断其所属阈值区间;
判定是否接收到用户通过触发按键发送的触发信号;若是,
根据判断的阈值区间切换至对应的分区,其中,每个分区关联一个阈值区间;
重新启动接口切换装置并加载该分区中的驱动程序,将通用接口切换至相应接口类型。
在本技术方案中,当用户通过触发按键发出切换接口类型的触发信号,处理器随即读取当前无线信号的强度信息,并根据该强度信息切换到相应的分区,进而切换到相应的接口类型。
进一步优选地,所述接口切换装置中还包括一与所述处理器连接的显示装置;
所述处理器读取终端设备背景噪声的强度,并在所述显示装置中进行显示。
在本技技术方案中,该接口切换装置中还包括一显示装置,用于显示终端设备背景噪声的强度,方便用户查看,作为是否切换接口类型的理论依据。
进一步优选地,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
读取终端设备背景噪声的强度,并在所述显示装置中进行显示;
判定是否接收到用户通过触发按键发送的触发信号;若是,
根据分区前后顺序进行一次分区切换;
重新启动接口切换装置并加载该分区中的驱动程序,实现通用接口类型的切换。
在本技术方案中,当用户查看显示装置中显示的背景噪声强度之后,通过触发按键发出接口类型的触发信号,处理器根据存储器中分区的先后顺序进行分区切换,以此实现通用接口类型的切换,简单方便。
进一步优选地,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
读取终端设备背景噪声的强度;
将获取的强度与预设的噪声强度阈值进行比较,判断其所属阈值区间;
将比较结果在所述显示装置中进行显示;
判定是否接收到用户通过触发按键发送的触发信号;若是,
根据判断的阈值区间切换至对应的分区,其中,每个分区关联一个阈值区间;
重新启动接口切换装置并加载该分区中的驱动程序,实现通用接口类型的切换。
在本技术方案中,当用户查看显示装置中显示信号强度之后,通过触发按键发出接口类型的触发信号,处理器随即读取终端设备背景噪声的强度信息,并根据该强度信息切换到相应的分区,进而切换到相应的接口类型。
本发明还提供了一种终端设备,包括上述接口切换装置。
在本技术方案中,在该终端设备中,采用软硬件结合的方式,通过触发按键随时进行接口类型的切换,简单方便,无需登录配置页面进行切换,即便不懂技术的人员也能根据需求轻松切换,充分利用资源。
附图说明
下面将以明确易懂的方式,结合附图说明优选实施方式,对倒置定量气雾 剂阀门的上述特性、技术特征、优点及其实现方式予以进一步说明。
图1为本发明中接口切换装置一种实施方式示意图;
图2为本发明中接口切换装置另一种实施方式示意图;
图3为本发明中接口切换装置另一种实施方式示意图。
附图标号说明:
100-接口切换装置,110-存储器,120-处理器,130-触发按键,140-显示装置。
具体实施方式
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。
为使图面简洁,各图中的只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。
如图1所示为本发明提供的接口切换装置一种实施方式示意图,具体,该接口切换装置100与终端设备中一通用接口连接,从图中可以看出,该接口切换装置100中包括:存储器110,包括多个分区(如图示中的分区一、分区二、...),每个分区中对应存储一种接口类型的驱动程序;处理器120,与存储器110通信连接,根据接收到的接口类型切换请求加载不同分区中的驱动程序实现该通用接口类型的切换。
在本实施方式中,处理器120中通过加载存储器110不同分区中的驱动程序实现通用接口类型的切换,通过这种软硬件结合的方式,采用不同分区的方式实现驱动程序的切换。在使用该接口切换装置100进行接口类型切换之前,根据需求对存储器110进行分区,并根据每个分区的存储容量记录其起始地址 和终止地址;之后,将各功率等级的驱动程序写入各分区中。在进行接口类型切换的过程中,根据接收到的接口类型切换请求改变分区的起始地址实现不同分区的切换,进而加载不同分区中的驱动程序实现通用接口类型的切换,进而实现同一接口中不同接口类型的切换,以此终端设备中无需布置过多的接口就能实现不同接口类型的功能。这里的接口类型切换请求可以由用户通过配置页面发送,也可以通过装置管理APP(Application,应用程序)发送,甚至可以为用户配置的定期自动切换等发送,具体,用户根据实际应用需求,通过发送接口类型切换请求的方式配置需要进行切换的接口类型,处理器接收到该接口类型切换请求之后,判断出配置的接口类型,进而加载相应分区中的驱动程序。
在一实例中,在该接口切换装置100中采用Nand Flash非易失存储器,在进行接口类型切换之前,将其分为两个分区,每个分区中存储容量为128Mbyte,具体,分区一被配置为接口类型1,起始地址=00000000,终止地址=04000000,且该分区中被写入了接口类型1的驱动程序;分区二被配置为接口类型2,起始地址=04000001,终止地址=08000000,且该分区中被写入了接口类型2的驱动程序。
该Nand Flash与CPU(Central Processing Unit,中央处理器)通过GPIO(General Purpose Input Output,通用输入/输出)接口连接,此外该CPU通过晶振提供稳定的时钟频率。在工作过程中,CPU接口到接口类型切换请求之后,判断出需要切换至接口类型2,则CPU将分区的起始地址切换至04000001,以此加载分区二中的驱动程序,实现接口类型1至接口类型2的切换。在其他实例中,存储器110还可以采用Spi Flash等,在此不做具体限定。此外,这里的接口类型根据实际需求确定,如可以为USB2.0接口、USB3.0接口、视频接口等。
对上述实施方式进行改进得到本实施方式,如图2所示,在本实施方式中,该接口切换装置100中除了包括上述存储器110和处理器120之外,还包括与 处理器120连接的触发按键130;处理器120根据触发按键130中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换。
在本实施方式中,用户通过该触发按键130发送一中断控制信号至处理器120,以此处理器120根据该中断控制信号,进行接口类型的切换,以此无需登录配置页面就能进行功率的切换,简单方便。
基于此,在一种实施方式中,当处理器120判断出接收到用户通过触发按键130发送的触发信号之后,进一步判断接口类型的驱动程序所在分区,并根据存储器110的分区情况和当前驱动程序加载分区进行分区切换,实现无线信号功率等级的切换。具体,这里按照分区的先后顺序进行切换,且每接收到触发按键130发送的一次触发信号进行一次切换。
在一实例中,在该接口切换装置100中采用Nand Flash非易失存储器,在进行接口切换之前,将其分为四个分区,每个分区中存储容量为64Mbyte,具体,分区一被配置为接口类型1,起始地址=00000000,终止地址=02000000,且该分区中被写入了接口类型1的驱动程序;分区二被配置为接口类型2,起始地址=02000001,终止地址=04000000,且该分区中被写入了接口类型2的驱动程序;分区三被配置为接口类型3,起始地址=04000001,终止地址=06000000,且该分区中被写入了接口类型3的驱动程序;分区四被配置为接口类型4,起始地址=06000001,终止地址=08000000,且该分区中被写入了接口类型4的驱动程序。此外,该Nand Flash与CPU通过GPIO接口连接,此外该CPU通过晶振提供稳定的时钟频率。
在工作过程中,当CPU接收到用户通过触发按键130发送的中断控制信号,同时判断出当前加载的是分区二中的驱动程序,以此根据分区的先后顺序将起始地址切换到分区三的起始地址,以此重启后加载分区三中的驱动程序,进行接口类型的切换。此后,若CPU再一次接收到用户通过触发按键130发送的中断控制信号,将加载驱动程序的分区切换至分区四,以此循环,直到不 再接收到中断控制信号,不再切换。
在另一种实施方式中,当处理器120判断出接收到用户通过触发按键130发送的触发信号之后,通过GPIO口读取当前终端设备背景噪声强度,并将获取的强度与预设的噪声强度阈值进行比较,判断其所属阈值区间;之后判定是否接收到用户通过触发按键130发送的触发信号;若是,根据判断的阈值区间切换至对应的分区,其中,每个分区关联一个阈值区间;最后,重新启动接口切换装置100并加载该分区中的驱动程序,将通用接口切换至相应接口类型。
在本实施方式中,在使用接口切换装置100进行接口切换之前,根据需求对存储器110进行分区,且在每个分区中写入相应接口类型的驱动程序。之后,预先设定相应数量的噪声强度阈值,及阈值区间与分区之间的关联关系,存储在处理器120中。以此,处理器120接收到触发按键130的触发信号,读取终端设备当前背景噪声强度,并将其与噪声强度阈值进行比较,判断其所属阈值区间,进而根据关联关系将起始地址改变为相应分区的起始地址,且在装置重启后加载相应分区内的驱动程序,实现通用接口类型的切换。
在一实例中,存储器110中包括分区一和分区二,两个分区中存储有不同接口类型的驱动程序,具体,分区一种存储有USB3.0/2.0/1.0的驱动程序,分区二种存储有USB2.0/1.0的驱动程序;此外,预先设置一个噪声强度阈值,若读取的当前背景噪声强度小于该噪声强度阈值,说明此时背景噪声小,反之说明信号强。此后,若判断出接收到触发按键130发送的触发信号,且判断出当前信号强度小于噪声强度阈值,则将起始地址切换至分区一的起始地址,加载相应的驱动程序,以此将通用接口切换至USB3.0。若判断出接收到触发按键130发送的触发信号,且判断出当前信号强度大于噪声强度阈值,则将起始地址切换至分区二的起始地址,加载相应的驱动程序,以此将通用接口切换至USB2.0。
在另一实例中,存储器110中包括分区一和分区二,两个分区中存储有不 同接口类型的驱动程序,具体,分区一种存储有USB3.0/2.0/1.0的驱动程序,分区二种存储有USB2.0/1.0的驱动程序;此外,预先设置两个噪声强度阈值,分别为噪声强度阈值1和噪声强度阈值2,且噪声强度阈值1小于噪声强度阈值2。若判断出接收到触发按键130发送的触发信号,且判断出当前信号强度小于噪声强度阈值1,则将起始地址切换至分区一的起始地址,加载相应的驱动程序,以此将通用接口切换至USB3.0。若判断出接收到触发按键130发送的触发信号,且判断出当前信号强度大于噪声强度阈值,则将起始地址切换至分区二的起始地址,加载相应的驱动程序,以此将通用接口切换至USB2.0。若判断出接收到触发按键130发送的触发信号,且判断出当前背景噪声强度在两个噪声强度阈值之间,则不做切换,保持当前接口类型。
在另一实例中,存储器110中包括分区一、分区二和分区三,三个分区中存储有不同接口类型的驱动程序,具体,分区一内部存储接口1的驱动程序,分区二内部存储接口2的驱动程序,分区三内部存储接口3的驱动程序;此外,预先设置两个噪声强度阈值,分别为噪声强度阈值1和噪声强度阈值2,且噪声强度阈值1小于噪声强度阈值2。此后,若判断出接收到触发按键130发送的触发信号,且判断出当前背景噪声强度小于噪声强度阈值1,则将起始地址切换至分区二的起始地址,加载相应的驱动程序,将接口切换至接口2。若判断出接收到触发按键130发送的触发信号,且判断出当前背景噪声强度大于噪声强度阈值2,则将起始地址切换至分区三的起始地址,加载相应的驱动程序,将接口切换至接口3。若判断出接收到触发按键130发送的触发信号,且判断出当前背景噪声强度在两个噪声强度阈值之间,则将起始地址切换至分区一的起始地址,加载相应的驱动程序,将接口切换至接口1。
对上述实施方式进行改进得到本实施方式,如图3所示,在本实施方式中,该接口切换装置100中除了包括上述存储器110、处理器120以及触发按键130之外,还包括显示装置140;处理器120读取终端设备背景噪声的强度,并在 显示装置140中进行显示。此外,在本实施方式中,处理器120定期读取终端设备背景噪声的强度,并在显示装置140中显示,为用户提供切换功率的理论依据。在其他实施方式中,处理器120读取终端设备背景噪声的强度,并将其与预设信号强度阈值进行比对,判断出当前背景噪声强度所属的噪声等级(预先设定噪声阈值区间与噪声等级之间的关联关系),显示在显示装置140中,便于用户查看。
基于此,在一种实施方式中,处理器120定期读取终端设备的背景噪声强度,并在显示装置140中进行显示。用户查看显示装置140中显示的信号强度,判断可以进行接口切换,并通过触发按键130发送触发信号至处理器120。当处理器120判断出接收到用户通过触发按键130发送的触发信号之后,进一步判断接口类型的驱动程序所在分区,并根据存储器110的分区情况和当前驱动程序加载分区进行分区切换,实现无线信号功率等级的切换。具体,这里按照分区的先后顺序进行切换,且每接收到触发按键130发送的一次触发信号进行一次切换。如在一实例中,存储器110中包括分区一、分区二及分区三,处理器120在接收到触发按键130发送的触发信号,且判断当前加载的是分区一中的驱动程序,则根据分区的顺序将起始地址切换至分区二的起始地址,以此类推。这里的分区顺序由用户预先设定即可,以此,处理器120每次接收到触发按键130发送的触发信号,根据设定的分区顺序进行切换,以此循环。
在另一实施方式中,处理器120定期读取终端设备背景噪声的强度;并将获取的强度与预设的噪声强度阈值进行比较,判断其所属阈值区间,进一步得到噪声等级并在显示装置140中显示。用户查看显示装置140中显示的信息,判断是否可以进行接口切换,若是,则通过触发按键130发送触发信号至处理器120。当处理器120判断出接收到用户通过触发按键130发送的触发信号之后,根据判断的阈值区间切换至对应的分区,其中,每个分区关联一个阈值区间;最后,重新启动接口切换装置100并加载该分区中的驱动横须,对接口进 行切换。
在本实施方式中,在使用接口切换装置100进行接口切换之前,根据需求对存储器110进行分区,且在每个分区中写入相应接口的驱动程序。之后,预先设定相应数量的信号强度阈值,及阈值区间与分区之间的关联关系,存储在处理器120中。以此,处理器120接收到触发按键130的触发信号,读取当前背景噪声的强度,并将其与信号强度阈值进行比较,判断其所属阈值区间,进而根据关联关系将起始地址改变为相应分区的起始地址,且在装置重启后加载相应分区内的驱动程序,实现接口的切换。
本发明还提供了一种终端设备,包括上述接口切换装置。具体该终端设备可以为无线路由器、电脑等。在工作过程中,当用户需要进行接口切换,则通过触发按键发送触发信号至处理器。以此,处理器根据该触发信号进行接口的切换,简单方便,充分利用资源。
在一实例中,无线路由器中包括Nand Flash非易失存储器(存储有无线路由器的镜像文件),在进行接口切换之前,将其分为两个分区,每个分区中存储容量为128Mbyte,具体,分区一种存储有USB3.0/2.0/1.0的驱动程序,起始地址=00000000,终止地址=04000000;分区二种存储有USB2.0/1.0的驱动程序,起始地址=04000001,终止地址=08000000。且该Nand Flash与CPU(通过GPIO接口连接,此外该CPU通过晶振提供稳定的时钟频率。另外,预先设定信号强度阈值1和信号强度阈值2,分别为-75dBm和-65dBm。无线路由器中还包括一开关SW,具体,该开关SW包括关闭和开启状态。
在工作过程中,CPU通过内部寄存器来实时读取无线路由器的背景噪声强度,并将该值在无线路由器中的显示屏中进行显示。
若判断出当前背景噪声强度在-75dBm~-65dBm之间,说明当前无线路由器背景噪声在可控范围之内,若当前通用接口为USB3.0,说明当前USB3.0的使用对无线路由器的WiFi性能影响较小,可以继续使用。当然,用户也可根据自己 的需求,如发现视频卡顿等现象自行进行接口切换。
若判断出当前背景噪声强度小于-75dBm,说明当前背景环境干扰很少,使用USB3.0对无线路由器不会产生任何影响,若此时通用接口使用的是USB2.0,则通过显示屏提醒用户可以切换至USB3.0,以提高数据传输效率。之后,判断开关SW是否关闭,若是,无线路由器将起始地址由04000001跳转为00000000,在重启后从分区一开始,完成硬件自检后,开始读取分区一中的驱动程序,默认加载USB3.0/2.0/1.0的驱动程序,完成启动,保证正常使用USB3.0接口的同时不影响用户对WiFi网络的使用。
若判断出当前背景噪声强度大于-65dBm,说明当前背景环境干扰严重,若使用USB3.0接口会影响WiFi网络的性能,如上网速度慢、视频卡顿、甚至会掉线等,若此时通用接口使用的是USB3.0在传输数据,则通过显示屏提醒用户可以切换为USB2.0,从而保证2.4G WiFi网络的性能。之后,判断开关SW是否开启,若是,无线路由器将起始地址由00000000跳转为04000001,在重启后从分区二开始,完成硬件自检后,开始读取分区二中的驱动程序,默认加载USB2.0/1.0的驱动程序,完成启动,保证正常使用USB2.0接口的同时不影响用户对WiFi网络的使用。
应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。

Claims (10)

  1. 一种接口切换装置,其特征在于,所述接口切换装置与终端设备中一通用接口连接,所述接口切换装置中包括:
    存储器,包括多个分区,每个分区中对应存储一种接口类型的驱动程序;
    处理器,与所述存储器通信连接,根据接收到的接口类型切换请求加载不同分区中的驱动程序实现该通用接口类型的切换。
  2. 如权利要求1所述的接口切换装置,其特征在于,在所述处理器中,通过改变分区的起始地址实现不同分区的切换,进而加载不同分区中的驱动程序实现通用接口类型的切换。
  3. 如权利要求1或2所述的接口切换装置,其特征在于,所述接口切换装置中还包括与所述处理器连接的触发按键;
    所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换。
  4. 如权利要求3所述的接口切换装置,其特征在于,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
    判定是否接收到用户通过触发按键发送的触发信号;若是,
    根据分区前后顺序进行一次分区切换;
    重新启动接口切换装置并加载该分区中的驱动程序,实现通用接口类型的切换。
  5. 如权利要求3所述的接口切换装置,其特征在于,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中, 包括:
    读取终端设备背景噪声的强度;
    将获取的强度与预设的噪声强度阈值进行比较,判断其所属阈值区间;
    判定是否接收到用户通过触发按键发送的触发信号;若是,
    根据判断的阈值区间切换至对应的分区,其中,每个分区关联一个阈值区间;
    重新启动接口切换装置并加载该分区中的驱动程序,将通用接口切换至相应接口类型。
  6. 如权利要求1或2所述的接口切换装置,其特征在于,所述接口切换装置中还包括一与所述处理器连接的显示装置;
    所述处理器读取终端设备背景噪声的强度,并在所述显示装置中进行显示。
  7. 如权利要求3所述的接口切换装置,其特征在于,所述接口切换装置中还包括一与所述处理器连接的显示装置;
    所述处理器读取终端设备背景噪声的强度,并在所述显示装置中进行显示。
  8. 如权利要求7所述的接口切换装置,其特征在于,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
    读取终端设备背景噪声的强度,并在所述显示装置中进行显示;
    判定是否接收到用户通过触发按键发送的触发信号;若是,
    根据分区前后顺序进行一次分区切换;
    重新启动接口切换装置并加载该分区中的驱动程序,实现通用接口类型 的切换。
  9. 如权利要求7所述的接口切换装置,其特征在于,在所述处理器根据触发按键中的触发信号切换加载驱动程序的分区,实现通用接口类型的切换中,包括:
    读取终端设备背景噪声的强度;
    将获取的强度与预设的噪声强度阈值进行比较,判断其所属阈值区间;
    将比较结果在所述显示装置中进行显示;
    判定是否接收到用户通过触发按键发送的触发信号;若是,
    根据判断的阈值区间切换至对应的分区,其中,每个分区关联一个阈值区间;
    重新启动接口切换装置并加载该分区中的驱动程序,实现通用接口类型的切换。
  10. 一种终端设备,其特征在于,所述终端设备中包括如权利要求1-9任意一项所述的接口切换装置。
PCT/CN2017/102735 2017-07-21 2017-09-21 一种接口切换装置及一种终端设备 WO2019015080A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710601386.5A CN107436852B (zh) 2017-07-21 2017-07-21 一种接口切换装置及一种终端设备
CN201710601386.5 2017-07-21

Publications (1)

Publication Number Publication Date
WO2019015080A1 true WO2019015080A1 (zh) 2019-01-24

Family

ID=60459859

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/102735 WO2019015080A1 (zh) 2017-07-21 2017-09-21 一种接口切换装置及一种终端设备

Country Status (2)

Country Link
CN (1) CN107436852B (zh)
WO (1) WO2019015080A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112367248A (zh) * 2020-09-27 2021-02-12 济南浪潮高新科技投资发展有限公司 一种实现自定义接口的工业网关及其控制方法、存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297545A (zh) * 1999-03-18 2001-05-30 松下电器产业株式会社 在可拆卸设备上建立多个分区的方法
US6665786B2 (en) * 1998-09-21 2003-12-16 Microsoft Corporation Dynamic disk partition management
CN102156680A (zh) * 2010-02-11 2011-08-17 爱国者电子科技有限公司 多种连接器的主机装置及传输数据方法和协议选择装置
CN102880580A (zh) * 2011-07-13 2013-01-16 瀚邦科技股份有限公司 藉由通用串行总线链路进行对等通信的装置和方法
CN103777977A (zh) * 2012-10-25 2014-05-07 上海斐讯数据通信技术有限公司 嵌入式设备的启动方法及交换机
CN104731633A (zh) * 2015-04-15 2015-06-24 上海斐讯数据通信技术有限公司 一种Linux系统下多分区存储设备卸载失败后回滚方法及系统
CN105893311A (zh) * 2016-03-28 2016-08-24 青岛海信电器股份有限公司 通用串行总线接口驱动配置方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7395402B2 (en) * 2004-04-15 2008-07-01 Broadcom Corporation Method and system of data storage capacity allocation and management using one or more data storage drives
CN101494086B (zh) * 2008-01-24 2011-12-07 群联电子股份有限公司 快闪存储器储存装置、快闪存储器控制器及其切换方法
CN102156618B (zh) * 2010-02-11 2015-06-17 爱国者电子科技有限公司 具有多种连接器的存储装置及其传输数据的方法
CN206178108U (zh) * 2016-09-21 2017-05-17 东莞斯坦德仪器设备有限公司 一种可利用噪声发电的液晶显示仪表

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665786B2 (en) * 1998-09-21 2003-12-16 Microsoft Corporation Dynamic disk partition management
CN1297545A (zh) * 1999-03-18 2001-05-30 松下电器产业株式会社 在可拆卸设备上建立多个分区的方法
CN102156680A (zh) * 2010-02-11 2011-08-17 爱国者电子科技有限公司 多种连接器的主机装置及传输数据方法和协议选择装置
CN102880580A (zh) * 2011-07-13 2013-01-16 瀚邦科技股份有限公司 藉由通用串行总线链路进行对等通信的装置和方法
CN103777977A (zh) * 2012-10-25 2014-05-07 上海斐讯数据通信技术有限公司 嵌入式设备的启动方法及交换机
CN104731633A (zh) * 2015-04-15 2015-06-24 上海斐讯数据通信技术有限公司 一种Linux系统下多分区存储设备卸载失败后回滚方法及系统
CN105893311A (zh) * 2016-03-28 2016-08-24 青岛海信电器股份有限公司 通用串行总线接口驱动配置方法和装置

Also Published As

Publication number Publication date
CN107436852B (zh) 2020-12-25
CN107436852A (zh) 2017-12-05

Similar Documents

Publication Publication Date Title
US20220283621A1 (en) Electronic Device Control Method and Apparatus, and Electronic Device
EP3355223A1 (en) Unlock method and mobile terminal
CN109791528B (zh) 配置坞
DE112016002895T5 (de) Authentifizierung einer Mehrprotokollverbindung
US20140317350A1 (en) Portable storage devices for electronic devices
US20180046399A1 (en) Storage Partitioning Method and Terminal
CN108427649A (zh) Usb接口的接入管理方法、终端设备、系统及存储介质
US20170181094A1 (en) Intelligent terminal power consumption control method and electronic device
KR100592105B1 (ko) 공유 메모리의 분할 영역의 다중 억세스 제어 방법 및 공유메모리를 가지는 휴대형 단말기
US20180267727A1 (en) Access method and device for random access memories, control chip and storage medium
US20230221784A1 (en) System and method for power state enforced subscription management
US9330033B2 (en) System, method, and computer program product for inserting a gap in information sent from a drive to a host device
CN111984557A (zh) 数据处理方法、装置和系统
US20140344704A1 (en) Electronic system
WO2019015080A1 (zh) 一种接口切换装置及一种终端设备
KR100748191B1 (ko) 공유 메모리를 구비한 장치 및 공유 메모리 억세스 상태정보 제공 방법
CN112715040B (zh) 一种降低功耗的方法、终端设备及存储介质
US10645166B2 (en) Network interface card
CN110633148A (zh) 一种系统运行的优化方法、装置、电子设备及存储介质
KR20070000655A (ko) 복수 경로를 통한 메모리 공유 방법 및 장치
CN113672172A (zh) 应用于led显示控制系统的数据交互方法以及接收卡
US10579516B2 (en) Systems and methods for providing power-efficient file system operation to a non-volatile block memory
US20210157384A1 (en) Assigning power sources
KR100592109B1 (ko) 공유 메모리의 분할 영역의 다중 억세스 제어 방법 및 공유메모리를 가지는 휴대형 단말기
TWI792748B (zh) 支援遊戲模式的在電子設備中執行的電腦實施的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17918483

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17918483

Country of ref document: EP

Kind code of ref document: A1