Welcome to the Invelos forums. Please read the forum rules before posting.

Read access to our public forums is open to everyone. To post messages, a free registration is required.

If you have an Invelos account, sign in to post.

    Invelos Forums->DVD Profiler: Plugins Page: 1 2  Previous   Next
Rs232 calling for cx777 executable
Author Message
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
I have read the threads regarding Sony CX777 and I just don't understand "exactly" and I mean verbatum what I need in "Notes" and "Location" and maybe even the Rs232bat file.

My setup:  Windows XP SP2 on laptop - Sony CX777 - yes, a null modem - I can sucessfully communicate to the CX777 by opening the dos window - filepath to the cx777 executable, and can get the player to respond and carry out any command given - like "load disc 16 Title 1 Chapter 6".  Works just fine.

I use "Slot #" and have "Rs232/s" in "Location" field (nothing more, nothing less & no quotes).
In "Notes" I have the following: line 1 reads "C:\Program Files\DVD Profiler\Plugins\LoadDVD\Rs232"  line 2 reads "C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777" no quotes in either line 1 or 2.

When I click "Play/Retrieve" I get the following in the dos window:  "Main Decsription" 707787650175  1 16 "" "" "DVD" hit any key to continue.  Of course hitting any key then closes window 7 tha'ts it.  And if I do not use the /s in Rs232, I get nothing at all (expected)

Am I supposed to do something with the Rs232bat file?  Do I do something to the cx777 executable?

I know the missing parameters are the "Title" and "Chapter" of the disc - but where do I put this info??
I am using COM1 and the disc is 16 and the discID is the long 70778...# but where & how do I complete the command?  Does each and every Disc get their own Rs232.bat file that I modify from the example given? Do I have to modify the cx777 for each & every disc also?  I just don't understand what I am missing.
Many Thanks to someone with patiencen & helping hand.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Well I got your very supportive eMail, and I thank you very much. Wish I saw more emails like that! When I open up my VIP website, you will automatically be enrolled, and will have access to advanced tools and priority support.

(1) You don't need to do anything with Notes. Nada. Leave Notes alone. I hope that is clear.

(2) The Slot field should have the changer slot number.

(3) The Location field should have rs232.

(4) Make your rs232.bat look exactly like this:

                @echo off
                cx777.exe com1 36 %4 0 0 1

That's it. That's all. It should work, except this does not request Title or Track, just the disc.

(Edit: Ok I found the info I needed about how to request Title (chapter actually) and track using cx777.exe, but I need to understand better what you want. Will you always be requesting the same Title/Track for a specific disc?)

Ok, there you go. Let me know what happens.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
98% of my DVD watching/listening is Music/Concert DVD's.  I would like to be able to call up a specific(s) chapter(s) which are songs.  Since the DVD profile can support an unlimited amount of "discs", I would load the profile with each song or Title/Chapter of the disc in the profile.  The Sony CX777 has a 99 line "Program" available in which you can do something like this.  The long and short of this "Program" capability is to create an instant favorites list, to watch/listen.  A DVD Jukebox.  From what I can tell, DVD Profiler & LoadDVD have all the capability to do this.  I presently do this with an Ir program and an Excell data base that has all my DVD's, their Photos, and each and every Title/Chapter (song) that I want to access.  I really like the very nice Interface of DVD Profiler.  Also, the cx777 has many more features accessible via Rs232 than just Ir commands can provide (see full capability in Sourceforge cx777 commands available.

That's it in a . . . well, a pile of nuts, that I am looking for - spit out Disc #, Title # & Chapter #. Ok, there is much more I want to automate, that should probably be brought up in another thread, or "wish list". 1st things first as they say.

All that I want to do should be attainable under the current structure of both DVD Profiler & Load DVD - I just need to know how to execute it.  I barely speak english (born & raised here) let alone speak computereese.

Thanks much - oh by the way, I have searched, as so far, these two programs are most easily set up to do this.
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
Got ahead of myself.  I have used the "out of the box" LoadDVD, and can not call up the disc - forget asking for specific chapter (at this point).  1st things first, I just wanted to call a disc as described in the literatur.

I'm doing something wrong with the profile (or bat? I didn't touch anything), & need help understanding "All" that goes in the correct "fields" of DVD Profile.  - to me, odd that out of box wouldn't call a disc as described.  Gotta be me.

Hope this helps you figure out my problem.

Regards & Thanks
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting mb2009:
Quote:
Hope this helps you figure out my problem.

I just gave you exact instructions - 4 steps. Just do them. Until then, please do not make any more posts.

Once you complete those steps, it will be working. Make your next post, with no more than two sentences.

First sentence: confirm that you completed the 4 steps and it works.

Second sentence - one sentence only: The next SINGLE thing you would like to accomplish.

By the way, I'm not trying to be rude - just trying to help us stay focused and organized.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
OK, tried exactly as you instructed.  Did not work.  Added "pause" as last line in rs232.bat and dos screen said "  'cx777.exe'  not recognized as an internal or external command, operable program or batch file.  Press any key to continue.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting mb2009:
Quote:
OK, tried exactly as you instructed.  Did not work.  Added "pause" as last line in rs232.bat and dos screen said "  'cx777.exe'  not recognized as an internal or external command, operable program or batch file.  Press any key to continue.

Ok, now we are getting somewhere. Looks like the .bat file is not finding the program. To fix this, we need to put in the explicit path to the program.

For example, on my system, it would be:

@echo off
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 36 %4 0 0 1

The quotes are needed because of the spaces in the path.

Ok, verify the correct path on your system, try that and let me know.

After that, I will show you how to put in the Chapter and Track.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
Oh Happy Happy Joy Joy!
More please.  (step 2 Title & Chapter call)
Thank you - progress is a wonderful thing.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Quoting mb2009:
Quote:
Oh Happy Happy Joy Joy!
More please.  (step 2 Title & Chapter call)
Thank you - progress is a wonderful thing.

I agree, and we will get more - step by step.

Ok, now according to the cx777.exe documentation, here is how it works:

              cx777.exe port command disc track chapter play/pause

So, the command cx777.exe com1 36 %4 0 0 1 says:

"Use port=com1 to send a command type=36, disc=%4 (which comes from Slot), track =0, chapter =0, play ..."

To send the chapter and track from DVD Profiler to LoadDVD, there are any number of ways. Notice that I am using the term "Chapter" because that's what the cx777.exe documentation says. I have no idea whether that is the same as what you mean by "Title."

Let me suggest one way to do it. Play with it, and tell me if it can work for you. If not, then we will look for another way.


(1) For each disc in the profile, set Location = rs232 track chapter, e.g. rs232 3 7 asks for track 3, chapter 7.

(2) To send this information to the player, put the following into rs232.bat

  @echo off
  "C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 36 %4 %8 %9 1


%8 will be the track, and %9 will be the chapter, coming from LoadDVD.

If you use this method, as you figured out, you would need one disc in the profile for each track/chapter combination.

Let me know how it goes.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
Whooo HOOO!
Ok, that works fine.  Now we need to adjust it a bit.  I have tried to call up each track/chapter in the Sony CX777 "Program Mode" and the issue will be pauseing or delay between the entry of each piece of data i.e. disc# (slot in this case) Track# & Chapter#.  The Sony is very slow in accepting input - I had lots of fun tweeking this with my Ir program I mentioned earlier.  Apparently, it is also slow in taking commands via serial communication also.

My rs232 bat would look like this (as far as commands to send, in order for the "Program Mode" to input):

@echo off
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 23 %4 23 %8 23 %9 23

I have replaced command "35" , "Disc Direct" with "23" command which is same as "Enter" on the remote control.  So, I am trying to send each piece of info i.e. %4, %8 etc..
The sony machine accepts the 1st 23 command, but from there on, I need a delay after each 23 entry.
Did you ever get your Sony CX777?  Have you ever tried to use the "Program Mode"?  If you have not, you get to it by hitting thd "Display" key on the remote.  Instructions are in manual.

Hey, so far - this is going good - hang in there - thanks for help.
P.S.  Oh yea, the "Title" bit that I kept refering to, was what Sony called it in my 300 disc player - I think it was a translation thing - Anyhow, Track is fine with me.
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
fogot - would need a 1/2 second delay for 1st try - this is about the rate for the Ir signal feed.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
Glad you are making progress. Not to be critical, but hopefully helpful - many of your issues come from your expectation that somehow undocumented options will magically work. That's not the way computers and programs work. There is no documentation of support for the command that you created. Why would su suppose that cx777.exe would interpret your intentions?

Only the command format that is documented will work. To see that format, just type "cx777.exe" on the comamnd line, and it will display the syntax.

Usage:
cx777 port command options
port = COM1, COM2, etc
Command List
  0  - send_NUMERIC_KEY_0
  1  - send_NUMERIC_KEY_1
  2  - send_NUMERIC_KEY_2
  3  - send_NUMERIC_KEY_3
  4  - send_NUMERIC_KEY_4
  5  - send_NUMERIC_KEY_5
  6  - send_NUMERIC_KEY_6
  7  - send_NUMERIC_KEY_7
  8  - send_NUMERIC_KEY_8
  9  - send_NUMERIC_KEY_9
  10 - send_DISK_PLUS
  11 - send_DISK_MINUS
  12 - send_FOLDER
  13 - send_AUDIO
  14 - send_SUBTITLE
  15 - send_ANGLE
  16 - send_PREVIOUS
  17 - send_NEXT
  18 - send_PLAY
  19 - send_PAUSE
  20 - send_STOP
  21 - send_CURSOR_UP
  22 - send_CURSOR_LEFT
  23 - send_ENTER
  24 - send_CURSOR_RIGHT
  25 - send_CURSUR_DOWN
  26 - send_TOP_MENU
  27 - send_MENU
  28 - send_RETURN
  29 - send_TIME_TEXT
  30 - send_ONE_ALL_DISCS
  31 - send_REV_SCAN_SLOW
  32 - send_FWD_SCAN_SLOW
  33 - send_CLEAR
  34 - send_TEST
  35 - send_POWER_SET
        option1 - 1=on, 0=off
  36 - send_DISC_DIRECT_SET
        option1 - disc number
        option2 - track number (0 for default)
        option3 - chapter number (0 for default)
        option4 - 1=play 0=pause

Examples

Select disc 234 and start playing it

          cx777 COM1 36 234 0 0 1

Send STOP command

          cx777 COM1 20


Ok, now I read your post again, and I think I got it.

Here is an example of how you would send "1234" Enter to the machine:

"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 1
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 2
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 3
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 4
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 23

If you need a delay between the commands, there are free "sleep" commands out on the internet that can be inserted, such as "sleep 3" for a 3 second delay. Find them using Google.

BTW I never got a CX777ES, due to lack of donations such as you made. Otherwise, some of this stuff would probably have been built-in. Now I've moved on. Don't need or want such a unit anymore.
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Unlimited Registrantmb2009
I think I can, I think
Registered: July 24, 2009
Posts: 20
Posted:
PM this userDirect link to this postReply with quote
Finding a "wait" command has been fun (not really) so, any of you reading this, beware it depends on your operating system.  I did find something that works for me (see batch below).

My batch file works great in the Sony "Program" mode with the exception that it does not like 2 digit numbers that come from Slot, %4, %8, and %9. fields.  I can call up any Disc 1 through 9, any Track 1 through 9, and Chapter 1 through 9.  As soon as it sees a two digit number, then it crashes. Increasing the wait time does not help - I assume because of the way the eeprom (?) handles the input of a number - it takes the hex code of each digit seperately.  it recognizes 1 through 9 and zero, but does not know how to handle a two digit number.

Question:
Would it be possible to have three fields for Disc # - to handle a disc number in the hundreds?  Say Disc 397, field 1 is "3" field two is "9", and field three is "7".

I would also need two fields for Track # and two fields for Chapter #.

I don't know the limitations of the program for such a change - so I am just asking.

Or, how about handling it in the notes?

Here is my batch file so far:
@echo off
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 23
@ping 127.0.0.1 -n 1 >null
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 %4
@ping 127.0.0.1 -n 2 >null
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 23
@ping 127.0.0.1 -n 1 >null
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 %8
@ping 127.0.0.1 -n 2 >null
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 23
@ping 127.0.0.1 -n 1 >null
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 %9
@ping 127.0.0.1 -n 2 >null
"C:\Program Files\DVD Profiler\Plugins\LoadDVD\cx777.exe" com1 23
pause

The above problem is a yes, this is easy and here is the answer, or no, that would require a complete change of the program.  I would be greatful if you had the time for the "easy" answer.  I'll bet there is a bunch of folks out there that have no idea they have a potential "JukeBox" waiting for them in DVDProfile & LoadDVD - we are so close to an answer.
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
@mb2009,

Congratulations! I'm so proud of you! 

Actually I knew you would hit the 2 digit problem. This is one that probably does not need a plugin program change. I think it can be handled within the batch file. It will take a bit of fancy scripting. I will play around with it, but of course you can too. The approach would be to recognize how many digits in the number, then access each digit individually. This is done inside LoadDVD for sending IR commands to the CX995V.

I will edit this post with more specific ideas later. (No need ... see Agrare post)
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
 Last edited: by mediadogg
DVD Profiler Desktop and Mobile RegistrantAgrare
Registered: May 22, 2007
Reputation: High Rating
United States Posts: 1,033
Posted:
PM this userView this user's DVD collectionDirect link to this postReply with quote
could you use something like

ECHO OFF
SET myNumber=%1

:NEXTNUM
set onenum=%myNumber:~0,1%
ECHO %onenum%

SET myNumber=%myNumber:~1%
IF NOT [%myNumber%]==[] GOTO :NEXTNUM

%1 being the command line argument so if i put this in a file called parsenum.bat and then ran
parsenum.bat 1234

my output would be
1
2
3
4

so just change the ECHO %onenum% line to your the line to send it to your device

-Agrare
DVD Profiler Desktop and Mobile Registrantmediadogg
Aim high. Ride the wind.
Registered: March 18, 2007
Reputation: Highest Rating
United States Posts: 6,403
Posted:
PM this userVisit this user's homepageDirect link to this postReply with quote
@Agrare: You da man! 
Thanks for your support.
Free Plugins available here.
Advanced plugins available here.
Hey, new product!!! BDPFrog.
    Invelos Forums->DVD Profiler: Plugins Page: 1 2  Previous   Next