Your Universal Remote Control Center
RemoteCentral.com
Crestron Control Systems Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
beginning programming - controlling projector using serial
This thread has 9 replies. Displaying all posts.
Post 1 made on Monday April 4, 2016 at 08:00
slatepipe
Long Time Member
Joined:
Posts:
September 2015
11
[Link: dropbox.com]

hi there

i am beginning to learn crestron programming as part of my new job. i am enrolled on the cp101 course in may and am looking forward to it.

in the meantime i have some spare time, the crestron software and various bits of equipment at work with which to get to grips with some of the basics. i would like to get a firm grounding in the principles before i start the course.

i've been looking at various tutorials on youtube etc, some of which are helpful and some pretty much beyond me at the moment

i have an AV2 processor, a TPMC v12 touchpanel, a panasonic dvd player and a mitsubishi VL1550U projector

i have managed to get the dvd player to respond to buttons via IR and i am now trying to use the projector using a serial cable but i am not having much luck

is it possible someone could have a look at the files i have on the dropbox link and let me know where i am going wrong. i figure i have not set up the logic for the projector code properly.  it is probably something glaringly obvious but as i am a beginner it probably is not so obvious to me

if the code is good then i figure the problem must be something like a) serial cable fault, b) wrong projector code file or c) both

many many thanks for any help and guidance
Post 2 made on Monday April 4, 2016 at 12:11
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,594
First thing your serial commands are commented out for the projector. Use CNTRL I to make symbol complete not ALT F1 as it removes that module from the program.

Next you need some other way of powering up the projector other than the dvd power command (theoretically this will work but not proper programming technique).

Third you can't have your projector On feedback be the same signal as what your power On signal is. This works for the DVD player as it is a power toggle command so the touch panel shows feedback when the button is pressed. Since the projector sends a command saying that it is ON or OFF the name of this signal must be different than the signal that is telling the projector to turn ON/OFF.

Here is what I have come up with for you.


If you don't want the DVD player and projo to turn on together just remove the steppers and add a Projo Power ON and Projo Power OFF button to your touch panel.
You can't fix stupid
OP | Post 3 made on Tuesday April 5, 2016 at 06:47
slatepipe
Long Time Member
Joined:
Posts:
September 2015
11
hi there - wow - many thanks for this. this is extremely helpful. i have uploaded the code and changed the TP file to make some new buttons. i got some warning messages but loaded the code anyway. i can understand what the stepper is doing as there is a pause before the IR turns on the dvd and the page flips to the dvd page. although the projector still doesnt turn on - which leads me to think if the code is ok then either the code from the crestron database doesnt work with the projector (the projector is an xl1550u and the code is for a xl2550u). or i have got the ports set up in simpl windows. i have included two screengrabs so you can see what i mean


[img][/img]

[img][/img]


and like i said before  - many thanks again :)
Post 4 made on Tuesday April 5, 2016 at 12:31
weddellkw
Long Time Member
Joined:
Posts:
January 2013
186
On April 5, 2016 at 06:47, slatepipe said...
hi there - wow - many thanks for this. this is extremely helpful. i have uploaded the code and changed the TP file to make some new buttons. i got some warning messages but loaded the code anyway. i can understand what the stepper is doing as there is a pause before the IR turns on the dvd and the page flips to the dvd page. although the projector still doesnt turn on - which leads me to think if the code is ok then either the code from the crestron database doesnt work with the projector (the projector is an xl1550u and the code is for a xl2550u). or i have got the ports set up in simpl windows. i have included two screengrabs so you can see what i mean

[img][/img]

[img][/img]

and like i said before  - many thanks again :)

The warnings/notices are telling you that your logic signals aren't actually connected to anything:

-the on/off signals should connect the output of a stepper to the corresponding inputs on your projector module.
-the on_fb/off_fb signals need to be driven by the corresponding _fb output signals on the projector module.
-the tx$/rx$ strings carry the control data between the projector module and the serial port, and need to be connected on both.

Generally speaking, 'signals' will exist on both the input and output sides of symbols, thus linking them together.

You can highlight a signal and press F2 to view where it originates and lands.

Leaving 'open' signals is bad practice.
Post 5 made on Tuesday April 5, 2016 at 18:40
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On April 5, 2016 at 12:31, weddellkw said...
The warnings/notices are telling you that your logic signals aren't actually connected to anything:

-the on/off signals should connect the output of a stepper to the corresponding inputs on your projector module.
-the on_fb/off_fb signals need to be driven by the corresponding _fb output signals on the projector module.
-the tx$/rx$ strings carry the control data between the projector module and the serial port, and need to be connected on both.

Generally speaking, 'signals' will exist on both the input and output sides of symbols, thus linking them together.

You can highlight a signal and press F2 to view where it originates and lands.

Leaving 'open' signals is bad practice.

Not exactly. There will not be signals on both input and output all the time in fact with smart graphics, not near as much as before.

Leaving open signals is just fine unless you're taking a master class. His list of signals with no driving force or destination will cause ZERO issues. If you don't want these messages to show up, put those signals on a buffer with // on the enable line.

If the system isn't working properly, then look at these signals and see what they're for.
"Quality isn't expensive, it's Priceless!"
Post 6 made on Wednesday April 6, 2016 at 10:18
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,594
On April 5, 2016 at 18:40, kgossen said...
Not exactly. There will not be signals on both input and output all the time in fact with smart graphics, not near as much as before.

Leaving open signals is just fine unless you're taking a master class. His list of signals with no driving force or destination will cause ZERO issues. If you don't want these messages to show up, put those signals on a buffer with // on the enable line.

If the system isn't working properly, then look at these signals and see what they're for.

Leaving open signals isn't a big deal for the most part, no not clean programming but isn't going to affect anything either. In this case he hasn't connected any of his Projector commands to the touch panel thus why he is getting warnings/notices and the projector not working.
You can't fix stupid
Post 7 made on Wednesday April 6, 2016 at 10:56
SWOInstaller
Select Member
Joined:
Posts:
October 2010
1,594
On April 5, 2016 at 06:47, slatepipe said...
hi there - wow - many thanks for this. this is extremely helpful. i have uploaded the code and changed the TP file to make some new buttons. i got some warning messages but loaded the code anyway. i can understand what the stepper is doing as there is a pause before the IR turns on the dvd and the page flips to the dvd page. although the projector still doesnt turn on - which leads me to think if the code is ok then either the code from the crestron database doesnt work with the projector (the projector is an xl1550u and the code is for a xl2550u). or i have got the ports set up in simpl windows. i have included two screengrabs so you can see what i mean

[img][/img]

[img][/img]

and like i said before  - many thanks again :)

From the programming that I provided and your original programming I was able to recreate the EXACT warnings/notices you are receive just by commenting out the projector module.
When a module is commented out it will have "//" in front of the module name. To remove this, simply select the module and press ALT and F1 together. This will remove the // from the beginning of the module name. If you are now seeing *!* in front of the module it means that there are signals that still need to be inputted into the module. If you aren't going to be using any of the supplied inputs/outputs on the module simply select it again and Press CTRL and I together. This will comment out the un-used signals.

This should resolve the issue you are seeing and make your programming work properly.

For future troubleshooting please provide screen shots of the program view as this will provide the information required to better help resolve the problem. The configure screen only shows what devices you are programming and doesn't show any of the actual programming.
You can't fix stupid
Post 8 made on Wednesday April 6, 2016 at 19:05
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On April 6, 2016 at 10:18, SWOInstaller said...
Leaving open signals isn't a big deal for the most part, no not clean programming but isn't going to affect anything either. In this case he hasn't connected any of his Projector commands to the touch panel thus why he is getting warnings/notices and the projector not working.

I know. When you're learning this, stuff can happen and just didn't want him worrying about it too much. If there's a major error, the program will let you know.
"Quality isn't expensive, it's Priceless!"
OP | Post 9 made on Thursday April 7, 2016 at 04:56
slatepipe
Long Time Member
Joined:
Posts:
September 2015
11
hi again - thanks for the comments and tips. using the points mentioned above and by actually speaking to some very helpful people at crestron i've made some good progress and managed to get it all working pretty nicely. i'm currently trying out some different ideas and seeing what works and what doesnt

i'll probably grind to a halt at some point soon and post some more questions or give them another call. but as long as i have got familiar with the basics before i do the course again in a few months i'll be happy :)
OP | Post 10 made on Friday June 3, 2016 at 09:49
slatepipe
Long Time Member
Joined:
Posts:
September 2015
11
hi there

i completed the crestron cp101 course last week and although it was quite fast paced i felt like i improved my knowledge somewhat, but now that i have returned to work and have found some spare time with which to practice i find that i am struggling to adapt what i learned last week into my practice work project. so as previously mentioned, i have some questions :

these questions are probably embarrassingly easy to deal with and are quite revealing as to where my learning is at but :

i am trying to adapt the vtp and smw files from the course into files that will work with the test equipment i have set up here at work. there are 4 files in a zipped file in this dropbox link, 2 from the course and 2 which i have started to adapt :

[Link: dropbox.com]

so : i have managed to change the processor type from a pro3 to an av2 and the TP type to a tpmc v12 and have added the dvd player and projector modules that i have in my setup at work. i have deleted the unneeded modules and buttons that we used on the course, or at least i'm fairly sure i have.

- i have the mitsubishi set up in the logic folder in the program view and am not sure if this is the right place to put it?

- i need to set up a folder for the logic symbols to power the projector, the same as in the course smw file. one logic symbol is the serial i/o but i cannot remember what the commands in the centre of the symbol mean - ie : \x02PON\x03. i know we were shown but i cannot remember where to find this information.

- the tutor showed me briefly how to change aspects of the vtp or smw file so that they work with xpanel, so that i don't have to keep uploading them into the processor but i am having trouble replicating this now that i am back at work

hopefully this makes sense to some people and any further guidance will be greatly appreciated


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse