AVForums

Our philosophy in our forums, reviews, podcasts and feature videos is to promote audio and visual excellence by gathering and sharing the best information and resources available.

Help

To begin please visit our help section »

Not a Member Yet?

It only takes a minute to start enjoying the benefits of AVForums membership, and it's free!

Member Log in

Crestron question - sending network packets

Post Reply
Old 21-11-2009, 9:53 AM   #1
Veteran Member
Join Date: Jan 2005
Location: Coventry
Experience Points:
9,165, Level: 22
Points: 9,165, Level: 22 Points: 9,165, Level: 22 Points: 9,165, Level: 22
Activity: 3.0%
Activity: 3.0% Activity: 3.0% Activity: 3.0%
Blog Entries: 1
Thanks: Gave 217, Got 360
Posts: 5,853
Crestron question - sending network packets

How would I go about sending packets over the ethernet port on a Crestron processor (an MP2E)? I'm looking to do a bit of PC control / messaging, I can probably script what I want to do, but how do I get these packets onto the net? I'm thinking of writing a custom wake-on-lan module to go with this too (that gets it's mac address from a join, using a script that parses a text file stored in nvram that's already there for things like room name)
  Quote
Old 21-11-2009, 5:07 PM   #2
Member
Join Date: Dec 2005
Experience Points:
2,571, Level: 11
Points: 2,571, Level: 11 Points: 2,571, Level: 11 Points: 2,571, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 0, Got 1
Posts: 106
You either use a TCP/IP Client or Server (depending on how you want it to work) symbol OR if you're into your Simpl+ (this is how I would do it) you write a module that can open a direct socket connection to a specified IP address and port.

Check out the Simpl+ help file for more info on direct socket connections.

If you need more info post back I will post some screenshots of the relevant bits.
  Quote
Thanks from:
SeanT (22-11-2009)
Old 22-11-2009, 12:00 AM   #3
Member
Join Date: Nov 2004
Location: Woking
Experience Points:
6,396, Level: 19
Points: 6,396, Level: 19 Points: 6,396, Level: 19 Points: 6,396, Level: 19
Activity: 1.7%
Activity: 1.7% Activity: 1.7% Activity: 1.7%
Thanks: Gave 12, Got 25
Posts: 526
Quote:
Originally Posted by SeanT View Post
How would I go about sending packets over the ethernet port on a Crestron processor (an MP2E)? I'm looking to do a bit of PC control / messaging, I can probably script what I want to do, but how do I get these packets onto the net? I'm thinking of writing a custom wake-on-lan module to go with this too (that gets it's mac address from a join, using a script that parses a text file stored in nvram that's already there for things like room name)

if your wanting to do wake on LAN its probably easyiest to use the SNMP part in simple although TBH i've never messed with it

you'll probably get a better response posting on the yahoo crestron programmers group
  Quote
Thanks from:
SeanT (22-11-2009)
Old 22-11-2009, 2:04 PM   #4
Veteran Member
Join Date: Jan 2005
Location: Coventry
Experience Points:
9,165, Level: 22
Points: 9,165, Level: 22 Points: 9,165, Level: 22 Points: 9,165, Level: 22
Activity: 3.0%
Activity: 3.0% Activity: 3.0% Activity: 3.0%
Blog Entries: 1
Thanks: Gave 217, Got 360
Posts: 5,853
Pretty sure I can find the relevant symbol, but any more detail on implementation / how you would do it would be awesome. All my control at the PC end would be achieved using auto-it, with the exception of the wake on lan implementation. Currently the PCs come on automatically at 7.30 am and switch off automatically after 10pm (as long as there isn't a logged in user) - but people still switch them off, plus a couple of them have failed to come on in the past for whatever reason (duff bios I guess?)

I'm guessing that I don't need to bother going into scripting to send a simple message to an IP address / port in Simpl, but that the wake on lan part will require a little bit of code. It seems like we manage the PCs and the control systems independently at the moment, and that there's massive potential to combine the two, especially as it's the same people managing AV and IT - we also have some devices that aren't connected by serial, but that have PC based control software and USB ports, so it saves on extra Crestron hardware.

Quote:
Originally Posted by 360Degree View Post
You either use a TCP/IP Client or Server (depending on how you want it to work) symbol OR if you're into your Simpl+ (this is how I would do it) you write a module that can open a direct socket connection to a specified IP address and port.

Check out the Simpl+ help file for more info on direct socket connections.

If you need more info post back I will post some screenshots of the relevant bits.
  Quote
Old 02-12-2009, 10:50 PM   #5
Member
Join Date: Dec 2005
Experience Points:
2,571, Level: 11
Points: 2,571, Level: 11 Points: 2,571, Level: 11 Points: 2,571, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 0, Got 1
Posts: 106
SeanT,

I've not forgotten about this thread just really tied up at the moment. When I get a bit of time I will get back to you...sorry for the delay.
  Quote
Old 03-12-2009, 11:01 AM   #6
Veteran Member
Join Date: Jan 2005
Location: Coventry
Experience Points:
9,165, Level: 22
Points: 9,165, Level: 22 Points: 9,165, Level: 22 Points: 9,165, Level: 22
Activity: 3.0%
Activity: 3.0% Activity: 3.0% Activity: 3.0%
Blog Entries: 1
Thanks: Gave 217, Got 360
Posts: 5,853
No problem, I've been waiting several weeks for some up to date original code for a couple of the rooms where I'm interested in doing this anyway - and can't implement major changes in term time either.
  Quote
Old 05-12-2009, 11:00 PM   #7
Member
Join Date: Dec 2005
Experience Points:
2,571, Level: 11
Points: 2,571, Level: 11 Points: 2,571, Level: 11 Points: 2,571, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Thanks: Gave 0, Got 1
Posts: 106
SeanT,

Have you managed to get this going yet? I'm not 100% sure that the TCP/IP client/server symbol is going to enable you to do this.

Forgive my ignorance, but when a computer with a WOL card is turned off, does it maintain it's IP address?
  Quote
Post Reply



Thread information and display options
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off