On my web site there is a document called "Serial(RS232) communications 101"
It is in the downloads section under commandfusion. It has been found to be
very useful for those getting into RS232 communications. It discusses both
the physical aspects of the connections, and a lot of javascript information
regarding how to deal with strings, etc. There is an example of a checksum
computation, and a whole section on what checksums are and why they are
used.
I do have the checksum computation for the Sony line written in Javascript,
but I would need to look for it as I no longer use Sony gear. Let me know if
you need it. I will be gone for the weekend but back on Monday
Cheers
--
You received this message because you are subscribed to the Google Groups
"CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to
commandfusio...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/commandfusion?hl=en.
For all those struggling with this, I am almost through with a demo program for Sony devices. It has all of the JS code as two modules, one for the Sony BR mega-changer (will work for many other Sony devices with a slight mod) and a general main program. I have to do a simple GUI to tie it all together. If i get the time I will do that this afternoon. The GUI will be just a page with buttons for functions that are demonstrated. I am not going to include the PnP discovery code but I do have it. Unfortunately it is in VB6 and not JS so it needs to be re-written. That will not be happening this week.
My intent is to post it later today on my web site. It will be totally untested until I get the time to drag the changer out of storage and try it out. probably by the end of the week. But I am sure there are many out there that will test it. I will fix/correct any thing that I screwed up. I had it all in JS but cannot find it. Probably trashed when I got mad at Sony!
From:
comman...@googlegroups.com [mailto:comman...@googlegroups.com] On
Behalf Of nouveau depart
Sent: Monday, February 13, 2012 8:26 AM
To: comman...@googlegroups.com
Subject: Re: Sony RS232 volume slider in JS with Checksum
i don't thnik i need the checksum to have just the volume feedback
With regard to my last note, This will not be a complete implementation, but rather a demo fully commented in the JS code so it can be understood by most providing you have read the documents concerning serial and IP (coming soon) documents on my site. It will be easy to add to
Could you tell me the model number of the Sony Device you have. The Sony
protocols differ slightly by device type. E.g Power on for a BR changer is
different than Power on for an amp as the amp has multiple zones so it needs
an extra byte.
Are doing this with IP or RS232. I have developed an IP based system (GUI
plus two modules) that is designed as a table driven solution to handle
multiple Sony devices. I have not got it working yet but am pretty close.
The only Sony device I have to test with is a 7000ES BR Mega changer which
has IP protocol. I Think I have some older DVD changers that may have RS232
protocol, but I would need an IP to RS232 converter (e.g. Global Cache) as
all mine are in use.
Sony devices that allow for IP control close the port (socket) after each
transmission so it gets a bit tricky.
-----Original Message-----
From: comman...@googlegroups.com [mailto:comman...@googlegroups.com]
On Behalf Of Waldy,,,, Liverpool Uk
Sent: Saturday, February 11, 2012 9:01 AM
To: CommandFusion
Subject: Re: Sony RS232 volume slider in JS with Checksum
Hi,
Good Luck
Re just a thought on the slider.
Ian
Don't know if this helps. It seems the slider value can be set in hex
The only part of these messages we are interested in are the last two
And Jarrod comes back with the answer. Bet he was sick of the amount
of posts LOL
So change that, and assign the join number to match a text object in
your GUI.
Note that you probably don't want spaces between each hex byte in your
command, unless the protocol specifically asks for spaces.
Jarrod
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
\x02\x06\xa8\x92\x00\x01([\x00-\xff])..\x03
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
My approach (as always) is minimal use of the CF internal functions and
doing almost all of the work in Javascript. I use the CF system as a front
end where all actions result in Javascript function calls.
I haven't tested it but the regex I am planning to use is (^[\x02, \xFD,
\xFE]) which states 'accept any input that starts with either an 02, FE or
FD' which are how a data response starts or an ACK or NAK. I watch for the
feedback in a JS function and then parse the received message.
I will get back into this after I find my spare iTach. I don't like to
develop without testing.
-----Original Message-----
From: comman...@googlegroups.com [mailto:comman...@googlegroups.com]
On Behalf Of Waldy,,,, Liverpool Uk
Sent: Wednesday, February 15, 2012 11:41 AM
To: CommandFusion
Subject: Re: Sony RS232 volume slider in JS with Checksum
--
I also have the volume status request for main room volume as
\x02\x04\xa0\x92\x00\x01\xc8
Hi ND,
I believe that is correct. The volume appears to be biased at 256 so 256 as the high order value is a volume of 0 db. but the largest value that can be in a 1 byte field is 255. Ergo subtracting 256 from the value in the high order byte yields -1 db as the volume setting this implies that the volume ranges from -256 db for a low value and -1 for a high. You can have it show the volume any way you want understanding that the range is 256 increments. I also think that the low order byte handles a fractional increment but I just don't remember. I did my work on a BR mega changer using IP and the BR changer did not have a volume setting.
Paste the hercules capture. . . for more that one volume event so we see
a pattern . . .
\x..\x..\x..\x..\x..\x..(\x..)\x..\x..
or
.*\x..\x..\x..\x..\x..\x..(\x..)\x..\x...*
Tested you data with
\\x..\\x..\\x..\\x..\\x..\\x..(\\x..)\\x..\\x..
\x02\x06\xA8\x92\x00\x01\xED\x80\x52
\x02\x06\xA8\x92\x00\x01(\x..)\x..\x..
Should do the trick
\x must be followed by two valid base16 characters, 0-9a-f.
The regex I posted should work.
Try adding an onmatch item to the feedback processing order, and use
that to set some serial join to a test value, like "test".
This way you can be sure the feedback is actually matching.
\x02\x06\xA8\x92\x00\x01([\x00-\xff])
That should be all you need for the regex. You do not need to state .*
at the start or end, as you are not specifying in the regex the start
and end at all (which uses ^ for start and $ for end).
Testing the capture of hex bytes in the regex tester is not very useful,
as you cannot paste the hex bytes into the actual test data area.
Jarrod
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
2012/2/16 Jarrod Bell <jar...@guilink.com>
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
Right click on the display window and enable hex
I find the best way to see feedback with hercules is
??? you are not sending code all you should see is the received code
from the amp in hercules when you manually turn the volume knob?
Jarrod
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
2012/2/16 nouveau depart <nouveaud...@gmail.com>
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to comman...@googlegroups.com.
To unsubscribe from this group, send email to commandfusio...@googlegroups.com.
ok so I've been playing with this for hours now
yes I am using that port on hercules to show the feedback.
Silly question the feedback properties are in this system? or should
they be in the loopback