VEHICLE BLOKER WITH ASSET SENSOR - C / PIC12F675 (REF343) does not work !!
I'm so sorry. Could you please explain what is going on?
@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 .
@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 .
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.
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 !
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)
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!
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!
Hi Claudio Larios,
I forgot about turning to the right and to the left, sorry.
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?
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.
Hello Claudio Larios,
Thank you very much for the answer. Is the serial number different from one transmission to another? Please answer me.