Baofeng DM-1702 Boot Screen
by Maciej_M in Circuits > Electronics
2592 Views, 4 Favorites, 0 Comments
Baofeng DM-1702 Boot Screen
I wanted to put some personal touch to the handheld HAM radio I have, so I've started to thinker a bit how to change the boot logo/power on picture. And I've found the way that i've presented below.
Tools Used by Me.
Not saying that they all be required or needed, some of more savy users can probably streamline the process a bit, but this is what worked for me.
tools used by me:
1 - inkscape, can be found at https://inkscape.org/
2 - paint, in each windows machine :)
3 - image2lcd, i've found mine on github https://github.com/makerbase-mks/Software/tree/mas...
4 - Notepad, also on board of every Windows machine
5 - MD-1.0.78-healed (CPS2_extra_menus), that software was found on twowayradioforum.com
https://www.twowayradioforum.com/t/baofeng-dm-x-dm... and was uploaded linked there by user pm_cz
Without him, it would not be possible.
Prepare the Graphics
I've done some digging, and this is the process i've come up with, it probably could be streamlined and Inkscape can be cut out, but i like to use it for vector graphics :)
To prepare logo, I've used inkscape for that, as is free for vector graphics, but you can use whatever suits you :). Next fire up Paint, and set correct orientation on the picture, it has to be sideways (I've prepared picture sideways already in Inkscape) that part took me ages to figure it out....
(at this stage, I'm verifying if correct size is applied to the picture, and saving it as BMP256 color.
I have not checked that, but it seems that size and color can be overruled in image2lcd.
Now for all the tricky parts, fire up image2lcd load the picture and match the settings to tthe ones on the picture:
- output file: C-array,
- Scan mode: Vertical,
- BitsPixel - 256 color
- size set to 128/160
also mark "scan bottom to top"
in color area (botom) verify if in 256color tab, there is RGB332 selected from dropdown
If everything correctly set, your new logo should appear, flipped on the horizontal axis. hit save.
Edit & Save File
Once you'll hit save and select location to save your "c-array" file, notepad window will popup with what we need.
We will need to edit this file, for radio to recognize it correctly. We will have to replace header line in the file, and clean leftovers...
(please note number 20480 in the first line of the file - if there is any other number - something went wrong and the file is in incorrect size, and will display garbage on the screen once uploaded - attached my original file before any alteration for reference purposes)
So first we have replace line on the beginning of the file that looks like this
const unsigned char gImage_poweronlogo[20480] = { /* 0X41,0X08,0X80,0X00,0XA0,0X00, */
with below line (i took it from original logo file):
0x02,0xa0,0x80,0x00,0x50,0,0,0,0,0,0,0,0,0,0,0,
and remove }; from the end of the file
Now save the file to the location-> \MD-1.0.78-healed\Data\PoweronPicture in your CPS software, as text file (it has to have extension .txt)
Downloads
Upload It to the Radio
Once done, start the CPS software, and go to the "Embedded message" menu with code 374612,
note: if you do not know what the options are, do not touch them. And it'll be your fault if you'll break it.
If you did correctly everything so far, you'll have your file available from drop-down menu
labeled "Power on Picture"
(note: file has to be in the correct location BEFORE program starts) then all what's left is to mark
"Power on Picture" on the bottom for your earlier selected picture to be writen to the radio, and hit "WRITE".
Radio will power cycle and your new logo should be displayed :)
Enjoy.