CN109597630B - P2MP software programming device and method with detection function - Google Patents

P2MP software programming device and method with detection function Download PDF

Info

Publication number
CN109597630B
CN109597630B CN201910085299.8A CN201910085299A CN109597630B CN 109597630 B CN109597630 B CN 109597630B CN 201910085299 A CN201910085299 A CN 201910085299A CN 109597630 B CN109597630 B CN 109597630B
Authority
CN
China
Prior art keywords
programming
slaves
board
slave
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910085299.8A
Other languages
Chinese (zh)
Other versions
CN109597630A (en
Inventor
王天辉
邹绍见
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Gotech Intelligent Technology Co Ltd
Original Assignee
Zhuhai Gotech Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Gotech Intelligent Technology Co Ltd filed Critical Zhuhai Gotech Intelligent Technology Co Ltd
Priority to CN201910085299.8A priority Critical patent/CN109597630B/en
Publication of CN109597630A publication Critical patent/CN109597630A/en
Application granted granted Critical
Publication of CN109597630B publication Critical patent/CN109597630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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/0016Inter-integrated circuit (I2C)

Abstract

The invention relates to a P2MP software programming device with a detection function and a method thereof, comprising the following steps: the system comprises a host computer, a programming board and a plurality of slaves, wherein the host computer is connected with the programming board through I2C, and the programming board is respectively connected with the slaves through I2C; the programming board comprises: the optical coupler, the TXD serial port, the RXD serial port and the plurality of buffers are used for programming the program of the host computer to the plurality of slaves through the programming board. The invention simplifies the programming board, omits control devices such as a singlechip and the like, does not need programming programs of the programming board, adopts a logic circuit consisting of a simple buffer and an optical coupler, realizes one-to-many faster programming, adopts I2C to detect and lock the slave, and completes the more accurate programming slave with detection, thereby saving resources and reducing cost.

Description

P2MP software programming device and method with detection function
Technical Field
The invention belongs to the technical field of electronics, and particularly relates to a P2MP software programming device and method with a detection function.
Background
The function of the Decoder of the STB (set top box) is more and more powerful, and the Decoder is a high-performance SoC (system on a chip) with high integration, economy and high efficiency. Currently, more and more manufacturers integrate demodulators (demodulators) and DDR (double data rate) into a processor, and recently, a CPU embedded in a FLASH appears, and for this situation, a conventional programming method cannot accurately and quickly program, for example: winGDB debugging, namely JTAG simulation, is used for programming, the programming is slow, the programming is inconvenient, the simulation circuits are additionally added on the main board, the STB serial ports can be updated one by PC, and the efficiency and the low efficiency are caused by the fact that the programming of 4M takes about 10 minutes because the PC serial ports are relatively slow.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a P2MP software programming device with a detection function and a method thereof, the programming device simplifies a programming board, omits control devices such as a singlechip and the like, does not need programming programs of the programming board, adopts a logic circuit consisting of a simple buffer and an optical coupler, realizes programming of programs more quickly one to many, adopts I2C to carry out detection locking of a slave, completes more accurate programming of the slave with detection, saves resources and reduces cost.
In order to solve the technical problems, the invention adopts the following technical scheme:
a P2MP software programming device with a detection function comprises: the system comprises a host computer, a programming board and a plurality of slaves, wherein the host computer is connected with the programming board through I2C, and the programming board is respectively connected with the slaves through I2C and used for controlling and detecting the states of the slaves; the programming board comprises: the optical coupler, TXD serial ports, RXD serial ports and a plurality of buffers, wherein, a plurality of buffers pass through RXD serial ports with the host computer links to each other, every the buffer is connected with a plurality of the optical coupler, every the optical coupler passes through TXD serial ports is connected with the slave machine for write the procedure of host computer to a plurality of slave machines through the board of writing.
Further, the method further comprises the following steps: and the display equipment is respectively connected with the plurality of slaves and is used for prompting the connection state of the slaves.
Furthermore, the host is provided with a P2MP key for entering a programming mode and a programming key for starting programming.
Furthermore, the writing board is also provided with a grounding port which is used for being respectively connected with the grounding ports of the host computer and the slave computer.
Furthermore, the programming board is also provided with a power port which is used for being respectively connected with the power ports of the host computer and the slave computer.
Further, the master and the slave are set top boxes.
Meanwhile, the method for programming the program by using the P2MP software programming device with the detection function comprises the following steps of:
s1: enabling the host to enter a programming mode, and enabling the host to send a synchronous signal through a serial port;
s2: the slaves respectively receive the synchronous signals and synchronize with the master;
s3: the host computer sends I2C data to lock a plurality of slaves, and whether the slaves are connected normally or not is detected;
s4: the host computer divides the program data into a plurality of paths through the programming board and sends the paths to the slave computers which are connected normally, and the program data are programmed into FLASH and OTP.
Further, the method further comprises the step S5: and the slave receives a restarting instruction sent by the host to restart, and the programming is completed.
The beneficial effects of the invention at least comprise: the invention simplifies the programming board, omits control devices such as a singlechip and the like, does not need programming programs of the programming board, only adopts a logic circuit consisting of a simple buffer and an optical coupler to realize one-to-many faster programming, adopts I2C to perform detection locking of the slave, and completes more accurate programming of the slave with detection, thereby saving resources and reducing cost.
Drawings
FIG. 1 is a schematic view of the structure of the device of the present invention.
FIG. 2 is a schematic diagram of a structure of a writing board according to the present invention.
FIG. 3 is a flow chart of the programming method of the present invention.
Detailed Description
In order to enable those skilled in the art to better understand the technical scheme of the present invention, the present invention will be further described in detail with reference to specific embodiments. The following examples are illustrative only and are not to be construed as limiting the invention. The examples are not to be construed as limiting the specific techniques or conditions described in the literature in this field or as per the specifications of the product.
According to an embodiment of the present invention, fig. 1 is a schematic structural diagram of an apparatus of the present invention, and referring to fig. 1, a P2MP software programming apparatus with a detection function according to the present invention mainly includes: the system comprises a host computer, a programming board and a plurality of slaves (slave 1-slave N in the figure), wherein the host computer is connected with the programming board through I2C, and the programming board is respectively connected with the slaves through I2C and used for controlling and detecting the states of the slaves. It is understood that I2C includes: the invention adds response protocol I2C in P2MP transmission to control each slave, and judges whether the programming process is normal or not by SDA, and the slave is connected successfully or not, and the data is transmitted only after the connection is successful.
According to some embodiments of the present invention, the writing apparatus may further include: and the display equipment is respectively connected with the plurality of slaves and is used for prompting the connection state of the slaves.
According to some embodiments of the present invention, the host is further provided with a P2MP key for entering a programming mode and a programming key for starting programming.
According to an embodiment of the present invention, referring to fig. 1, the writing board is further provided with a ground port (GND) for being connected to the ground ports of the master and slave, respectively.
According to an embodiment of the present invention, referring to fig. 1, the writing board is further provided with a power port (the power voltage is 5V) for connecting with the power ports of the master and the slave, respectively.
According to an embodiment of the present invention, in order to more clearly describe the technical solution of the present invention, the present invention sets two buffers, and the optocouplers are set to 16 (optocoupler 1-optocoupler 16 in the figure), that is, 16 slaves, to describe, fig. 2 is a schematic diagram of a programming board structure of this embodiment of the present invention, and referring to fig. 1 and 2, the programming board includes: the two buffers are connected with the TXD serial port of the host through the TXD serial port, each buffer is provided with 8 paths of output ends which are respectively connected with the 16 optical couplers, each optical coupler is connected with the RXD serial port of the slave through the TXD serial port, each route optical coupler isolates 16 paths of data without interference, bidirectional asynchronous communication of data buses of the host and the slave is realized, and a program of the host is programmed to a plurality of slaves through a programming board in a program programming process. It will be appreciated that the present invention is not particularly limited to the specific number of buffers and optocouplers and slaves.
In another aspect of the present invention, a method for programming a program by using the P2MP software programming device with a detection function is provided, and fig. 3 is a flowchart of the programming method of the present invention, and referring to fig. 3, the method mainly includes the following steps:
s1: enabling the host to enter a programming mode, and enabling the host to send a synchronous signal through a serial port;
s2: the slaves respectively receive the synchronous signals and synchronize with the master;
s3: the host computer sends I2C data to lock a plurality of slaves, and whether the slaves are connected normally or not is detected;
s4: the host divides the program data into a plurality of paths through the programming board and sends the paths to the slave computers which are connected normally, and the host writes FLASH and OTP; according to some embodiments of the invention, the OTP setting of the encryption boot is opened for encryption at the time of programming.
According to an embodiment of the present invention, further comprising step S5: and the slave receives a restarting instruction sent by the host to restart, and the programming is completed.
According to some embodiments of the present invention, the host and the slave are devices, such as a set top box, in which a CPU is embedded in a flash, and the specific kind is not limited.
In summary, the invention simplifies the programming board, omits control devices such as a singlechip, and the like, does not need programming programs of the programming board, only needs a logic circuit consisting of a simple buffer and an optical coupler, realizes one-to-many faster programming, adopts I2C to perform detection locking of the slave, completes more accurate programming of the slave with detection, saves resources and reduces cost.
In the present invention, unless explicitly specified and limited otherwise, the terms "connected," "connected," and the like are to be construed broadly, and may be fixedly connected, detachably connected, or integrally formed, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
While embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by those of ordinary skill in the art within the scope of the invention, as well as variations in the detailed description and application of the invention, as would be apparent to those of ordinary skill in the art in light of the teachings of this application.

Claims (5)

1. A P2MP software programming device with a detection function comprises: the system comprises a host computer, a programming board and a plurality of slaves, and is characterized in that the host computer is connected with the programming board through I2C, and the programming board is respectively connected with the slaves through I2C and is used for controlling and detecting the states of the slaves;
the programming board comprises: the optical coupler, the TXD serial port, the RXD serial port and the plurality of buffers, wherein the plurality of buffers are connected with the host computer through the RXD serial port, each buffer is connected with a plurality of optical couplers, each optical coupler is connected with the slave computer through the TXD serial port, and the optical couplers are used for programming a program of the host computer to the plurality of slave computers through a programming board; the host is provided with a P2MP key for entering a programming mode and a programming key for starting programming;
specifically, the method for programming the program by the programming device comprises the following steps:
s1: enabling the host to enter a programming mode, and enabling the host to send a synchronous signal through a serial port;
s2: the slaves respectively receive the synchronous signals and synchronize with the master;
s3: the host computer sends I2C data to lock a plurality of slaves, and whether the slaves are connected normally or not is detected;
s4: the host divides the program data into a plurality of paths through the programming board and sends the paths to the slave computers which are connected normally, and the host writes FLASH and OTP; starting OTP setting of an encryption boot for encryption during programming;
s5: and the slave receives a restarting instruction sent by the host to restart, and the programming is completed.
2. The P2MP software programming device with detection function according to claim 1, further comprising: and the display equipment is respectively connected with the plurality of slaves and is used for prompting the connection state of the slaves.
3. The P2MP software programming device with detection function according to claim 1, wherein said programming board is further provided with a ground port for connecting with the ground ports of said master and slave, respectively.
4. The P2MP software programming device with detection function according to claim 1, wherein said programming board is further provided with a power port for connecting with the power ports of said master and slave, respectively.
5. The P2MP software programming device with detection function according to any one of claims 1 to 4, wherein the master and the slave are set-top boxes.
CN201910085299.8A 2019-01-29 2019-01-29 P2MP software programming device and method with detection function Active CN109597630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910085299.8A CN109597630B (en) 2019-01-29 2019-01-29 P2MP software programming device and method with detection function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910085299.8A CN109597630B (en) 2019-01-29 2019-01-29 P2MP software programming device and method with detection function

Publications (2)

Publication Number Publication Date
CN109597630A CN109597630A (en) 2019-04-09
CN109597630B true CN109597630B (en) 2023-12-29

Family

ID=65966801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910085299.8A Active CN109597630B (en) 2019-01-29 2019-01-29 P2MP software programming device and method with detection function

Country Status (1)

Country Link
CN (1) CN109597630B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385093A (en) * 2022-03-24 2022-04-22 成都雷电微力科技股份有限公司 System for promoting phased array antenna production efficiency

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102592648A (en) * 2012-01-19 2012-07-18 上海格州电子有限公司 Microcontroller programming device
CN202454275U (en) * 2012-01-19 2012-09-26 上海格州电子有限公司 Microprogrammed control unit (MCU) programmer
CN103036395A (en) * 2011-09-30 2013-04-10 雅达电子国际有限公司 Optimizing isolated power supply loop gains for opto-coupler current transfer ratio variations
CN106293857A (en) * 2016-08-31 2017-01-04 成都国蓉科技有限公司 A kind of wireless mode carries out the method for software upgrading
WO2017000637A1 (en) * 2015-06-30 2017-01-05 深圳市中兴微电子技术有限公司 Method of programming flash memory, and single board, host computer and system utilizing same
WO2017046789A1 (en) * 2015-09-15 2017-03-23 Gatekeeper Ltd. System and method for securely connecting to a peripheral device
CN106612074A (en) * 2015-10-26 2017-05-03 万国半导体(开曼)股份有限公司 Power supply device
CN108509205A (en) * 2018-03-07 2018-09-07 深圳市海浦蒙特科技有限公司 Frequency converter software programming safe checking method, device, storage medium and equipment
CN207924431U (en) * 2018-02-28 2018-09-28 湖南工学院 A kind of I/O controller of robot

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036395A (en) * 2011-09-30 2013-04-10 雅达电子国际有限公司 Optimizing isolated power supply loop gains for opto-coupler current transfer ratio variations
CN102592648A (en) * 2012-01-19 2012-07-18 上海格州电子有限公司 Microcontroller programming device
CN202454275U (en) * 2012-01-19 2012-09-26 上海格州电子有限公司 Microprogrammed control unit (MCU) programmer
WO2017000637A1 (en) * 2015-06-30 2017-01-05 深圳市中兴微电子技术有限公司 Method of programming flash memory, and single board, host computer and system utilizing same
WO2017046789A1 (en) * 2015-09-15 2017-03-23 Gatekeeper Ltd. System and method for securely connecting to a peripheral device
CN106612074A (en) * 2015-10-26 2017-05-03 万国半导体(开曼)股份有限公司 Power supply device
CN106293857A (en) * 2016-08-31 2017-01-04 成都国蓉科技有限公司 A kind of wireless mode carries out the method for software upgrading
CN207924431U (en) * 2018-02-28 2018-09-28 湖南工学院 A kind of I/O controller of robot
CN108509205A (en) * 2018-03-07 2018-09-07 深圳市海浦蒙特科技有限公司 Frequency converter software programming safe checking method, device, storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向分布式馈线自动化的智能配电终端设计与实现;何旭鹏;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》(第04期);C042-986 *

Also Published As

Publication number Publication date
CN109597630A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
TWI731200B (en) A slave device connnected to host by 12c bus and its communication method
US8898358B2 (en) Multi-protocol communication on an I2C bus
CN102323905B (en) Remote monitoring system for Godson main board
KR101911059B1 (en) Test method for UFS interface and memory device testing by the same method
US20080288708A1 (en) Multiple virtual usb devices with virtual hub implemented using one usb device controller
WO2011085595A1 (en) Method and system for controlling inter-integrated circuit bus
TWI547784B (en) Method of dynamically adjusting bus clock and device thereof
CN107025203B (en) First board card, second board card and equipment
CN103399830B (en) The Apparatus and method for of computer physics internal memory is read by PCI Express bus
US20180173465A1 (en) System and method for communication in a semiconductor device
CN108920401B (en) Multi-master multi-slave I2C communication method, system and node equipment
CN110968352B (en) Reset system and server system of PCIE equipment
CN109597630B (en) P2MP software programming device and method with detection function
CN111417034B (en) Switch and hot plug method, device and system for switch board card thereof
CN105095041A (en) Chip debugging method
CN102625170B (en) A kind of can the Set Top Box of plug and play tuning demodulator and method
WO2016184170A1 (en) Smi interface device debugging apparatus and method, and storage medium
US20040034720A1 (en) Data transfer control system, electronic instrument, program, and data transfer control method
US10977206B2 (en) Data communication device and method for data communication
US20200065116A1 (en) Method and circuit for waking up i2c device
CN209496364U (en) A kind of P2MP software programming device with detection function
TWI338252B (en) Method and device for improving debug time of a monitor
WO2022188658A1 (en) Method and circuit for multiplexing usb interface, and electronic device and storage medium
US20140317320A1 (en) Universal serial bus devices supporting super speed and non-super speed connections for communication with a host device and methods using the same
CN114296976A (en) I2C communication fault recovery method and system

Legal Events

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