PDA

View Full Version : Displaying received serial data on NetRemote



jetblast
December 29th, 2004, 06:30 AM
Sorry to ask this again but I don't think I worded the question properly....

I presently use NetRemote ( on a Dell X50v) to control my Home Cinema ( Meridian Processor DVD etc) with Girder and the Serial plug in.
I would now like to display the serial feedback from the processor on the Dell remote..

Could someone give me a step by step guide as a way to achieve this.

I have used the logger to veiw the data received from the Meridan, which is

EVENT:Dev: 203 m.Volume + Pld1: 192.168.1.12 Pld2: m.Volume +

EVENT:Dev: 140 5650 Pld1: 5650 Pld2: Data Pld3: Meridian Pld4: COM1 Bin: 56 50

EVENT:Dev: 140 5472696669656C6420203436 Pld1: 5472696669656C6420203436 Pld2: Data Pld3: Meridian Pld4: COM1 Bin: 54 72 69 66 69 65 6C 64 ...

My uderstanding is that I need to take the third line (the serial data from the Meridian) interporate it and through Girder send it to NetRemote...

I can see how info. is sent from NetRemote to Girder but I am finding it dificult to do the reverse.. so as I stated above if somone with superior Knowledge to my own (not difficult) could give me a dummies step by step guide to achieving the above I would be forever in your debt.....

Promixis
December 29th, 2004, 06:51 AM
Hi Roy,

First step is getting Girder to parse the data from the Meridian. Have you looked at doing that yet?

Sending to NetRemote will be easy.

What data do you want to send? Volume/Mute/....?

jetblast
December 29th, 2004, 08:46 AM
To start with it would be basic info. Volume DSP setting etc.
Yes I have looked into it but my programming skills are practically zero..

I am assuming that you have to write code to parse the infomation received and that code has to be specific to the data being received. I looked at some code written by Mark F but it was specific to the MC1

You say that sending the info to NetRemote is easy. How actually do you achieve that. if I ever manage to exrtact the data .

Promixis
December 29th, 2004, 09:07 AM
Using the NetRemote.Send command. So once you get the data its basically a one liner to send it to NR.

jetblast
December 29th, 2004, 09:22 AM
Sorry to be a pain but is the 'send command explained in the guide as I cannot seem to find it

Promixis
December 29th, 2004, 09:39 AM
Hm,

I believe its in the pro guide. If not, we will add it.

jetblast
December 29th, 2004, 11:19 AM
So just to check I have things right...

I need to parse the data thats coming into girder (using some sort of code )
sending that data to NetRemote with the send command (will check the guide again)
would that be displayed using a frame...

Ok so I think I know what I have to do But can anybody tell me How I do the above

thanks

Sorry if these seem like dumb questions but I am finding it a very steep learning curve and the imformation seems to be spread out in different locations[/u]

Promixis
December 29th, 2004, 12:03 PM
You need the serial protocol for the receiver and then use lua to pull the numbers you want...

Have you searched here to see if someone has done this already?

Jlee
December 29th, 2004, 11:07 PM
From girder to send the contents of girder variable X and store it in NR as a variable Y you would use the following:


NetRemote.SendLabel("Y",X)

jetblast
December 30th, 2004, 05:32 AM
Lets see if I have got this right

I send a command to increase the volume on the Meridian via Girders Serial plugin (achieved that bit)
Now the theory.
Serial feedback from the Meridian goes to LUA code in the receive part of the serial plugin which triggers an eventstring attached to a command with the above SendLabel code.
How do I setup the Tonto/NetRemote end regarding the display of the result.

Sorry if these seem very simple but I am finding it very difficult to get to grips with
I have searched around for examples but there dosn't seem to be anything exactly the same.....

Promixis
December 30th, 2004, 05:53 AM
Roy,

First step is right.

Second step, serial plugin generates an event which is attaced to one command containing the lua code. This lua code will parse the serial data and then send it to NetRemote.

The serial data is in the pld1 variable. You will need to
1. find out which bytes represent what message is being sent
2. find out and extract the bytes that represent the volume level.