Re: Certification Changes
This is what I figured would happen. :|
toggle quoted message
Show quoted text
--- In Crestron@..., allen mcdaniel <amac2673@...> wrote: I just took the Cert class and the test is the same as its always been.
To: Crestron@... From: lincster2010@... Date: Mon, 29 Apr 2013 12:53:54 +0000 Subject: [Crestron] Re: Certification Changes
IIRC, at Masters, Mr. O said people could get a copy of the old test, because the new test would be different.
--- In Crestron@..., "eagrubbs" <eagrubbs@> wrote:
I hope the test is different because that would be complete BS if it was the same test. A guy I work with that has not been to the 3rd class called crestron and was offered a copy of the test and got it. It was the same test I had. WTF? You mean you are giving out the test to anyone now without the time constraints the rest of us had. That really doesn't sound fair. --- In Crestron@..., "doug_h_encinitas" <dghardy@> wrote:
I just finished 301 last week and on Friday the sent out an email saying they were changing the cert test. I got mine in an email yesterday. And looks and sounds like the old cert test. Even one of the questions I remember someone telling me last week about needing to use a 8 or 12 digit keypad with .wav playback function and sure enough it was this cert. if u want I can shoot u a copy of the scope, I don't think it will hurt to see what ur getting into.
--- In Crestron@..., "Mark" <dedicatedsystems@> wrote:
I am in my C301 class this week.
Seems they are changing the test process? Anyone know the details?
Apparently a email went out this morning to crestron employees that they are changing the test.....
Anyone know?
[Non-text portions of this message have been removed]
|
Re: Certification Changes
I thought he was referring to the Gold test - which would make sense, since everyone at Masters would have already passed the Certification test :-)
toggle quoted message
Show quoted text
--- In Crestron@..., "lincster2010" <lincster2010@...> wrote: IIRC, at Masters, Mr. O said people could get a copy of the old test, because the new test would be different.
--- In Crestron@..., "eagrubbs" <eagrubbs@> wrote:
I hope the test is different because that would be complete BS if it was the same test. A guy I work with that has not been to the 3rd class called crestron and was offered a copy of the test and got it. It was the same test I had. WTF? You mean you are giving out the test to anyone now without the time constraints the rest of us had. That really doesn't sound fair.
--- In Crestron@..., "doug_h_encinitas" <dghardy@> wrote:
I just finished 301 last week and on Friday the sent out an email saying they were changing the cert test. I got mine in an email yesterday. And looks and sounds like the old cert test. Even one of the questions I remember someone telling me last week about needing to use a 8 or 12 digit keypad with .wav playback function and sure enough it was this cert. if u want I can shoot u a copy of the scope, I don't think it will hurt to see what ur getting into.
--- In Crestron@..., "Mark" <dedicatedsystems@> wrote:
I am in my C301 class this week.
Seems they are changing the test process? Anyone know the details?
Apparently a email went out this morning to crestron employees that they are changing the test.....
Anyone know?
|
Re: Internet Radio - Control Via Touchpanels
Cen-track with an Internet radio card. Fusion Research - OMS-1 with a squeezebox driver. Or even a squeezebox if you can find one. I'm sure there are more ways, those are the ones I've used successfully.
Nick
Sent from my eMail.
toggle quoted message
Show quoted text
On Apr 29, 2013, at 7:36 AM, tomasogmor <tomasog@...> wrote:
Hi,
Am looking to find a solution to get Internet Radio (for multi-room audio) controlled from the room touchpanels.
At Present we are using Rasberry Pi's running XBMC as the sources for the Crestron Multi-Room amps (2 x C2N-AMP-4x100) the Touchpanels range from TPS-4L's to TPMC-8X and a TSW-750. Running with a MC2E Processor.
I have the Crestron XBMC Module Running and it's fine for browsing MP3's etc. in the Library. But I cannot get the touchanels to control any of the Radio add-ons.
Is there any other way anyone can think of doing this, without have to purchase an Adagio system or something.
It doesn't have to be XBMC, I just want the user to be able to pick On-Line radio stations from the ouchpanel.
Thanks a mil,
Tomas
[Non-text portions of this message have been removed]
|
Re: Certification Changes
I just took the Cert class and the test is the same as its always been. To: Crestron@... From: lincster2010@... Date: Mon, 29 Apr 2013 12:53:54 +0000 Subject: [Crestron] Re: Certification Changes IIRC, at Masters, Mr. O said people could get a copy of the old test, because the new test would be different. --- In Crestron@..., "eagrubbs" <eagrubbs@...> wrote: I hope the test is different because that would be complete BS if it was the same test. A guy I work with that has not been to the 3rd class called crestron and was offered a copy of the test and got it. It was the same test I had. WTF? You mean you are giving out the test to anyone now without the time constraints the rest of us had. That really doesn't sound fair. --- In Crestron@..., "doug_h_encinitas" <dghardy@> wrote:
I just finished 301 last week and on Friday the sent out an email saying they were changing the cert test. I got mine in an email yesterday. And looks and sounds like the old cert test. Even one of the questions I remember someone telling me last week about needing to use a 8 or 12 digit keypad with .wav playback function and sure enough it was this cert. if u want I can shoot u a copy of the scope, I don't think it will hurt to see what ur getting into.
--- In Crestron@..., "Mark" <dedicatedsystems@> wrote:
I am in my C301 class this week.
Seems they are changing the test process? Anyone know the details?
Apparently a email went out this morning to crestron employees that they are changing the test.....
Anyone know?
[Non-text portions of this message have been removed]
|
I also have a Pakedge sw8-4pb On Apr 29, 2013 7:19 AM, "m.nguyen" <mpninc@...> wrote: I have the exact same problem and it is very random. I also have gone thru all the Crestron channels and they have found nothing. I have told my customer that if the panel lock up pull it from the wall and unplug the cable and plug back. On Apr 29, 2013 7:13 AM, "jason santlofer" <jason@...> wrote:
**
Heath,
What kind of switches are you using Or have you tried?
Jason
Sent from my Verizon Wireless 4G LTE DROID
Heath Volmer <hvolmer@...> wrote:
I suspect that you'll find that they are still on line, and transmitting presses, but have stopped responding to feedback. If not, you've got a different problem than what many of us have been up against. I've been dealing with this for a while and the band-aid solution for now is to use the PERIODICREBOOT ON command to keep the things fresh every day. If someone needs multiple reboots per day, you may need to devise logic to console and issue reboot commands multiple times.
We've been through the "channels", all the way. No more channels to go through. They know that something is wrong. I had almost lost faith in my own ability to finish ;-).
Heath
On Apr 29, 2013, at 6:34 AM, jmgaudiovideo <jason@...> wrote:
Hi All,
Not not sure if this has been touched upon somewhere along the lines. I'm sure everyone has their stories about the new TSW-750 panels. I need some help. We have a couple of these systems in the field and both of them seem to have problems with the touchscreens just randomly freezing and falling off line. We have updated to just about every firmware Crestron has put out even some of the beta ones. We don't even have video running to the panels so I don't think it a memory issue. The only common denominator in the two systems is a Pakedge SW16-16PB ethernet switch which is powering the panels. It is a managed switch. On the larger job (10 tsw panels)the switch would actually freeze and need to be rebooted along with the CP3 processor to make them work again. On the other job the client says he just needs to reboot the panel to make them work. But he does so a couple times a day. We have gone through the channels at Crestron sent in code etc and they can't pinpoint a problem. I and our programmer have been working with Crestron product for quite a few years and never experienced these kind of problems before. Is anyone else experiencing these types of issues and if so were you able to solve them? My customers are increasingly losing faith in our ability to finish the job and honestly I am at a loss.
[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]
[Non-text portions of this message have been removed]
|
I have the exact same problem and it is very random. I also have gone thru all the Crestron channels and they have found nothing. I have told my customer that if the panel lock up pull it from the wall and unplug the cable and plug back.
toggle quoted message
Show quoted text
On Apr 29, 2013 7:13 AM, "jason santlofer" <jason@...> wrote: **
Heath,
What kind of switches are you using Or have you tried?
Jason
Sent from my Verizon Wireless 4G LTE DROID
Heath Volmer <hvolmer@...> wrote:
I suspect that you'll find that they are still on line, and transmitting presses, but have stopped responding to feedback. If not, you've got a different problem than what many of us have been up against. I've been dealing with this for a while and the band-aid solution for now is to use the PERIODICREBOOT ON command to keep the things fresh every day. If someone needs multiple reboots per day, you may need to devise logic to console and issue reboot commands multiple times.
We've been through the "channels", all the way. No more channels to go through. They know that something is wrong. I had almost lost faith in my own ability to finish ;-).
Heath
On Apr 29, 2013, at 6:34 AM, jmgaudiovideo <jason@...> wrote:
Hi All,
Not not sure if this has been touched upon somewhere along the lines. I'm sure everyone has their stories about the new TSW-750 panels. I need some help. We have a couple of these systems in the field and both of them seem to have problems with the touchscreens just randomly freezing and falling off line. We have updated to just about every firmware Crestron has put out even some of the beta ones. We don't even have video running to the panels so I don't think it a memory issue. The only common denominator in the two systems is a Pakedge SW16-16PB ethernet switch which is powering the panels. It is a managed switch. On the larger job (10 tsw panels)the switch would actually freeze and need to be rebooted along with the CP3 processor to make them work again. On the other job the client says he just needs to reboot the panel to make them work. But he does so a couple times a day. We have gone through the channels at Crestron sent in code etc and they can't pinpoint a problem. I and our programmer have been working with Crestron product for quite a few years and never experienced these kind of problems before. Is anyone else experiencing these types of issues and if so were you able to solve them? My customers are increasingly losing faith in our ability to finish the job and honestly I am at a loss.
[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
|
Heath,
What kind of switches are you using Or have you tried?
Jason
Sent from my Verizon Wireless 4G LTE DROID
Heath Volmer <hvolmer@...> wrote:
toggle quoted message
Show quoted text
I suspect that you'll find that they are still on line, and transmitting presses, but have stopped responding to feedback. If not, you've got a different problem than what many of us have been up against. I've been dealing with this for a while and the band-aid solution for now is to use the PERIODICREBOOT ON command to keep the things fresh every day. If someone needs multiple reboots per day, you may need to devise logic to console and issue reboot commands multiple times.
We've been through the "channels", all the way. No more channels to go through. They know that something is wrong. I had almost lost faith in my own ability to finish ;-).
Heath
On Apr 29, 2013, at 6:34 AM, jmgaudiovideo <jason@...> wrote:
Hi All,
Not not sure if this has been touched upon somewhere along the lines. I'm sure everyone has their stories about the new TSW-750 panels. I need some help. We have a couple of these systems in the field and both of them seem to have problems with the touchscreens just randomly freezing and falling off line. We have updated to just about every firmware Crestron has put out even some of the beta ones. We don't even have video running to the panels so I don't think it a memory issue. The only common denominator in the two systems is a Pakedge SW16-16PB ethernet switch which is powering the panels. It is a managed switch. On the larger job (10 tsw panels)the switch would actually freeze and need to be rebooted along with the CP3 processor to make them work again. On the other job the client says he just needs to reboot the panel to make them work. But he does so a couple times a day. We have gone through the channels at Crestron sent in code etc and they can't pinpoint a problem. I and our programmer have been working with Crestron product for quite a few years and never experienced these kind of problems before. Is anyone else experiencing these types of issues and if so were you able to solve them? My customers are increasingly losing faith in our ability to finish the job and honestly I am at a loss.
------------------------------------
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
|
I suspect that you'll find that they are still on line, and transmitting presses, but have stopped responding to feedback. If not, you've got a different problem than what many of us have been up against. I've been dealing with this for a while and the band-aid solution for now is to use the PERIODICREBOOT ON command to keep the things fresh every day. If someone needs multiple reboots per day, you may need to devise logic to console and issue reboot commands multiple times. We've been through the "channels", all the way. No more channels to go through. They know that something is wrong. I had almost lost faith in my own ability to finish ;-). Heath On Apr 29, 2013, at 6:34 AM, jmgaudiovideo <jason@...> wrote: Hi All,
Not not sure if this has been touched upon somewhere along the lines. I'm sure everyone has their stories about the new TSW-750 panels. I need some help. We have a couple of these systems in the field and both of them seem to have problems with the touchscreens just randomly freezing and falling off line. We have updated to just about every firmware Crestron has put out even some of the beta ones. We don't even have video running to the panels so I don't think it a memory issue. The only common denominator in the two systems is a Pakedge SW16-16PB ethernet switch which is powering the panels. It is a managed switch. On the larger job (10 tsw panels)the switch would actually freeze and need to be rebooted along with the CP3 processor to make them work again. On the other job the client says he just needs to reboot the panel to make them work. But he does so a couple times a day. We have gone through the channels at Crestron sent in code etc and they can't pinpoint a problem. I and our programmer have been working with Crestron product for quite a few years and never experienced these kind of problems before. Is anyone else experiencing these types of issues and if so were you able to solve them? My customers are increasingly losing faith in our ability to finish the job and honestly I am at a loss.
[Non-text portions of this message have been removed]
|
That is for the fusion research, been there done that. Interest in the grace digital product.
From: texascbounds <clbounds@...<mailto:clbounds@...>> Reply-To: "Crestron@...<mailto:Crestron@...>" <Crestron@...<mailto:Crestron@...>> Date: Monday, April 29, 2013 9:29 AM To: "Crestron@...<mailto:Crestron@...>" <Crestron@...<mailto:Crestron@...>> Subject: [Crestron] Re: Grace Internet Tuner
Yes check out
toggle quoted message
Show quoted text
--- In Crestron@...<mailto:Crestron%40yahoogroups.com>, Seth Olle <seth@...> wrote: Saw mention of this. Has anyone controlled this effectively as a low cost replacement for a squeezebox?
,
|
Yes check out
toggle quoted message
Show quoted text
--- In Crestron@..., Seth Olle <seth@...> wrote: Saw mention of this. Has anyone controlled this effectively as a low cost replacement for a squeezebox?
,
|
Re: Wireless battery powered wall mounted keypad?
I would be interested in the module for this keypad. It seems like an interesting solution. Post it if possible.
From: Block-O-Matic <michael@...<mailto:michael@...>> Reply-To: "Crestron@...<mailto:Crestron@...>" <Crestron@...<mailto:Crestron@...>> Date: Sunday, April 28, 2013 1:12 PM To: "Crestron@...<mailto:Crestron@...>" <Crestron@...<mailto:Crestron@...>> Subject: [Crestron] Re: Wireless battery powered wall mounted keypad?
www.adhocelectronics.com for EnOcean products. Check out the wireless light switches. They don't need batteries ever- electricity is generated by the button press and release. I have several of them at home and they work great. There are several receivers to choose from including relay outputs and rs232. I have a module I can post if you need it.
You can find some more selection on amazon. Leviton is oem'ing the product and have some other products that are interesting. Anything EnOcean is compatible.
Mb
toggle quoted message
Show quoted text
--- In Crestron@...<mailto:Crestron%40yahoogroups.com>, "Mark" <access@...> wrote: I've got a system with 4 zones of garden lighting which are controlled via Crestron primarily on Mobile & Mobile Pro G.
However, we need to fit a wall station of some description in a location where cabling is impossible to control them as well.
Something like a cameo keypad would be ideal, but they all need cabling of one sort or another (I know there's a battery powered infinet keypad on the cards, but it's not been released yet to my knowledge)
There is a Pro2 nearby, so I'm thinking of a battery powered wireless solution somehow connected to the versiport inputs of the Pro2 and go programatically from there.
Has anyone got any idea of any elegant hardware I could use?
Cheers. Mark
|
Re: Certification Changes
IIRC, at Masters, Mr. O said people could get a copy of the old test, because the new test would be different.
toggle quoted message
Show quoted text
--- In Crestron@..., "eagrubbs" <eagrubbs@...> wrote: I hope the test is different because that would be complete BS if it was the same test. A guy I work with that has not been to the 3rd class called crestron and was offered a copy of the test and got it. It was the same test I had. WTF? You mean you are giving out the test to anyone now without the time constraints the rest of us had. That really doesn't sound fair.
--- In Crestron@..., "doug_h_encinitas" <dghardy@> wrote:
I just finished 301 last week and on Friday the sent out an email saying they were changing the cert test. I got mine in an email yesterday. And looks and sounds like the old cert test. Even one of the questions I remember someone telling me last week about needing to use a 8 or 12 digit keypad with .wav playback function and sure enough it was this cert. if u want I can shoot u a copy of the scope, I don't think it will hurt to see what ur getting into.
--- In Crestron@..., "Mark" <dedicatedsystems@> wrote:
I am in my C301 class this week.
Seems they are changing the test process? Anyone know the details?
Apparently a email went out this morning to crestron employees that they are changing the test.....
Anyone know?
|
Saw mention of this. Has anyone controlled this effectively as a low cost replacement for a squeezebox?
,
|
Hi All,
Not not sure if this has been touched upon somewhere along the lines. I'm sure everyone has their stories about the new TSW-750 panels. I need some help. We have a couple of these systems in the field and both of them seem to have problems with the touchscreens just randomly freezing and falling off line. We have updated to just about every firmware Crestron has put out even some of the beta ones. We don't even have video running to the panels so I don't think it a memory issue. The only common denominator in the two systems is a Pakedge SW16-16PB ethernet switch which is powering the panels. It is a managed switch. On the larger job (10 tsw panels)the switch would actually freeze and need to be rebooted along with the CP3 processor to make them work again. On the other job the client says he just needs to reboot the panel to make them work. But he does so a couple times a day. We have gone through the channels at Crestron sent in code etc and they can't pinpoint a problem. I and our programmer have been working with Crestron product for quite a few years and never experienced these kind of problems before. Is anyone else experiencing these types of issues and if so were you able to solve them? My customers are increasingly losing faith in our ability to finish the job and honestly I am at a loss.
|
Re: cant communicate with the system
Its set up as a CresNET slave device. You cannot upload a program to a slave device and it needs to be restored back to a master processor.
Connect to the processor via serial cable and open the terminal window in toolbox (or Viewport if you have that installed) Type 'restore' and hit enter then confirm with yes...
The processor will revert back to factory default and become a master processor.
Note : any ip settings will have to be entered in again..
Cheers,
Chris.
toggle quoted message
Show quoted text
--- In Crestron@..., "thabith" <thabithtippu@...> wrote:
when i connect with crestron tool bo it shows the system with this error log .
System log:
1. Notice: System startup: CslaveAV2 Cntrl Eng [v4.007.0004 (Mar 05 2012), #0890237E] TimeStamp: 03:15:15 3-20-00 UpTime: 0 days 00:00:03.22 Task: IdleTask Total Errors Logged = 1 End of System log
and i cant send program and vision pro design to module when i select it it shows message as the device does not support the required capabilities for the dialog to function .
my system is AV2 .
|
Re: Wireless battery powered wall mounted keypad?
What about a Rako wireless keypad and a relay receiver module?
Regards,
Nick Masterson
[Description: ISI final logo]
Home Automation Systems - Multi-room Audio Visual - Lighting Control - Shading Solutions - Security Systems - Data Networks
65 East Hill Wandsworth London SW18 2QE
T: 020 8877 3399 F: 020 8877 9970 W: www.IntegratedSoundAndVision.co.uk<>
Confidentiality: If you have received this email in error, please notify the sender. This e-mail and any attached files are intended only for the use of the person or organisation to whom they are addressed. The contents are confidential and maybe legally privileged (in other words, their unauthorised distribution may be unlawful). It is prohibited and may be unlawful to open, use or copy these documents or disclose them to anyone unless you are authorised to do so.
|
Re: Samsung UE55ES7000 - EX-Link
Yep, back in UART mode, no dice.
toggle quoted message
Show quoted text
--- In Crestron@..., "Chip" <cfm@...> wrote:
Was "debug" called out somewhere in the docs? I don't believe you want that. I haven't worked with one in a while, so I don't remember what the other options are. "Uart" comes to mind...
- Chip
--- In Crestron@..., "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 set up like this:
I'm getting nothing in debugger on Samsung_Rx$ and the TV responds to nothing¡
Any help appreciated.
Thanks.
|
Re: Samsung UE55ES7000 - EX-Link
Erm.... Maybe not....
When it wasn't working I suddenly remembered reading something about putting it in debug mode but just realised that that was for SammyGo. (which I have not actually applied)
Will switch it back....
toggle quoted message
Show quoted text
--- In Crestron@..., "Chip" <cfm@...> wrote:
Was "debug" called out somewhere in the docs? I don't believe you want that. I haven't worked with one in a while, so I don't remember what the other options are. "Uart" comes to mind...
- Chip
--- In Crestron@..., "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 set up like this:
I'm getting nothing in debugger on Samsung_Rx$ and the TV responds to nothing¡
Any help appreciated.
Thanks.
|
Re: Samsung UE55ES7000 - EX-Link
Hmmm.... The main reason I was doing this was to try and make it a bit more reliable than the IR!
toggle quoted message
Show quoted text
--- In Crestron@..., "Matt" <asmlw29@...> wrote: For what its worth, I eventually got EX-Link working, but it was flaky at best. I was only using it for power and switching, and it worked about 70-80% of the time.
Since I was using DM products, I used the CEC codes and they are working great!
--- In Crestron@..., Ray Jain <rjain@> wrote:
One thing about Samsung I have noticed is rs-232 or IR you have to first turn the TV on or off woth a remote to get control over the display.
--------------------------------------- Ray Jain, Junior Programmer (832) 618-9672 rjain@<mailto:rjain@>
SUMMIT INTEGRATION SYSTEMS
On Apr 28, 2013, at 6:27 PM, "grumpy_cake" <crestron@<mailto: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 set up like this:
I'm getting nothing in debugger on Samsung_Rx$ and the TV responds to nothing?€?
Any help appreciated.
Thanks.
|
Re: How would you parse this data?
Hi Matt,
I'd lean towards a state machine as (personal opinion) I think they make for nice readable code, and easy to debug, with less repetition of "get this but, get the next bit, get the next bit..." where those hard-to-spot typos can creep in.
It takes a bit more thinking time though (to plan the various states and transitions), so you have to decide if that's worthwhile effort, or a quick (and possible dirtier) solution is best.
Like anything though - the more you do, the faster you get, and I'm very "pro" visual thinking, so I tend to sketch out a SM diagram on paper first. That makes implementing the solution almost automatic.
Go on... State Machines rule... do it... ;-)
ATB, Ol
toggle quoted message
Show quoted text
--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote: Thanks OP, that's exactly what I mean, is it worth the time to do that vs. just using remove. I know what you mean though...
The attenuation is taken as a string, and will have a space at the end, which isn't critical for me. But yes, if I wanted an integer I would have to check the first byte to see if it's 0x2D and then either -ATOI or just ATOI the group.
--- In Crestron@..., "olly_penguin" <oliver.hall@> wrote:
Hi Matt,
That looks like a classic candidate for a state machine.
I.e. rather that attempt to parse a complete message in one mouthful, implement a routine that eats numbers, delimited by white space or the lf/cr.
Lf/cr resets the state machine and spits out your interesting data, and for each "number" you maintain a couple of state variables (data chunk, sub element).
And Atoi won't work on negative numbers will it?
Sorry this is a bit brief/vague, but I hate typing on my phone :) All the best, Ol
--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:
Yeah, right, the string is not always the same, like I said, the attenuation value can be from 1 to 4 bytes long, for each channel. I was thinking of getting the LEN of the attenuation data, then MID the string based on that but seems more work than the removes anyway.
--- In Crestron@..., "jrw_96" <jrw_96@> wrote:
Use a buffer and collect everything in said buffer. Then just break it down as necessary. Only if the incoming strings are predictable and/or the end of the string is always \x0d\x0a...
If the above is true then this should be gravy for you. It's when you do NOT have set points (delimiter(s) and actual sub-headers differentiating the substring/channel info) [always seems to be my case with crc's and what not] that you have to wonder "is this really worth it" imo...
JRW
--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:
Here's the string
0 0 0 0 1 0 0 0 0 0 0 0 -44 0 0 0 0 0 0 0 0 -27 0 0 0 0 0 0 0 1 -26 0 0 0 0 0 0 0 0\x0d\x0a
The first three 0's are status of the device itself, then the next group of 9 (not including spaces) are individual channel data. So channel 1 = 0 1 0 0 0 0 0 0 0 channel 2 = -44 0 0 0 0 0 0 0 0 channel 3 = -27 0 0 0 0 0 0 0 1 channel 4 = -26 0 0 0 0 0 0 0 0
the first set of chars before the first space can be 0...-100, all the other data is a single byte.
My method is using REMOVE statements like below status1 = ATOI(REMOVE("\x20", rx$); status2 = ATOI(REMOVE("\x20", rx$); status3 = ATOI(REMOVE("\x20", rx$);
Attenuation[1] = REMOVE("\x20", rx$); ch1Clip[1] = ATOI(REMOVE("\x20", rx$); etc.,
all the way through the string. Not sure if it's even worth going through breaking up the string into channel groups and working on it that way. What do you think, splitting hairs?
|