Fórum

BLOQUEADOR VEICULAR...
 
Notifications
Clear all

BLOQUEADOR VEICULAR COM SENSOR DE PRESENÇA – C/ PIC12F675 (REF343)

18 Posts
3 Users
0 Likes
4,524 Leituras
(@egealtay)
Active Member
Joined: 5 anos ago
Posts: 4
Topic starter  

VEHICLE BLOKER WITH ASSET SENSOR - C / PIC12F675 (REF343) does not work !!


   
Quote
(@clarios)
Reputable Member Admin
Joined: 12 anos ago
Posts: 357
 

I'm so sorry. Could  you please explain what is going on?


   
ReplyQuote
(@egealtay)
Active Member
Joined: 5 anos ago
Posts: 4
Topic starter  

@clarios
İlginiz için teşekkür ederim.
RX ve TX tuşlarına basarak kayıt ediyorum ancak kayıt sonunda led 2 defa flaş yapmıyor maalesef , tokalaşma olmuyor. RX-TX haberleşmiyor .


   
ReplyQuote
(@clarios)
Reputable Member Admin
Joined: 12 anos ago
Posts: 357
 
Google çevirmen kullandığım için çeviri hataları için özür dilerim:

Nasıl kaydedilir:
1) RX üzerindeki 'kayıt_ser' anahtarına basın.
2) TX üzerindeki 'env_serial' anahtarına basın.
3) Kaydı onaylamak için 'kayıt ledi' yanıp söner.
4) Hemen iletilmesi için TX gücünü kapatıp tekrar açın.
5) Aktarıcıyı etkinleştirmelisiniz ve bundan sonra RX'e yakın TX ile devam ederseniz etkinleştirilecektir.

Çalışmazsa kontrol edin:
1) PIC'leri birbiriyle ters çevirmediyseniz.
2) PIC'yi kaydederken kalibrasyon baytını kaybetmediyseniz.

Desculpas pelos erros de tradução pois estou usando o Google tradutor:

Como gravar:
1) Pressione interruptor 'grava_ser' no RX.
2) Pressione o interruptor 'env_serial' no TX.
3) O 'led gravar' piscará confirmando a gravação.
4) Desligue e religue a alimentação do TX para que transmita de imediato.
5) Deverá acionar o rele e daí em diante, ficará acionado se continuar com o TX próximo do RX.

Se não funcionar verifique:
1) Se não inverteu os PIC's um com outro.
2) Se não perdeu o byte de calibração ao gravar o PIC.

 

 
 

   
ReplyQuote
(@egealtay)
Active Member
Joined: 5 anos ago
Posts: 4
Topic starter  

@clarios Merhabalar,

1) RX'de 'kayıt_ser' anahtarına basın. OK
2) TX üzerinde 'env_serial' anahtarına basın.OK
3) Kaydı onaylamak için 'kayıt ledi' yanıp söner. RX OK
4) Hemen iletilmesi için TX güçlendir kapatıp tekrar açın. OK
5) Aktarıcıyı etkinleştirmelisiniz ve bundan sonra RX'e yakın TX ile devam ederseniz etkinleştirilecektir.OK
Yazdıklarınızı aynen yapıyorum maalesef çalışmıyor.
Defalarca denedim haberleşme olmuyor .

 

1) Pressione a tecla 'register_ser' em RX. SETA
2) Pressione o botão 'env_serial' em TX. OK
3) 'Record LED' piscará para confirmar o registro. RX OK
4) Desligue o TX e ligue-o novamente para transmitir imediatamente. SETA
5) Você deve habilitar o relé e depois disso ele será habilitado se você continuar com TX perto de RX.
Estou fazendo exatamente o que você escreveu, infelizmente não funciona.
Tentei muitas vezes a comunicação não estava funcionando.
Por egealtay 7 em Setembro 2020 às 14:54
 

   
ReplyQuote
(@clarios)
Reputable Member Admin
Joined: 12 anos ago
Posts: 357
 
Google çevirmen kullanarak:

Öneri 1:
Lütfen, kayıttan sonra (1'den 4'e kadar olan adımlar) PIC'in 5 numaralı pinindeki voltajı ölçün. +5 Voltunuz varsa (doğru), bağlantıları kontrol edin ve bileşenleri test edin: 4k7, BC548, röle, 1N4148, + 12v.

Öneri 2:
Lütfen başka bir PIC kaydetmeyi deneyin ve çalışıp çalışmadığını görün.

Öneri 3: Lütfen direnç R6'nın (2m2) TX'e yerleştirildiğini kontrol edin.

Usando Google tradutor:
Sugestão 1:
Por favor, após gravar ( passos 1 a 4) meça a tensão no pino 5 do PIC. Caso tenha +5 Volts (correto), então confira as conexões e testes os componentes: 4k7, BC548, rele, 1N4148, +12v.

Sugestão 2 :
Por favor, tente gravar outro PIC e verificar se funciona.

Sugestão 3: Por favor, verifique se foi colocado o resistor R6 (2m2) no TX.

 

   
ReplyQuote
(@egealtay)
Active Member
Joined: 5 anos ago
Posts: 4
Topic starter  

@clarios
İlginiz için teşekkür ederim , kontrol edip gelişmeleri yazacağım,

 
Obrigado por sua atenção, irei verificar e anotar os desenvolvimentos,
 

   
ReplyQuote
(@samtinos)
Active Member
Joined: 3 meses ago
Posts: 7
 

Hello,

I appreciate your accomplishments and I think they are educational. I saw that in the files for tx that a different table is used than the table in rx, is there something wrong or is it right? In an rx file, the order in which encryption is done is mentioned, the first time values from the 8 bytes are changed, then the XOR function is applied with the secret key, is it the same order in tx? In the description on the page it is mentioned that 4 bits/octet are changed, if I have 0x28, which character is changed 2 or 8?

Thank you !


   
ReplyQuote
(@clarios)
Reputable Member Admin
Joined: 12 anos ago
Posts: 357
 

Hello samtinos,

To answer your first question, the tables are really different and they are correct.
We swap the contents of the AUXC register with a value from the tablek in TX. Then we need to change this value obtained from the table to the original value in RX.
Look at the tables and you will notice that in the k table, for example, in the position '0' is equal to 8 and that in the z table position 8 is equal to 0. Then we get the original value back!

As for the operation order: In TX the encryption is done:

serial xor key
Rotates to the right
Replaces 4-bit low

In RX, decryption is done in reverse order:
Replaces 4-bit low
Rotates left
serial xor key.

As for the last question, if we have 0x28 only the '8' will be changed (low nibbles)

I hope I helped you! Thanks you!
 
 
 
 
 
 
 
 

   
ReplyQuote
(@samtinos)
Active Member
Joined: 3 meses ago
Posts: 7
 

Hello,

Thank you very much for the answer, I think I understood. I realize that you don't have enough time to come back to the forum and it's no problem. Personally, I will come back to the forum maybe with questions or maybe with accomplishments. I want to ask you if you know Flowcode, it is a graphic development and programming environment.

All the best!


   
ReplyQuote
(@samtinos)
Active Member
Joined: 3 meses ago
Posts: 7
 

Hi Claudio Larios,

The 32 bits of the serial number are encrypted, but each transmission differs from the previous transmission and the next transmission? If yes, then how is it done? I understood the encryption counter, because it increments it will each time have different values that will be encrypted.

Thank you!


   
ReplyQuote
(@samtinos)
Active Member
Joined: 3 meses ago
Posts: 7
 

Hi Claudio Larios,

I forgot about turning to the right and to the left, sorry.


   
ReplyQuote
(@samtinos)
Active Member
Joined: 3 meses ago
Posts: 7
 

Hello Claudio Larios,

0x28 serial key
0x12 secret key

tx
0x28 xor 0x12 = 0x3A
0x3A rotated to the right = 0x1D
0011 1010
0001 1101
replaces 4 bits low 0x1D = 0x19
encrypted byte = 0x19

rx
replaces 4 bits low 0x19 = 0x1D
0x1D rotated to the left = 0x3A
0001 1101
0011 1010
0x3A xor 0x12 = 0x28
decrypted byte = 0x28

RX can do a decryption, but how does it identify the correct code?
What should rx do to identify the correct code?
How do I synchronize rx with tx?


   
ReplyQuote
(@clarios)
Reputable Member Admin
Joined: 12 anos ago
Posts: 357
 

Hello Santinos,
In tx programming we send Serial Number to RX. In use, each TX transmission sends Serial Number + Counter encrypted.
The RX has the same Key + Serial Number + Rx Counter.
The TX transmission is decrypted and obtains the serial Number + tx counter. Note that each transmission is different because the counter increments.
Lower counter values are rejected because they have already been used. Larger values only allowed within the sync window.

 

#define MAX_DESSINCRONIZACAO 1//ajusta taxa de dessincronização máxima

 

If the TX keeps transmitting away from the RX, there will be a momentary desynchronization. In this case, you will need two correctly decrypted transmissions to resynchronize the RX counter and release the system.

 

Really this business is kind of crazy to understand!!!   Thank you!

   
ReplyQuote
(@samtinos)
Active Member
Joined: 3 meses ago
Posts: 7
 

Hello Claudio Larios,

Thank you very much for the answer. Is the serial number different from one transmission to another? Please answer me.


   
ReplyQuote
Page 1 / 2
Back To Top