ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

c# development

Bradley Seman
 

I did a search for c# in the Crestron group and it returned no results. Maybe i'm doing it wrong, but i'm new here.

We are trying to write a program in c# and part of the functionality needed to for it to be able to connect to a DMPS or MC2E and upload a new program for it and it's connected touch panel.

Our attempts at connecting to a device on the local network have not been successful.

The code we have been using is this (this is just test code, the actual code will use variable names instead of hard coded info):

VptSessionset = newVptSession();

private void btn_Load_Click(object sender, EventArgs e)
{
DialogResult result;
Form LoadForm = new LoadForm(listboxLoadList,
txtControlPanel.Text, txtTPProgram.Text, txtWebInterface.Text,
txtControlFirmware.Text, txtTPFirmware.Text);
result = LoadForm.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
//Here is
where we load the list
Console.WriteLine("New VtpSession created!");
set.OpenSession("tcp
10.25.146.126", "C# test");
Console.WriteLine("Session opened!");
int TransID = 0;
String program = ;//fill in your own path/file here
set.AsyncActivateStr(0, program, 10000, TransID, 0, 0);
Console.WriteLine("Session program send!");
}
else if (result ==
System.Windows.Forms.DialogResult.Cancel)
{
// Don't load the list
;
}
}
The program string is blank since you guys will have a different file and directory to use.

after this function is called the set_OnActivateStrComplete function is called:
private void set_OnActivateStrComplete(int nTransactionID, int nAbilityCode, byte bSuccess, string pszOutputs, int nUserPassBack)
{
Console.WriteLine("Inside
of the complete!");
Console.WriteLine(bSuccess);
Console.WriteLine(pszOutputs);
}

when bSuccess is output to the Console, a zero is printed, indicating failure.
does anyone have any suggestions?

[Non-text portions of this message have been removed]


Re: The extended ASCII codes in 3-series

 

When using UTF-16, you don't use the "\x" notation, you have to use "\u" notation.

If you want codepoint U+AABB, then you write "\uAABB". You don't write "\xAA\xBB" or such.

--- In Crestron@..., "kabza" <kabzaa@...> wrote:

Thanks for reply.



Also thought about it, but I had no way to check this. At the end of the
week I'll be working on it so check it out.



Regards





From: Crestron@... [mailto:Crestron@...] On Behalf
Of sebastiaanheemskerk
Sent: Monday, June 10, 2013 10:52 AM
To: Crestron@...
Subject: [Crestron] Re: The extended ASCII codes in 3-series





There is a change in character encoding. With a 3-series you can have ASCII
and UTF16. If you are using UTF16, you need to put in 2 bytes to represent 1
character.

To make it more 2-series compatible, you can put in the compiler directive:
#ENCODING_ASCII

Or probably put a &#92;x00 in front of your &#92;xB0 (may be behind the &#92;xB0 as
well, as Crestron uses UTF16-Little Endian.)

Kind regards,

Sebastiaan

--- In Crestron@... <mailto:Crestron%40yahoogroups.com> ,
"kabza" <kabzaa@> wrote:

When i wanted to get degree sign in simpl+ module i just get it with &#92;xB0.
The same module in 3-series and degree sign is not show. Is there any
changes in ascii table?



Regards










Adagio Processor: Type of Internal Flash - Number of program reload cycles

 

Just a short question about the internal Flash Memory that is used in the Adagio processors, e.g. AES:

Flash Memory has normally a limited number of rewrite cycles.
Does anyone know, what type is built in in the AES and how many program reloads to the internal Flash are possible?

Thanks for any Input.

-Werner


Re: Hd-ext-1c question

 

Thanks.

{Paf}
Le 10 juin 2013 08:29, "Jeremy Weatherford" <jweather@...> a crit :

**




IR in at the TX, out at the RX. Should work with 1-way 232, but most
likely will not work in the reverse direction. I don't see any limitations
on using 232 and IR at the same time.

On Sun, Jun 9, 2013 at 9:14 AM, Raph Paf <raphaelthiffault@...>
wrote:


I forgot to ask, can we use rs232 and ir at the same time?

Does the ir probe can be install at the any end?


--- In Crestron@..., Raphal Thiffault <raphaelthiffault@
...>
wrote:

Someone know if we could use the ir port of to be use has a serial one
way?

--
Envoy� avec Ipad Gmail Mobile // Sent with Ipad Gmail Mobile


[Non-text portions of this message have been removed]



------------------------------------




Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the
Database area.
Yahoo!
Groups Links



--
Jeremy Weatherford





Re: The extended ASCII codes in 3-series

kabza
 

I use e-mail client from the crestron database without any problem.



From: Crestron@... [mailto:Crestron@...] On Behalf
Of Andy A
Sent: Monday, June 10, 2013 5:47 PM
To: Crestron@...
Subject: [Crestron] Re: The extended ASCII codes in 3-series





So if I am reading correctly...you have been able to get a 3-series
processor to send an email message? Ever since I upgraded firmware to the
latest available (as of a week or so ago) my email has been non-existent.
Any help/guidance you could provide would be greatly appreciated!

--- In Crestron@... <mailto:Crestron%40yahoogroups.com> ,
Kool-Aid Drinker <herald@...> wrote:

If you look at the full headers or "source" of a 2-series email,
you'll see a Content-type: header with a specific char set.

Compare 3-series.

With no char set designated, a 3-series email is at the mercy of email
reading program, OS internationalization, etc. Results WILL vary.

Complain to True Blue. As the basis of the email sender, they used a
free C# library that was known to have issues, but didn't apply any of
the readily available fixes.

On Sun, 9 Jun 2013 18:12:02 +0200, "kabza" <kabzaa@...> wrote:

It is not for panel. It is for -e-mail message. Here is my simpl+ code
that
is working well in 2-series but in 3-series degree sign is not show.



message$ = date(1)+" "+time()+" - Temperature is "+ Temp$ + " &#92;xB0C";



Here is e-mail message:



06/09/2013 17:22:15 - Temperature is 35.0 ?C



Regards



From: Crestron@... <mailto:Crestron%40yahoogroups.com>
[mailto:Crestron@... <mailto:Crestron%40yahoogroups.com> ] On
Behalf
Of Lincoln King-Cliby
Sent: Sunday, June 09, 2013 5:55 PM
To: 'Crestron@...
<mailto:%26%2339%3BCrestron%40yahoogroups.com> '
Subject: RE: [Crestron] The extended ASCII codes in 3-series





What panel are you using?

It's likely not a control system issue, but a panel issue.

If it's a TSW... this was working early on, broken in firmware and
reported
quite a while ago, and AFAIK still not fixed (though it's been a few
weeks
since I've had time to play with it)

Lincoln


Re: The extended ASCII codes in 3-series

kabza
 

Thanks for reply.



Also thought about it, but I had no way to check this. At the end of the
week I'll be working on it so check it out.



Regards





From: Crestron@... [mailto:Crestron@...] On Behalf
Of sebastiaanheemskerk
Sent: Monday, June 10, 2013 10:52 AM
To: Crestron@...
Subject: [Crestron] Re: The extended ASCII codes in 3-series





There is a change in character encoding. With a 3-series you can have ASCII
and UTF16. If you are using UTF16, you need to put in 2 bytes to represent 1
character.

To make it more 2-series compatible, you can put in the compiler directive:
#ENCODING_ASCII

Or probably put a &#92;x00 in front of your &#92;xB0 (may be behind the &#92;xB0 as
well, as Crestron uses UTF16-Little Endian.)

Kind regards,

Sebastiaan

--- In Crestron@... <mailto:Crestron%40yahoogroups.com> ,
"kabza" <kabzaa@...> wrote:

When i wanted to get degree sign in simpl+ module i just get it with &#92;xB0.
The same module in 3-series and degree sign is not show. Is there any
changes in ascii table?



Regards





Re: Vtpro-e or Windows (saving a file with version number no longer works)

 

Use a dash 1-1, 1-2.

--- In Crestron@..., "avsystemdesign" <avsystemdesign@...> wrote:

I'm not sure if this is a Vtpro-e thing or Windows...
I normally save a new file as v1.1, followed by v1.2 etc.
But, Vtpro-e won't do that anymore, it does not see the .2 for example, so instead it saves it as v1 (which can for obvious reason wreck havoc).

Anyone come across this? Is there a patch or workaround?


Re: Vtpro-e or Windows (saving a file with version number no longer works)

 

Don't save as in VTP, copy and rename? :)

--
Lincoln King-Cliby, CTS
Commercial Market Director
Sr. Systems Architect | Crestron Certified Master Programmer (Silver)
ControlWorks Consulting, LLC
V: 440.449.1100 x1107 | F: 440.449.1106 | I:
Crestron Services Provider

-----Original Message-----
From: Crestron@... [mailto:Crestron@...] On Behalf Of avsystemdesign
Sent: Monday, June 10, 2013 3:07 PM
To: Crestron@...
Subject: [Crestron] Re: Vtpro-e or Windows (saving a file with version number no longer works)

This has to be a Vtpro-e thing, as Simpl Windows still lets me save version numbers. For some very strange reason Vtpro-e cuts off any file name characters after the period. WTF!?

--- In Crestron@..., "avsystemdesign" <avsystemdesign@...> wrote:

I'm not sure if this is a Vtpro-e thing or Windows...
I normally save a new file as v1.1, followed by v1.2 etc.
But, Vtpro-e won't do that anymore, it does not see the .2 for example, so instead it saves it as v1 (which can for obvious reason wreck havoc).

Anyone come across this? Is there a patch or workaround?



------------------------------------



Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the Database area.
Yahoo! Groups Links


Re: Vtpro-e or Windows (saving a file with version number no longer works)

 

This has to be a Vtpro-e thing, as Simpl Windows still lets me save version numbers. For some very strange reason Vtpro-e cuts off any file name characters after the period. WTF!?

--- In Crestron@..., "avsystemdesign" <avsystemdesign@...> wrote:

I'm not sure if this is a Vtpro-e thing or Windows...
I normally save a new file as v1.1, followed by v1.2 etc.
But, Vtpro-e won't do that anymore, it does not see the .2 for example, so instead it saves it as v1 (which can for obvious reason wreck havoc).

Anyone come across this? Is there a patch or workaround?


Vtpro-e or Windows (saving a file with version number no longer works)

 

I'm not sure if this is a Vtpro-e thing or Windows...
I normally save a new file as v1.1, followed by v1.2 etc.
But, Vtpro-e won't do that anymore, it does not see the .2 for example, so instead it saves it as v1 (which can for obvious reason wreck havoc).

Anyone come across this? Is there a patch or workaround?


Re: The extended ASCII codes in 3-series

Andy A
 

Using a Crestron send email module or home-made?

--- In Crestron@..., Kool-Aid Drinker <herald@...> wrote:

I'm getting emails from a proc with 1.7.14. Haven't tried the
current-release 1.7.19, and don't have one I can update at the moment.

On Mon, 10 Jun 2013 15:47:24 -0000, "Andy A" <aandrea@...>
wrote:

So if I am reading correctly...you have been able to get a 3-series processor to send an
email message? Ever since I upgraded firmware to the latest available (as of a week or so
ago) my email has been non-existent. Any help/guidance you could provide would be greatly
appreciated!

--- In Crestron@..., Kool-Aid Drinker <herald@> wrote:

If you look at the full headers or "source" of a 2-series email,
you'll see a Content-type: header with a specific char set.

Compare 3-series.

With no char set designated, a 3-series email is at the mercy of email
reading program, OS internationalization, etc. Results WILL vary.

Complain to True Blue. As the basis of the email sender, they used a
free C# library that was known to have issues, but didn't apply any of
the readily available fixes.

On Sun, 9 Jun 2013 18:12:02 +0200, "kabza" <kabzaa@> wrote:

It is not for panel. It is for -e-mail message. Here is my simpl+ code that
is working well in 2-series but in 3-series degree sign is not show.



message$ = date(1)+" "+time()+" - Temperature is "+ Temp$ + " &#92;xB0C";



Here is e-mail message:



06/09/2013 17:22:15 - Temperature is 35.0 ?C



Regards



From: Crestron@... [mailto:Crestron@...] On Behalf
Of Lincoln King-Cliby
Sent: Sunday, June 09, 2013 5:55 PM
To: 'Crestron@...'
Subject: RE: [Crestron] The extended ASCII codes in 3-series





What panel are you using?

It's likely not a control system issue, but a panel issue.

If it's a TSW... this was working early on, broken in firmware and reported
quite a while ago, and AFAIK still not fixed (though it's been a few weeks
since I've had time to play with it)

Lincoln


Re: The extended ASCII codes in 3-series

Kool-Aid Drinker
 

I'm getting emails from a proc with 1.7.14. Haven't tried the
current-release 1.7.19, and don't have one I can update at the moment.

On Mon, 10 Jun 2013 15:47:24 -0000, "Andy A" <aandrea@...>
wrote:

So if I am reading correctly...you have been able to get a 3-series processor to send an
email message? Ever since I upgraded firmware to the latest available (as of a week or so
ago) my email has been non-existent. Any help/guidance you could provide would be greatly
appreciated!

--- In Crestron@..., Kool-Aid Drinker <herald@...> wrote:

If you look at the full headers or "source" of a 2-series email,
you'll see a Content-type: header with a specific char set.

Compare 3-series.

With no char set designated, a 3-series email is at the mercy of email
reading program, OS internationalization, etc. Results WILL vary.

Complain to True Blue. As the basis of the email sender, they used a
free C# library that was known to have issues, but didn't apply any of
the readily available fixes.

On Sun, 9 Jun 2013 18:12:02 +0200, "kabza" <kabzaa@...> wrote:

It is not for panel. It is for -e-mail message. Here is my simpl+ code that
is working well in 2-series but in 3-series degree sign is not show.



message$ = date(1)+" "+time()+" - Temperature is "+ Temp$ + " &#92;xB0C";



Here is e-mail message:



06/09/2013 17:22:15 - Temperature is 35.0 ?C



Regards



From: Crestron@... [mailto:Crestron@...] On Behalf
Of Lincoln King-Cliby
Sent: Sunday, June 09, 2013 5:55 PM
To: 'Crestron@...'
Subject: RE: [Crestron] The extended ASCII codes in 3-series





What panel are you using?

It's likely not a control system issue, but a panel issue.

If it's a TSW... this was working early on, broken in firmware and reported
quite a while ago, and AFAIK still not fixed (though it's been a few weeks
since I've had time to play with it)

Lincoln


Re: Another samsung ex-link question

 

PRO2

On Mon, Jun 10, 2013 at 12:58 PM, Oliver <oliver@...> wrote:

Jeremy

Was that at 3 series job?

--- In Crestron@..., Jeremy Weatherford <jweather@...> wrote:

FYI, we ran across a TV last week (UN46ES7500F) that would only respond
to
"off" commands from a 1-way 232 port, not from a full COM port. Maybe
EX-Link expects TTL levels and gets overdriven by standard 232? No idea,
this is the first time I've seen this, but then we usually have these on
1-way 232 ports anyway...



------------------------------------




Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the
Database area.
Yahoo!
Groups Links


--
Jeremy Weatherford


Re: Circular D-pad? Non-Core3

jmacd2918
 

Great suggestions, just what I needed to bust my brain out of the box. honestly, the thought of putting buttons [i]over[/i] the graphic never occurred to me.

I think I'm going to create an animation, that sounds like the easiest plan.

Thank you both.

--- In Crestron@..., Eric Williams <ewilliams0305@...> wrote:

I use an animation with the (6) states. I overlay the 5 transparent buttons onto the animation. Unit an analog value from each button press to drive the animation to the state you want. Then I use a nor from the 5 buttons to drive the animation back to its resting state. Works great and alot easier than lining up buttons.

-----Original Message-----
From: "Nick Mitchell" <nick@...>
Sent: �6/�10/�2013 7:40 AM
To: "Crestron@..." <Crestron@...>
Subject: Re: [Crestron] Circular D-pad? Non-Core3

That's pretty much how I do it. Circle graphic with rectangle buttons
overlaying it. I do each direction and select in the middle. I put a little
green or red icon in the middle of each direction to light up as feedback.
Kind of simulating an led.

Nick

Sent from my eMail.

On Jun 10, 2013, at 6:22 AM, jmacd2918 <jmacd2918@...> wrote:



I'm trying to figure out the best way to use a circular d-pad in a
non-core3 system. Think something like what's on a Roku remote:


I can build the graphics no problem, it's a matter of layout in Vision
Tools.

This is being done for both aesthetics and to fit better on the page, so
the issue of button overlap is really what I'm trying to overcome,
especially since it's a curved graphic (button to the user) in a
rectangular button (non-existent from the user point of view).

Is there a good way to do this?
Use blank buttons or borders to mask areas where there is overlap? Seems
like a major kludge, but it should work. I'm hoping I'm just overlooking a
better way to do this.

Thanks for any input.

-Jeff MacDonald
AV Coordinator
Johnson Graduate School of Management
Cornell University




[Non-text portions of this message have been removed]



------------------------------------



Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the Database area.
Yahoo! Groups Links





[Non-text portions of this message have been removed]


Re: BACNET question

Tres
 

They will point to you. You do not need their IP address.



tres





From: Crestron@... [mailto:Crestron@...] On Behalf
Of p00pb0t
Sent: Monday, June 10, 2013 1:22 PM
To: Crestron@...
Subject: [Crestron] BACNET question





So I am doing my first BACNET integration. I have the address of the HVAC
guys BACNET router and I am waiting on Crestron's email with my 50+ license
on my MC3. While I am waiting I am playing with the BACNET symbols. However
I am not seeing where I would enter the IP address of the BACNET router so
the Crestron will communicate to the HVAC guys equipment. Am I missing it
somewhere?



_____

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3343 / Virus Database: 3199/6397 - Release Date: 06/09/13


BACNET question

 

So I am doing my first BACNET integration. I have the address of the HVAC guys BACNET router and I am waiting on Crestron's email with my 50+ license on my MC3. While I am waiting I am playing with the BACNET symbols. However I am not seeing where I would enter the IP address of the BACNET router so the Crestron will communicate to the HVAC guys equipment. Am I missing it somewhere?


Re: New iOS App?

 

Hey Crestron, great job on the new app! I've been experimenting with it for the last few hours and find it to be a huge upgrade from the old version. I "save-as"ed some TSW-750 projects to the iPhone 5 app and they are surprisingly usable! I'm not doing a lot of stuff with the Smart Objects and Apps, but the regular stuff works just as well or better than the TSW.

My only complaint would be about the in-app upgrade method, makes it difficult to deploy commercially and educationally. I understand this has a lot do do with Apple. Should work fine for residential customers.

I finally enjoy doing iOS projects!


Re: Streaming Radio Question

Joe Hostyn
 

Brilliant, worked for a couple of stations, now lets see how long the URL's last!


________________________________
From: Chris Niles <chris.niles.crestron@...>
To: Crestron-yahoogroups. com <Crestron@...>
Sent: Monday, June 10, 2013 8:38:55 AM
Subject: Re: [Crestron] Streaming Radio Question


Have you tried listening with WireShark to figure bout the URL that the
Flash player is calling?

Chris
On Jun 9, 2013 11:59 PM, "joehostyn" <joehostyn@...> wrote:

**


I'm trying to figure out a simple fix for what should be a simple problem.
I have a client that would like local talk radio in several of their houses
that would normally be available on AM radio. At one point it was available
on the FM stream from the local cable company, but was killed two years ago
when they freed up the bandwidth for other services. I switch to MP3
streams on their Request Media servers.

Sometime over the last 7 months the radio stations seemed to have killed
all their MP3 support and now are only Flash. I can get it on Tune-In (a
streaming site).

It appears my options to stick with request are to trade in the 4.x series
servers for something that supports their new OS at a fairly heft expense
(3k plus for each server). If I do I can then get at if from Tune-In and
not have to reprogram much.

I was also thinking about using something like Roku which supports
Tune-In, but I'm not sure if I can do it easily.

If there are any Roku experts out here, I've installed a Roku box to test,
including one of the modules posted here. I can add the tune-in app and
create an account plus put the stations in my favourites. What I can see is
how I can easily select and play the favorite stations without using the
video interface. Is there a way to make each station as simple as a single
touch panel button press?

Does anyone have a simpler streaming radio solution for these types of
stations? Apple TV and airplay may be a possibility but it seems a bit
kludgy.

Also note, they have no AM reception for the area the stations are in.



[Non-text portions of this message have been removed]



------------------------------------



Check out the Files area for useful modules, documents, and drivers.

A contact list of Crestron dealers and programmers can be found in the Database area.
Yahoo! Groups Links



[Non-text portions of this message have been removed]


Re: OT: CAT5-powered speakers

Heath Volmer
 

I agree that it needs to be done right, unfortunately this house was built in a manner that may resist any or all attempts at retrofit wiring. I happened to be there on a day that the contractors were there looking at how to install a non-central AC system and heard one of the contractors say "this is the only dropped ceiling in the whole house" - pointing at a four-foot section of hallway ;-(

I can't use crap. I see that Channel Vision has an ABUS amp that it locally powered. Might be an option........ Stupid "wire-saving" products. I've never understood why dealers skimp on these style of houses.




On Jun 10, 2013, at 10:38 AM, Eric Williams <ewilliams0305@...> wrote:

ATON or an abus system, but it sucks... All 8 watts, boo. You can use voltage to trigger them on and off. The newer russound version of a abuss may have a commport you can use to adjust volume and source in each room. Personally I would sell some wiring$$$ we all want to make our clients happy but its our responsibility to do the Job correctly especially when taking over a system that is probably a disaster. They will be happier long term.

-----Original Message-----
From: "Heath Volmer" <hvolmer@...>
Sent: �6/�10/�2013 12:09 PM
To: "Crestron@... com" <Crestron@...>
Subject: [Crestron] OT: CAT5-powered speakers

I have a take-over client who has a Colorado VNet system that is misbehaving. Given their history of going out of business, he's not sure that he wants to repair it. I have since discovered that the various speakers around the house are powered by the system's touchpanels. Dandy! I'm thinking of replacing the system with some iPads or ?? but I'm hung up on the speakers. The original company did not home run any speaker cable.

Does anyone know of a Cat-based system that might work in a Crestron environment? (And no, not a RMC-200!) Even stashing something in the wall behind the iPads *might* be acceptable...

Heath

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]


Re: Another samsung ex-link question

 

Jeremy

Was that at 3 series job?

--- In Crestron@..., Jeremy Weatherford <jweather@...> wrote:

FYI, we ran across a TV last week (UN46ES7500F) that would only respond to
"off" commands from a 1-way 232 port, not from a full COM port. Maybe
EX-Link expects TTL levels and gets overdriven by standard 232? No idea,
this is the first time I've seen this, but then we usually have these on
1-way 232 ports anyway...