20.04.2016, 11:00   #55
Gorynch
 
  Gorynch
 
: 22.04.2009
: 39
:
: 77, 97, 99, 177
: 2005\Nissan\X-Trail
: 775
Gorynch has a reputation beyond reputeGorynch has a reputation beyond reputeGorynch has a reputation beyond reputeGorynch has a reputation beyond reputeGorynch has a reputation beyond reputeGorynch has a reputation beyond reputeGorynch has a reputation beyond reputeGorynch has a reputation beyond repute

mega32 .
.

4 pin - Mute (0 - , 1 - )

. . DTR : 1 - , 0 - .

(Directed) - ( 4- pin').

3 . . .

. - , , 0xA4, 0x1B48

PHP :
const unsigned char muteOff_blackRadio[ ] = {0xA4,0x08,0x03,0x04,0x00,0x00,0x4B,0x00,0x00,0x00,0xFE};
const 
unsigned char freq1[ ] = {0xA40x100x020x010x000x000x010x000x000x00}; // before current freq
const unsigned char freq2[ ] = {0x000x000x000x000x000x00};    // after current freq
const unsigned char getSignal[ ] = {0xA40x050x010x010x010x000xAC};

const 
uint8_t radio_CS 0xB8;

void HDRadio_sendFreq(uint16_t curFreq) {
    
uint8_t current_CS;    //current CheckSum
    
current_CS radio_CS GetLowByte(curFreq) + GetHighByte(curFreq);
    for (
uint8_t i 0<= 9i++) {
        
Serial_SendBytefreq1[i] );
    }

    if (
GetLowByte(curFreq) == 0xA4) {
        
Serial_SendByte(0x1B);
        
Serial_SendByte(0x48);
    } else {
        
Serial_SendByte(GetLowByte(curFreq));
    }

    if (
GetHighByte(curFreq) == 0xA4) {
        
Serial_SendByte(0x1B);
        
Serial_SendByte(0x48);
    } else {
        
Serial_SendByte(GetHighByte(curFreq));
    }

    for (
uint8_t i 0<= 5i++) {
        
Serial_SendBytefreq2[i] );
    }

    if (
GetLowByte(current_CS) == 0xA4) {
        
Serial_SendByte(0x1B);
        
Serial_SendByte(0x48);
    } else {
        
Serial_SendByte(GetLowByte(current_CS));
    }

__________________
, ,
Gorynch