Why display degree Celsius is so much trouble
this is not the first time of deal with degree Celsius displaying in Windows operating system since day one, always troubling me is the degree Celsius and the symbol.
Native English version of Windows should has no such issue but once used with localized interface, for example, simplified Chinese version or traditional Chinese version, degree Celsius will display and became an Unicode character (蚓, means worm, 蚯蚓 = earthworm).
I had never use symbol of degree Celsius in my own design or work done because the improper display will be happen from time to time. My solution, to use (*C) as an substitution because (*) and (C) are pure ASCII characters, away the trouble by unicode; side effect, user has to adjusts mind to this almost the same display if they want to read degree Celsius and the symbol.
However, this time, we have no choice because no source code published and I have to figure out a quick solution until my own design is ready. you can refer to author’s webpage to download or trial.
How to do that,
use Ultraedit, open this PLogger.exe in HEX mode
replace byte sequences as,
1) 20b043 -> 202a43, about 121 occurances
2) 02b043 -> 022a43, about 17 occurances
3) b04300 -> 2a4300, about 17 occurances
the display will change to *C, easy to read
PC set up for simulating the ADC input to this program,
uses other PC, setup com1 as 19200, N, 8, 1
copy/B out.bin com1:
out.bin, in HEX mode, 0d = 13, \r; 0x44 = ASCII “D"
0d 44 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
note : xxxx, anything you want, 8 channel ADC reading by Atmega8
how to run the simulator
1) invoke PLogger.exe
2) setup COM port, uses the icon under menu item [RUN], USB COM port is ok as long as you run this in XP compatible mode
3) connect COM port, next to right of setup COM port icon
4) PLogger.exe must read “>", until status bar show “connected"
5) push the [record]
6) goto the PC with simulator, run a.bat
you will go…..as following