PV380 String messages + Unicode Font

antonio
Posts: 6
Joined: Wed Jun 15, 2011 9:47 am

PV380 String messages + Unicode Font

Post by antonio » Tue Jun 11, 2013 9:24 am

In a multi-language application, I can not receive any free form string messages if I select the Chinese language (Simsun font).
In Western languages​​, there are no problems.
I even tried to use the unicode fonts included in the Configurator Studio 2.6.10407 (fireflysung and HonMincho), but with no results.
Thank you very much.
jtilley
Enovation Controls Development
Enovation Controls Development
Posts: 31
Joined: Wed Sep 08, 2010 10:02 am

Re: PV380 String messages + Unicode Font

Post by jtilley » Wed Jun 12, 2013 9:18 am

The free form string messages only support the ASCII set of characters. I just want to make sure that you're only trying to pass ASCII characters using those CAN messages.

If you are, then the problem might be that the necessary characters don't exist in the config. In order for the device to show the characters, they must exist in the config using the font & size as you'll need them displayed. This is because PowerVision only sends the font data used in the config, so that the device doesn't have to hold all possible font data.

The easiest way to add the characters to the config is to create a text widget somewhere, set the font and font size to the values you want to display, then add all of the characters that you might transmit using the free form string messages. Typically this will be the upper and lowercase alphabet, digits, and any special characters.

For example, in your config you might add a text widget, set the font to your Simsun font, set the size to 12 (or whatever size you need), then set the text to "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.?!" (add any more characters that you might transmit to the text widget's text).
Joe Tilley
Software Engineer
FW Murphy
antonio
Posts: 6
Joined: Wed Jun 15, 2011 9:47 am

Re: PV380 String messages + Unicode Font

Post by antonio » Thu Jun 13, 2013 4:36 am

Thanks Joe for your prompt response.
I have carefully followed your instructions but the problem remains.

- I created a new application starting with "Blank configuration (single display)"
- I added a second language using the font "fileflysung"
- I created a page with two text widget using font with the same height:
The first contains the text "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-+.,;"
The second is connected to a string variable "String1" with the default value of "QWERTY".
The contents of the first text widget is visible with both languages.
The second text widget behaves differently:
With Prima Sans font, the default value "QWERTY" is visible on the page, instead with fireflysung disappears.
Even changing the contents of the variable sending a freeform string message text remain blank with fireflysung.
I tried to use the SimSun but it is also the same.

Thanks, Antonio.
jtilley
Enovation Controls Development
Enovation Controls Development
Posts: 31
Joined: Wed Sep 08, 2010 10:02 am

Re: PV380 String messages + Unicode Font

Post by jtilley » Thu Jun 13, 2013 9:18 am

Antonio,

I was able to try this scenario at my desk and it appears to work. Would you be able to PM me your config so I could take a look at what might be different?

Thanks
Joe Tilley
Software Engineer
FW Murphy
antonio
Posts: 6
Joined: Wed Jun 15, 2011 9:47 am

Re: PV380 String messages + Unicode Font

Post by antonio » Thu Jun 13, 2013 9:54 am

Joe,
I send you the test application.

Tanks.
Attachments
Test.rar
String variable test
(234.18 KiB) Downloaded 16 times
jtilley
Enovation Controls Development
Enovation Controls Development
Posts: 31
Joined: Wed Sep 08, 2010 10:02 am

Re: PV380 String messages + Unicode Font

Post by jtilley » Thu Jun 13, 2013 10:24 am

Antonio,

Thanks for that. Sorry, I had forgotten the PV380 part of this, and I was testing with a color display. I was able to grab a mono display and now I'm seeing the same thing you are. The text widget shows "#####F" when the Chinese language is selected. Let me show this to one of the embedded software engineers so they can determine the cause.

One thing I noticed on the free form string message was the length byte and sequence byte both defined as byte 0. I had to switch the length byte to byte 1 and data start to byte 2 to get this to work.

Thanks
Joe Tilley
Software Engineer
FW Murphy
jtilley
Enovation Controls Development
Enovation Controls Development
Posts: 31
Joined: Wed Sep 08, 2010 10:02 am

Re: PV380 String messages + Unicode Font

Post by jtilley » Mon Jun 17, 2013 10:52 am

Antonio,

This is a bug in the PV380 code, and it should be fixed and included with the next patch release of PowerVision.

Thanks for bringing it to our attention.
Joe Tilley
Software Engineer
FW Murphy