Ejemplo n.º 1
0
/******************************************************************************
 * Function:        void main(void)
 * PreCondition:    None
 * Input:           None
 * Output:          None
 * Side Effects:    None
 * Overview:        Main program entry point.
 * Note:            None
 *****************************************************************************/
void main(void) {

    //char numero[] = {'3','1','3','3','7','1','3','3','7',0};
    char numero[] = {'1','3','3','7','0'};
    //char numero[] = {'0','1','7','2','4'};

    initSystem();

     
    rs232_putString("OsomCom POCSAG 0.1\nRamiro Pareja ([email protected])\n");
    


    //pocsagPhy_sendMsg(pocsag_createNumericMsg(1519073, numero));
    ////pocsagPhy_sendMsg(pocsag_createNumericMsg(RIC, numero));
    //pocsagPhy_sendMsg(pocsag_createAlphaMsg(1111709, numero));
    //pocsagPhy_sendMsg(pocsag_createIdleMsg());

    //pocsagPhy_test();

    // Process Loop
    while (1) {

        led_processLoop();
        pocsagPhy_processLoop();
        rs232_processLoop();
      
    }


}
Ejemplo n.º 2
0
void pocsagPhy_test(UINT8 tstType) {
    if (pocsagPhy_state != IDLE)
        return;

    if (pocsagPhy_init()) {
        rs232_putString("Init error");
        return;
    }
    pocsagPhy_busy = 1;

    pocsagPhy_state = TEST;
    testType = tstType;
}
Ejemplo n.º 3
0
void pocsagPhy_sendMsg(UINT16 numBytes) {

    if (pocsagPhy_state != IDLE)
        return;

    if (pocsagPhy_init()) {
        rs232_putString("Init error");
        return;
    }

    pocsagPhy_busy = 1;
    numBytesTX = numBytes;

    pocsagPhy_state = SYNCH_TX;
    contador = PREAMBLE_LENGTH;

}