¿ªÔÆÌåÓý

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

Re: Analog to hex to Serial

Witmarquzot
 

Yeah, it is always nice to have some one to talk to this late at night. Not enough people are night owls.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote:

Appreciate the company during my insomnia! Looks like we whittled it down pretty good. Be interesting to see what happens in the morning. :)

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

I don't see your 5 symbol solution in the file section.

could do the conversion in three(5 total with the ATOS and SOS)

EQU(all 64 values), two inits, one to generate the upper byte and for the lower

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

 

Appreciate the company during my insomnia! Looks like we whittled it down pretty good. Be interesting to see what happens in the morning. :)

--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:

I don't see your 5 symbol solution in the file section.

could do the conversion in three(5 total with the ATOS and SOS)

EQU(all 64 values), two inits, one to generate the upper byte and for the lower

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

 

Then Lindsay would probably win is what I was inferring, not me. :)

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote:

...or, maybe the winner is the number of signals. Lol :)

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

I don't see your 5 symbol solution in the file section.

could do the conversion in three(5 total with the ATOS and SOS)

EQU(all 64 values), two inits, one to generate the upper byte and for the lower

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

 

...or, maybe the winner is the number of signals. Lol :)

--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:

I don't see your 5 symbol solution in the file section.

could do the conversion in three(5 total with the ATOS and SOS)

EQU(all 64 values), two inits, one to generate the upper byte and for the lower

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

 

I couldn't upload it, on my phone now, but will tomorrow. Although, here's how it goes.

Single byte value -- DIVMOD (divisor 16d)
High byte(nibble here though) value --> equate (0-16 params)
Low byte(nibble here though) value --> equate (0-16 params)
high equate --> init (hex values for appropriate ascii representation)low equate --> init (hex values for appropriate ascii representation)

That's it, if you include the SOS and ATOS it's 7 then.

I see your solution though, instead of divmod you just do a big equate and send that to two inits with the appropriate values. Nice

--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:

I don't see your 5 symbol solution in the file section.

could do the conversion in three(5 total with the ATOS and SOS)

EQU(all 64 values), two inits, one to generate the upper byte and for the lower

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

Witmarquzot
 

I don't see your 5 symbol solution in the file section.

could do the conversion in three(5 total with the ATOS and SOS)

EQU(all 64 values), two inits, one to generate the upper byte and for the lower

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote:

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

 

My catch was limiting the analog input into the module to 255. :). 2 would be if you wanted to edit an SIO for all the possibilities yes. But he asked about the atos. Perhaps the 1-40d values, or, 1-255d could be useful for other commands too, using an atos. Would be much faster than editing multiple SIO 'lookup tables' when shift+F4 would onky work for part of the values.

I can't beat my 5 symbols to generate the 2 ascii'fied hex bytes from a single hex/decimal byte. Would be interested in seeing a solution that does though!

--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


New file uploaded to Crestron

 

Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the Crestron
group.

File : /Modules/AnalogtoHexAscii.zip
Uploaded by : ender1_1000000 <tdurrant420@...>
Description : 8byte Analog to 16 byte Ascii equivalent to be used with a AtoS. EX: Analog 45in will transform it to Left Byte = 50(2) and Right Byte = 68(D). Out of range values Generate Left Byte = 70(F) Right Byte = 70(F) [Simpl Only challenge April 23]

You can access this file at the URL:


To learn more about file sharing for your group, please visit:

Regards,

ender1_1000000 <tdurrant420@...>


Re: Analog to hex to Serial

Witmarquzot
 

13 with an exception catch if the programmer tries to put in a values greater then 255, else it will print two Ascii Characters as hex equivalent of analog number.

2 is still the minimal,

--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

Witmarquzot
 

Ok i got it to 11 with the AtoS

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote:

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Cli-220n-4

Revz
 

Hi! guys can anybody give me any idea how to use this dimmer. Thanks


Re: Analog to hex to Serial

 

Without reverting? I thought the challenges were the fewest symbols. :)

--- In Crestron@..., "l_codd" <lindsayc@...> wrote:

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

Witmarquzot
 

yeah i totally misunderstood the poster. hold on, i will try again.

--- In Crestron@..., "Witmarquzot" <tdurrant420@...> wrote:

check file section.
It could be that I misunderstood the poster.

If not then the equ 1 would go to sio "!PRS01&#92;r" etc etc

If we use a div mod, 2 ascale w/o zero pass, and a sos, we get the value to come out as two analog values that can be input to an analog to serial. I am also guessing that the "!PRS" and "&#92;r" are static.


--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

Still can't sleep, and a little confused by your answer, would you mind posting an example? Wouldn't you need a way to determine the right offset since the difference between ASCII digits and letters are different?

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Hi Andy,

You need to use the Div/Mod symbol to obtain Tens and Units, then a pair of ASUM's to add ASCII offset using an INIT. You will then have two analogs to feed into an ATOS to generate the strings. Trigger the ATOS using a SOS on the ASCII Units analog.

Lindsay

--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: Analog to hex to Serial

Witmarquzot
 

check file section.
It could be that I misunderstood the poster.

If not then the equ 1 would go to sio "!PRS01&#92;r" etc etc

If we use a div mod, 2 ascale w/o zero pass, and a sos, we get the value to come out as two analog values that can be input to an analog to serial. I am also guessing that the "!PRS" and "&#92;r" are static.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote:

Still can't sleep, and a little confused by your answer, would you mind posting an example? Wouldn't you need a way to determine the right offset since the difference between ASCII digits and letters are different?

--- In Crestron@..., "l_codd" <lindsayc@> wrote:

Hi Andy,

You need to use the Div/Mod symbol to obtain Tens and Units, then a pair of ASUM's to add ASCII offset using an INIT. You will then have two analogs to feed into an ATOS to generate the strings. Trigger the ATOS using a SOS on the ASCII Units analog.

Lindsay

--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: MLX-3 Power button problems

 

I have had four or five with the same problem.

On Mon, Apr 23, 2012 at 8:53 PM, gogolftoday <grant@...>wrote:

**


I have had all but one PLX3 and MLX3's go back for the power button at
least once --- 2 have gone back multiple times.

Standard procedure is for me to clone power button to the swirl button so
clients can turn things off while I am waiting on advance replacement.

The only good news is for me -- my personal MLX3 has been rock solid.
Still on original set of batteries from October. Knock on wood.


--- In Crestron@..., "ChrisK" <chris@...> wrote:

Hi All,
I've been running one in my house and a couple in a client's house and
over all working good (except for the string of wants and needs...).

Last week my Power button on the top of the remote stopped working. It
still has a press and release feel but no assertion in SMW. of course, I
just re-routed the OFF command, updated my family and moved on for now.

I just got a call from my client and one of his remotes has done the
same thing. Clearly this could have been caused in both cases with a
dropped remote, which brings up the secondary issue of robustness.

How many of you have had issues with this?? Do you think it is 'drop'
related?? of design related??

TIA,
Chris K..............;)



--
Sincerely,
NuviiTech.com


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


Re: Analog to hex to Serial

 

Yep, I was thinking decimal but of course he want's hex equivalent and the conversion to A,B,C... Can be done with two more DIV/MODs, ASUMs etc without reverting to EQUs and INITs

Lindsay

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@...> wrote:

Yeah, I got it down to 5 and then a TXA if you want to include that. Using Divmod divisor 16d, two equates and two inits. Thinking too much in the literal version, but interesting anyway, Rube Goldberg iteresting..lol.

I'd like to see your solution, always like to learn. :)



--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:

you can do it in two with an equ and sio, but that really isn't elegant and would only cover 40 cases.

I can do it in 4, but that will only insert the proper value into an analog to serial, so i guess that makes 5.

--- In Crestron@..., "matt_rasmussen_2000" <mjrtoo@> wrote:

I can't sleep, so here's my attempt at the project. It's a very literal conversion, but seem to work well. 14 symbols



--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: this shouldnt be this difficult

Witmarquzot
 

i think a screen shot would help in this context.

--- In Crestron@..., "Scott" <bluegauges@...> wrote:

Not a pasting error because there was no pasting going on - like i said, the two panels are completely different.

As for the EST command, I see the IP ID 4 showing "offline" but for the life of me , i cant figure out why. I set it up and compared it over and over to how I've done them in the past. The dynamic images are a fixed URL in the panel.

CIP_ID Type Status DevID Port IP Address/SiteName
3 Gway ONLINE 41794 127.000.000.001
4 Gway OFFLINE 41794 127.000.000.001
6 Server WAITING 41790 000.000.000.000
7 Server WAITING 41791 000.000.000.000
8 Gway OFFLINE 41794 127.000.000.001
10 Gway ONLINE 41794 127.000.000.001



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

Double check those IP tables, sounds like something screwy is going on. Also see if both of them are online; open a command prompt in Toolbox, connect to the processor, and send the "EST" command and see what the status is for the two IP IDs you are working with.

When you say your dynamic images are working, are the paths to the images being set programmatically in SIMPL over a serial join, or is the project in the panel loading them from a fixed URL, like a weather radar image might.

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:


Sounds like a pasting error. Are all of them off by one?
--- In Crestron@..., "Scott" <bluegauges@> wrote:

I have a system with a TPMC-10 (IP ID 10) and a TPS-6L (IP ID 04) and everything that the TPS-6L does acts as if it was coming from the TPMC-10. For example pressing a button with digital join 15 on the 6L should open the garage door, 15 on the TPMC-10 will turn on a light. When I press the 6L to open the garage, the light goes on.

The 6L was changed from cresnet where it worked fine to ethernet in order to allow dynamic images to work. (the images are working so i think i have all my IP tables correct) Do i have to redo the entire program to make all the joins on the new 6L match other ethernet devices? Shouldnt i be able to program them independently?

to make it 100% ethernet will take hours of programming because the system is quite large and the panels are completely different from top to bottom. I could combine cresnet and ethernet but for simplicity, i would like to use only the ethernet.


Re: Analog to hex to Serial

 

Still can't sleep, and a little confused by your answer, would you mind posting an example? Wouldn't you need a way to determine the right offset since the difference between ASCII digits and letters are different?

--- In Crestron@..., "l_codd" <lindsayc@...> wrote:

Hi Andy,

You need to use the Div/Mod symbol to obtain Tens and Units, then a pair of ASUM's to add ASCII offset using an INIT. You will then have two analogs to feed into an ATOS to generate the strings. Trigger the ATOS using a SOS on the ASCII Units analog.

Lindsay

--- In Crestron@..., Andy Maxey <amaxey@> wrote:

I have an analog value that varies from 1 to 40 that I need to insert
into a serial string as hex. My first thought was to use an ascalel to
convert the analog to hex then I build my string with an atos. What I
need is !1PRS01&#92;x0D, but what I'm getting is !PRS&#92;x01&#92;x0D. Is there a
way to do what I want without S+?

Andy


Re: this shouldnt be this difficult

 

Not a pasting error because there was no pasting going on - like i said, the two panels are completely different.

As for the EST command, I see the IP ID 4 showing "offline" but for the life of me , i cant figure out why. I set it up and compared it over and over to how I've done them in the past. The dynamic images are a fixed URL in the panel.

CIP_ID Type Status DevID Port IP Address/SiteName
3 Gway ONLINE 41794 127.000.000.001
4 Gway OFFLINE 41794 127.000.000.001
6 Server WAITING 41790 000.000.000.000
7 Server WAITING 41791 000.000.000.000
8 Gway OFFLINE 41794 127.000.000.001
10 Gway ONLINE 41794 127.000.000.001

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

Double check those IP tables, sounds like something screwy is going on. Also see if both of them are online; open a command prompt in Toolbox, connect to the processor, and send the "EST" command and see what the status is for the two IP IDs you are working with.

When you say your dynamic images are working, are the paths to the images being set programmatically in SIMPL over a serial join, or is the project in the panel loading them from a fixed URL, like a weather radar image might.

--- In Crestron@..., "Witmarquzot" <tdurrant420@> wrote:


Sounds like a pasting error. Are all of them off by one?
--- In Crestron@..., "Scott" <bluegauges@> wrote:

I have a system with a TPMC-10 (IP ID 10) and a TPS-6L (IP ID 04) and everything that the TPS-6L does acts as if it was coming from the TPMC-10. For example pressing a button with digital join 15 on the 6L should open the garage door, 15 on the TPMC-10 will turn on a light. When I press the 6L to open the garage, the light goes on.

The 6L was changed from cresnet where it worked fine to ethernet in order to allow dynamic images to work. (the images are working so i think i have all my IP tables correct) Do i have to redo the entire program to make all the joins on the new 6L match other ethernet devices? Shouldnt i be able to program them independently?

to make it 100% ethernet will take hours of programming because the system is quite large and the panels are completely different from top to bottom. I could combine cresnet and ethernet but for simplicity, i would like to use only the ethernet.


Re: Door chime?

 

i have one - i posted it in the files section

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

Go here and click on "Videos/Demos":



--- In Crestron@..., "Kris" <kris.k@> wrote:

Anyone have a door chime they would be willing to share? I've done it before with the "armed/disarmed", but I figure I'd ask here before hunting the net. I'm looking for a chime to go off from my panels when the door is opened, because the security panel is behind a door in the mech room closet. 8 bit, mono, 8000htz, pcm.