| |||||||
| Improvement Suggestions Improvement Suggestions for the external displays feature |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member | Started on: 2007-04-20 last update: 2007-09-07 Summary: I'm asking for Futaba USB 7x1 blue display mounted on FIC Spectra Description: the display is a blue VFD with seven 14 segments characters and many icons such as TV, MUSIC, REC, volume bar...it works fine with provided driver under MCE but no way to make it work under MP http://www.pcauthority.com.au/review.aspx?CIaRID=2724 I have identified the PID and VID of my USB display: PID(0x7000) and VID(0x0547) Last edited by andreavb; 2007-09-07 at 13:51. |
| |
| |
| | #2 (permalink) |
| Retired Team Member Join Date: Sep 2004 Location: Belgium Age: 40
Posts: 425
Thanks: 1
Thanked 17 Times in 5 Posts
| Until now I haven't found a way to communicate with an USB display (that does not map to a virtual serial port) from C#. Perhaps someone could post some example code? I also started to work on an MCE compatible display plugin. Perhaps this will work for you... I never completed it because I had to spend too much time resolving the incompatibilities between MCE and MP. Still working on the MP internals to solve these kinds of problems though... I see you are a .NET programmer yourself, maybe you have the time to finnish it? Joe |
| |
| | #4 (permalink) |
| Retired Team Member Join Date: Sep 2004 Location: Belgium Age: 40
Posts: 425
Thanks: 1
Thanked 17 Times in 5 Posts
| Take a look at the ScaleoEV driver in SVN and replace the vendor and product ids with yours. Maybe that works too. That was the trick to get the MSI Media Live display to work too... Joe |
| |
| | #5 (permalink) |
| Portal Member | Hi Joe, happy to see you again going on in developing new drivers for displays!!...I'll install a sniffer USB software to see the messages sent to my FIC Spectra Futaba Display (1 line with 7 characters and some icons), then I'll try to write a simple VB6 code to send text to the display using WriteFile api command...would it be of help to create a MP driver for this display?? I also have HID and PID and once I'll have the USB command structure would it be possible for you or someone who knows MP source code to implement this VFD?? thanks for your great support |
| |
| | #6 (permalink) |
| Retired Team Member Join Date: Sep 2004 Location: Belgium Age: 40
Posts: 425
Thanks: 1
Thanked 17 Times in 5 Posts
| That would certainly help I hope you understand I don't have the time to look whether I can find any example code or documentation for every requested display type. I am depending on you to provide that... Joe |
| |
| | #7 (permalink) |
| Portal Member | Hi Joe!! I got it!!! I've made a little VB6 program able to write characters to FIC Spectra Futaba display!! I've retrieved the handle of the file corresponding with this HID device PID(0x7000) and VID(0x0547), it is a composite USB device so it has three instances, I've selected the one with 65 output buffer lenght (that is the first one returned by a FindTheHid function) and then once opened with API CreateFile I've send a buffer with WriteFile the buffer is composed by 0x00 0x8B 0x04 0x01 0x07 xx xx xx xx xx xx xx 0x00 0x00 0x00... (filled with 00s the 65 byte buffer) where xx are the ascii codes of the characters to display...the display only supports uppercase and numbers attached is the VB6 code...is just a first try to get it to work but enought to display characters...I'll try also to lit the different icons of the display but I don't know if this will be possible to implement with the MP internal structure i.e. will it be possible to lit the REC icon when a recording is in place? or TV GUIDE icon or VOLUME bar according to MP master volume control? Last edited by andreavb; 2007-09-09 at 17:06. |
| |
| | #8 (permalink) |
| Portal Member | OK, I've got the codes for all the icons too: so this is a little command list to control the display 00 8B 04 01 07 xx xx xx xx xx xx xx -> where xx are the ASCII codes of the seven characters to display 00 85 02 01 aa ss -> where aa is the code of the icon and ss is the state (00=off, 01=on) 00 85 02 02 a1 s1 a2 s2 -> a1 s1 = code and state of the first icon, a2 s2 = code and state of the second icon 00 85 02 nn a1 s1 a2 s2 .... an sn -> where nn is the number of icon values present in the buffer and then a couple of bytes for every icon to set with icon number in the first byte and state in the second one so here's the icon numbers list: 01 = VOLUME icon 02 to 0C = volume bars 0E = SHUFFLE icon 0F = MUTE 10 = PHONE 11 = REC 12 = RADIO 13 = DVD 14 = VCD 15 = CD 16 = MUSIC 17 = PHOTO 18 = TV 19 = cd/dvd disk icon 1A = 5.1 icon 1B = 7.1 icon 1E = REPEAT icon 1F = ALL icon 20 = REW 21 = PAUSE 22 = PLAY 23 = TIMER 24 and 25 = GUIDE (double led) 26 = HOME 28 = eject icon 29 = FWD 2A = KHz 2B = MHz so this will be the buffer to lit the REC icon 00 85 02 01 11 01 and this to turn off rec icon 00 85 02 01 11 00 every sent buffer has to be filled with 00 after the command to reach 65 bytes. P.S...all the numbers are in HEX notation Last edited by andreavb; 2007-09-09 at 17:07. |
| |
| | #9 (permalink) |
| Portal Member | OK, I've added the driver to the current Media Portal SVN... here is my new ProcessPlugins.dll and the code I've changed, hope someone will add it to the new SVN and to the new distribution of MP...I have to do a little modification to the code to adjust the volume bar according to master MP volume (I have to divide it by 4 before lighting up the display bars)...I'll do it in the next days, I don't know how to publish my code so please help me...hope Joe will add it (and check it) to MP SVN in code.zip you have the new settings.cs into the ExternalDisplay folder, VFD_Control.cs into VFD_Control folder and FicSpectra.cs to add into the Drivers folders code moved to post #11 Last edited by andreavb; 2007-09-15 at 13:05. Reason: see post #11 for latest source code |
| |
| | #10 (permalink) |
| Retired Team Member Join Date: Sep 2004 Location: Belgium Age: 40
Posts: 425
Thanks: 1
Thanked 17 Times in 5 Posts
| I've been real busy the last couple of days... Great to see that you were able to write a driver yourself People often forget that MP is open source and they can improve it themselves I'll check your modifications and add them to the SVN one of the next days. The weekend is already planned full, but the next week has a few holes left... Joe |
| |
![]() |
| Bookmarks |
| Tags |
| display, fic, futaba, htpc, spectra, support |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Which LCD/VFD Display do you have in your HTPC Case | ralphy | General | 4 | 2008-09-12 13:28 |
| Display für HTPC | Frank21777 | Hardware | 0 | 2007-08-21 15:42 |
| Chosing a display for HTPC | AllenConquest | Hardware Selection Help | 17 | 2006-03-20 23:57 |
| Issues getting my HTPC to display on my TV properly... | nettech_gt | General Support | 5 | 2006-03-19 03:24 |
| multi display support? | idznak | Media Portal - Support | 1 | 2005-05-10 09:32 |