control a digital receiver trough rs232 and NI-700
khalid
Posts: 9
Hi, I am new to amx , and i have some issues to figure out how to control a digital receiver (STRONG SRT4100) trough an RS232 and NI-700 controller. It has been a week that I am trying to acheive it by my self but it's beginnig to take a lot of time, so if someone can be kind to show me the way or give some hints, it would be great. Thanks a lot.
0
Comments
Post the code you've written and are having trouble with and we'll see if we can help.
PROGRAM_NAME='receiver'
DEFINE_DEVICE
COM1 = 5004:1:0
COM2 = 5005:2:0
dvRECEIVER1 = 4000:1:0
dvDiscDevice = 4001:1:0
DEFINE_CONSTANT
DEFINE_TYPE
DEFINE_VARIABLE
DEFINE_START
STATIC_PORT_BINDING(dvDiscDevice, COM1, DUET_DEV_TYPE_DISC_DEVICE,
'My DVD', DUET_DEV_POLLED)
DYNAMIC_POLLED_PORT(COM2)
DYNAMIC_APPLICATION_DEVICE(dvRECEIVER1, DUET_DEV_TYPE_RECEIVER,
'My Receiver')
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
DATA_EVENT [dvRECEIVER1]
{
// Duet Virtual device data events go here
}
Hi, you are right, I found the box's RS232 too, but no DUET module, but if doesn't exist, can't I use an other duet module just for turning off/on the device? thanks vining
That's going to be a matter of trial and error. You'll just have to download some modules and see if they work.
If Vinning is correct and the rs232 port is for firmware upgrades, you might be able to control the unit. Sometimes it works and sometimes not. If you do get it to work bear in mind that some day the firmware might be updated and the control functionality might stop working. I've had it happen on several occasions.
In fact I've had it happen enough that I keep my own policy that I don't try and 'hack' a system this way. If the manufacturer says the control port is for programming only, I stick with that.
thanks eric, can you give some advice or perphaps URL's to download duets file that may work? It would be very helpful
Every device maker has their own quirky ways of creating RS232 communications so unless this box is actually OEM'd by someone else the chance of finding an alternative usable DUET module isn't likely at all. In fact you'd have a better chance of winning the lottery with out playing.
Find out if the box can even communicate via RS232 first and if not just use IR. Most set top boxes are only IR anyway so don't drive yourself too crazy with this.
thanks vining, I will give it a try.