Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 38 made on Wednesday April 28, 2010 at 05:25
sWORDs
Long Time Member
Joined:
Posts:
November 2006
373
On April 27, 2010 at 20:26, Lyndel McGee said...
Do you have a simple example of something they commented on so we are both on the same page?

self = this;
this.rs232port.OnData=Function(){
    self.test = Function(a){System.print(a);}
    self.test("blaat1");
    self.test("blaat2");
    [...]
};

vs

self = this;
this.test = Function(a){System.print(a);}
this.rs232port.OnData=Function(){
    self.test("blaat1");
    self.test("blaat2");
    [...]
};

On April 27, 2010 at 20:26, Lyndel McGee said...
Can I get an example here please? I think I understand but a picture is worth 1000 words.

switch(a){
    case 1:
        switch(b){
            case y:
                execute code block y
                break;
            case z:
                execute code block z
                break;
                default: code to be executed if n is different
           }
            break;
    case 2:
        execute code block 2
        break;
        default: code to be executed if n is different
    }
}

vs

switch(a){
   case 1:
       if (b==y){execute code block y}
       else if (b==z){execute code block z}
       break;
   case 2:
       execute code block 2
       break;
       default: code to be executed if n is different
}

On April 27, 2010 at 20:26, Lyndel McGee said...
LMAO. That is why I switched to TCP/IP, especially since the 232 via RFX9600 is | not true full-duplex. A write to Serial port clears whatever data is currently in | receive buffer which makes you have to wait for full response prior to sending | next command. Also note that Ports 3 & 4 on RFX9600 share the same UART so | doing 2-way on either of those ports will be problematic based on the lack of full-| duplex. (A send on port 4 could kill data in buffer that your code is waiting to | receive on port 3).

I can't wait for the CRX, this will probably be a nice solution, open and maintain open a socket to the Denon and let the remotes communicate with only the CRX. That must be fast and even better no perfermance drops when adding remotes. I've bought a cheap Crestron processor on eBay to play with until the CRX arrives.

If you keep my source to yourselve (ofcourse you can use parts in your own code, but don't give my source to anyone else) I can email you the not yet improved Player and Receiver unprotected modules and send the improved versions as soon as they are done.

Last edited by sWORDs on April 28, 2010 08:38.


Hosting Services by ipHouse