Visual Productions forum
Products => CueCore, QuadCore, IoCore, TimeCore & B-Station => Topic started by: Dennis_mav on July 26, 2018, 10:15:52 PM
-
Hello,
I want to control a Christie projector and an Atlona video switch using RS232 with an IoCore, I've been trying a lot, but it doesn't work.
What I have:
Visual Productions IoCore2
Atlona SW-52ED 4K/UHD Five-Input HDMI Switcher
Christie DWU599-GS projector
I've been testing the devices separately from each other by wiring the RX to the TX port en the TX to the RX port. And off coarse the ground to the ground.
The settings in every device are the same:
Serial Port Baud Rate: 115200
Serial Port Echo: off
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
For example I'm sending the following messages from the IoCore:
RS232, Send String, Set
To the projector:
Param1: (PWR 1)
Param2: 5
(what does Param2 do?)
To the switch:
Param1: PWON
Param2: 4
In the IoCore monitor I see the command has been send, but the projector as well the switch won't respond on my actions.
Do I need to send an start command, or maybe I've to separate it in more than one command?
In the attachment you can find the documents off the projector and switch.
What am i doing wrong? Can someone please help me!
-
Hello Dennis,
About the projector message.
I think the message that is send to the projector may not work because of param2. Which indicates the number of characters to send. The message you want to send to the projector is "(PWR 1)". Which has 7 characters. Count the brackets and the space as well. Could you try to change param 2 from 5 to 7.
About the switch.
When reading the manual it seems that all commands have to end with Carriage return.
The carriage return is not automatically added to end of a message. You will have tell the IoCore2 to send the carriage return. You can do this in two ways.
The first option is to add a second task which sends the carriage return.
Task 1: RS-232 -> Send String -> Set -> PWON -> 4
Task 2: RS-232 -> Send Bytes -> Set -> 0D0A -> 2
The two tasks should both be in the same action.
The second option is to combine the two tasks into one task:
Task: RS-232 -> Send Bytes -> Set -> 50574F4E0D0A -> 6
I have translated the message PWON (the ascii text) to hexadecimal which the task send bytes uses.
And then i have appended the carriage return.
Please let me know if this works.
Best regards,
Guido
-
Thank you Guido.
Nothing of this works.
It looks like the IoCore isn't sending the right commands or it will not reach the devices.
I've tested with Send Bytes in one Hex string, I've separated the command ( PWON / 50574F4E ) and the Carriage return ( CRLF / 0D0A ) in two tasks.
In the attachment you see the output message window. The 0D0A is displayed as "??" Is that normal?
I've tested the switcher to the projector with RS232, that works a bit. But if I can't reach the switcher with RS232 I also can't reach the projector.
Maybe you have soms other things to try?
-
I've been sending the command (PWR 1) (and many others) from the IoCore (see the attachment) to the software 232Analyzer.
In the other attachment you see the result of the information the software is receiving.
I also tested to send the commands from the software to the projector and switcher. This is working.
The projector as well the switcher is going on and off.
So I think the problem will be in the IoCore.
-
Hello Dennis,
The monitor page can not show all characters. If there are characters it can not show it will replace them with a ?.
However I have been testing it. And I found that there is a bug in the IoCore2 firmware which causes the baud rate 115200 to not work. I will update you when the update is ready.
Best regards,
Guido
-
Oké Guido. Thank you for your support so far.
Is there also a bug with other baudrates? Or can I use for now maybe an older firmware?
-
Hello Dennis,
This bug only applies to the 115200 baudrate.
While I do not have an older firmware for you. I have send an email to you with a beta IoCore2 firmware which should fix the problem.
Best regards,
Guido
-
Hi Guido,
The beta firmware is working fine.
The only thing that doesn't work is the command "projector on" (PWR 1).
Every other command is working, but if the projector is off, it will not go on with RS232.
I have change the power setting to communication mode, but it doesn't help.
Maybe you have an idea. I will ask the same question to the reseller of the Christie projector.
-
Hello Dennis,
The IoCore2 does not do anything special with any of the messages. From the perspective of the IoCore2 the (PWR 1) command is the same as any other command. As long as both param1 and param2 are set correctly it should work.
Hopefully your Christie projector reseller can help you.
Best regards,
Guido
-
Hello Guido,
It's been a while, but this problem hasn't been fixed yet.
Maybe you can help me with the following new information.
The projector On command by RS232 doesn't work. All other commands to the projector are working perfect.
I've monitored the output signal of the IoCore and I saw it is sending every RS232 string/command twice.
That's the only difference I see on the output signal of a terminal RS232 software on a laptop and the IoCore.
Do you know why it is sending all the commands twice?
Best regards,
Dennis
-
Hi Dennis,
How are you triggering the commands? When using the 'Execute' button, it triggers the command when pressing and when releasing the button. So it triggers twice that way. I'm afraid there is no way around that...
Another possible cause is having the trigger flank set to 'Change'. That could mean it triggers twice. If that is the case you can set the trigger flank to 'Down' to have it only trigger once.
What did the Christie reseller say about the issue?
Greetings,
Bootsy
-
Hi Bootsy,
I'm triggering it with an UDP command from an Ecler Touch Screen.
I don't think the double trigger is the problem, but it's the only difference with sending from a laptop, witch works perfect.
I've contacted a lot with Christie about the problem and tried almost everything.
It's works with RS232 software on a laptop, so they think it's the signal from the IoCore.
We've placed the IoCore directly near the projector for the test. Every RS232 signal works, but the power on command still doesn't work.
The IoCore has the latest firmware.
Dennis
-
Hi Dennis,
Regarding the double trigger, I think that might be a trigger flank thing. What UDP message do you send, and do you have the trigger flank set to down?
About the RS232 command... Can you share the showfile with me, and do you have a manual or something for the RS232 commands for the Christie projector? I will have a look.
Greetings,
Bootsy
-
Hi Bootsy,
In the attachment of this message you can find the manual and showfile.
At the moment I'm not on the location to check the status of the trigger flank.
Maybe you can see this in the showfile.
Dennis
-
Hi Dennis,
I've checked your showfile, loaded it in an IoCore2 and hooked it up to a logic analyzer. I've added what we send as an attachment to this post. Seems like we are sending the right message. But perhaps the projector doesn't like that the two commands are directly after each other. Can you try with the commands in separate actions, not triggering at the same time? It's a shame I can't hookup the laptop to see what it is sending, you said that sending it from a laptop worked? How are you sending it?
How have you connected the RS232 to the devices?
Greetings,
Bootsy
-
Hi Bootsy,
Off coarse I've tried it with only the projector command in a test action. But that also doesn't work.
I've tried it with a laptop with two different RS232 analyzer programs. That's works like a charm. I'm sending it with a RS232 PCI express card.
Is the normal setup the IoCore is connected with a 25m CAT5 SFTP cable. For the test we've also tried a direct short RS232 cable.
Dennis
-
Hi Dennis,
Thanks for the extra info.
But as the command you are sending is meant for both devices, I wonder how you connected to them?
Did you try only connecting the christie projector directly to the IoCore2 and sending only the (PWR 1) command? Just checking to be sure...
Reading back again I see you have a 232 analyser. Perhaps you can analyse the working command from the laptop, then analyse the not working command from the IoCore2 and compare them. Can you share that with me?
Just trying to get the information to see whats wrong, If anything on our side needs fixing we'll be happy to of course... But we need to know why the projector is not responding to our message first.
Greetings,
Bootsy
-
Hi Bootsy,
In the normal setup I've hard wired the Atlona and the projector together in the IoCore output.
For the test we have wired the IoCore direct to the projector with a short cable. We have only send the (PWR 1) command. Still doesn't work...
I've also analyzed the signals and the difference. I'm not on location this week but I can tell you the only difference is the double sending command.
The strange thing it's only the On command. All others are working fine.
Dennis
-
Hi Dennis,
That is pretty strange... How did you trigger the action/task when testing with the analyser? When using the 'Execute' button it will indeed send the command twice. Once when pressing the button, and once when releasing it.
You can trigger it manually only once, but it is a bit silly. You will have to make an action in the actionlist 'OSC', and put the triggerflank on 'Down'. Now you can add the task 'Action - Link - Set' and set parameter1 to execute your action which contains the RS232 message. Now you can press the execute button on the action (not on the task! You really have to select the action in the Showcontrol homepage and press execute there)
Normally your action is triggered via something else then the Execute button. You can then use the trigger flank if needed to make sure it triggers once. Depending on what triggers it. Most cases it will only trigger once anyway, unless your trigger sends an off value when released.
I hope this makes sense... Let me know if triggering it once instead of twice makes the difference.
Greetings,
Bootsy
-
Hi Bootsy,
I'm curious if this will work. I'll test it in the near future when I'm on location.
I'll let you know my findings.
The trigger comes from a touchscreen with a UDP command. So I can make this action with OSC.
Thank you!
Dennis
-
Hi Dennis,
If you send only one command via UDP then it should only trigger once.
Let me know how it works out :)
Greetings,
Bootsy