MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Input / Output interfaces » External Display » Support


Support Support for external displays.

Reply
 
Thread Tools Display Modes
Old 2007-12-23, 01:41   #1 (permalink)
Portal Member
 
Join Date: Oct 2007
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Default ExternalDisplay.xml - Send direct hexadecimal command

Hello,
is it possible to send direct hexadecimal command to VFD display by adding some string to ExternalDisplay.xml?

I have Noritake VFD and it has turned cursor on by default, and i need to turn it off. I found command 16H for it in specs, but I don't know, how can i send it to vfd..

I'm using noritake t-series plugin and LPT.

thx
Attached Thumbnails
externaldisplay-xml-send-direct-hexadecimal-command-22122007-002-.jpg.jpg
Views:	21
Size:	326.4 KB
ID:	14722  externaldisplay-xml-send-direct-hexadecimal-command-22122007-003-.jpg.jpg
Views:	24
Size:	335.1 KB
ID:	14723  

Last edited by Croog; 2007-12-23 at 01:45.
Croog is offline   Reply With Quote
Old 2007-12-23, 12:26   #2 (permalink)
Portal Developer
 
Join Date: May 2007
Posts: 498
Thanks: 1
Thanked 83 Times in 39 Posts

Country:


Default

It is not possible to embed HEX commands int the ExternalDisplay.xml file... The XML parser does not support non-printable control characters.

Normally... The solution would be to "fix" the Noritake T-series driver.... but it is an LCDHype driver, so that is easier said than done...

Fortunately, The other method is to have the ExternalDisplay driver send a "prefix character" before sending each line of characters that needs to be displayed...

Attached is a version of the ProcessPlugins.dll that has that modification.

To Install:

1) rename the ProcessPlugins.dll in your MediaPortal plugins/process directory to ProcessPlugins.dll.original.
2) extract the ProcessPlugins.dll in the archive to your MediaPortal plugins/process directory.
3) run configuration.exe
4) select plugins, scroll to the ExternalDisplay plugin, right click and select "Configuration"
5) Under "TextMode" you will find a new option called "Line Prefix". For this option, enter the hex value of the command byte that you want to send to the display (in your case 16). Leave this field blank to disable sending a prefix byte.
6) Click "OK" on the "ExternalDisplay Configuration" screen to commit the settings. click "OK" on the "MediaPortal: Setup" screen to save the settings and exit configuration.
7) run MediaPortal.

Let me know if this works for you...

Regards,
CybrMage
Attached Files
File Type: zip ExternalDisplay_Prefix_12_23_2007.zip (306.9 KB, 18 views)
cybrmage is offline   Reply With Quote
Old 2007-12-23, 14:59   #3 (permalink)
Portal Member
 
Join Date: Oct 2007
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Default

Thank you for help.

I know that update noritake driver could be solution, but i cant even register to lcdhype forum (admin didn't response) and also i read somewhere, that source codes for it was lost... :/

So I tried your method (that was fast update! ) and when i add for example "16", the cursor still remains turned on and random character is displayed on the first position of all lines (It change everytime, when I restart Mediaportal).

I tried also others commands, but with no success too. Just one experience: when I add word started by 0, random character isn't displayed.

I set Comm. delay to 20000 and record attached video, so you can see what exactly vfd doing, when I set prefix to 16.
Attached Thumbnails
externaldisplay-xml-send-direct-hexadecimal-command-img_8410.jpg  
Attached Files
File Type: zip 23122007(002).zip (2.89 MB, 5 views)
Croog is offline   Reply With Quote
Old 2007-12-23, 15:08   #4 (permalink)
Portal Developer
 
Join Date: May 2007
Posts: 498
Thanks: 1
Thanked 83 Times in 39 Posts

Country:


Default

It looks like it is expecting an escape code of some sort before the 0x16 command...

I'll have to try and find some specs for the display to make further progress... (LATER... after sleep!!) 8-}

Regards,
CybrMage
cybrmage is offline   Reply With Quote
Old 2007-12-23, 15:17   #5 (permalink)
Portal Member
 
Join Date: Oct 2007
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Default

You can find specification in first post. Maybe this info can help too. LCDinfo is the only one program, which can turn cursor off..
Croog is offline   Reply With Quote
Old 2007-12-24, 02:16   #6 (permalink)
Portal Member
 
Join Date: Oct 2007
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Default

I did little more research: It is possible to send hex data thru ExternalDisplay.xml. It is simple, put to string � , where 00 means hexadecimal word. When I send 16H to vfd by this method, there is same problem - it just display random character. According to this discussion, after command must be send software reset and wait for 100ms delay, i think...
Attached Files
File Type: pdf Noritake_CU20045SCPB-T28A_4x20_VFD.pdf (539.3 KB, 10 views)

Last edited by Croog; 2007-12-24 at 02:57. Reason: added better specs of similar type (i have T20A)
Croog is offline   Reply With Quote
Old 2007-12-24, 13:04   #7 (permalink)
Portal Developer
 
Join Date: May 2007
Posts: 498
Thanks: 1
Thanked 83 Times in 39 Posts

Country:


Default

Quote:
Originally Posted by Croog View Post
It is possible to send hex data thru ExternalDisplay.xml."
You are correct... The information I found on the XML parser was incorrect (used &x00... I stand corrected.

But, I did experiment with injecting the control code via XML (using a umlat character)... and the result wasn't acceptable... The "control" character scolled with the text... If the text was longer than the display width, the control character.. hence the code I added to "prefix" the text...

Quote:
Originally Posted by Croog View Post
after command must be send software reset and wait for 100ms delay, i think...
This means that the command will have to be sent during display initialization... Which means changes to the LCDHype wrapper... I'll see if I can get something coded for it....

Regards,
CybrMage
cybrmage is offline   Reply With Quote
Old 2007-12-25, 21:24   #8 (permalink)
Portal Member
 
Join Date: Oct 2007
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Default

Thank you for your time. It would be great, if I can do reinicialize display with send some command data (e.g. set luminance of vfd) adding some strings to ExternalDisplay.xml..

I have one more problem. If I set TextComDelay to 40 (this value is used in lcdhype), display is flickering. When I change delay to 200, flickering is gone, BUT the more I increase delay value, my cpu is more loaded. With delay set to 200, I get 35-50% load of my CPU, just at start screen of mediaportal. I have Athlon XP 2500+ and Win Vista, so it's really weird. Where can be problem?
Croog is offline   Reply With Quote
Reply

Bookmarks

Tags
command, direct, externaldisplayxml, hexadecimal, send

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception in ExternalDisplay properties dudil General Support 4 2007-11-01 10:33
ExternalDisplay.xml knutinh Plugins 16 2007-10-01 12:22
Send to target window Crew MCE Replacement Plugin 1 2007-05-27 09:17
ExternalDisplay DLPortio.dll?!? Kevin Plugins/Erweiterungen 2 2006-12-27 15:59
OnTvRecordingEnded don't send the file name herman General Development (no feature request here!) 1 2006-11-24 23:29


All times are GMT +1. The time now is 00:43.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden