[go: up one dir, main page]

CN104714915A - Electronic device using universal serial bus socket for firmware loading and its firmware loading method - Google Patents

Electronic device using universal serial bus socket for firmware loading and its firmware loading method Download PDF

Info

Publication number
CN104714915A
CN104714915A CN201310694825.3A CN201310694825A CN104714915A CN 104714915 A CN104714915 A CN 104714915A CN 201310694825 A CN201310694825 A CN 201310694825A CN 104714915 A CN104714915 A CN 104714915A
Authority
CN
China
Prior art keywords
data transmission
pin
chip
electronic device
transmission pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310694825.3A
Other languages
Chinese (zh)
Inventor
陈羿光
施佑谚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Primax Electronics Ltd
Original Assignee
Primax Electronics 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 Primax Electronics Ltd filed Critical Primax Electronics Ltd
Priority to CN201310694825.3A priority Critical patent/CN104714915A/en
Publication of CN104714915A publication Critical patent/CN104714915A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides an electronic device for loading firmware by using a universal serial bus socket and a firmware loading method thereof. The electronic device comprises a universal sequence bus socket, a functional chip and a switch element, wherein the switch element is connected with a bus data transmission pin of the universal sequence bus socket and a chip data transmission pin of the functional chip, when the identification pin of the universal sequence bus socket is provided with high level voltage, the switch element is turned on, so that the bus data transmission pin is electrically connected with the chip data transmission pin, and therefore firmware data can be transmitted from the universal sequence bus socket into the functional chip. The invention can be used as an interface for charging and an interface for loading and updating firmware.

Description

使用通用序列总线插座进行固件载入的电子装置及其固件载入方法Electronic device using universal serial bus socket for firmware loading and its firmware loading method

技术领域technical field

本发明涉及一种电子装置,尤其涉及一种使用通用序列总线(USB)插座进行固件载入的电子装置及其固件载入方法。The invention relates to an electronic device, in particular to an electronic device using a Universal Serial Bus (USB) socket for firmware loading and a firmware loading method thereof.

背景技术Background technique

随着信息的发展,便携式电子装置越来越普及,且由于电脑系统具有庞大的多媒体处理功能,因此许多便携式电子装置可直接与电脑系统连接,以进行各项数据传输的动作,其中,通用序列总线(USB)接口是便携式电子装置与电脑系统之间最常使用的连接接口之一,原因在于,通用序列总线接口具有随插即用、热插拔(hot plug)、数据传输速度快等多项优点。With the development of information, portable electronic devices are becoming more and more popular, and because the computer system has a huge multimedia processing function, many portable electronic devices can be directly connected to the computer system to perform various data transmission actions. Among them, the general sequence The bus (USB) interface is one of the most commonly used connection interfaces between portable electronic devices and computer systems, because the USB interface has many advantages such as plug and play, hot plug, and fast data transmission speed. item advantage.

再者,通用序列总线接口还具有传输电流的功能,故电脑系统能够提供电能予便携式电子装置,使得便携式电子装置可获得运作上所需的电能,或是对便携式电子装置中的电池进行充电的动作。特别说明的是,部分便携式电子装置的通用序列总线接口仅被设计用来接受外来的供电,而不具备与电脑系统进行数据传输的功能。Moreover, the USB interface also has the function of transmitting current, so the computer system can provide power to the portable electronic device, so that the portable electronic device can obtain the power required for operation, or charge the battery in the portable electronic device action. In particular, the USB interface of some portable electronic devices is only designed to receive external power supply, and does not have the function of data transmission with the computer system.

详言之,请参阅图1,其为公知可与电脑系统进行数据传输的电子装置的方框示意图。电子装置1A包括通用序列总线插座11A、功能芯片12A、充电芯片13以及连接于充电芯片13的电池14,且功能芯片12A中具有固件,用来执行特定的功能,例如当电子装置1A为一随身硬碟时,功能芯片12A则负责执行数据传输、数据存储以及数据提取的动作;又,功能芯片12A具有第一装置辨识接脚123以及第二装置辨识接脚124,且通用序列总线插座11A具有电源接脚111、D-接脚112、D+接脚113、ID接脚114以及地源接脚115;其中,通用序列总线插座11A的地源接脚115用以接地,通用序列总线插座11A的电源接脚111连接于充电芯片13,通用序列总线插座11A的D-接脚112与D+接脚113分别连接于功能芯片12A的第一装置辨识接脚123与第二装置辨识接脚124,而ID接脚114则适情况浮接或接地,例如当通用序列总线插座11A为属于OTG(On-The-Go)规格时,ID接脚114接地,否则ID接脚114浮接。In detail, please refer to FIG. 1 , which is a schematic block diagram of a conventional electronic device capable of performing data transmission with a computer system. The electronic device 1A includes a USB socket 11A, a functional chip 12A, a charging chip 13, and a battery 14 connected to the charging chip 13, and the functional chip 12A has firmware for performing specific functions. For example, when the electronic device 1A is a portable In the case of a hard disk, the function chip 12A is responsible for performing data transmission, data storage and data extraction; and the function chip 12A has a first device identification pin 123 and a second device identification pin 124, and the USB socket 11A has a Power supply pin 111, D-pin 112, D+ pin 113, ID pin 114 and ground source pin 115; wherein, the ground source pin 115 of the universal serial bus socket 11A is used for grounding, and the ground source pin 115 of the universal serial bus socket 11A The power supply pin 111 is connected to the charging chip 13, the D-pin 112 and the D+ pin 113 of the USB socket 11A are respectively connected to the first device identification pin 123 and the second device identification pin 124 of the function chip 12A, and The ID pin 114 is floating or grounded as appropriate. For example, when the USB socket 11A is an OTG (On-The-Go) specification, the ID pin 114 is grounded; otherwise, the ID pin 114 is floating.

再者,当电子装置1A通过通用序列总线3连接于电脑系统2时,也即当通用序列总线3两端的插头31、32分别插接于电子装置1A的通用序列总线插座11A以及电脑系统2的通用序列总线插座21时,电脑系统2所提供的电流可于依序经由通用序列总线3、通用序列总线插座11A的电源接脚111后传输至充电芯片13,进而能够对电池14进行充电;一般来说,当通用序列总线接口为USB2.0接口时,电脑系统2可提供电子装置1A约500毫安培(mA)的电流,而当通用序列总线接口为USB3.0接口时,电脑系统2则可提供电子装置1A约900毫安培(mA)的电流。Moreover, when the electronic device 1A is connected to the computer system 2 through the USB 3, that is, when the plugs 31 and 32 at both ends of the USB 3 are inserted into the USB socket 11A of the electronic device 1A and the socket of the computer system 2 respectively. When the USB socket 21 is used, the current provided by the computer system 2 can be transmitted to the charging chip 13 after sequentially passing through the USB 3 and the power pin 111 of the USB socket 11A, thereby charging the battery 14; generally For example, when the Universal Serial Bus interface is a USB2.0 interface, the computer system 2 can provide the electronic device 1A with a current of about 500 milliamperes (mA), and when the Universal Serial Bus interface is a USB3.0 interface, the computer system 2 can The electronic device 1A can provide a current of about 900 milliamps (mA).

同时,电脑系统2会输出一询问信息S2并于依序经由通用序列总线3、通用序列总线插座11A的D-接脚112以及功能芯片12A的第一装置辨识接脚123后传输至功能芯片12A,而功能芯片12A会接着输出相对应于询问信息S2的回复信息S1并于依序经由功能芯片12A的第二装置辨识接脚124、通用序列总线插座11A的D+接脚113以及通用序列总线3后传输至电脑系统2;其中,通过上述电脑系统2与功能芯片12A之间的沟通程序,电脑系统2即可辨识电子装置1A的规格,如高速电子装置1A或低速电子装置1A等,以进而进行后续的数据传输作业。At the same time, the computer system 2 will output a query message S2 and transmit it to the function chip 12A after sequentially passing through the USB 3, the D-pin 112 of the USB socket 11A and the first device identification pin 123 of the function chip 12A. , and the functional chip 12A will then output the reply message S1 corresponding to the inquiry message S2 and pass through the second device identification pin 124 of the functional chip 12A, the D+ pin 113 of the USB socket 11A and the USB 3 in sequence. Afterwards, it is transmitted to the computer system 2; wherein, through the communication program between the above-mentioned computer system 2 and the functional chip 12A, the computer system 2 can identify the specification of the electronic device 1A, such as the high-speed electronic device 1A or the low-speed electronic device 1A, etc., and then Perform subsequent data transfer operations.

请参阅图2,其为公知不具备与电脑系统进行数据传输功能的电子装置的方框示意图。图2所示电子装置1B大致类似于图1所示者,在此即不再予以赘述,而不同之处在于,通用序列总线插座11B的D+接脚113与D-接脚112呈一浮接状态,且功能芯片12B不具有第一装置辨识接脚与第二装置辨识接脚;是以,图2所示电子装置1B仅为一种可通过其通用序列总线插座11B而接受电脑系统2供电的电子装置1B,但不具备与电脑系统2进行数据传输的功能。Please refer to FIG. 2 , which is a schematic block diagram of a conventional electronic device that does not have the function of data transmission with a computer system. The electronic device 1B shown in FIG. 2 is roughly similar to the one shown in FIG. 1 , and will not be repeated here. The difference is that the D+ pin 113 and the D- pin 112 of the USB socket 11B are in a floating connection. status, and the function chip 12B does not have the first device identification pin and the second device identification pin; therefore, the electronic device 1B shown in FIG. electronic device 1B, but does not have the function of data transmission with the computer system 2.

接下来说明公知电子装置的固件载入方式。请参阅图3,其为公知电子装置的固件载入示意图。图3所示电子装置1C大致类似于图1与图2所示者,在此即不再予以赘述,而不同之处在于,功能芯片12C还包括一第一芯片数据传输接脚121以及一第二芯片数据传输接脚122;一般来说,第一芯片数据传输接脚121以及第二芯片数据传输接脚122属于一内部整合电路(Inter-Integrated Circuit,I2C)接口的接脚,如第一芯片数据传输接脚121以及第二芯片数据传输接脚122分别为串行数据(SDA)接脚以及串行时钟脉冲(SCL)接脚,抑或是第一芯片数据传输接脚121以及第二芯片数据传输接脚122属于一通用非同步收发传输(Universal Asynchronous Receiver/Transmitter,UART)接口的接脚,如第一芯片数据传输接脚121以及第二芯片数据传输接脚122分别为接收接脚(Rx)以及发射接脚(Tx)。Next, the firmware loading method of the known electronic device will be described. Please refer to FIG. 3 , which is a schematic diagram of firmware loading of a conventional electronic device. The electronic device 1C shown in FIG. 3 is roughly similar to those shown in FIG. 1 and FIG. Two chip data transmission pins 122; generally speaking, the first chip data transmission pins 121 and the second chip data transmission pins 122 belong to the pins of an internal integrated circuit (Inter-Integrated Circuit, I 2 C) interface, such as The first chip data transmission pin 121 and the second chip data transmission pin 122 are serial data (SDA) pin and serial clock pulse (SCL) pin respectively, or the first chip data transmission pin 121 and the second chip data transmission pin 121 The two chip data transmission pins 122 belong to the pins of a Universal Asynchronous Receiver/Transmitter (UART) interface, such as the first chip data transmission pin 121 and the second chip data transmission pin 122 are receiving interfaces respectively Pin (Rx) and launch pin (Tx).

其中,当电子装置1C的研发人员欲将固件输入至功能芯片12C或是欲对功能芯片12C中的固件进行更新时,通过导线41将存储有固件的外接夹具板4连接于功能芯片12C的第一芯片数据传输接脚121以及第二芯片数据传输接脚122,如此一来,外接夹具板4中的固件就能够传输进入功能芯片12C中。然而,上述固件载入的程序相当繁琐,也需要特别将导线41焊接于功能芯片12C以及外接夹具板之间,对于研发端的研发人员实为不便。此外,若是开发厂商于电子装置1C产品化后开发出较新版的固件,已购买的使用者也无法自行对电子装置1C更新固件。Wherein, when the research and development personnel of the electronic device 1C want to input the firmware into the functional chip 12C or update the firmware in the functional chip 12C, the external fixture board 4 storing the firmware is connected to the first part of the functional chip 12C through the wire 41. The data transmission pin 121 of the first chip and the data transmission pin 122 of the second chip, in this way, the firmware in the external fixture board 4 can be transmitted into the functional chip 12C. However, the procedure for loading the above-mentioned firmware is quite cumbersome, and the wire 41 needs to be soldered between the functional chip 12C and the external fixture board, which is really inconvenient for the R&D personnel at the R&D end. In addition, if the developer develops a newer version of firmware after the electronic device 1C is commercialized, the purchased user cannot update the firmware of the electronic device 1C by himself.

是以,公知的电子装置具有改善的空间。Therefore, the known electronic devices have room for improvement.

发明内容Contents of the invention

针对现有技术存在的问题,本发明的主要目的在提供一种使用通用序列总线(USB)插座进行固件载入的电子装置及其固件载入方法,以简化研发人员及使用者将固件载入电子装置的程序。Aiming at the problems existing in the prior art, the main purpose of the present invention is to provide an electronic device using a Universal Serial Bus (USB) socket for firmware loading and a firmware loading method thereof, so as to simplify the firmware loading by developers and users. Programs for electronic devices.

于一较佳实施例中,本发明提供一种使用通用序列总线(USB)插座进行固件载入的电子装置,包括:In a preferred embodiment, the present invention provides an electronic device using a Universal Serial Bus (USB) socket for firmware loading, including:

一通用序列总线插座,包括一识别接脚以及一第一总线数据传输接脚;A universal serial bus socket, including an identification pin and a first bus data transmission pin;

一功能芯片,用以执行一功能,并包括一第一芯片数据传输接脚;以及A functional chip, used to perform a function, and includes a first chip data transmission pin; and

一第一开关元件,连接于该识别接脚、该第一总线数据传输接脚以及该第一芯片数据传输接脚之间;a first switch element connected between the identification pin, the first bus data transmission pin and the first chip data transmission pin;

其中,当该识别接脚的电压为一低电平电压时,该第一开关元件呈关闭状态,用以使该第一总线数据传输接脚以及该第一芯片数据传输接脚之间断开;而当该识别接脚的电压为一高电平电压时,该第一开关元件被触发开启,用以使该第一总线数据传输接脚以及该第一芯片数据传输接脚之间导通。Wherein, when the voltage of the identification pin is a low-level voltage, the first switch element is turned off, so as to disconnect the first bus data transmission pin and the first chip data transmission pin; And when the voltage of the identification pin is a high level voltage, the first switching element is triggered to be turned on, so as to conduct the first bus data transmission pin and the first chip data transmission pin.

于一较佳实施例中,本发明也提供一种电子装置的固件载入方法,用以使一固件数据输入至一电子装置的一功能芯片中,且该电子装置包括一通用序列总线(USB)插座,其中该电子装置的固件载入方法包括:In a preferred embodiment, the present invention also provides a firmware loading method of an electronic device, for inputting a firmware data into a functional chip of an electronic device, and the electronic device includes a Universal Serial Bus (USB ) socket, wherein the firmware loading method of the electronic device includes:

(a)提供一高电平电压予该通用序列总线插座的一识别接脚,用以开启连接于该通用序列总线插座的一第一总线数据传输接脚以及该功能芯片的一第一芯片数据传输接脚之间的一第一开关元件,以使该第一总线数据传输接脚以及该第一芯片数据传输接脚之间导通;以及(a) Provide a high-level voltage to an identification pin of the universal serial bus socket to turn on a first bus data transmission pin connected to the universal serial bus socket and a first chip data of the functional chip a first switching element between the transmission pins, so as to conduct between the first bus data transmission pin and the first chip data transmission pin; and

(b)使该固件数据于依序经由该第一总线数据传输接脚以及该第一芯片数据传输接脚后传输进入该功能芯片。(b) The firmware data is transmitted into the function chip after sequentially passing through the first bus data transmission pin and the first chip data transmission pin.

本发明的有益效果在于,本发明的使用通用序列总线(USB)插座进行固件载入的电子装置只要通过将通用序列总线使电子装置以及存放有固件的外接夹具板相连接,就能将固件输入至电子装置的功能芯片或是对功能芯片中的固件进行更新;对电子装置的第一总线数据传输接脚、第二总线数据传输接脚、识别接脚与功能芯片之间的电路连接关系加以设计,而使得电子装置的通用序列总线插座不仅可用来做为充电的接口,也可用来作为进行固件载入与更新的接口;利用识别接脚的电压电平的高低来作为判断第一总线数据传输接脚与功能芯片的第一芯片数据传输接脚之间是否导通的依据,以及作为第二总线数据传输接脚与功能芯片的第二芯片数据传输接脚之间是否导通的依据。The beneficial effect of the present invention is that, the electronic device of the present invention that uses the universal serial bus (USB) socket to carry out firmware loading only needs to connect the electronic device and the external fixture board that stores the firmware through the universal serial bus, the firmware can be input To the function chip of the electronic device or to update the firmware in the function chip; to modify the circuit connection relationship between the first bus data transmission pin, the second bus data transmission pin, the identification pin and the function chip of the electronic device Design, so that the universal serial bus socket of the electronic device can be used not only as an interface for charging, but also as an interface for loading and updating firmware; use the voltage level of the identification pin to judge the first bus data A basis for whether the transmission pin is connected to the first chip data transmission pin of the functional chip, and a basis for whether the second bus data transmission pin is connected to the second chip data transmission pin of the functional chip.

附图说明Description of drawings

图1:为公知可与电脑系统进行数据传输的电子装置的方框示意图。FIG. 1 is a schematic block diagram of a conventional electronic device capable of data transmission with a computer system.

图2:为公知不具备与电脑系统进行数据传输功能的电子装置的方框示意图。FIG. 2 is a schematic block diagram of a conventional electronic device that does not have the function of data transmission with a computer system.

图3:为公知电子装置的固件载入示意图。FIG. 3 is a schematic diagram of firmware loading of a conventional electronic device.

图4:为本发明使用通用序列总线插座进行固件载入的电子装置的方框示意图。FIG. 4 is a schematic block diagram of an electronic device using a USB socket for firmware loading according to the present invention.

图5:为图4所示电子装置连接于电源供应装置的示意图。FIG. 5 : is a schematic diagram of the electronic device shown in FIG. 4 connected to the power supply device.

图6:为图4所示电子装置的固件载入电路的部分电路示意图。FIG. 6 is a partial schematic diagram of a firmware loading circuit of the electronic device shown in FIG. 4 .

图7:为图4所示电子装置的固件载入电路的另一部分电路示意图。FIG. 7 is a circuit schematic diagram of another part of the firmware loading circuit of the electronic device shown in FIG. 4 .

图8:为本发明电子装置的固件载入方法于一较佳实施例的方法流程图。FIG. 8 is a method flow chart of a preferred embodiment of a firmware loading method of an electronic device according to the present invention.

图9:为应用图8所示方法将固件载入电子装置的功能芯片的示意图。FIG. 9 is a schematic diagram of loading firmware into a functional chip of an electronic device by applying the method shown in FIG. 8 .

图10:为本发明电子装置的固件载入方法于一另一较佳实施例的方法流程图。FIG. 10 is a flow chart of another preferred embodiment of the method for loading firmware of an electronic device according to the present invention.

其中,附图标记说明如下:Wherein, the reference signs are explained as follows:

1A电子装置  1B电子装置1A electronic device 1B electronic device

1C电子装置  2电脑系统1C electronic device 2computer system

3通用序列总线  4外接夹具板3 Universal Serial Bus 4 External Fixture Board

5电子装置  6电源供应装置5 Electronics 6 Power Supply

7通用序列总线  8外接夹具板7 Universal Serial Bus 8 External Fixture Board

11A通用序列总线插座  11B通用序列总线插座11A Universal Serial Bus socket 11B Universal Serial Bus socket

12A功能芯片  12B功能芯片12A function chip 12B function chip

12C功能芯片  13充电芯片12C function chip 13 charging chip

14电池  21通用序列总线插座14 battery 21 universal serial bus socket

31通用序列总线的插头  32通用序列总线的插头31 Plug for Universal Serial Bus 32 Plug for Universal Serial Bus

41导线  51通用序列总线插座41 wires 51 universal serial bus socket

52功能芯片  53充电芯片52 function chip 53 charging chip

54电池  55固件载入电路54 battery 55 firmware loading circuit

61通用序列总线插座  71通用序列总线的插头61 Universal Serial Bus socket 71 Universal Serial Bus plug

72通用序列总线的插头  81通用序列总线插座72 Universal Serial Bus plug 81 Universal Serial Bus socket

82开关按钮  111电源接脚82 switch buttons 111 power supply pins

112D-接脚  113D+接脚112D-pin 113D+pin

114ID接脚  115地源接脚114 ID pin 115 ground source pin

121第一芯片数据传输接脚  122第二芯片数据传输接脚121 Data transmission pin of the first chip 122 Data transmission pin of the second chip

123第一装置辨识接脚  124第二装置辨识接脚123 First device identification pin 124 Second device identification pin

511电源接脚  512第一总线数据传输接脚511 power supply pin 512 first bus data transmission pin

513第二总线数据传输接脚513 second bus data transmission pin

514识别接脚  515地源接脚514 identification pin 515 ground source pin

521第一芯片数据传输接脚521 first chip data transmission pin

522第二芯片数据传输接脚522 second chip data transmission pin

5511晶体管  5512晶体管5511 transistor 5512 transistor

5521晶体管  5522晶体管5521 Transistor 5522 Transistor

P1步骤  P2步骤P1 step P2 step

P步骤  S1询问信息P step S1 inquiry information

S2回复信息  S3固件数据S2 reply message S3 firmware data

S4询问信息  S5回复信息S4 inquiry information S5 reply information

R0电阻  R1电阻R0 resistor R1 resistor

R2电阻  R3电阻R2 resistor R3 resistor

R4电阻  R5电阻R4 resistor R5 resistor

R6电阻  R7电阻R6 resistor R7 resistor

R8电阻  R9电阻R8 resistor R9 resistor

具体实施方式Detailed ways

请参阅图4,其为本发明通过通用序列总线插座进行固件载入的电子装置的方框示意图。电子装置5包括通用序列总线插座51、功能芯片52、充电芯片53、连接于充电芯片53的电池54以及连接于通用序列总线插座51与功能芯片52之间的固件载入电路55,且功能芯片52中具有固件,用来执行特定的功能,例如当电子装置5为一无线充电装置时,功能芯片52则负责无线充电的工作;又,功能芯片52具有第一芯片数据传输接脚521以及第二芯片数据传输接脚522,且通用序列总线插座51具有电源接脚511、第一总线数据传输接脚512、第二总线数据传输接脚513、识别接脚514以及用以接地的地源接脚515。Please refer to FIG. 4 , which is a schematic block diagram of an electronic device for loading firmware through a USB socket according to the present invention. The electronic device 5 includes a USB socket 51, a functional chip 52, a charging chip 53, a battery 54 connected to the charging chip 53 and a firmware loading circuit 55 connected between the USB socket 51 and the functional chip 52, and the functional chip There is firmware in 52, which is used to execute specific functions. For example, when the electronic device 5 is a wireless charging device, the functional chip 52 is responsible for the work of wireless charging; and the functional chip 52 has a first chip data transmission pin 521 and a second Two chip data transmission pins 522, and the universal serial bus socket 51 has a power supply pin 511, a first bus data transmission pin 512, a second bus data transmission pin 513, an identification pin 514 and a ground source connection for grounding Foot 515.

于本较佳实施例中,通用序列总线插座51为一Micro USB插座(微型USB插座),且识别接脚514、第一总线数据传输接脚512以及第二总线数据传输接脚513分别为ID接脚、D-接脚以及D+接脚,而第一芯片数据传输接脚521以及第二芯片数据传输接脚522属于一通用非同步收发传输(Universal Asynchronous Receiver/Transmitter,UART)接口的接脚,如第一芯片数据传输接脚521以及第二芯片数据传输接脚522分别为接收接脚(Rx)以及发射接脚(Tx),但不以上述为限,本领域的技术人员可依据实际应用需求而进行任何均等的变更设计;举例来说,可变更设计为,第一芯片数据传输接脚521以及第二芯片数据传输接脚522属于一内部整合电路(Inter-Integrated Circuit,I2C)接口的接脚,如第一芯片数据传输接脚521以及第二芯片数据传输接脚522分别为串行数据(SDA)接脚以及串行时钟脉冲(SCL)接脚。In this preferred embodiment, the USB socket 51 is a Micro USB socket (micro USB socket), and the identification pin 514, the first bus data transmission pin 512 and the second bus data transmission pin 513 are respectively ID pin, D-pin and D+ pin, and the first chip data transmission pin 521 and the second chip data transmission pin 522 belong to the pins of a Universal Asynchronous Receiver/Transmitter (UART) interface , such as the first chip data transmission pin 521 and the second chip data transmission pin 522 are the receiving pin (Rx) and the transmitting pin (Tx) respectively, but not limited to the above, those skilled in the art can For example, the design can be changed so that the data transmission pin 521 of the first chip and the data transmission pin 522 of the second chip belong to an internal integrated circuit (Inter-Integrated Circuit, I 2 C ) interface pins, such as the first chip data transmission pin 521 and the second chip data transmission pin 522 are serial data (SDA) pins and serial clock pulse (SCL) pins respectively.

请参阅图5,其为图4所示电子装置连接于电源供应装置6的示意图。电源供应装置6内具有电力,如电脑系统或可随身携带的电源供应器等,但不以此为限,且电源供应装置6具有通用序列总线插座61;其中,当电子装置5通过通用序列总线线7连接于电源供应装置6时,也即当通用序列总线7两端的插头71、72分别插接于电子装置5的通用序列总线插座51以及电源供应装置6的通用序列总线插座61时,电源供应装置6所提供的电流可经由通用序列总线插座51的电源接脚511传输至充电芯片53,进而能够对电池54进行充电;一般来说,当通用序列总线接口为USB2.0接口时,电源供应装置6可提供电子装置5约500毫安培(mA)的电流,而当通用序列总线接口为USB3.0接口时,电源供应装置6则可提供电子装置5约900毫安培(mA)的电流。Please refer to FIG. 5 , which is a schematic diagram of the electronic device shown in FIG. 4 connected to the power supply device 6 . There is electric power in the power supply device 6, such as a computer system or a portable power supply device, etc., but not limited thereto, and the power supply device 6 has a universal serial bus socket 61; wherein, when the electronic device 5 passes through the universal serial bus When the line 7 is connected to the power supply device 6, that is, when the plugs 71 and 72 at both ends of the USB 7 are respectively plugged into the USB socket 51 of the electronic device 5 and the USB socket 61 of the power supply device 6, the power supply The current provided by the supply device 6 can be transmitted to the charging chip 53 via the power pin 511 of the USB socket 51, and then the battery 54 can be charged; generally speaking, when the USB2.0 interface is used, the power supply The supply device 6 can provide the electronic device 5 with a current of about 500 milliamps (mA), and when the USB3.0 interface is used, the power supply device 6 can provide the electronic device 5 with a current of about 900 milliamperes (mA). .

请参阅图6与图7,图6为图4所示固件载入电路的部分电路示意图,图7为图4所示固件载入电路的另一部分电路示意图。固件载入电路55包括第一开关元件551、第二开关元件552以及多个电阻R0~R9,且第一开关元件551连接于识别接脚514、第一总线数据传输接脚512、第一芯片数据传输接脚521以及电源接脚511之间,而第二开关元件552连接于识别接脚514、第二总线数据传输接脚513、第二芯片数据传输接脚522以及电源接脚511之间;其中,当识别接脚514的电压为一低电平电压时,第一开关元件551以及第二开关元件552呈关闭状态,也即第一总线数据传输接脚512与第二总线数据传输接脚513皆呈一浮接状态或呈一接地状态,用以使第一总线数据传输接脚512与第一芯片数据传输接脚521之间断开,以及使第二总线数据传输接脚513与第二芯片数据传输接脚522之间断开;而当识别接脚514的电压为一高电平电压时,第一开关元件551以及第二开关元件552被触发开启,用以使第一总线数据传输接脚512与第一芯片数据传输接脚521之间导通,以及使第二总线数据传输接脚513与第二芯片数据传输接脚522之间导通;于本较佳实施例中,第一开关元件551由晶体管5511以及晶体管5512所组成,而第二开关元件552由晶体管5521以及晶体管5522所组成,但不以上述为限。Please refer to FIG. 6 and FIG. 7 , FIG. 6 is a schematic diagram of a part of the firmware loading circuit shown in FIG. 4 , and FIG. 7 is a schematic diagram of another part of the firmware loading circuit shown in FIG. 4 . The firmware loading circuit 55 includes a first switch element 551, a second switch element 552 and a plurality of resistors R0-R9, and the first switch element 551 is connected to the identification pin 514, the first bus data transmission pin 512, the first chip between the data transmission pin 521 and the power supply pin 511, and the second switch element 552 is connected between the identification pin 514, the second bus data transmission pin 513, the second chip data transmission pin 522 and the power supply pin 511 ; Wherein, when the voltage of the identification pin 514 is a low level voltage, the first switch element 551 and the second switch element 552 are in the off state, that is, the first bus data transmission pin 512 and the second bus data transmission interface The pins 513 are all in a floating state or in a grounded state to disconnect the first bus data transmission pin 512 from the first chip data transmission pin 521, and to make the second bus data transmission pin 513 and the first chip data transmission pin 513 disconnect The data transmission pins 522 of the two chips are disconnected; and when the voltage of the identification pin 514 is a high-level voltage, the first switching element 551 and the second switching element 552 are triggered to be turned on to enable the first bus data transmission Conduction between the pin 512 and the first chip data transmission pin 521, and conduction between the second bus data transmission pin 513 and the second chip data transmission pin 522; in this preferred embodiment, the first A switch element 551 is composed of a transistor 5511 and a transistor 5512, and a second switch element 552 is composed of a transistor 5521 and a transistor 5522, but not limited to the above.

接下来说明本发明电子装置的固件载入方法。请参阅图8,其为本发明电子装置的固件载入方法于一较佳实施例的方法流程图。电子装置的固件载入方法包括:Next, the firmware loading method of the electronic device of the present invention will be described. Please refer to FIG. 8 , which is a flow chart of a method for loading firmware of an electronic device in a preferred embodiment of the present invention. The firmware loading method of the electronic device includes:

步骤P1:提供一高电平电压予通用序列总线插座51的识别接脚514,用以开启第一开关元件551以及第二开关元件552,进而使第一总线数据传输接脚512以及第一芯片数据传输接脚521之间导通,以及使第二总线数据传输接脚513以及第二芯片数据传输接脚522之间导通;以及Step P1: Provide a high-level voltage to the identification pin 514 of the USB socket 51 to turn on the first switch element 551 and the second switch element 552, thereby making the first bus data transmission pin 512 and the first chip conduction between the data transmission pins 521, and conduction between the second bus data transmission pin 513 and the second chip data transmission pin 522; and

步骤P2:使固件数据于依序经由第一总线数据传输接脚512以及第一芯片数据传输接脚521后传输进入功能芯片52。Step P2: The firmware data is transmitted into the functional chip 52 through the first bus data transmission pin 512 and the first chip data transmission pin 521 in sequence.

详言之,请参阅图9,其为应用图8所示方法将固件载入电子装置的功能芯片的示意图。外接夹具板8(即令一电子装置)存放有电子装置5所需的固件数据,并具有一通用序列总线插座81以及一开关按钮82,当电子装置5的研发人员或使用者欲将固件输入至功能芯片52或是欲对功能芯片52中的固件进行更新时,先通过将通用序列总线7两端的插头71、72分别插接于电子装置5的通用序列总线插座51以及外接夹具板8的通用序列总线插座81,以使电子装置5与外接夹具板8相连接。In detail, please refer to FIG. 9 , which is a schematic diagram of applying the method shown in FIG. 8 to load the firmware into the functional chip of the electronic device. The external fixture board 8 (that is, an electronic device) stores the firmware data required by the electronic device 5, and has a universal serial bus socket 81 and a switch button 82. When the developer or user of the electronic device 5 wants to input the firmware to the When the functional chip 52 or the firmware in the functional chip 52 are to be updated, first plug the plugs 71 and 72 at both ends of the universal serial bus 7 into the universal serial bus socket 51 of the electronic device 5 and the universal socket of the external fixture board 8 respectively. The serial bus socket 81 is used to connect the electronic device 5 with the external fixture board 8 .

再者,研发人员或使用者可通过触发开关按钮82使外接夹具板8提供高电平电压,使得高电平电压经由通用序列总线7后传输至通用序列总线插座51的识别接脚514,如此一来,第一开关元件551以及第二开关元件552就能够被触发开启,进而使第一总线数据传输接脚512以及第一芯片数据传输接脚521之间导通,以及使第二总线数据传输接脚513以及第二芯片数据传输接脚522之间导通,其如图8所述的步骤P1;而由于第一总线数据传输接脚512以及第一芯片数据传输接脚521之间被导通,外接夹具板8所存放的固件数据S3就可于依序经由通用序列总线7、第一总线数据传输接脚512以及第一芯片数据传输接脚521后传输进入功能芯片52,其如图8所述的步骤P2。Furthermore, the developer or user can trigger the switch button 82 to make the external fixture board 8 provide a high-level voltage, so that the high-level voltage is transmitted to the identification pin 514 of the USB socket 51 through the USB 7, so that As a result, the first switch element 551 and the second switch element 552 can be triggered to turn on, thereby making conduction between the first bus data transmission pin 512 and the first chip data transmission pin 521, and making the second bus data transmission pin 512 conductive. Conduction between the transmission pin 513 and the second chip data transmission pin 522, which is step P1 as described in FIG. 8; When it is turned on, the firmware data S3 stored in the external fixture board 8 can be transmitted into the function chip 52 after sequentially passing through the universal serial bus 7, the first bus data transmission pin 512 and the first chip data transmission pin 521, as shown in FIG. Step P2 described in FIG. 8 .

补充说明的是,由于图9所示电子装置5于载入固件的过程中,第二总线数据传输接脚513以及第二芯片数据传输接脚522都未被利用,故图8所示方法的步骤P1可简化设计为:当通用序列总线插座51的识别接脚514被提供一高电平电压时,仅有第一开关元件551被开启;再进一步而言,图4所示电子装置5也可简化设计为不包括第二开关元件552,且第二总线数据传输接脚513仅呈浮接状态或接地状态,而不与第二芯片数据传输接脚522相连接。It is supplemented that, since the electronic device 5 shown in FIG. 9 is in the process of loading firmware, the second bus data transmission pin 513 and the second chip data transmission pin 522 are not used, so the method shown in FIG. 8 The design of step P1 can be simplified as follows: when the identification pin 514 of the USB socket 51 is provided with a high-level voltage, only the first switching element 551 is turned on; furthermore, the electronic device 5 shown in FIG. 4 is also The design can be simplified as the second switch element 552 is not included, and the second bus data transmission pin 513 is only in a floating state or a ground state, and is not connected to the second chip data transmission pin 522 .

请参阅图10,其为本发明电子装置的固件载入方法于一另一较佳实施例的方法流程图。图10所示方法大致类似于图8所述者,在此即不再予以赘述,而不同之处在于,图10所示方法于步骤P1以及步骤P2之间还包括一步骤P:Please refer to FIG. 10 , which is a flow chart of another preferred embodiment of a firmware loading method of an electronic device according to the present invention. The method shown in FIG. 10 is roughly similar to that described in FIG. 8 , and will not be repeated here. The difference is that the method shown in FIG. 10 further includes a step P between step P1 and step P2:

使外接夹具板8输出的询问信息S4依序经由通用序列总线7、第一总线数据传输接脚512以及第一芯片数据传输接脚521后传输进入功能芯片52;其中,若功能芯片52于接收该询问信息S4后有输出的一回复信息S5而使该回复信息S5于依序经由第二芯片数据传输接脚522、第二总线数据传输接脚513以及通用序列总线线7后传输回外接夹具板时,才执行步骤P2。The query information S4 output by the external fixture board 8 is transmitted into the function chip 52 through the universal serial bus 7, the first bus data transmission pin 512 and the first chip data transmission pin 521 in sequence; wherein, if the function chip 52 receives The query message S4 is followed by a reply message S5, so that the reply message S5 is transmitted back to the external fixture after sequentially passing through the second chip data transmission pin 522, the second bus data transmission pin 513 and the universal serial bus line 7. When the board is selected, step P2 is executed.

根据以上的说明可知,研发人员或使用者只要通过将通用序列总线7使电子装置5以及存放有固件的外接夹具板8相连接,就能将固件输入至电子装置5的功能芯片52或是对功能芯片52中的固件进行更新,解决了现有技术中研发人员或使用者还必须先将导线焊接于功能芯片以及外接夹具板之间等的繁琐程序,实为一极具产业利用性的发明。According to the above description, it can be seen that as long as the developer or user connects the electronic device 5 and the external fixture board 8 storing the firmware through the universal serial bus 7, the firmware can be input to the function chip 52 of the electronic device 5 or to the The firmware in the function chip 52 is updated, which solves the cumbersome procedures in the prior art that the research and development personnel or users must first solder the wires between the function chip and the external fixture board, etc., which is an invention with great industrial applicability .

另外要特别说明的是,由现有技术中图2与图3的说明可知,电子装置1C的通用序列总线插座11B仅供用来作为充电的接口,因此通用序列总线插座11B的第一总线数据传输接脚112、第二总线数据传输接脚113以及识别接脚114原是没有功用的三个接脚;是以,本发明对电子装置5的第一总线数据传输接脚512、第二总线数据传输接脚513、识别接脚514与功能芯片52之间的电路连接关系加以设计,而使得电子装置5的通用序列总线插座51不仅可用来做为充电的接口,也可用来作为进行固件载入与更新的接口。In addition, it should be noted that, as can be seen from the description of Fig. 2 and Fig. 3 in the prior art, the USB socket 11B of the electronic device 1C is only used as an interface for charging, so the first bus data transmission of the USB socket 11B The pin 112, the second bus data transmission pin 113 and the identification pin 114 are originally three pins with no function; The circuit connection relationship between the transmission pin 513, the identification pin 514 and the function chip 52 is designed, so that the USB socket 51 of the electronic device 5 can be used not only as a charging interface, but also as a firmware loading with an updated interface.

再者,由现有技术中图1的说明可知,当电子装置1A通过通用序列总线线3连接于电脑系统2时,电脑系统2会先与功能芯片12A之间进行沟通程序,以进而辨识电子装置1A的规格,然而因为本发明电子装置5的通用序列总线插座51的第一总线数据传输接脚512并非是连接于功能芯片52的第一装置辨识接脚,且通用序列总线插座51的第二总线数据传输接脚513并非是连接于功能芯片52的第二装置辨识接脚,甚至是本发明电子装置5的功能芯片52不具有第一装置辨识接脚以及第二装置辨识接脚,故倘若电子装置5连接于电脑系统时,通用序列总线插座51的第一总线数据传输接脚512与第二总线数据传输接脚513没有呈浮接状态或呈接地状态,则会发生电脑系统误判电子装置5为“不能识别的装置”的情形,进而造成电脑系统无法对电子装置5进行充电。Furthermore, from the description of FIG. 1 in the prior art, it can be seen that when the electronic device 1A is connected to the computer system 2 through the universal serial bus line 3, the computer system 2 will first communicate with the functional chip 12A to further identify the electronic device. The specifications of the device 1A, however, because the first bus data transmission pin 512 of the USB socket 51 of the electronic device 5 of the present invention is not connected to the first device identification pin of the functional chip 52, and the first USB socket 51 of the present invention The second bus data transmission pin 513 is not the second device identification pin connected to the functional chip 52, and even the functional chip 52 of the electronic device 5 of the present invention does not have the first device identification pin and the second device identification pin, so If the electronic device 5 is connected to the computer system, the first bus data transmission pin 512 and the second bus data transmission pin 513 of the universal serial bus socket 51 are not in a floating state or in a grounded state, a misjudgment by the computer system will occur If the electronic device 5 is an "unrecognizable device", the computer system cannot charge the electronic device 5 .

是以,为了避免上述情形的发生,本发明利用识别接脚514的电压电平的高低来作为判断第一总线数据传输接脚512与功能芯片52的第一芯片数据传输接脚521之间是否导通的依据,以及作为第二总线数据传输接脚513与功能芯片52的第二芯片数据传输接脚522之间是否导通的依据;也就是说,当电子装置5通过通用序列总线7连接于电脑系统而进行充电时,由于此时通用序列总线的识别接脚514的电压为低电平电压,故通用序列总线插座51的第一总线数据传输接脚512与第二总线数据传输接脚513呈浮接状态或呈接地状态,因此电脑系统可顺利对电子装置5进行充电;而当电子装置5通过通用序列总线7连接于外接夹具板8而进行载入固件动作时,由于外接夹具板8会提供高电平电压予通用序列总线的识别接脚514,故第一总线数据传输接脚512与功能芯片52的第一芯片数据传输接脚521会被导通,且第二总线数据传输接脚513与功能芯片52的第二芯片数据传输接脚522会被导通,因此外接夹具板8内的固件数据可传输进入功能芯片52。Therefore, in order to avoid the occurrence of the above-mentioned situation, the present invention uses the voltage level of the identification pin 514 as a function of judging whether the first bus data transmission pin 512 and the first chip data transmission pin 521 of the functional chip 52 The basis of conducting, and as the basis of conducting whether the second bus data transmission pin 513 and the second chip data transmission pin 522 of the functional chip 52; that is to say, when the electronic device 5 is connected through the universal serial bus When the computer system is charging, since the voltage of the identification pin 514 of the Universal Serial Bus is a low-level voltage at this time, the first bus data transmission pin 512 and the second bus data transmission pin of the Universal Serial Bus socket 51 513 is floating or grounded, so the computer system can charge the electronic device 5 smoothly; and when the electronic device 5 is connected to the external fixture board 8 through the universal serial bus 7 to load firmware, due to the external fixture board 8 will provide a high-level voltage to the identification pin 514 of the universal serial bus, so the first bus data transmission pin 512 and the first chip data transmission pin 521 of the function chip 52 will be turned on, and the second bus data transmission The pin 513 is connected to the second chip data transmission pin 522 of the functional chip 52 , so the firmware data in the external fixture board 8 can be transmitted into the functional chip 52 .

以上所述仅为本发明的较佳实施例,并非用以限定本发明的权利要求,因此凡其它未脱离本发明所揭示的精神下所完成的等效改变或修饰,均应包含于本案的权利要求内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the claims of the present invention. Therefore, all other equivalent changes or modifications that do not deviate from the spirit disclosed in the present invention should be included in the scope of this case. within the claims.

Claims (19)

1.一种使用通用序列总线插座进行固件载入的电子装置,包括:1. An electronic device for loading firmware using a USB socket, comprising: 一通用序列总线插座,包括一识别接脚以及一第一总线数据传输接脚;A universal serial bus socket, including an identification pin and a first bus data transmission pin; 一功能芯片,用以执行一功能,并包括一第一芯片数据传输接脚;以及A functional chip, used to perform a function, and includes a first chip data transmission pin; and 一第一开关元件,连接于该识别接脚、该第一总线数据传输接脚以及该第一芯片数据传输接脚之间;a first switch element connected between the identification pin, the first bus data transmission pin and the first chip data transmission pin; 其中,当该识别接脚的电压为一低电平电压时,该第一开关元件呈关闭状态,用以使该第一总线数据传输接脚以及该第一芯片数据传输接脚之间断开;而当该识别接脚的电压为一高电平电压时,该第一开关元件被触发开启,用以使该第一总线数据传输接脚以及该第一芯片数据传输接脚之间导通。Wherein, when the voltage of the identification pin is a low-level voltage, the first switch element is turned off, so as to disconnect the first bus data transmission pin and the first chip data transmission pin; And when the voltage of the identification pin is a high level voltage, the first switching element is triggered to be turned on, so as to conduct the first bus data transmission pin and the first chip data transmission pin. 2.如权利要求1所述的使用通用序列总线插座进行固件载入的电子装置,其中该通用序列总线插座以及该功能芯片还分别包括一第二总线数据传输接脚以及一第二芯片数据传输接脚,且该电子装置还包括一第二开关元件连接于该识别接脚、该第二总线数据传输接脚以及该第二芯片数据传输接脚的间;其中,当该识别接脚的电压为一低电平电压时,该第二开关元件呈关闭状态,用以使该第二总线数据传输接脚以及该第二芯片数据传输接脚之间断开;而当该识别接脚的电压为一高电平电压时,该第二开关元件被触发开启,用以使该第二总线数据传输接脚以及该第二芯片数据传输接脚之间导通。2. The electronic device using a USB socket for firmware loading as claimed in claim 1, wherein the USB socket and the functional chip further include a second bus data transmission pin and a second chip data transmission pin respectively. Pin, and the electronic device also includes a second switch element connected between the identification pin, the second bus data transmission pin and the second chip data transmission pin; wherein, when the voltage of the identification pin When it is a low-level voltage, the second switch element is in a closed state to disconnect the second bus data transmission pin and the second chip data transmission pin; and when the voltage of the identification pin is When the voltage is at a high level, the second switching element is triggered to be turned on, so as to conduct the connection between the second bus data transmission pin and the second chip data transmission pin. 3.如权利要求2所述的使用通用序列总线插座进行固件载入的电子装置,其中该第二开关元件由至少一晶体管所组成。3. The electronic device for loading firmware using a USB socket as claimed in claim 2, wherein the second switching element is composed of at least one transistor. 4.如权利要求2所述的使用通用序列总线插座进行固件载入的电子装置,其中该第一芯片数据传输接脚以及该第二芯片数据传输接脚属于一内部整合电路接口或属于一通用非同步收发传输接口。4. The electronic device using a USB socket for firmware loading as claimed in claim 2, wherein the data transmission pin of the first chip and the data transmission pin of the second chip belong to an internal integrated circuit interface or belong to a common Asynchronous transceiver transmission interface. 5.如权利要求2所述的使用通用序列总线插座进行固件载入的电子装置,其中由一另一电子装置所输出的一询问信息依序经由该第一总线数据传输接脚以及该第一芯片数据传输接脚后传输至该功能芯片,且该功能芯片所输出的一回复信息依序经由该第二芯片数据传输接脚以及该第二总线数据传输接脚后传输至该另一电子装置。5. The electronic device using a USB socket for firmware loading as claimed in claim 2, wherein an inquiry message output by another electronic device sequentially passes through the first bus data transmission pin and the first The chip data transmission pin is then transmitted to the functional chip, and a reply message output by the functional chip is sequentially transmitted to the other electronic device through the second chip data transmission pin and the second bus data transmission pin . 6.如权利要求2所述的使用通用序列总线插座进行固件载入的电子装置,其中该通用序列总线插座为一微型USB插座,且该识别接脚、该第一总线数据传输接脚以及该第二总线数据传输接脚分别为ID接脚、D-接脚以及D+接脚。6. The electronic device using a USB socket for firmware loading as claimed in claim 2, wherein the USB socket is a micro-USB socket, and the identification pin, the first bus data transmission pin and the The second bus data transmission pins are respectively an ID pin, a D- pin and a D+ pin. 7.如权利要求1所述的使用通用序列总线插座进行固件载入的电子装置,其中当该识别接脚的电压为该低电平电压时,该第一总线数据传输接脚呈一浮接状态或呈一接地状态。7. The electronic device for loading firmware using a Universal Serial Bus socket as claimed in claim 1, wherein when the voltage of the identification pin is the low level voltage, the first bus data transmission pin is in a floating state state or a grounded state. 8.如权利要求1所述的使用通用序列总线插座进行固件载入的电子装置,其中该第一开关元件由至少一晶体管所组成。8. The electronic device for loading firmware using a USB socket as claimed in claim 1, wherein the first switching element is composed of at least one transistor. 9.如权利要求1所述的使用通用序列总线插座进行固件载入的电子装置,其中由一另一电子装置所输出的一固件数据依序经由该第一总线数据传输接脚以及该第一芯片数据传输接脚后传输至该功能芯片。9. The electronic device using a USB socket for firmware loading as claimed in claim 1, wherein a firmware data output by another electronic device sequentially passes through the first bus data transmission pin and the first The chip data transmission pin is then transmitted to the functional chip. 10.如权利要求9所述的使用通用序列总线插座进行固件载入的电子装置,其中该另一电子装置为一电脑装置或一外接夹具板。10. The electronic device using USB socket for firmware loading as claimed in claim 9, wherein the other electronic device is a computer device or an external fixture board. 11.如权利要求2所述的使用通用序列总线插座进行固件载入的电子装置,还包括一充电芯片以及连接于该充电芯片的一电池,且该充电芯片用以执行一充电功能;其中,该通用序列总线插座还包括一电源接脚,且该电源接脚连接于该充电芯片。11. The electronic device for loading firmware using a USB socket as claimed in claim 2, further comprising a charging chip and a battery connected to the charging chip, and the charging chip is used to perform a charging function; wherein, The USB socket also includes a power pin, and the power pin is connected to the charging chip. 12.一种电子装置的固件载入方法,用以使一固件数据输入至一电子装置的一功能芯片中,且该电子装置包括一通用序列总线插座,其中该电子装置的固件载入方法包括:12. A firmware loading method of an electronic device, used to input a firmware data into a functional chip of an electronic device, and the electronic device includes a USB socket, wherein the firmware loading method of the electronic device includes : (a)提供一高电平电压予该通用序列总线插座的一识别接脚,用以开启连接于该通用序列总线插座的一第一总线数据传输接脚以及该功能芯片的一第一芯片数据传输接脚之间的一第一开关元件,以使该第一总线数据传输接脚以及该第一芯片数据传输接脚之间导通;以及(a) Provide a high-level voltage to an identification pin of the universal serial bus socket to turn on a first bus data transmission pin connected to the universal serial bus socket and a first chip data of the functional chip a first switching element between the transmission pins, so as to conduct between the first bus data transmission pin and the first chip data transmission pin; and (b)使该固件数据于依序经由该第一总线数据传输接脚以及该第一芯片数据传输接脚后传输进入该功能芯片。(b) The firmware data is transmitted into the function chip after sequentially passing through the first bus data transmission pin and the first chip data transmission pin. 13.如权利要求12所述的电子装置的固件载入方法,其中当该通用序列总线插座的该识别接脚被提供该高电平电压时,连接于该通用序列总线插座的一第二总线数据传输接脚以及该功能芯片的一第二芯片数据传输接脚之间的一第二开关元件被触发开启,以使该第二总线数据传输接脚以及该第二芯片数据传输接脚之间导通。13. The firmware loading method of an electronic device as claimed in claim 12, wherein when the identification pin of the USB socket is provided with the high level voltage, a second bus connected to the USB socket A second switch element between the data transmission pin and a second chip data transmission pin of the functional chip is triggered to open, so that the second bus data transmission pin and the second chip data transmission pin conduction. 14.如权利要求13所述的电子装置的固件载入方法,其中该固件数据来自于一另一电子装置,且于该步骤(a)以及该步骤(b)之间还包括:14. The firmware loading method of an electronic device as claimed in claim 13, wherein the firmware data comes from another electronic device, and between the step (a) and the step (b), further comprising: 使该另一电子装置的一询问信息于依序经由该第一总线数据传输接脚以及该第一芯片数据传输接脚后传输进入该功能芯片;其中,当该功能芯片于接收该询问信息后输出的一回复信息而使该回复信息依序经由该第二芯片数据传输接脚以及该第二总线数据传输接脚传输至该另一电子装置时,执行步骤(b)。Make an inquiry message of the other electronic device transmit into the function chip after sequentially passing through the first bus data transmission pin and the first chip data transmission pin; wherein, when the function chip receives the inquiry information Step (b) is executed when the reply information is outputted so that the reply information is transmitted to the other electronic device via the second chip data transmission pin and the second bus data transmission pin in sequence. 15.如权利要求14所述的电子装置的固件载入方法,其中该另一电子装置为一电脑装置或一外接夹具板。15. The firmware loading method of an electronic device as claimed in claim 14, wherein the other electronic device is a computer device or an external fixture board. 16.如权利要求13所述的电子装置的固件载入方法,其中该第一开关元件以及该第二开关元件皆由至少一晶体管所组成。16. The firmware loading method of an electronic device as claimed in claim 13, wherein both the first switch element and the second switch element are composed of at least one transistor. 17.如权利要求13所述的电子装置的固件载入方法,其中该第一芯片数据传输接脚以及该第二芯片数据传输接脚属于一内部整合电路接口或属于一通用非同步收发传输接口。17. The firmware loading method of an electronic device as claimed in claim 13, wherein the first chip data transmission pin and the second chip data transmission pin belong to an internal integrated circuit interface or belong to a general asynchronous transceiver transmission interface . 18.如权利要求13所述的电子装置的固件载入方法,其中该通用序列总线插座为一微型USB插座,且该识别接脚、该第一总线数据传输接脚以及该第二总线数据传输接脚分别为ID接脚、D-接脚以及D+接脚。18. The firmware loading method of an electronic device as claimed in claim 13, wherein the USB socket is a micro-USB socket, and the identification pin, the first bus data transmission pin and the second bus data transmission pin The pins are respectively an ID pin, a D- pin and a D+ pin. 19.如权利要求12所述的电子装置的固件载入方法,其中当该识别接脚的电压为一低电平电压时,该第一总线数据传输接脚呈一浮接状态或呈一接地状态。19. The firmware loading method of an electronic device as claimed in claim 12, wherein when the voltage of the identification pin is a low level voltage, the first bus data transmission pin is in a floating state or is in a grounding state state.
CN201310694825.3A 2013-12-16 2013-12-16 Electronic device using universal serial bus socket for firmware loading and its firmware loading method Pending CN104714915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310694825.3A CN104714915A (en) 2013-12-16 2013-12-16 Electronic device using universal serial bus socket for firmware loading and its firmware loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310694825.3A CN104714915A (en) 2013-12-16 2013-12-16 Electronic device using universal serial bus socket for firmware loading and its firmware loading method

Publications (1)

Publication Number Publication Date
CN104714915A true CN104714915A (en) 2015-06-17

Family

ID=53414264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310694825.3A Pending CN104714915A (en) 2013-12-16 2013-12-16 Electronic device using universal serial bus socket for firmware loading and its firmware loading method

Country Status (1)

Country Link
CN (1) CN104714915A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293845A (en) * 2016-08-15 2017-01-04 中科创达软件科技(深圳)有限公司 A kind of terminal enters control method and the device of brush machine pattern
CN112310754A (en) * 2019-07-26 2021-02-02 致伸科技股份有限公司 Universal Serial Bus Interface Conversion Device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1823319A (en) * 2003-08-28 2006-08-23 富士通株式会社 Control method of host device, device and communication system
US20060223486A1 (en) * 2005-04-04 2006-10-05 Freescale Semiconductor, Inc. Method and apparatus for powering and loading software into a battery-less electronic device
CN101937414A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Method and device of sharing minitype USB interface for UART (Universal Asynchronous Receive/Transmitter) and USB (Universal Serial Bus)
CN102143266A (en) * 2011-02-18 2011-08-03 深圳桑菲消费通信有限公司 Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface
CN102739836A (en) * 2011-04-01 2012-10-17 希姆通信息技术(上海)有限公司 USB-UART (universal asynchronous receiver/transmitter) downloading adapter
CN103019991A (en) * 2012-12-03 2013-04-03 深圳市文鼎创数据科技有限公司 Interface system, switching method, USB key and UART terminal
CN103207850A (en) * 2013-03-14 2013-07-17 昆山五昌新精密电子工业有限公司 External device and transmission system and transmission method of different type device
US20130185462A1 (en) * 2012-01-16 2013-07-18 Renesas Electronics Corporation Usb 3.0 device and control method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1823319A (en) * 2003-08-28 2006-08-23 富士通株式会社 Control method of host device, device and communication system
US20060223486A1 (en) * 2005-04-04 2006-10-05 Freescale Semiconductor, Inc. Method and apparatus for powering and loading software into a battery-less electronic device
CN101937414A (en) * 2010-08-26 2011-01-05 惠州Tcl移动通信有限公司 Method and device of sharing minitype USB interface for UART (Universal Asynchronous Receive/Transmitter) and USB (Universal Serial Bus)
CN102143266A (en) * 2011-02-18 2011-08-03 深圳桑菲消费通信有限公司 Method for extending universal serial bus (USB) interface of mobile terminal into serial communication interface
CN102739836A (en) * 2011-04-01 2012-10-17 希姆通信息技术(上海)有限公司 USB-UART (universal asynchronous receiver/transmitter) downloading adapter
US20130185462A1 (en) * 2012-01-16 2013-07-18 Renesas Electronics Corporation Usb 3.0 device and control method thereof
CN103019991A (en) * 2012-12-03 2013-04-03 深圳市文鼎创数据科技有限公司 Interface system, switching method, USB key and UART terminal
CN103207850A (en) * 2013-03-14 2013-07-17 昆山五昌新精密电子工业有限公司 External device and transmission system and transmission method of different type device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293845A (en) * 2016-08-15 2017-01-04 中科创达软件科技(深圳)有限公司 A kind of terminal enters control method and the device of brush machine pattern
CN112310754A (en) * 2019-07-26 2021-02-02 致伸科技股份有限公司 Universal Serial Bus Interface Conversion Device
CN112310754B (en) * 2019-07-26 2022-06-03 致伸科技股份有限公司 Universal Serial Bus Interface Conversion Device

Similar Documents

Publication Publication Date Title
TWI764195B (en) Usb interface detection module
CN105335311A (en) Portable electronic device and power management method
CN102483728A (en) Device-dependent selection between modes for asymmetric serial protocols
CN104239097B (en) A kind of method, system and mobile terminal by updating mobile terminal accessory
TW201523266A (en) Electronic device using USB plugging set to load firmware and firmware loading method thereof
WO2017113683A1 (en) Usb data line comprising extension interface and control method thereof
US10955888B2 (en) Universal serial bus device and method for dynamically defining a power source or sink status for downstream facing ports
CN109298266B (en) Test system, test method, test device and storage medium
US20110244728A1 (en) Universal serial bus connector and adaptor of the connector
CN107181145A (en) A kind of data line and USB data line interface
WO2017161750A1 (en) Mobile apparatus
CN106877103A (en) A kind of method and adapter for realizing circuit switching
TW201810060A (en) Connector with USB form factor, data transmission device and data storage device thereof
CN102270860B (en) Smartphone fast charging device
CN104714915A (en) Electronic device using universal serial bus socket for firmware loading and its firmware loading method
CN104915310A (en) Electronic system
CN108268411A (en) The method and mobile terminal of a kind of data transmission
CN103473208B (en) Transmission system
CN216625389U (en) Wireless charging equipment
CN205583335U (en) Electronic connecting line
KR20150072248A (en) USB OTG memory device
CN102236374B (en) motherboard
TWI410799B (en) Detecting apparatus
CN101266536B (en) Detection device
CN111190839B (en) Storage device and its micro interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150617

WD01 Invention patent application deemed withdrawn after publication