View previous topic :: View next topic |
Author |
Message |
michaelknight
Joined: 02 Oct 2011 Posts: 14 Location: España/Spain |
Posted: Mon Oct 03, 2011 10:22 am Post subject: |
|
|
I don't know if it will be useful for me. Anyway I'll download it at home and I'll try to see how it works.
Thank's |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21237 Location: Chicago, IL |
Posted: Mon Oct 03, 2011 10:28 am Post subject: |
|
|
michaelknight wrote: | When I process the SWITCH OFF singnal it doesn't match with the binary code showed before. Where did you get that code?
|
If you look at your waveform image and treat the pairs with the long off (up) times as "one" and the pairs with the short off times as "zero", you get the following string:
100010000101101
If you then go back to my original post and look at the fixed data that preceeds every string, you'll find this:
1000100001011011111001000000111100000000000000000000000001000000
Your string matches the first 15 bits in my longer string, so it looks like we're dealing with the same protocol.
ps. I converted your image into a link as it was making this thread very wide and therefore hard to read. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
michaelknight
Joined: 02 Oct 2011 Posts: 14 Location: España/Spain |
Posted: Mon Oct 03, 2011 12:44 pm Post subject: |
|
|
Now I see you consider the first peak as a start condition, the second one as a single 1 regardless the time it takes. I was trying to find a pattern to follow based in a piece of time or each bit. It's clear that's impossible cause 0 and 1 have different duration
This info was realy useful for me. I hope to be able to finde time enought tonight to work hard on it!
Thank's Rob for your post. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21237 Location: Chicago, IL |
Posted: Mon Oct 03, 2011 12:54 pm Post subject: |
|
|
So, now that we have confirmed that your signal is the same as the one discussed earlier here, can you remind us what you re trying to do? Given that we know the format of the signal, maybe we can help. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21237 Location: Chicago, IL |
Posted: Mon Oct 03, 2011 1:09 pm Post subject: |
|
|
michaelknight wrote: | Now I see you consider the first peak as a start condition, the second one as a single 1 regardless the time it takes. I was trying to find a pattern to follow based in a piece of time or each bit. It's clear that's impossible cause 0 and 1 have different duration |
If you go back to the first page and see the technical data that I posted about this signal, you will see that there is a leadin pair, so 4 units of OFF time is expected before the start of the data portion of the signal.
The Robman wrote: | (in Pronto hex)
ONE pair: 000F 0031
ZERO pair: 000F 0011
leadin pair: 0080 0041
leadout1 pair: 000F 0456
leadout2 pair: 000F 0E98
(raw times)
ONE pair: +425 -1300
ZERO pair: +425 -440
leadin pair: +3440 -1745
leadout1 pair: +425 -30,000
leadout2 pair: +425 -100,000
format: leadin, fixed data string, leadout1, leadin, variable data string, leadout2 (repeat leadout2 if button held) |
_________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
michaelknight
Joined: 02 Oct 2011 Posts: 14 Location: España/Spain |
Posted: Mon Oct 03, 2011 1:43 pm Post subject: |
|
|
The Robman wrote: | So, now that we have confirmed that your signal is the same as the one discussed earlier here, can you remind us what you re trying to do? Given that we know the format of the signal, maybe we can help. |
I'm doing a climatic control system for a servers room. When the room is 30ºC the air conditioner starts. When it goes donw to 22ºC stops.
This is thought to save money during the winter in a small busines. I know there are systems more efficents but I was ordered to make it with the facilities previously installed in order to expend the least as possible. I'll use a PIC microcontroller. |
|
Back to top |
|
|
eferz Expert
Joined: 03 Jun 2010 Posts: 1078 Location: Austin, Texas |
Posted: Mon Oct 03, 2011 1:45 pm Post subject: |
|
|
The Robman wrote: | So, now that we have confirmed that your signal is the same as the one discussed earlier here, can you remind us what you re trying to do? Given that we know the format of the signal, maybe we can help. |
I think he is secretly developing the Knight Industries Two Thousand (KITT). _________________ Remotes; JP1.2: Comcast URC-1067, JP1.3: Insignia NS-RC02U-10A, JP1.4 OARI06G, JP2.1: Cox URC-8820-MOTO (still trying to figure out how to make them self-aware.) |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21237 Location: Chicago, IL |
Posted: Mon Oct 03, 2011 2:18 pm Post subject: |
|
|
eferz wrote: | I think he is secretly developing the Knight Industries Two Thousand (KITT). |
LOL, hence the "under cover" user id. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21237 Location: Chicago, IL |
Posted: Mon Oct 03, 2011 2:19 pm Post subject: |
|
|
michaelknight wrote: | I'm doing a climatic control system for a servers room. When the room is 30ºC the air conditioner starts. When it goes donw to 22ºC stops.
This is thought to save money during the winter in a small busines. I know there are systems more efficents but I was ordered to make it with the facilities previously installed in order to expend the least as possible. I'll use a PIC microcontroller. |
So basically, you are looking to have the computer send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into your computer? _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
michaelknight
Joined: 02 Oct 2011 Posts: 14 Location: España/Spain |
Posted: Mon Oct 03, 2011 3:17 pm Post subject: |
|
|
The Robman wrote: | michaelknight wrote: | I'm doing a climatic control system for a servers room. When the room is 30ºC the air conditioner starts. When it goes donw to 22ºC stops.
This is thought to save money during the winter in a small busines. I know there are systems more efficents but I was ordered to make it with the facilities previously installed in order to expend the least as possible. I'll use a PIC microcontroller. |
So basically, you are looking to have the computer send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into your computer? |
I won't use a computer, I'll use a PIC micro controller. Anyway it's possible use a computer sending the signal to the IR led by the COM port. I din't try it but that's possible. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21237 Location: Chicago, IL |
Posted: Mon Oct 03, 2011 3:58 pm Post subject: |
|
|
So basically, you are looking to have a PIC micrcontroller send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into the PIC micrcontroller? _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
michaelknight
Joined: 02 Oct 2011 Posts: 14 Location: España/Spain |
Posted: Mon Oct 03, 2011 5:20 pm Post subject: |
|
|
The Robman wrote: | So basically, you are looking to have a PIC micrcontroller send the correct IR signals to control the A/C, correct? If so, how do you input the protocol information into the PIC micrcontroller? |
Once you know the binary code you have to say to the PIC when it has to send a 0 or 1. For example, for this sequence: 10101 you can write a code like this:
Code: | array a=(1,0,1,0,1)
for(i=0, i<a.length, i++){
if(a[i]==1){
output_high;
delay;
}
else{
output_low;
delay;
}
}
|
It's a pseudocode, but in fact it's something like that. The most important thing is to know how long takes everyone to setup the delay's. |
|
Back to top |
|
|
vickyg2003 Site Admin
Joined: 20 Mar 2004 Posts: 7073 Location: Florida |
Posted: Mon Oct 03, 2011 5:40 pm Post subject: |
|
|
I don't know about Rob, but I'm interested in how you get the 37700 Hz frequency and how how you spell out the timing. |
|
Back to top |
|
|
michaelknight
Joined: 02 Oct 2011 Posts: 14 Location: España/Spain |
Posted: Mon Oct 03, 2011 5:53 pm Post subject: |
|
|
vickyg2003 wrote: | I don't know about Rob, but I'm interested in how you get the 37700 Hz frequency and how how you spell out the timing. |
This is the first time I deal with IR signals. Give me time to develop the project and I'll tell you the way. |
|
Back to top |
|
|
eferz Expert
Joined: 03 Jun 2010 Posts: 1078 Location: Austin, Texas |
Posted: Mon Oct 03, 2011 5:55 pm Post subject: |
|
|
vickyg2003 wrote: | I don't know about Rob, but I'm interested in how you get the 37700 Hz frequency and how how you spell out the timing. |
Vicky, are you still trying to get your JP1 remotes to emit Gamma Rays? You know Bruce Banner is probably going to be stuck in his predicament for an awfully long time. _________________ Remotes; JP1.2: Comcast URC-1067, JP1.3: Insignia NS-RC02U-10A, JP1.4 OARI06G, JP2.1: Cox URC-8820-MOTO (still trying to figure out how to make them self-aware.) |
|
Back to top |
|
|
|