¿ªÔÆÌåÓý

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

Re: 2-series stopprog causing watchdog reboot?

Kool-Aid Drinker
 

There's been a smattering of threads about the problem. The exact
conditions that produce it remain elusive.

Stopprog didn't give me many reboots, just really high utilization of
TCP_Read, UDP_Serv, LISR, and TIMER. Programs loads would fail unless
I did the same reboot/stopprog that you're doing.

Even a freshly booted processor with no program in it showed high
network-related utilization.

Apparently, there is beta 4.7 firmware that ameliorates the issue. I
can't confirm/deny its effectiveness -- I chose to roll back to 4.3.


On Sun, 12 May 2013 14:15:45 -0400, Lincoln King-Cliby
<lincoln@...> wrote:

My house is essentially running on two processors - there's a CP2E for
lighting/HVAC/security and general "supervision"- basically things I only touch once a year
or so, and a Pro2 [*wistfully* some day a Pro3] for audio/video/energy management/access
control that gets much more tweaking when I have free time.

The program isn't crazy - RealIdle is consistently >=84% and the HeapFree is generally
10-12 MB (on a 32MB processor). Program is running on CF but it would fit in internal
memory (it's more "so I don't have to wait for the COMPACT/"File System Maintenance")

What I've noticed for the past 6 months or so is that when I try loading a new program,
Toolbox fails miserably unless I stop the program first. But if I telnet to the processor
and do STOPPROG, I get exactly this far

PRO2 Control Console
Connected to Host: LJKC-PRO2
PRO2> stopprog
Stopping Program................................................................
..................

Before disappearing into the wild blue yonder... eventually the processor reboots

If I telnet to the processor while it's loading the program / running the initial solution
after rebooting and issue stopprog in the middle of that, the program stops just fine and I
cal load via Toolbox - but it's getting annoying (FYI, Progreset does gets hung/watchdogs
at the same point).

I can't recall having this issue with any of my clients' systems which is part of the
reason I'm even more perplexed/convinced that I have something lingering in a dark corner
that I need to take a flamethrower to, but the only changes in the last 6 months have been
fairly simple - move audio sources around, delete some redundant logic. I don't even think
any of the S+ has changed.

Software is current, firmware is current (4.007.0004)

It seems weird that the processor is running just fine, I only have issues trying to get it
to stop running.

Any guesses, ideas, or shots in the dark?

[Like I said, program is not huge - 4449 symbols / 7744 actual symbols / 23869 digitals /
5099 analogs / 3906 serials / 18.05 KB NVRAM / 1.56 MB Flash / 328.18 KB SIMPL+; ~30
Ethernet devices, ~49 Cresnet devices]


Re: Add Fonts to Core3 Project?

 

If you have access to labs you can activate the theme editor in Studio and its super easy to add fonts to themes.

On 2013-05-07, at 1:29 PM, Tray Schaeffer <trayschaeffer@...> wrote:

"I'm a doctor, not a bricklayer." ... I loves me some StarTrek :)

Tray

From: Chip
Sent: Tuesday, May 07, 2013 2:59 PM
To: Crestron@...
Subject: [Crestron] Re: Add Fonts to Core3 Project?

"Dammit Jim, I'm a coder - not a graphic designer!"

If only I could make my company *not* sell Core 3...errr..."SMART OBJECT" panels... I so would.

- Chip

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

But at the moment you can user the fonts provided by the themes or create a graphics for the object with the text and font you need instead.




Re: iPad Mini

Mark Conde
 

Wow! Thank You!


________________________________
From: Ronny Smerud <ronny@...>
To: "Crestron@..." <Crestron@...>
Sent: Sunday, May 12, 2013 10:53 AM
Subject: Re: [Crestron] iPad Mini



?
No, nothing to do in VT-pro..
Just compile and upload.

Ronny

Sendt fra min iPhone

Den 12. mai 2013 kl. 16:12 skrev Mark Conde <mcjaran@...>:

When creating a project on VTPro for an iPad Mini, does anything have to be done like resize graphics, Pages, resolution anything?

Resolution is the same only the size is different..

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

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




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


2-series stopprog causing watchdog reboot?

 

My house is essentially running on two processors - there's a CP2E for lighting/HVAC/security and general "supervision"- basically things I only touch once a year or so, and a Pro2 [*wistfully* some day a Pro3] for audio/video/energy management/access control that gets much more tweaking when I have free time.

The program isn't crazy - RealIdle is consistently >=84% and the HeapFree is generally 10-12 MB (on a 32MB processor). Program is running on CF but it would fit in internal memory (it's more "so I don't have to wait for the COMPACT/"File System Maintenance")

What I've noticed for the past 6 months or so is that when I try loading a new program, Toolbox fails miserably unless I stop the program first. But if I telnet to the processor and do STOPPROG, I get exactly this far

PRO2 Control Console
Connected to Host: LJKC-PRO2
PRO2> stopprog
Stopping Program................................................................
..................

Before disappearing into the wild blue yonder... eventually the processor reboots

If I telnet to the processor while it's loading the program / running the initial solution after rebooting and issue stopprog in the middle of that, the program stops just fine and I cal load via Toolbox - but it's getting annoying (FYI, Progreset does gets hung/watchdogs at the same point).

I can't recall having this issue with any of my clients' systems which is part of the reason I'm even more perplexed/convinced that I have something lingering in a dark corner that I need to take a flamethrower to, but the only changes in the last 6 months have been fairly simple - move audio sources around, delete some redundant logic. I don't even think any of the S+ has changed.

Software is current, firmware is current (4.007.0004)

It seems weird that the processor is running just fine, I only have issues trying to get it to stop running.

Any guesses, ideas, or shots in the dark?

[Like I said, program is not huge - 4449 symbols / 7744 actual symbols / 23869 digitals / 5099 analogs / 3906 serials / 18.05 KB NVRAM / 1.56 MB Flash / 328.18 KB SIMPL+; ~30 Ethernet devices, ~49 Cresnet devices]

--
Lincoln King-Cliby, CTS
Sr. Systems Architect | Crestron Certified Master Programmer (Silver)
ControlWorks Consulting, LLC
Crestron Services Provider


Re: S+ Parsing

 

Look on Labs. There's an entire forum dedicated to it.

On 2013-05-12, at 10:45 AM, Nick Mitchell <nick@...> wrote:

Is there any info published on simpl#?

Labs or anywhere?

Sent from my eMail.

On May 12, 2013, at 12:12 PM, Neil Dorin <neildorin@...> wrote:



Lol.
SIMPL#....

Sent from my iPhone

On 2013-05-10, at 2:16 PM, Eric Williams <ewilliams0305@...> wrote:

Can anyone recommend a thread or example s plus module that shows API XML
polling and parsing. Few web servers I want to make modules for that use
http requests and return XML.

Sent from my pocket robot!

-----Original Message-----
From: "Chip" <cfm@...>
Sent: 5/9/2013 10:53 PM
To: "Crestron@..." <Crestron@...>
Subject: [Crestron] Re: S+ Parsing

No documentation outside of what's here on the forum, but there's also
not a lot to it.

WHILE(1)

Says, take the code enclosed in the following curly braces and run it
OVER AND OVER AGAIN - FOREVERRRRRRRR!

In most circumstances that classifies as A Very Bad Thing (tm). But if
you include code inside the curly braces that returns time to the OS and
the host SIMPL program, you're good. As luck would have, it:

GATHER(delimiter,src_string)

Says STOP right there, and keep monitoring "src_string". Do not pass GO,
do not collect $200 UNTIL you see the specified "delimiter" appear in
src_string. When you do, remove everything from the front of src_sting up
to the first occurrence of delimiter, and put it in the variable I specify.
Then go back to monitoring "src_string".

The great thing about GATHER is that as soon as it evaluates src_string
and doesn't find delimiter, it returns control to the processor. The OS
lets GATHER know when (if ever) delimiter arrives, and tells it go resume
business.

The big trick is in your parsing code. You need to make sure you evaluate
what GATHER returns to you as quickly as possible and let the code return
to the GATHER. This is an exercise left to the reader, as how to parse
everything depends entirely on the data you're expecting.

In theory, the only way I know of for your BUFFER_INPUT to overrun is if
lots of data comes in that never contains the delimiter, or if your
processor is SO bogged down otherwise that the OS can't get your S+ code
fired back up to run the parsing code.

(Oddly enough, I have random instances of this happening at a job site
right now. REALLY frustrating)

That said, I'm not sure I'd use this approach for JSON data, considering
how sucky it's structured. Maybe there's a good way of doing it - I just
haven't considered it...

- Chip

--- In Crestron@..., "redquartznow" <redquartznq@...> wrote:

Hello

I would like to have a clear definition of the hows and why's of

Main()
{
While (1)
{
Gather ();
Parse
}}

From my searching on this group I have found many tidbits of information
that make this seem to be an attractive solution to chatty devices.
However every time I have used it (only on a project that sends back LARGE
amounts of json data i.e. tv program guide for a week) i just seem to get
buffer overruns.

Does anyone have a link to somewhere this has been explained in detail
before?

Cheers,
Kurt
[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



Re: Samsung UE55ES7000 - EX-Link

 

I just use plain old rs-232>SIO>EX-link on my own. Solid as a rock. If
you don't tell it otherwise, it powers up on whatever input it was powered
down on.

In a message dated 5/12/2013 12:09:48 P.M. Eastern Daylight Time,
neildorin@... writes:




Try the IVO (Image Video On) power on CEC command. This will power up the
display and switch it to the input on which it receives the command. I
presume you're sending it from a DM RMC or HDMI output.

Sent from my iPhone

On 2013-05-10, at 1:56 PM, "cyberbri24" <_cyberbri24@...
(mailto:cyberbri24@...) > wrote:

My model is actually the UN65D8000X but I would hope input would be the
same, not?

--- In _Crestron@... (mailto:Crestron@...) ,
"cyberbri24" <cyberbri24@...> wrote:

The generic CEC mod does not switch inputs on the Samsung. I really
need it to do that. I was told it needs to defualt to HDMI input as people
keep playing the damn input buttons so when they next crew operates the
system the input on the display isnt correct. I really was trying to avoid using
an IR emitter since I confirmed power on/off using the CEC control. Any
ideas would be welcome.

Thanks,
cyberbri
>
--- In _Crestron@... (mailto:Crestron@...) ,
"Kol Johnson" <kol.mstc@> wrote:

not at all. I expect that the thing to do is to embrace CEC. There
is a
> device I just learned about that is basically an IP/serial to CEC
converter.
Probably a good thing.
> >
<>
> > HdmiCecUsb.html

> don't know how well it works, but it seems that CEC is probably
going to be
the only reliable, non-ir, control moving forward.


_____

From: _Crestron@... (mailto:Crestron@...)
[mailto:_Crestron@... (mailto:Crestron@...) ] On
Behalf
Of grumpy_cake
Sent: Thursday, May 02, 2013 2:42 PM
To: _Crestron@... (mailto:Crestron@...)
> > Subject: [Crestron] Re: Samsung UE55ES7000 - EX-Link
>


> Is it bad of me to say that I am pleased to hear that I am not the
only one
smashing my face into a wall?
> > --- In _Crestron@... (mailto:Crestron@...)
<mailto:Crestron%40yahoogroups.com> , "Kol
Johnson" <kol.mstc@> wrote:

I have just wasted over an hour or so trying everything I can find
on a
> > UN19D4003 with the same results. Different protocols, different
baud
115200
down to 4800, no luck with any of them. I can see a response from
the TV
in viewport but nothing I would expect, and it is the same response
> > regardless of the character sent. Sorry I cannot help.
> >

_____
> >
From: _Crestron@... (mailto:Crestron@...)
<mailto:Crestron%40yahoogroups.com>
[mailto:_Crestron@... (mailto:Crestron@...)
<mailto:Crestron%40yahoogroups.com> ] On
Behalf
Of grumpy_cake
Sent: Thursday, May 02, 2013 1:37 PM
To: _Crestron@... (mailto:Crestron@...)
<mailto:Crestron%40yahoogroups.com>
Subject: [Crestron] Re: Samsung UE55ES7000 - EX-Link
> > >

> > I see it go out in debugger, the TV does nothing, and Rx$ is still
silent.

--- In _Crestron@... (mailto:Crestron@...)
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> , "Kol
Johnson" <kol.mstc@> wrote:
> > > this is power toggle, make sure the TV is on, send it right out
Samsung_TX$
in debugger
"&#92;x08&#92;x22&#92;x00&#92;x00&#92;x00&#92;x00&#92;xD6"
> > > >

_____

From: _Crestron@...
(mailto:Crestron@...) <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
[mailto:_Crestron@...
(mailto:Crestron@...) <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> ] On
Behalf
Of grumpy_cake
Sent: Thursday, May 02, 2013 9:11 AM
To: _Crestron@... (mailto:Crestron@...)
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
Subject: [Crestron] Re: Samsung UE55ES7000 - EX-Link
>

> > >
At the moment I am using the program that is in the folder with
the
module
> > > from:
>

> > > > ed_partner_modules/default.asp?manufacturer_id=134
> > > >
samsung_un55es8000_v1_0_demo
> > I've changed nothing so would expect it to be set up correctly.

I can send commands using Toolbox but nothing happens and I get
no
feedback
from the com port.
>
The module offers lots of sends and feedback.

Maybe I should try the UN55ES7500 instead.
> > > --- In _Crestron@...
(mailto:Crestron@...) <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> ,
"cyberbri24" <cyberbri24@> wrote:
>
Are you just using the generic CEC mod? I just programmed a
UN65Dxxxx
and
> > the Exlink didn;t offer any menu options to turn on so I am only
using
the
Power on and off commands which works only.
> > > --- In _Crestron@...
(mailto:Crestron@...) <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> ,
"grumpy_cake" <crestron@> wrote:
>
I've gone back to square 1 here to try and get this working.
> > > > > I've got rid of my program and am just using the one
supplied with
the
module.
> > I've uploaded it to my QM-RMC. (Was using an AV2)
> > > >
I made the cable myself, pins 2,3,5 -> T,R,S tested it with
a mm
several
times to be sure.
> > >
I've also tried changing the baud rate to 115200 as
previously
suggested. It's now back on 9600.
> > > > > I think the key thing here is that I am getting absolutely
nothing
coming into SIMPL Debugger on the Rx$ of the com port that the
Ex-Link
is
> > > connected to.
> > > > > > The TV should be spurting something out regardless of what
I am
sending
> it no?
> >
> > --- In _Crestron@...
(mailto:Crestron@...) <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> ,
"LENREX" <lenrex@> wrote:
>
If you downloaded the UN55ES8000 module from the website.
It's a
straight through cable.
> > > > > > > Did you load BOTH the Hardware & Logic modules into your
program?
> > > > > > > Did you make your own cable, or use a Samsung cable?
> > > > > I used the UN55ES8000 module on a 46" with a Samsung
cable plugged
straight into a MC3 and it worked perfectly. ...wasn't a long
run.

--- In _Crestron@...
(mailto:Crestron@...)
> > <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> ,
"grumpy_cake" <crestron@> wrote:
> >
Thanks,
> > > > > > >
> But does this actually apply to me? The pdf regarding
the module
> > I
am using has no mention of injecting power...
> > > > > > I am connecting directly from an AV2 to the EX-Link
port.
> > > > > > > Have I missed something here? When others connect
Ex-Link do you
not
connect directly?
> > > > > > > >
> >
--- In _Crestron@...
(mailto:Crestron@...)
> > <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
, "javimanga" <javimanga@> wrote:
> > >
> > > > > > > > >
> > > >
Hi!
> > > > > > > Check this info about ex-link
> > >

> > > > rs

Specially this!!!:
> > > > > > > > "As the TV uses 3.3V TTL levels, the serial
input/output has
to
be
> > > > converted to/from TTL levels to RS232 levels (~10-15V). Thus a
level
shifter
is needed. But most computers today, doesn't have an RS232 port,
so you
> > > also
need a USB-to-RS232 serial adapter (cable). Thus its a definite
advantage
> > to
buy a pre-fabricated USB-to-serial converter using 3.3 Volt TTL
levels
on
> > the serial side. Common one to look for are based on the PL2303
and FTDI
chips.
> > > WARNING! RS232 levels are up to 15V, which can cause
seriously
damage at your TV!"
> > > > > > >
> > Regards,
Javier VM
> > > > > > > --- In _Crestron@...
(mailto:Crestron@...)
> > <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> , "grumpy_cake" <crestron@>
wrote:
> > > > > > > > > Hi,
> > > > > >
> > I hope someone can have some patience and spoon feed
me
> > through
this as I have sat here for hours and have got nowhere. I am
guessing a
bit
> > > > so please let me know if I am doing something stupid.
> > > > > > > > > > Firstly this may all be down to me using a module
that may
not
> work as I can't find my TV.
> > >
I have a: UE55ES7000
Closest I can find is the UN55ES8000
> > > >
I've made up a cable for EX-LINK control using the
diagram
in
the module pdf
> > > > >
>
(integrated_partner_modules/help_files/959/samsung_un55es8000_v1_0_help.pdf)
> > > > > > > > > >
> > > > > > Tested cable with multi-meter, seems fine.
> > > > > > > > > I have set the value of the RS232 mode to Debug.

Tried a basic test with the module
[Non-text portions of this message have been removed]






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


Re: S+ Parsing

Eric Williams
 

I saw the SDK on labs. Looks like you need VB 2008. Didn't see a whole lot of documentation. I guess if I'm going to invest the time into learning something it may as well be a new something.

Eric Williams
Head of Engineering
ABE Networks
240-604-4771

On May 12, 2013, at 12:45 PM, Nick Mitchell <nick@...> wrote:

Is there any info published on simpl#?

Labs or anywhere?

Sent from my eMail.

On May 12, 2013, at 12:12 PM, Neil Dorin <neildorin@...> wrote:



Lol.
SIMPL#....

Sent from my iPhone

On 2013-05-10, at 2:16 PM, Eric Williams <ewilliams0305@...> wrote:

Can anyone recommend a thread or example s plus module that shows API XML
polling and parsing. Few web servers I want to make modules for that use
http requests and return XML.

Sent from my pocket robot!

-----Original Message-----
From: "Chip" <cfm@...>
Sent: 5/9/2013 10:53 PM
To: "Crestron@..." <Crestron@...>
Subject: [Crestron] Re: S+ Parsing

No documentation outside of what's here on the forum, but there's also
not a lot to it.

WHILE(1)

Says, take the code enclosed in the following curly braces and run it
OVER AND OVER AGAIN - FOREVERRRRRRRR!

In most circumstances that classifies as A Very Bad Thing (tm). But if
you include code inside the curly braces that returns time to the OS and
the host SIMPL program, you're good. As luck would have, it:

GATHER(delimiter,src_string)

Says STOP right there, and keep monitoring "src_string". Do not pass GO,
do not collect $200 UNTIL you see the specified "delimiter" appear in
src_string. When you do, remove everything from the front of src_sting up
to the first occurrence of delimiter, and put it in the variable I specify.
Then go back to monitoring "src_string".

The great thing about GATHER is that as soon as it evaluates src_string
and doesn't find delimiter, it returns control to the processor. The OS
lets GATHER know when (if ever) delimiter arrives, and tells it go resume
business.

The big trick is in your parsing code. You need to make sure you evaluate
what GATHER returns to you as quickly as possible and let the code return
to the GATHER. This is an exercise left to the reader, as how to parse
everything depends entirely on the data you're expecting.

In theory, the only way I know of for your BUFFER_INPUT to overrun is if
lots of data comes in that never contains the delimiter, or if your
processor is SO bogged down otherwise that the OS can't get your S+ code
fired back up to run the parsing code.

(Oddly enough, I have random instances of this happening at a job site
right now. REALLY frustrating)

That said, I'm not sure I'd use this approach for JSON data, considering
how sucky it's structured. Maybe there's a good way of doing it - I just
haven't considered it...

- Chip

--- In Crestron@..., "redquartznow" <redquartznq@...> wrote:

Hello

I would like to have a clear definition of the hows and why's of

Main()
{
While (1)
{
Gather ();
Parse
}}

From my searching on this group I have found many tidbits of information
that make this seem to be an attractive solution to chatty devices.
However every time I have used it (only on a project that sends back LARGE
amounts of json data i.e. tv program guide for a week) i just seem to get
buffer overruns.

Does anyone have a link to somewhere this has been explained in detail
before?

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




[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



Re: S+ Parsing

 

Is there any info published on simpl#?

Labs or anywhere?

Sent from my eMail.

On May 12, 2013, at 12:12 PM, Neil Dorin <neildorin@...> wrote:



Lol.
SIMPL#....
On 2013-05-10, at 2:16 PM, Eric Williams <ewilliams0305@...> wrote:

Can anyone recommend a thread or example s plus module that shows API XML
polling and parsing. Few web servers I want to make modules for that use
http requests and return XML.

Sent from my pocket robot!

-----Original Message-----
From: "Chip" <cfm@...>
Sent: 5/9/2013 10:53 PM
To: "Crestron@..." <Crestron@...>
Subject: [Crestron] Re: S+ Parsing

No documentation outside of what's here on the forum, but there's also
not a lot to it.

WHILE(1)

Says, take the code enclosed in the following curly braces and run it
OVER AND OVER AGAIN - FOREVERRRRRRRR!

In most circumstances that classifies as A Very Bad Thing (tm). But if
you include code inside the curly braces that returns time to the OS and
the host SIMPL program, you're good. As luck would have, it:

GATHER(delimiter,src_string)

Says STOP right there, and keep monitoring "src_string". Do not pass GO,
do not collect $200 UNTIL you see the specified "delimiter" appear in
src_string. When you do, remove everything from the front of src_sting up
to the first occurrence of delimiter, and put it in the variable I specify.
Then go back to monitoring "src_string".

The great thing about GATHER is that as soon as it evaluates src_string
and doesn't find delimiter, it returns control to the processor. The OS
lets GATHER know when (if ever) delimiter arrives, and tells it go resume
business.

The big trick is in your parsing code. You need to make sure you evaluate
what GATHER returns to you as quickly as possible and let the code return
to the GATHER. This is an exercise left to the reader, as how to parse
everything depends entirely on the data you're expecting.

In theory, the only way I know of for your BUFFER_INPUT to overrun is if
lots of data comes in that never contains the delimiter, or if your
processor is SO bogged down otherwise that the OS can't get your S+ code
fired back up to run the parsing code.

(Oddly enough, I have random instances of this happening at a job site
right now. REALLY frustrating)

That said, I'm not sure I'd use this approach for JSON data, considering
how sucky it's structured. Maybe there's a good way of doing it - I just
haven't considered it...

- Chip

--- In Crestron@..., "redquartznow" <redquartznq@...> wrote:

Hello

I would like to have a clear definition of the hows and why's of

Main()
{
While (1)
{
Gather ();
Parse
}}

From my searching on this group I have found many tidbits of information
that make this seem to be an attractive solution to chatty devices.
However every time I have used it (only on a project that sends back LARGE
amounts of json data i.e. tv program guide for a week) i just seem to get
buffer overruns.

Does anyone have a link to somewhere this has been explained in detail
before?

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

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


Re: S+ Parsing

 

Lol.
SIMPL#....

On 2013-05-10, at 2:16 PM, Eric Williams <ewilliams0305@...> wrote:

Can anyone recommend a thread or example s plus module that shows API XML polling and parsing. Few web servers I want to make modules for that use http requests and return XML.

Sent from my pocket robot!

-----Original Message-----
From: "Chip" <cfm@...>
Sent: ?5/?9/?2013 10:53 PM
To: "Crestron@..." <Crestron@...>
Subject: [Crestron] Re: S+ Parsing

No documentation outside of what's here on the forum, but there's also not a lot to it.

WHILE(1)

Says, take the code enclosed in the following curly braces and run it OVER AND OVER AGAIN - FOREVERRRRRRRR!

In most circumstances that classifies as A Very Bad Thing (tm). But if you include code inside the curly braces that returns time to the OS and the host SIMPL program, you're good. As luck would have, it:

GATHER(delimiter,src_string)

Says STOP right there, and keep monitoring "src_string". Do not pass GO, do not collect $200 UNTIL you see the specified "delimiter" appear in src_string. When you do, remove everything from the front of src_sting up to the first occurrence of delimiter, and put it in the variable I specify. Then go back to monitoring "src_string".

The great thing about GATHER is that as soon as it evaluates src_string and doesn't find delimiter, it returns control to the processor. The OS lets GATHER know when (if ever) delimiter arrives, and tells it go resume business.

The big trick is in your parsing code. You need to make sure you evaluate what GATHER returns to you as quickly as possible and let the code return to the GATHER. This is an exercise left to the reader, as how to parse everything depends entirely on the data you're expecting.

In theory, the only way I know of for your BUFFER_INPUT to overrun is if lots of data comes in that never contains the delimiter, or if your processor is SO bogged down otherwise that the OS can't get your S+ code fired back up to run the parsing code.

(Oddly enough, I have random instances of this happening at a job site right now. REALLY frustrating)

That said, I'm not sure I'd use this approach for JSON data, considering how sucky it's structured. Maybe there's a good way of doing it - I just haven't considered it...

- Chip

--- In Crestron@..., "redquartznow" <redquartznq@...> wrote:

Hello

I would like to have a clear definition of the hows and why's of

Main()
{
While (1)
{
Gather ();
Parse
}}

From my searching on this group I have found many tidbits of information
that make this seem to be an attractive solution to chatty devices. However every time I have used it (only on a project that sends back LARGE amounts of json data i.e. tv program guide for a week) i just seem to get buffer overruns.

Does anyone have a link to somewhere this has been explained in detail before?

Cheers,
Kurt



Re: Samsung UE55ES7000 - EX-Link

 

Try the IVO (Image Video On) power on CEC command. This will power up the display and switch it to the input on which it receives the command. I presume you're sending it from a DM RMC or HDMI output.

On 2013-05-10, at 1:56 PM, "cyberbri24" <cyberbri24@...> wrote:

My model is actually the UN65D8000X but I would hope input would be the same, not?

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

The generic CEC mod does not switch inputs on the Samsung. I really need it to do that. I was told it needs to defualt to HDMI input as people keep playing the damn input buttons so when they next crew operates the system the input on the display isnt correct. I really was trying to avoid using an IR emitter since I confirmed power on/off using the CEC control. Any ideas would be welcome.

Thanks,
cyberbri

--- In Crestron@..., "Kol Johnson" <kol.mstc@> wrote:

not at all. I expect that the thing to do is to embrace CEC. There is a
device I just learned about that is basically an IP/serial to CEC converter.
Probably a good thing.

<>
HdmiCecUsb.html


don't know how well it works, but it seems that CEC is probably going to be
the only reliable, non-ir, control moving forward.


_____

From: Crestron@... [mailto:Crestron@...] On Behalf
Of grumpy_cake
Sent: Thursday, May 02, 2013 2:42 PM
To: Crestron@...
Subject: [Crestron] Re: Samsung UE55ES7000 - EX-Link




Is it bad of me to say that I am pleased to hear that I am not the only one
smashing my face into a wall?

--- In Crestron@... <mailto:Crestron%40yahoogroups.com> , "Kol
Johnson" <kol.mstc@> wrote:

I have just wasted over an hour or so trying everything I can find on a
UN19D4003 with the same results. Different protocols, different baud
115200
down to 4800, no luck with any of them. I can see a response from the TV
in viewport but nothing I would expect, and it is the same response
regardless of the character sent. Sorry I cannot help.


_____

From: Crestron@... <mailto:Crestron%40yahoogroups.com>
[mailto:Crestron@... <mailto:Crestron%40yahoogroups.com> ] On
Behalf
Of grumpy_cake
Sent: Thursday, May 02, 2013 1:37 PM
To: Crestron@... <mailto:Crestron%40yahoogroups.com>
Subject: [Crestron] Re: Samsung UE55ES7000 - EX-Link




I see it go out in debugger, the TV does nothing, and Rx$ is still silent.

--- In Crestron@... <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> , "Kol
Johnson" <kol.mstc@> wrote:

this is power toggle, make sure the TV is on, send it right out
Samsung_TX$
in debugger
"&#92;x08&#92;x22&#92;x00&#92;x00&#92;x00&#92;x00&#92;xD6"


_____

From: Crestron@... <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
[mailto:Crestron@... <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com> ] On
Behalf
Of grumpy_cake
Sent: Thursday, May 02, 2013 9:11 AM
To: Crestron@... <mailto:Crestron%40yahoogroups.com>
<mailto:Crestron%40yahoogroups.com>
Subject: [Crestron] Re: Samsung UE55ES7000 - EX-Link




At the moment I am using the program that is in the folder with the
module
from:


ed_partner_modules/default.asp?manufacturer_id=134

samsung_un55es8000_v1_0_demo

I've changed nothing so would expect it to be set up correctly.

I can send commands using Toolbox but nothing happens and I get no
feedback
from the com port.

The module offers lots of sends and feedback.

Maybe I should try the UN55ES7500 instead.

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

Are you just using the generic CEC mod? I just programmed a UN65Dxxxx
and
the Exlink didn;t offer any menu options to turn on so I am only using
the
Power on and off commands which works only.

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

I've gone back to square 1 here to try and get this working.

I've got rid of my program and am just using the one supplied with
the
module.

I've uploaded it to my QM-RMC. (Was using an AV2)

I made the cable myself, pins 2,3,5 -> T,R,S tested it with a mm
several
times to be sure.

I've also tried changing the baud rate to 115200 as previously
suggested. It's now back on 9600.

I think the key thing here is that I am getting absolutely nothing
coming into SIMPL Debugger on the Rx$ of the com port that the Ex-Link
is
connected to.

The TV should be spurting something out regardless of what I am
sending
it no?



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

If you downloaded the UN55ES8000 module from the website. It's a
straight through cable.

Did you load BOTH the Hardware & Logic modules into your program?

Did you make your own cable, or use a Samsung cable?

I used the UN55ES8000 module on a 46" with a Samsung cable plugged
straight into a MC3 and it worked perfectly. ...wasn't a long run.

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

Thanks,

But does this actually apply to me? The pdf regarding the module
I
am using has no mention of injecting power...

I am connecting directly from an AV2 to the EX-Link port.

Have I missed something here? When others connect Ex-Link do you
not
connect directly?



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




Hi!

Check this info about ex-link

rs

Specially this!!!:

"As the TV uses 3.3V TTL levels, the serial input/output has
to
be
converted to/from TTL levels to RS232 levels (~10-15V). Thus a level
shifter
is needed. But most computers today, doesn't have an RS232 port, so you
also
need a USB-to-RS232 serial adapter (cable). Thus its a definite
advantage
to
buy a pre-fabricated USB-to-serial converter using 3.3 Volt TTL levels
on
the serial side. Common one to look for are based on the PL2303 and FTDI
chips.
WARNING! RS232 levels are up to 15V, which can cause seriously
damage at your TV!"

Regards,
Javier VM

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

Hi,

I hope someone can have some patience and spoon feed me
through
this as I have sat here for hours and have got nowhere. I am guessing a
bit
so please let me know if I am doing something stupid.

Firstly this may all be down to me using a module that may
not
work as I can't find my TV.

I have a: UE55ES7000
Closest I can find is the UN55ES8000

I've made up a cable for EX-LINK control using the diagram
in
the module pdf

(integrated_partner_modules/help_files/959/samsung_un55es8000_v1_0_help.pdf)

Tested cable with multi-meter, seems fine.

I have set the value of the RS232 mode to Debug.

Tried a basic test with the module


Certification Test - Messaging from Touchpanel

 

Hi everyone,

I'm working on the new certification test and basically one of the programs you have to be able to message back and forth from a V12 touchpanel to the helpdesk. I'm just wondering if anyone has any experience integrating this in a touchpanel. I'm not quite sure where to start. I've never done a roomview system before. Is that functionality built into the roomview software/module.

If someone could point me in the right direction to get started, it would be a big help. I need to learn this stuff so I'm not looking for a completed program, just some general help/tips to get started.

Thanks!


Re: iPad Mini

Ronny Smerud
 

No, nothing to do in VT-pro..
Just compile and upload.

Ronny

Sendt fra min iPhone

Den 12. mai 2013 kl. 16:12 skrev Mark Conde <mcjaran@...>:

When creating a project on VTPro for an iPad Mini, does anything have to be done like resize graphics, Pages, resolution anything?

Resolution is the same only the size is different..

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


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


Re: Sports Bar

 

Media Servers:
For sure, Kaleidescape does this.
I'm sure Request devices would too. I've only worked with their older
audio-only devices.

On the cheaper end, XBMC would have the most integration. Never used it
though.

Standalone:
Any DVD/Bluray player with a serial port will provide this feedback.

Chris
On May 12, 2013 8:30 AM, "timriordan1" <tim@...> wrote:

**


Hello everyone. We have a client that would like to play classic sports
events thru the A/V system on a predetermined time. The system would dim
the lights, play the sports media, and once completed switch the lights,
inputs, and outputs back to their previous state. The programming is not
the issue, the issue is the "media device" that would give us feedback as
to when the media has stopped. Has anyone done anything similar or could
point us in the right direction as far as the "media device". Thank you



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


iPad Mini

Mark Conde
 

When creating a project on VTPro for an iPad Mini, does anything have to be done like resize graphics, Pages, resolution anything?

Resolution is the same only the size is different..


Sports Bar

 

Hello everyone. We have a client that would like to play classic sports events thru the A/V system on a predetermined time. The system would dim the lights, play the sports media, and once completed switch the lights, inputs, and outputs back to their previous state. The programming is not the issue, the issue is the "media device" that would give us feedback as to when the media has stopped. Has anyone done anything similar or could point us in the right direction as far as the "media device". Thank you


Re: Win XP support

 

Thanks everybody for the advice.

Yea I installed 32 bit XP. Ive been using it on a 64 bit laptop for a while and im happy.

To compare Win 7 and XP you MUST compare on the same hardware. Ive done that for years. Ive been using various Toshiba Tecra laptops for years and they have the ability to use dual hard drives, one even hot swap. At power on you can choose from either HD to boot from. So I have SSD's in both slots. One has Win 7 and one XP. Both are fully supported on my current Tecra M9. 2.7Ghz, 4GB ram ( high performance ram )( only 3GB seen by XP 32).. I do a virgin install of the OS -NOT A OEM RESTORE- with all the crap on it. Both my Win 7 and XP are virgin clean installs from purchased full copies of windows with no programs or crap at all. I use msconfig and trim start up programs and services to just whats needed. I then use Deepfreeze to lock the install so every time I boot its as clean as it was from day one. Deepfreeze also allows me to not run a virus program as any virus would just go away with a reboot.

Flipping between the 2 is a clear difference. Even on simple web browsing using the same browser. Page elements kinda drop into place one by one quickly visually on Win 7 and on XP its just boom - the whole page is instantly rendered. Its also obviously faster flipping thru pages. I think all the DNS lookups and network interactions are not as snappy on Win 7. I do have a crazy networking setup at home tho so my internet connection is might zippy.

I think the big advantage XP has over Win 7 is footprint. My XP has 29 processes running and 131MB of ram in use at boot. Win 7 is a magnitude more stuff running and memory taken up. This is with careful trimming out of unused junk. Lots of use of msconfig. I think all this extra code and extra processes drag down its speed simply because there is a LOT more code for everything to get thru.

For my use its perfect. Both are fully supported on this laptop so I just boot what i need - however I never use Win 7. I also have a real RS232 port.

As there is nothing wrong with XP and in fact its very mature and debugged April 9 2014 will be a sad day. It will be interesting what Crestron does. I hope I can continue to use XP for a while yet.


Re: S+ Direct socket limitations

 

Last I heard was 150 concurrent per processor.

I've done 90+ without issue
On 2013-05-09, at 1:44 PM, Heath Volmer <hvolmer@...> wrote:

Does anyone know of any "recommended" limitations to the number of direct sockets on a 3-series machine? Per program/per processor?

Thanks, Heath


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


Re: Base64 encode

Chip
 

Nice. :)

- Chip

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

Simpl only, because Chip.



--
K.A.D.
Herald of the Mighty Blue Swirl


Re: Clearing 3-series processor

Zhihao
 

Havent try the restore command before. But will give it a try. Thanks.


Sent from Samsung Mobile

-------- Original message --------
From: Brian Gross <brian@...>
Date:
To: Crestron@...
Subject: [Crestron] Re: Clearing 3-series processor

I haven't tried it, but a RESTORE at the console might do the trick.

--- In Crestron@..., Chen Zhihao <bobbylken@...> wrote:

Hi all,

Anybody know of a way to clearing all the 10 program and IP table of a 3-series processor instead of doing it one by one in toolbox?

Thank you all.

cheers,
Ken
?
*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*
Learn to focus on solutions not on problems
"If you look at what you do not have in life, you don't have anything"
"If you look at what you have in life, you have everything"
*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*

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


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


Re: Clearing 3-series processor

Zhihao
 

Let me give it a try. Thanks.


Sent from Samsung Mobile

-------- Original message --------
From: Rapha?l Thiffault <raphaelthiffault@...>
Date:
To: Crestron@...
Subject: Re: [Crestron] Clearing 3-series processor

Ipt -p:ALL -c

Have you try that

{Paf}
Le 9 mai 2013 23:01, "Chen Zhihao" <bobbylken@...> a ?crit :

**


Hi all,

Anybody know of a way to clearing all the 10 program and IP table of a
3-series processor instead of doing it one by one in toolbox?

Thank you all.

cheers,
Ken

*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*
Learn to focus on solutions not on problems
"If you look at what you do not have in life, you don't have anything"
"If you look at what you have in life, you have everything"
*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*^*

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

?

[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]