PDA

View Full Version : Generic Serial Driver for A/V YAMAHA RX-V1800


yann
01-02-2008, 04:44 PM
Hello,

I'm trying to make a serial driver to control the YAMAHA RX-V1800 audio/video receiver.

I'm a bit neuwbie on this, but I'll keep you informed of my xml file editing and if it works.

I managed to get a copy of the RS232C codes for the receiver.

Any help is welcomed.
cheers
Yann

________________________________
UPDATE 05/01/08
------------------------------------
Attached is the beta version of the generic serial driver for Yamaha receivers.

Ted Singh
01-02-2008, 05:17 PM
yann,

Great news. We want to kick start this so let us know if you run into any issues.

Ted

MitchSchaft
01-02-2008, 07:37 PM
Excellent idea. If you want to try out another model, or help me after you're done, I found the pdf specs for the rx-v1500(htr-5890) (http://www.nekidbob.com/files/RS232_RXVx500.zip).

yann
01-03-2008, 05:22 PM
After looking around, i'm having a hard time to figure out the good HEX codes for Yamaha receivers since Yamaha doesn’t gave them in an HEX format.

I tried some in hyperterminal but without success.

Any help would be appreciated.

Cheers
Yann

yann
01-03-2008, 09:25 PM
I found this nice little software to control a Yamaha receiver.
http://www.omei.de/software/yamaha/

It's works well on my receiver with my computer..

This software has an interesting debug mode to capture the information on the RS232C port.

This is what i get when hit "connect":

---> 000
<--- R0226JB5@E0190002014010BCA80E03140700000000200F102 0001012A2A2E26252626282828000201141400006004005100 0000101421100000000000002020000011010B300018010100 C00FFFF01100006001460014210F0C00FF1011029
---> 20000
---> 20100
<--- 300000300000

and if i press the mute button on the software:
---> 07EA2
<--- 00A500002301

So if i understand the HEX code for mute would be 07EA2

but i'm stuck on this part and i can't find a way to add this in mcontrol.

When i put this HEX code 07EA2 in hyperterminal connected to my receiver it dosent mute the sound... i'm having a hard time to make a direct connection with the receiver.

any ideas?

yann
01-03-2008, 09:37 PM
this thread may be verry helpfull
http://www.remotecentral.com/cgi-bin/mboard/rc-touch/thread.cgi?849

scruzphreak
01-03-2008, 11:49 PM
yann,

you can't use hyperterm to send hex codes. If you send a sequence of letters in hyperterm, it sends those actual letters. If you wanted to send the hex code 0x41, you would send an "A" character.

If you sent "0x41", you'd actually be sending 4 hex codes, the code for "0", the code for "x", the code for "4" and the code for "1"


string decimal hex
A 65 41



You might be able to convert the hex codes into strings to send in hyperterm, but only if the hex codes are in the "printable" range.

Let me know if this doesn't make sense.

yann
01-04-2008, 06:42 AM
yann,

you can't use hyperterm to send hex codes. If you send a sequence of letters in hyperterm, it sends those actual letters. If you wanted to send the hex code 0x41, you would send an "A" character.

If you sent "0x41", you'd actually be sending 4 hex codes, the code for "0", the code for "x", the code for "4" and the code for "1"


string decimal hex
A 65 41



You might be able to convert the hex codes into strings to send in hyperterm, but only if the hex codes are in the "printable" range.

Let me know if this doesn't make sense.

Yes it makes sense and it helps!
I managed to send manualy the good HEX strings to the receiver with this software www.rs232pro.com
Exemples that worked for me:
I sended the mute string \x0207EA2\x03 in the HEX format 02 30 37 45 41 32 03
I sended the Power On cmd \x0207E7E\x03 in the HEX format 02 30 37 45 37 45 03

But i can't make it work in mcontrol with the 02 30 37 45 41 32 03 format :(
what format should I put in the XML serial driver file in mcontrol? HEX, ASCII?

Roger
01-04-2008, 09:09 AM
yann,

Could you upload the whole RX-Vx800_RS232C_Standard document or post a link?

The document you attached seems do not have control commands.

Roger
01-04-2008, 09:29 AM
Yes it makes sense and it helps!
I managed to send manualy the good HEX strings to the receiver with this software www.rs232pro.com
Exemples that worked for me:
I sended the mute string \x0207EA2\x03 in the HEX format 02 30 37 45 41 32 03
I sended the Power On cmd \x0207E7E\x03 in the HEX format 02 30 37 45 37 45 03

But i can't make it work in mcontrol with the 02 30 37 45 41 32 03 format :(
what format should I put in the XML serial driver file in mcontrol? HEX, ASCII?


Try CommandType=BINARY and send command "\0x0207EA2\0x03"

yann
01-04-2008, 09:35 AM
yann,

Could you upload the whole RX-Vx800_RS232C_Standard document or post a link?

The document you attached seems do not have control commands.

http://www.yamaha-audiovideo-france.com/index.php?lang=e&country=FR&idcat1=1&idcat2=2

to directly donwload the RS232 doc for yamaha
http://www.yamaha-service.de/downloadyo.php?idcat1=1&country=FR&idcat2=2&lang=e&idcat3=2&idprod=1414

yann
01-04-2008, 02:48 PM
Try CommandType=BINARY and send command "\0x0207EA2\0x03"

Roger,

Thank you for the help it worked perfectly!!!!

I can now send controls in mcontrol via RS232C to my yamaha receiver.

I'll finish the driver this week-end, i'll keep you updated.
cheers,
Yann

apopilot
01-04-2008, 05:07 PM
Do you know where I can start to learn how to create drivers?

yann
01-04-2008, 05:10 PM
Do you know where I can start to learn how to create drivers?

I'm a newbee on this, but the first steep would be to find the Serial Codes for the product you want to control, for my yamaha receiver I googled it.

good luck

Ted Singh
01-04-2008, 05:14 PM
apopilot,

1. To start go here: http://www.embeddedautomation.com/forum/showpost.php?p=2189&postcount=2
2. Then find, has yann suggests, the protocol document for your device.
3. Use the sample provided to create your own XML file.

Ted

yann
01-05-2008, 10:59 AM
hello,

This is my first beta driver for Yamaha receivers.

It's not totaly finish since some commands are still missing but the primaray ones are in this driver.

Yamaha didn't do major changes in the RS232C protocol communication for Yamaha receivers. This driver should work with almost all yamaha receivers.

I still didn't have the time to debug all the functions, but i'll post next week the updates.

Cheers
Yann

beason
01-23-2008, 05:31 PM
Hi Guys,

I have to control a yamaha receiver and a sharp lcd tv.

What would be the best way for mcontrol to connect up to these systems as i dont think my motherboard has a dedicated serial port?

Im hoping there would be a convenient USB hardware device that can control devices via IR emmiters running from it?

Also, would the Onevoice application allow me to say "onevoice turn tv on" and that will interface with mcontrol to turn my sharp lcd on?

just a few queries before i go out and probably buy all the wrong hardware :)

beason
01-23-2008, 05:51 PM
another good website for remote codes is www.remotecentral.com

do a search under the file section for your make and model

for some specific codes you might have to download the software for the device and enter the program to find out the hex, but others will have the code on the screen you can copy to the clipboard

MitchSchaft
01-23-2008, 06:07 PM
Check this out for an insteon IR controller (http://www.smarthome.com/2411R.html?src=RSS200511). I plan to work that in with my harmony 880. I think you can use serial-to-USB adapters for others.

I have OneVoice and use it with my media center. I have yet to try it out with mcontrol. But I think it'll be along the lines of "mcontrol, turn on tv".

Ted Singh
01-24-2008, 10:00 AM
beason,

If you don't have a serial port (i.e., you only have USB and Ethernet ports on your PC), you have the following options to talk to serial devices:
(a) Consider a USB to serial converter
(b) Consider devices like the GC-100 - which connect to your IP network, which is convenient because this mean that your PC can be in your den, but the GC100 can be by your AVR. The mControl Generic Driver then sends commands via IP to the GC-100, which the GC-100 then sends over it's serial port - think of it as an IP to serial bridge.

Ted

beason
01-24-2008, 04:01 PM
Hi Ted,

Thankyou for that product suggestion. Seems to be a winner for my purpose.

Have you or anyone else had any experience with using onevoice with mcontrol at all? Would be very interesting to see how it all interfaces

Cheers

Beau

gterrell26
02-10-2008, 04:28 PM
beason,

If you don't have a serial port (i.e., you only have USB and Ethernet ports on your PC), you have the following options to talk to serial devices:
(a) Consider a USB to serial converter
(b) Consider devices like the GC-100 - which connect to your IP network, which is convenient because this mean that your PC can be in your den, but the GC100 can be by your AVR. The mControl Generic Driver then sends commands via IP to the GC-100, which the GC-100 then sends over it's serial port - think of it as an IP to serial bridge.

Ted
Is there an generic driver example using the GC100 as are remote serial port. I have a couple GC100 and also some Lantronix UDS-10 and UDS1100 serial over IP extenders.

I am looking to switch over to M-Control from other SW if I can make my Anthem D2 Pre-Pro work over IP\Serial. Looks like this is easier than the C++ drivers I had to create in Premise.

Ted Singh
02-11-2008, 05:58 PM
gterrell26,

Currently, the way that the GC-100 driver is written, the Generic Serial Driver can not access the GC-100's serial ports. *BUT*, the Generic Serial Driver should be able to talk through the Lantronics devices fine - we've used a similar device (not packaged) internally to talk via Ethernet to a serial device - one of our staff uses this to talk to his projector.

Ted

docbliny
03-24-2008, 05:44 PM
I'm a bit neuwbie on this, but I'll keep you informed of my xml file editing and if it works.

Hi Yann,

Thanks for this! I've got a Yamaha RX-v3800 and the file you created will be a great start as the 1800 and 3800 are pretty similar. I also managed to get the full list of codes from Yamaha Canada (I'm in the US, but someone suggested emailing them) for the RX-Vx800 series.

I'll post my modifications when I get around to finishing the modifications (and actually receive the ethernet-to-RS232C adapter I ordered).

//Tomi B.

yann
03-25-2008, 12:31 AM
Hi docbliny,

Great news for the codes :)

I'm looking forward for your modifications of the driver.

cheers
Yann

docbliny
04-13-2008, 03:33 PM
Hi docbliny,
I'm looking forward for your modifications of the driver.

OK, finally had the time to finish this off. I've attached the modified file for the RX-V3800. I duplicated the Power on/off and Volume up/down as the first 4 commands so they show up in the web console for quick access. Unfortunately, they didn't seem to show up in the mobile version.

The RX-V1800 has a slightly different set of commands. There'll be some extra commands and one is missing. The missing command is "Short Message - Full". The value for that would be 07EB2.

As always with things you can get off the internet: No guarantees or warranties or responsibility taken of any kind.

//Tomi B.

yann
04-13-2008, 10:51 PM
OK, finally had the time to finish this off. I've attached the modified file for the RX-V3800. I duplicated the Power on/off and Volume up/down as the first 4 commands so they show up in the web console for quick access. Unfortunately, they didn't seem to show up in the mobile version.

The RX-V1800 has a slightly different set of commands. There'll be some extra commands and one is missing. The missing command is "Short Message - Full". The value for that would be 07EB2.

As always with things you can get off the internet: No guarantees or warranties or responsibility taken of any kind.

//Tomi B.


Hi Tomi,

It's a great evolution of the driver, it works perfecly well with my Yamaha VX-R1800.

I realy love the On/OFF/VOLUME commands that show-up in the web browser but same thing for me, the commands dont show-up on he mobil version.

I wonder if it's possbile for Zone 1 and zone 2 to duplicate the Power on/off and Volume up/down as the first 4 commands so they show up in the web console for quick access like you did for the master zone?

cheers
Yann

moutasem
05-31-2008, 04:21 PM
:) please let me download this file

MitchSchaft
05-31-2008, 04:36 PM
You can't see the links to the files?