beautypg.com

3 firmware upload - example – DekTec DTM-3237 DVB-S2 Receiver User Manual

Page 26

background image

DTM-3237 – OEM DVB-S2 Receiver with DVB-ASI Output

User Manual

26

4.6.3 Firmware upload - Example

In the example below the DTM-3237 is upgraded with new firmware over USB. The size of the firmware

file is 486400 bytes. Over USB, each packet can hold a maximum of 250 data bytes, so the number

of ‘file parts’ will 1946. The first 1945 file parts will contain 250 data bytes and the last part will

contain 150 data bytes. The table below shows the actions required to perform this firmware upgrade.

Action

Setting

R/W

Idx

Comment

Switch mode to 1

0x85, 0x01

W

0

Switch to firmware-upgrade mode

Close USB interface

USB only

Wait 3s

Reconnect USB i/f

USB only

Read mode

0x85, 0x01

R

0

Verify that mode is firmware-upgrade

mode (1)

Erase

0x85, 0x02

W

0

The DTM-3237 needs ±3.5 seconds

processing time to erase the firmware

File part*

0x85, 0x03

W

1

File part

0x85, 0x03

W

2

: :

0x85, 0x03

W

: :

File part

0x85, 0x03

W

1946

Verify

0x85, 0x04

R

0

We expect to read 1 (=firmware

uploaded correctly)

Switch mode to 0

0x85, 0x01

W

0

Switch to normal mode

Close USB interface

USB only

Wait 10s

Reconnect USB i/f

USB only

Read mode

0x85, 0x01

R

0

Verify that mode is normal (0)

* For USB, data is encoded as described in §4.6.2. For LVTTL serial control port the same encoding is

used. For I

2

C, data bytes are packaged without conversion in I

2

C write message.