getModulus (byte [] buffer, offset short): confused by arguments

Hi all!

I don't really understand the parameters to the functions getModulus (byte [] buffer, offset short) and getExponent (byte [] buffer, offset short).
Let's say, I generate the rsa key pair and extract the public key like this:
rsa_keys.genKeyPair(); // generate RSA key pair
RSAPublicKey rsa_pu_key = (RSAPublicKey) rsa_keys.getPublic(); // extract Public key
What are the byte [] buffer and what is off? I don't understand! There are no arguments to these functions in standard java.

Thanks in advance
/ L

And we went far from the "I don't understand this question of method arguments.

Tags: Java

Similar Questions

  • APDU buffer

    Hi guys

    Thank you guys a few questions related to sending and receiving data

    1. in the context of the Javacard API, I'm quite confused with the love of the method "receiveBytes(short bOff)" (from class APDU).

    a. this method receives the data and highlights the APDU buffer memory, starting at the offset bOff
    b. this method retrieves incoming APDU buffer data, starting at the offset bOff

    Who is right?

    2 to send data, it is necessary to copy the data in the APDU buffer before sending? We can send data directly in a table?

    Example: the method 'sendBytesLong (byte [] outData, bOff short, short len). Why send directly from the table "outData"? Why do need to copy on APDU buffer?

    1. in the context of the Javacard API, I'm quite confused with the love of the method "receiveBytes(short bOff)" (from class APDU).

    a. this method receives the data and highlights the APDU buffer memory, starting at the offset bOff
    b. this method retrieves incoming APDU buffer data, starting at the offset bOff

    Who is right?

    This method retrieves the OS map data and fills the APDU buffer (1).

    2 to send data, it is necessary to copy the data in the APDU buffer before sending? We can send data directly in a table?

    You can do either. If you have a large buffer in the EEPROM you can work with more data than the size of the APDU buffer (usually 261 bytes), but it is slower. If you have less than this amount, you can use the APDU buffer directly. Depending on where the sending of data are you can use.

    Example: the method 'sendBytesLong (byte [] outData, bOff short, short len). Why send directly from the table "outData"? Why do need to copy on APDU buffer?

    These questions seem to contradict. If you mean why the JCRE in the APDU buffer copy internally, it is perhaps because the OS map needs to have the data in a particular entry JCRE point to transmit data.

    See you soon,.
    Shane

  • Send bytes of card to the Terminal

    Hi guys

    When I studied the sendBytes.Length method in which card sends data to the terminal, I found that in each shipment, the card sends an ACK to the terminal as well. These acknowledgments are reported as below

    private public static final byte ACK_NONE = (byte) 0.
    private public static final byte ACK_INS = (byte) 1;
    private public static final byte ACK_NOT_INS = (byte) 2;

    An example of sending within the acknowledgement: t0SndData (this.buffer, bOff, the, (byte) 0);

    t0SndData (byte [] paramArrayOfByte, short paramShort1, short paramShort2, paramByte bytes)

    -this.buffer (paramArrayOfByte): buffer that contains the data being sent
    -bOff (paramShort1): data sent in the buffer offset
    -The (paramShort2): length of the data being sent
    -0 (paramByte): ACK

    ~ ~ > My question: what are these acknowledgements? What is the meaning of each ACK above?

    One of your concerns is always very appreciated ^^

    Hi guys.
    I think that belongs to the basic rule for the sequence of the smart card.

    terminal---------------------------------------------------Card

    Send the header (5 bytes) APDU---> card check these 5 bytes (CLA, INS, P1, P2, P3)

    <---------------------------------------------------Card send="" ack="" to="" inform="" that="" smartcard="" understand="" the="">

    <------------------data--------------------------->Terminal Forms data or card is INS and P3 (lc or the)

    There are 3 situation: No ACK if no terminal need response card, or Lc or the
    have 2 kinds of ACK: ACK or ~ ACK (to send or receive each individual byte or send/receive all bytes).
    If you understand me, man!

  • Double buffer handling

    Hello? My system is using a double buffering based code and I have to use them. I tested a stand-alone DAQmx program on a double buffering technique, and it works quite fine with my system. Since I am not only writing my code c ++ system for years 1980, I'm not sure how to handle the DAQmx double buffering system.

    Here is my old c ++ code that deals with a double buffer code to display a chart.

    I've attached these codes and the last of them is DAQmx code and there is error points; //<******************** error="" occurs="">

    The rest of them is old c ++ and EvenBank and OddBank represent the double buffer. Their models are

    double* EvenBank;
    
    double* OddBank;
    

    and these are handled/initialized this way later

        EvenBank = new double[ iTotalSize ]; //iTotalSize = 7200
    
        OddBank  = new double[ iTotalSize ];
    
        int i;
        for( i= 0; i< iTotalSize; i++ )
             EvenBank[ i ] = OddBank[ i ] = 0;
    

    Then the thread function attached here. I have no idea how to assign the acquired Bank and odd sample to display in the chart.

    Thanks for help.

    1 put on display:

    unsigned int ThreadDisplay( LPVOID pParams )
    {
        static unsigned long count    = 1;
        static unsigned long traceNum = 1;
    
        CNatAcqView* ptr = (CNatAcqView*)  pParams;
    
        if( traceNum %2 )
        {
            traceNum = 1;  //reset counter
    
            ptr->StartEvenIntScanATD();
    
            if( ptr->WriteEnable )
                ptr->WriteToDisplayBuffer( FALSE );   // ODD, Calling startScan()
        }
        else
        {
            ptr->StartOddIntScanATD();
    
            if( ptr->WriteEnable )
                ptr->WriteToDisplayBuffer( TRUE );    // EVEN, Calling startScan()
        }
    
        ptr->WriteEnable = TRUE;
    
        Check_Daq( ptr, ptr->iTotalSize ); // wait till end of signal window
    
        traceNum++;
    
        Sleep( 50 ); //minimum for checking keys and menu bars
    
        ptr->PostMessage( WM_DISPLAY_BUFFER, count, (long)0 ); // if done exit ,else restart...
    
        AfxEndThread( 0 );      
    
        return 0;
    }
    

    2 display data on the screen:

    int CNatAcqView::WriteToDisplayBuffer( bool even )
    {
        int i,j;
    
        for( i= 0; i< iChannel_Acq; i++ )  //display buffer depends on IRIS model
        {
            for( j= 0; j< fdat.trace_size; j++)
            {
                if( even )
                {
                    if( gd.ch[i].active == 1 )
                        gd.ch[ i ].iatd[ j ] = EvenBank[ i + j*iChannel_Acq ]; //iChannel_Acq = 6
                    else
                        gd.ch[i].iatd[j] = 0;
                }
                else
                {
                    if( gd.ch[i].active == 1 )
                        gd.ch[ i ].iatd[ j ] = OddBank[ i + j*iChannel_Acq ];
                    else
                        gd.ch[i].iatd[j] = 0;
                }
            }
        }
    
        //PreProcessing
        for ( i= 0; i< MAX_RADARS; i++ )
        {
            //if( i < 4 )  //for BatteryLevel
            //{
                if( processFlag == 1 && gd.ch[i].active == 1 )
                   AcqPoll_ProcessSignal( i );
            //}
        }
    
        for( i= 0; i< iChannel_Acq; i++ )            //MAX_CHANN
        {
            if( gd.ch[i].active == 1 )
            {
                for( j= 0; j< fdat.trace_size; j++ )
                     iAveBuffer[i][j] = iAveBuffer[i][j] + gd.ch[i].iatd[j]; //average calculation, not important
            }
        }
    
        if( SampleTimeFlag != 1 )
        {
            for( i= 0; i< MAX_RADARS; i++ )
            {
                gd.ch[i].blength    = fdat.trace_size;
    
                gd.ch[i].sampleTime = .000001 * fdat.period * fdat.its[i]; // display text info on a screen
    
                if( i >= IRIS_SYSTEM )
                    gd.ch[i].sampleTime = fdat.period;
            }
        }
        else  //if( SampleTimeFlag == 1 )
        {
            for( i= 0; i< MAX_RADARS; i++ )
            {
                gd.ch[i].sampleTime = fdat.period;
                gd.ch[i].blength    = fdat.trace_size;
            }
        }   
    
        return 1;
    }
    

    3 Check_Daq:

    BOOL Check_Daq( LPVOID pParams, int expect) // int expect is a total size of the sample buffer.
    {
    
        short done;
        unsigned long number = 0;         
    
        int status;
        status = DAQ_Check( 1, &done, &number );
        CNatAcqView* ptr = (CNatAcqView*)pParams;
    
        AfxMessageBox("Check_Daq is called", MB_OK, 0);
    
        ptr->bAbortAcquire = FALSE;
        ptr->bRadarTrigger = TRUE;
        ptr->iTriggerLED   = 1;      //Trigger On
    
        int i=0;
        while( done != 1 )
        {
            status = DAQ_Check( 1, &done, &number ); 
    
            ptr->bRadarTrigger = FALSE;
    
            ptr->uiTriggerCheck++;
    
            //protect overflow data type
            if( ptr->uiTriggerCheck >= MAX_DMI_COUNT )
                ptr->uiTriggerCheck = 0;
    
            if( ptr->bAbortAcquire ) //from OnAcquire Mode
                done = 1;           
    
        }
    
        ptr->uiTriggerCheck = 0;
    
        if( number == (unsigned long) expect )
            return TRUE;
        else
        {
            //throw ERROR_DAQ_CHECK;
            return FALSE;
        }
    
    }
    

    4 DAQmx conversion:

    //I will comment out Check_Daq() in ThreadDisplay function. Then this whole single function will be called.
    
    unsigned int CollectingSamples(LPVOID pParams)
    {
        CNatAcqView* ptr = (CNatAcqView*) pParams;
        int32           error=0;
        char            errBuff[2048]={'\0'};
        double          gainValue = 0.5f;
        uInt32          numChannels;
        uInt32          reading=0;
        static bool32   isDone;
        ptr->totalRead   = 0;
        unsigned long   HalfSize = (unsigned long)ptr->iTotalSize/2;
        double          DataBuffer[1000];
        int32           read;
        //TaskHandle        taskHandle = ptr->taskHandle;
        TaskHandle      taskHandle=0;
        ptr->dataA       =0;
    
        DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0:5","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxSetAIGain(taskHandle, "Dev1/ai0:5", gainValue));
        // buffer(14400) setting with internal clock("") and continuous sampling(DAQmx_Val_ContSamps), DAQmx does double buffering basically in case of continuous sampling.
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",40000,DAQmx_Val_Rising,DAQmx_Val_ContSamps,14400)); //14400 = iTotalSize x 2; double buffer.
        //DAQmxErrChk (DAQmxSetAIConvTimebaseDiv(taskHandle, (int)iSampInt*10));//sampleTicks*10 was 500  //iSampInt*10
        //DAQmxErrChk (DAQmxSetSampClkTimebaseDiv(taskHandle, (int)iScanInt*10));//GroupTicks*10 was 2000 //iScanInt*10
        //double buffer acquisition; the board transfers data when half its internal buffer is full
        DAQmxErrChk (DAQmxSetAIDataXferReqCond(taskHandle, "Dev1/ai0:5", DAQmx_Val_OnBrdMemMoreThanHalfFull));
        //Overwriting samples in the buffer that you have not yet read.
        DAQmxErrChk (DAQmxSetReadOverWrite(taskHandle, DAQmx_Val_DoNotOverwriteUnreadSamps));
        //Collecting data from buffer
        //DAQmxErrChk (DAQmxRegisterEveryNSamplesEvent(taskHandle,DAQmx_Val_Acquired_Into_Buffer,10,0,AcquireCallBack,NULL)); // call back result
    
        DAQmxErrChk (DAQmxStartTask(taskHandle));
    
            while (!isDone)
        {
            ptr->IsTaskDone_ContAcqIntClkDigStartRef(taskHandle, &isDone);
            //DAQmxErrChk( DAQmxIsTaskDone(staskHandle, isDone));
    
            DAQmxErrChk (DAQmxGetReadAvailSampPerChan(taskHandle,&reading));
    
            if( reading>0 )
            {
             // Each reading
             DAQmxErrChk (DAQmxGetReadTotalSampPerChanAcquired(taskHandle, &ptr->dataA)); //Accumulated reading
    
             while(reading > HalfSize ){ //More than a half full
            DAQmxErrChk (DAQmxReadAnalogF64(taskHandle,-1,10.0,DAQmx_Val_GroupByScanNumber,DataBuffer,1000,&read,NULL)); //Read the buffer
            ptr->totalRead+=read;
                                                                                        if( ptr->totalRead == ptr->iTotalSize || ptr->totalRead > ptr->iTotalSize )
            {
                if(ptr->iAvailableSample == 2){
                //ptr->EvenBank=DataBuffer;   //<******************** Error occurs here
                    return ptr->iAvailableSample == 1;
                    } 
    
                    else if(ptr->iAvailableSample == 1){
                    //ptr->OddBank=DataBuffer;    //<******************** Error occurs here, too.
                return ptr->iAvailableSample == 2;
                }
    
            isDone = 1; //Stop 
    
               }//End of if( ptr->totalRead == ptr->iTotalSize || ptr->totalRead > ptr->iTotalSize )
        }//End of while(reading > HalfSize )
            }//Enf of if(reading>0)
        }// while (!isDone)
    
        AfxEndThread( 0 );
        DAQmxErrChk (DAQmxStopTask(taskHandle));
        DAQmxErrChk (DAQmxClearTask(taskHandle));
    
    Error:
    
        if(error)
            CleanUp (error, taskHandle);
    
    }
    

    OK, I understand why it does not display the right data. The data type of Bank in hand and odd should be short * and AI DAQmx function should be

    DAQmxReadBinaryI16, not DAQmxReadAnalogF64. Now it works fine.

    So, if anyone of you convert function DAQ DAQmx SCAN_Start, copy DAQmxReadBinaryI16, not DAQmxReadAnalogF64.

    Because the return of SCAN_Start data type i16 (integer 16 bit. short *), you must use DAQmxReadBinaryI16.

    Otherwise, you will lose many points of data.

  • JavaCard.Framework.Dispatcher

    Hi guys

    I host the features of javacard.framework.Dispatcher concern

    As far as I know, according to the Javacard API spec 2.2.1 the functionality for this class are described as below:

    + "A dispatcher is used to build an application by combining several services. +

    + The dispatcher maintains a register of Service objects. A Service is classified by type of processing it performs: +.

    + A pre-processing service preprocesses the data entry for the command processing. It is associated with the phase PROCESS_INPUT_DATA. +
    + Processing order service treats the input data and generates output data. It is associated with the phase PROCESS_COMMAND. +
    + Post processing service post-draft generated output data. It is associated with the phase PROCESS_OUTPUT_DATA. +

    + The dispatcher simply distributes object incoming APDU containing the order processing for the registered services. "+

    It seems ambiguous to me. :|

    On the other hand, I don't know when this class is called. This class specification 2.1.1 Javacard API is written in Java and contains a main() method. Thus, it confuses me a lil' bit

    Suppose I have an applet to Hello. This applet is an example, included in the Javacard 2.2.1 API specification
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.Util;
    
    
    public class HelloWorld extends Applet {
         
         private byte[] echoBytes;
        private static final short LENGTH_ECHO_BYTES = 256;
        
        protected HelloWorld(){
             echoBytes = new byte[LENGTH_ECHO_BYTES];
             register();
        }
        
         public static void install(byte[] bArray, short bOffset, byte bLength) {
              // GP-compliant JavaCard applet registration
              new HelloWorld();
         }
    
         public void process(APDU apdu) {
              
    
              byte[] buffer = apdu.getBuffer();
              short bytesRead = apdu.setIncomingAndReceive();
              short echoOffset = (short)0;
              
              while ( bytesRead > 0 ) {
                Util.arrayCopyNonAtomic(buffer, ISO7816.OFFSET_CDATA, echoBytes, echoOffset, bytesRead);
                echoOffset += bytesRead;
                bytesRead = apdu.receiveBytes(ISO7816.OFFSET_CDATA);
            }
              
              apdu.setOutgoing();
              apdu.setOutgoingLength( (short) (echoOffset + 5) );
    
            // echo header
            apdu.sendBytes( (short)0, (short) 5);
            // echo data
            apdu.sendBytesLong( echoBytes, (short) 0, echoOffset );
              
         }
    }
    Importation, we all see clearly that there are only 4 classes of the API that can be called for the treatment of this applet. However, the dispatcher is used during this process? If so, please tell me the stream in which Dispatcher is a node.

    Jason Gosling wrote:
    So, you think you agree with my colleague that this class is implicitly executed as it is outside of the JCRE bootstrap?

    That's right.

    safarmer wrote:
    My best guess is that the code comes from a reference implementation

    What do you mean "a reference implementation? As you know, I develop the operating system (JCRE, API,...) for the card and my API code is mainly based on this. That is why, in your opinion, is this reliable code?

    I mean that Sun is resource offered to licensees that may contain an implementation to compare your JCRE/FRENCH_TRAVELLER_64 for. While it provides all the functionality required, it cannot be the best implementation or even run on your card. As long as you evaluate the usefulness of the code, you should be OK.

    See you soon,.
    Shane

  • problem of memory during installation of the applet

    Hello everyone,

    I try to install an applet on TOP javacard IM GX4 card, but I have a memory problem...

    This is my code of the applet:
    package codeSimpleCompteur;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.ISOException;
    
    public class Test extends Applet {
    
           final byte CLA_MONAPPLET = (byte) 0xB0;
           final byte INS_INCREMENTER_COMPTEUR = 0x00;
           final byte INS_DECREMENTER_COMPTEUR = 0x01;
           final byte INS_INTERROGER_COMPTEUR = 0x02;
           private byte compteur;
           byte[] tab;
         
         public Test() {
              compteur = 5;          
         }
         
         public static void install(byte bArray[], short bOffset, byte bLength)
              throws ISOException {
              new Test().register(bArray, bOffset, bLength);          
         }
    
         public void process(APDU apdu) throws ISOException {
              byte[] buffer = apdu.getBuffer();
              
              if (this.selectingApplet()){
                   return;
              }
              
              if (buffer[ISO7816.OFFSET_CLA] != CLA_MONAPPLET) {
                   ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
              }
              
              switch (buffer[ISO7816.OFFSET_INS]) {
              
              
                   case INS_INCREMENTER_COMPTEUR:
                        compteur++;          
                        break;
         
    
                   case INS_DECREMENTER_COMPTEUR:
                        compteur--;
                        break;
                   
                   case INS_INTERROGER_COMPTEUR:
                        tab = new byte[5];
                        tab[0] = compteur;          
                        apdu.setOutgoing();
                        apdu.setOutgoingLength((short)tab.length);
                        apdu.sendBytesLong(tab,(short) 0, (short) tab.length);
                        break;
              
                      default:
                        ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
              }
         }
    }
    and when I try to install it I have this error:
    install -file codeSimpleCompteur.cap
    file name codeSimpleCompteur.cap
    Command --> 80E602001C09A00000006203010C0108A000000018434D000006EF04C60202700000
    Wrapped command --> 84E60200286364A6E5E0D338639BBC807D11E7639A6D1A163A3195C79C076B3E6818C0EE2E59066D9AEAAC01ED00
    Response <-- 009000
    Command --> 80E80000EFC4820265010013DECAFFED010204020109A00000006203010C0102001F0013001F000E000B0056000C00B0000A0023000000BD00000000000001010004000B01020107A000000062010103000E010AA00000006203010C0101003306000C0080030B00010701000000430700B0000210188C00111810B0880018038801180488021805880318068804181006880518078806180888071810078808180888097A04308F000B3D8C000C181D1E8B000D7A0421198B000E2D188B000F60037A1A032510B06A08116E008D00101A042573004800000002000D00180023183D840904415B88097038183D840904435B8809
    Wrapped command --> 84E80000F812D71F1AFC82A2FDB501FF71CCEB5E29DE80D33AFFE71FF49288374F89CF6B56C0988032BB379C47534C47E9E3B3F4F45B86B7B564BB2489542CE853946DC877E011CFB1F802FEABB62D9CF84BD723763D3ED8D6E11AA9F7042912DD81EFA827BC88ED3D8938053A2AA38D52FACE16A4852DE7EE63FF85B4265AA002B31E6B63D3A4A3301B88F2A07C6E5C770235369CC984A490365AFD2A1F8FCA02C3E7E3D3DFB65088D66EBD2E167B7199EEE94FD8F9B8C034E27E2FF7C34685D82B5EDC04A8ED6D8B19EBFBBEA73863CFD0BC75C6CD42AC85975908E01477BA2DCB0FD0386C1E552BEFF92DCED548980B830D0A47767FB6BF51176BEB
    Response <-- 009000
    Command --> 80E80001EF702D181029900B870AAD0A03AE0938198B00123B19AD0A928B001319AD0A03AD0A928B00147008116D008D00107A08000A0000000000000000000005005600150200000102000002020000030200000402000005020000060200000702000008020000090200000A0200000001000000060000010380030203800A0103800303068007010680030003800A0703800A0903800A0509002300140B04040404050404050440050605090203090703000B0531040607051037080A080B00BD010001000000000B00030000000000002E011000000180030210000002800303100000038003041000000480030510000005
    Wrapped command --> 84E80001F80AA622FE5D6E75C8EC596F1B01771A23433D84FAA0E45CCF6FD98FC5AF63A1B6C71E8FAFE640E743D30BB5B628255AE9942A60A803599555942C44520B2D2B27F5981029F781D5544A0031518D3399C91F000C7AFE086ED091CF012676CE35A00A5676F087B9F3D3E6C42AEAF2CEE4848E9B751A2C9665AE16F98EEB5D2A160F8B12D9DD7B1A5849579ECF8006289B40454E3E8A8C12451FDA75F575448E41E6BDE1374C50717C872E06439A5F625267A757CB5B247D0C7A363AB3F8F85E40D696D277212E45EF6BE71F6CC43FE4BDD4ED7D6C5FB6C5F785A6926BCD71A30F381C7A11135314721EBD4AC80AE911AB23B8CF0323658AEC8F
    Response <-- 009000
    Command --> 80E880028B8003061000000680030710000007800308100000088003091000000980030A0200000A8003008100010030003000000000010900330032000E0000000007010043003E006B000000000015002C002C002C002C002C002C002C002C002C002C002EFFFF00300032002E00350037003000390037003B013001B0011004B43101200241014004B441066800A100
    Wrapped command --> 84E88002988B26EA862F2CEBBB9D85FAE96EEEA8CC7C9134BDFBC258587EC8A31D0721E35DEE8F8E80B24ADADE5B4871A291FC1A3396CE9F510A650EAB195D352E696F3450325FCEFE18DDF94C86BE8B8A268956AECA9C4E83DC6B91AF0BA0D03E9E78896769146B41578ED560409049D01202A027AF7EF73985FB65F4C0C47B45F400F4B9EDE2BC344EF09DD437D7429043821EC3EC5A6AC6CE99912400
    Response <-- 009000
    Command --> 80E60C002609A00000006203010C010AA00000006203010C01010AA00000006203010C0101010002C9000000
    Wrapped command --> 84E60C0030FE5C8C290BD6BF2BEFF1C59495E884045AB4418BAFBF48D6C41A9BACD25DE3462262C0B503564CCE38087340DAB6C8DF00
    Response <-- 6A84
    install_for_install_and_make_selectable() returns 0x80206A84 (6A84: Not enough memory space.)
    get_Status return:
    OP201_get_status() returned 18 items
    
    List of applets (AID state privileges)
    a0000000620001     1     0
    a0000000620002     1     0
    a0000000620003     1     0
    a0000000620101     1     0
    a000000062010101     1     0
    a0000000620102     1     0
    a0000000620201     1     0
    a00000015100     1     0
    a0000001320001     1     0
    a0000000030000     1     0
    a000000018100101     1     0
    a000000018100106     1     0
    a000000018100201     1     0
    a00000001830080100000000000000ff     1     0
    a00000001830080100000000000000fe     1     0
    a00000001830060200000000000000ff     1     0
    a00000001830060100000000000000ff     1     0
    a00000001830030100000000000000ff     1     0
    I can't uninstall this applet, and I'm not sure that the problem is memory space...
    you have an idea about this? There is an option with GPshell know the size of free memory on the card?

    concerning
    Alexis

    your instruction register (blabla) is bad.

    This function receives the INSTALL APDU buffer (to install [and maybe make selectable]).

    bOffset points to the offset in the table where the length of using the instance is stored in LV format (see globalplatform).

    Register() expected
    -the table where the help applet is stored
    -the offset in which it is stored
    -the duration of the assistance

    example: you are somewhere in the apdu
    ..... 06 112233445566...

    bOffset corresponds to the shift in Baker at the "06" value
    AID has length 06 and started the next byte.

    If you need to write

    Register (Baker, (short)(bOffset+1), Baker [bOffset]);

    By change, register() without parameters is done automatically.

    can you guess your mistake now? Register (Baker, bOffset, bLength) indicates that the cmdlet HELP length is the length of the full buffer, starting at an offset of zero in the buffer zone. It is a bad mistake of length to HELP, combined with excess of array subscript if the french_traveller_64 trying to copy using!

    concerning

  • Report on the performance of the server - cannot display the Page in generated by the e-mail server

    Server 2003 for Small Business Server, the operating system generates the following email:

    The page cannot be displayed

    An error has occurred on the page you are trying to view.

    To work around this problem, perform the following steps. After each step, try again to access the page.

    • Make sure service MSSQL$ SBSMONITORING is started.
    • Make sure that the server is not low on memory or disk space.
    • Restart the server.
    • Check that the server is functional and that there is no systemic problem.
    • Run configure reports and alerts task in the list of the Monitoring and Reporting Server management tasks.

    A corresponding system event is logged:

    Event type: error
    Event source: ServerStatusReports
    Event category: no
    Event ID: 1
    Date: 07/08/2012
    Time: 06:03:21
    User: n/a
    Computer:
    Description:
    Server status report:
    URL: http://localhost/monitoring/perf.aspx?reportMode=1&allHours=1
    Error message: timeout expired.  The delay before the end of the operation or the server is not responding.
    Stack trace: at System.Data.SqlClient.SqlConnection.OnError (SqlException exception, State of TdsParserState)
    at System.Data.SqlClient.SqlInternalConnection.OnError (SqlException exception, State of TdsParserState)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning)
    at System.Data.SqlClient.TdsParser.ReadNetlib (Int32 bytesExpected)
    at System.Data.SqlClient.TdsParser.ReadBuffer)
    at System.Data.SqlClient.TdsParser.ReadByteArray (Byte [] buff, Int32 offset, Int32 len)
    at System.Data.SqlClient.TdsParser.ReadValue (_SqlMetaData md, Int32 length)
    at System.Data.SqlClient.TdsParser.ProcessRow (_SqlMetaData [] columns, buffer Object [], Int32 [] map, Boolean useSQLTypes)
    at System.Data.SqlClient.SqlDataReader.PrepareRecord (Int32 i)
    at System.Data.SqlClient.SqlDataReader.GetValue (Int32 i)
    to Microsoft.UpdateServices.Internal.DatabaseAccess.GenericReadableRow.ReadRow (IDataRecord record)
    to Microsoft.UpdateServices.Internal.MultipleResultSetsSPHandler.ExecuteStoredProcedure (DBConnection connection)
    at Microsoft.UpdateServices.Internal.GenericDataAccess.ExecuteSP (String spName, Int32 queryTimeoutInSeconds, DBParameterCollection args, Manager of IExecuteSPHandler)
    at Microsoft.UpdateServices.Internal.GenericDataAccess.ExecuteSP (String spName, DBParameterCollection args, Manager of IExecuteSPHandler)
    at Microsoft.UpdateServices.Internal.DataAccess.ExecuteSPMultipleResultSets (String spName, args, Type [] resultTypes DBParameterCollection)
    at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccess.ExecuteSPCompleteUpdatesResult (String spName, DBParameterCollection args)
    at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccess.ExecuteSPGetAllUpdates (String preferredCulture, Int32 approvedStates, fromSyncDate DateTime, DateTime toSyncDate, Guid [] updateCategoryIds, Guid [] updateClassificationIds, Int32 publicationState)
    at Microsoft.UpdateServices.Internal.BaseApi.Update.GetAll (ApprovedStates approvedStates, fromSyncDate DateTime, DateTime toSyncDate, UpdateCategoryCollection updateCategories, UpdateClassificationCollection updateClassifications, ExtendedPublicationState publicationState)
    at Microsoft.UpdateServices.Internal.BaseApi.Update.GetAll (ApprovedStates approvedStates, fromSyncDate DateTime, DateTime toSyncDate, UpdateCategoryCollection updateCategories, UpdateClassificationCollection updateClassifications)
    at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetUpdates (ApprovedStates approvedStates, fromSyncDate DateTime, DateTime toSyncDate, UpdateCategoryCollection updateCategories, UpdateClassificationCollection updateClassifications)
    at Microsoft.SBS.UpdateServices.DataProvider.GetScheduledUpdates)
    at Microsoft.SBS.UpdateServices.StatusPage.Utility.GetStatusItems)
    at usage.frmPerf.PopulateStatusItems)
    at usage.frmPerf.renderReportWorker)
    at usage.frmPerf.renderReport)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Does anyone know how I could go about fixing this? Thanks in advance!

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Understanding the newspaper of the device: TXch &amp; TXun

    Hello

    I use a FTP connection to send compressed text files.

    I have a big problem with the file of more than 40K.

    Basically, the process is:

    -generate a string with data;

    -Compress using something similar to GZipOutputStream sample;

    -connect to the FTP server using the socket connection

    -Send it

    the send code is something like this:

    OutputStream output = dataSocket.openOutputStream();
    byte[] buffer = new byte[512];
    int bytesRead = 0;
    
    while ((bytesRead = inputStream.read(buffer)) != -1) {
        output.write(buffer, 0, bytesRead);
    }
    output.flush();
    output.close();
    output = null;
    dataSocket.close();
    dataSocket=null;
    

    All good work with less than 40K file, but more are send corrupt.

    I try to open it on the FTP server and the error message is unexpected end of file.

    Try on the device, I see that there is a strange warning in the event log:

    E net.rim.tcp - TXch

    E net.rim.tcp - TXun

    ... repeated several times

    Any idea?

    To solve it I try split the file into 40K file, but I don't like so much.

    Thanks for the help!

    There are limits to how much you can send in a single connection with the connections on a BlackBerry (no WiFi) wireless data.  These limits depend on several factors, including the type of file (for example by using a browser, you can download large mp3 files).

    You can find more information here:

    http://supportforums.BlackBerry.com/T5/Java-development/HTTP-413-request-entity-too-large/Ta-p/44598...

    In this case, the Administration does not know what type of file you download.  In addition, I've seen comments from people downloading compressed files, it seems that these be unpacked in terms of count bytes (possible, since the MDS probably thinks he can get better compression than gzip).  Your magic number of 40K also referred to in some messages, take a look here:

    http://supportforums.BlackBerry.com/T5/Java-development/maximum-chunk-to-read-data-from-input-stream...

    In any case, I have tsuspect the short answer is that it is unlikely that you will be able to transfer a large file in a single block, using ftp.  I think you need to chunk it upward.

    Alternatively, you can watch the ftp protocol more complicated which involves blocking.  This will depend on your ftp server.

  • Limit the size of entry for Base64InputStream.decode?

    Hello everyone, I am working with the V4.5 target system and written an application that downloads data encoded in Base64 in an XML file. However, on files, I throw an IOException when trying to decode the byte data. I checked that I am indeed pointing to the correct data to Base64. Since the data is too large for a string, I use the decode method, which accepts the byte [], offset, length settings. the byte [] array is size of 301304 bytes (294 K). If it is too big is there another method to convert this?

    Yes, I hate it when I find myself chasing bugs in the diagnostic code.

    I have confirmed that there is indeed a large arrays of bytes decoding problem with Base64InputStream.decode. My guess is that the static method decode methods use some fixed internal buffer to perform their work. The solution is to read the data byte by byte. Instead of:

    bDecodedFile = Base64InputStream.decode(m_RawData, iFileStart, iLen);
    

    Use this:

    ByteArrayInputStream bis = new ByteArrayInputStream(m_RawData, iFileStart, iLen);Base64InputStream b64 = new Base64InputStream(bis);ByteArrayOutputStream bos = new ByteArrayOutputStream();byte[] buff = new byte[1024]; // faster than byte-at-a-timefor (int len = b64.read(buff); len != -1; len = b64.read(buff)) {    bos.write(buff, 0, len);}bDecodedFile = bos.toByteArray();
    

    That should get around the limit of 64K that you discovered.

    RIM should really document this.

  • HTTPS bug?

    I use HTTPS via WiFi on a 8900, do a GET around 3000 bytes.  Sometimes when the data hits the last part so phone data are binary zeros rather than what it should be.

    The HTTP response is divided on several IP packets.  The zeros start a package limit.  I have a trace of thread of the HTTP showing packages fine.   There is a proxy reversed providing SSL between the wire trace and phone, so its either that or the phone that is the source of the problem.  The proxy is Apache.

    Someone saw something like that?

    Phil.

    Ah, I think it's just a bug in my code I do not call repeatedly read (buffer, offset, len) if I don't have all the data.  Funny how this kind if thing comes to me _immediately_ after I have a question and not within hours of anguish and thinking beforehand.

    Phil

  • Download picture of snapshot...

    I'm new on java and ripe, but appreciate any help you can provide...

    I is currently developing an application and you need to download an image on a server using the POST method (php server-side). I used the examples found in the documentation and the Forum and I am close but not quite there.  The code runs without error, but there is no to reach the php script.  I can upload an image through the browser using the same php and it's successful, so I don't think that the problem is with the php.

    A couple of other keys...

    -Tests on storm Simulator (4.7)

    -Image (imgData) data is an array of bytes directly from VideoControl.getSnapShot (with jpeg encoding)

    -The Simulator is connected to the internet via the MDS Simulator

    EDIT: realized that my getResponseCode calls were prematurely flushing the output stream, if no data has been

    sent, if they have been removed. However, maintaining connection expires all trying to empty or getResponseCode with

    data to the output stream.  The previously successful empty stream, I got a response from the php script error so I don't know

    only one connection can be established on the server.

    Maybe my timeout is too short... but the image is<>

    My guess is that there is a mistake in my format for the message into several parts or something with the connection.

    The relevant code is attached. Any help would be appreciated.

    Thank you

    Parks

    String boundary = "---------------------------4664151417711";StreamConnection s = (StreamConnection)Connector.open("http://myserver/test.php;ConnectionTimeout=300000;deviceside=false");
    
    HttpConnection conn = (HttpConnection)s;conn.setRequestMethod(HttpConnection.POST);
    
    conn.setRequestProperty("Content-Type", "multipart/form-data;boundary="+boundary);conn.setRequestProperty("Content-Length", ""+String.valueOf(imgData.length));
    
    //int responseCode = conn.getResponseCode();
    
    ByteArrayOutputStream out = new ByteArrayOutputStream();OutputStream finalOut = conn.openOutputStream();
    
    //responseCode = conn.getResponseCode();//if (responseCode == conn.HTTP_OK) {//     log("HTTP connection O.K.");//} else {//     log("Response Code: " + String.valueOf(responseCode));//}
    
    String newLine = "\r\n";out.write("--".getBytes());out.write(boundary.getBytes());out.write(newLine.getBytes());String contDisp ="Content-Disposition: form-data; name=\"file\";filename=\"Image.jpg\"";String contEnc = "Content-Transfer-Encoding: binary";String type ="Content-Type: image/jpeg";out.write(contDisp.getBytes());out.write(newLine.getBytes());out.write(type.getBytes());out.write(newLine.getBytes());out.write(contEnc.getBytes());out.write(newLine.getBytes());out.write(newLine.getBytes());out.write(imgData);out.write(newLine.getBytes());out.write("--".getBytes());out.write(boundary.getBytes());out.write("--".getBytes());out.write(newLine.getBytes());finalOut.write(out.toByteArray());out.flush();//log(String.valueOf(conn.getResponseCode()));out.close();finalOut.flush();finalOut.close();
    
    InputStream is = null;is = conn.openInputStream();
    
    char buff = 512;int len;byte []data = new byte[buff];do{     System.out.println("READ");     len = is.read(data);
    
         if(len > 0){          System.out.println(new String(data, 0, len));     }}while(len>0);
    
    System.out.println("DONE");_startPush = false;
    

    I eventually determine that it was a problem with the MDS Simulator, I was using and not my code. At first, I used the stand-alone MDS Simulator, but once I started using the MDS packed with the individual JDE, my data began to flow.

    Thanks for the suggestion, if.

    Parks

  • Nexus5548up - is my etherchannel really 20G?

    Hi guys,.

    Im having trouble checking an etherchannel on my nexus and 6500...

    Now.

    I have a layer of distribution VSS (2 x 6500) and a bunch of nexus switches plugged.

    The link move as 1 x 10g to a switch and 1 x 10g to another in an etherchannel. (MEC)

    Even on the VSS, its an etherchannel.

    What I can't understand is if its really straight up to 20G because of the x 2 links in the GUY.

    An int see the watch always 10G but it shows the members... With two members, it should be a 20G GUY agreggated...

    I had put my statement of BS to 20000, but I don't think it really matters anyway...

    It goes the same for the end of 6500. Its a 10G UP UP channel ports. No mention of 20G.

    How can I be sure that it is infact running 20G 100%

    Thank you

    G

    port-channel 1 is on the rise

    Material: Port Channel, address: 547f.ee8c.9ae8 (bia 547f.ee8c.9ae8)

    Description: MEC01

    MTU 1500 bytes, BW 20000 Kbit, DLY 10 usec

    reliability 255/255, txload 1/255, rxload 1/255

    Encapsulation ARPA

    Port mode is trunk

    full-duplex, 10 Gb/s

    Input stream control is turned off, output flow control is disabled

    Switchport monitor is off

    EtherType is 0 x 8100

    Members in this channel: Eth1/1, Eth1/2

    Final cleaning of "show interface" counters never

    entry 30 seconds 4824 bps, 3 packets/s rate

    exit rate of 30 seconds 4296 bps, 3 packets/s

    Load-time #2: 5 minutes (300 seconds)

    Entry rate 2.03 Kbps, 2 pps; 960 output bit rate bps, 0 pps

    RX

    43 28 packets 1 multicasts packets broadcast unicast packets

    72 packages of entry 8909 bytes

    0 bytes removing storm Jumbo packets 0

    Giants of Runts 0 0 0 CRC 0 no buffer

    short entry error 0 0 0 overflow under-run 0 0 ignored

    0 0 bad etype watchdog fall 0 bad proto place 0 if drop

    0 entry with dribble 0 rejection of entry

    Rx pause 0

    TX

    30 packs 24 packages of multicast 3 broadcast unicast packets

    packages of exit 57 9612 bytes

    0 jumbo packets

    collision of errors 0 0 released 0 postponed end collision 0

    0 lost carrier 0 no 0 0 output babble carrier throw

    Tx break 0

    3 interface resets

    -CFG

    interface port-channel 1

    Description MEC01

    switchport mode trunk

    switchport trunk allowed vlan 1

    full duplex

    bandwidth 20000

    interface Ethernet1/1

    Description MEC01

    switchport mode trunk

    switchport trunk allowed vlan 1

    automatic speed

    full duplex

    channel-group 1

    interface Ethernet1/2

    Description MEC01

    switchport mode trunk

    switchport trunk allowed vlan 1

    automatic speed

    full duplex

    channel-group 1

    A given channel no matter what unique conversation will only flow in a single interface of the channel so your total thruput for a given conversation will be 10 gig.  You have 20 gig of pipeline to push all traffic as a part of the traffic goes down a single interface and some will go to the bottom of the other interface according to arr. algorithim you choose.

  • Help regarding the AES cipher and engines decryptor

    Hello

    I'm trying to encrypt the data using the AES algorithm.

    I am illegal Argument exception in the following code:

    Help, please... Badly pasted.

    public class AesTest  {        public static byte[] tmpIV =  //some byte[];        public static void main(String args[]) throws CryptoTokenException, CryptoUnsupportedOperationException, IOException{       InputStream encryptedInput = null;      InitializationVector iv = new InitializationVector(tmpIV);      AESKey key = new AESKey("AESTestingInProgress".getBytes());         OutputStream input = null;                              BlockEncryptor encryptor = new BlockEncryptor(                  new PKCS5FormatterEngine(                               new CBCEncryptorEngine(                                             new AESEncryptorEngine(key),iv )), input);                      byte[] buff = "ILoveMyPearl8100".getBytes();            encryptor.write(buff);                                          String toDecode =  new String(Base64OutputStream.encode( key.getData(), 0, key.getLength(), false, false));             byte[] exchangedData1 = Base64InputStream.decode(toDecode);                                     BlockDecryptor decryptor = new BlockDecryptor(                      new PKCS5UnformatterEngine(                                 new CBCDecryptorEngine(                                     new AESDecryptorEngine(key),iv )), encryptedInput);                 byte[] buffer = null;               decryptor.read(buffer);             }}
    

    Sorry for incorrect formatting code...

    Can you confirm that you continue to call read() to get the rest of the data?

    I also seriously suggest using factory methods, I described above instead of your own flow of nesting.

  • How to stop Audio recording when no sound is detected

    Hello friends,

    I want to develop the application which is record audio (implementation of this part, I already had)... but I want to stop recording when device has been not detect any noise over 2 sec audio...

    I already convert the data byte in data short tosigned that is giving me the length of the sound...

    int level = (signedShortToInt (b) * 100 / 32767); b is the data buffer

    mutable public static int signedShortToInt (byte [] b) {}
    result int = (b [0] & 0xff). (b [1] & 0xff)<>
    return the result;
    }

    I'm familiar with the sound of noise of air is in normal recording...

    Air noise level not more than 100 (im guessing).

    so I had checked the voice level is below 100 it will stop recording...

    My idea is correct or not?

    private void jesuissuper (byte [] buffer) {}
     
    for (int i = 0; i)< buffer.length;="" i++)="">
    Byte [] b = new byte [] {[i] buffer, buffer [i + 1]};
    int level = (signedShortToInt (b) * 100 / 32767);
    If (100 > level) {}
    Voice.StopThread ();
    }
    }
    }

    My Question is... How can I stop the recording when the level is low up to 2 sec and it is the Correctmethod to find the sound level?

    Hello guys,.

    I have not found any Solution for this so I drop this idea...

    I had found my solution up to convert PCM ampltude data... Using the Amplitude level I can is find the noise data and hat is given voice. and stop Audio in usin it

    But not audio recorded in the camera store...

    Thank you...

  • Questions of IDS-4215

    I bought this unit and I have problems with it, I did the restore and I put the new password and pick-me-up Dungeon to it, how to make out of it?

    CISCO SYSTEMS IDS-4215
    Embedded BIOS Version 5.1.7 03/02/04 11:20:35.01
    Compiled by dnshep
    Evaluate the Options of execution...
    Check for disc Image valid
    GRUB, loading stage1.5.

    GRUB loading, please wait...

    GRUB version 0.91 (632K lower / higher than 523264K memory)

    -------------------------------------------------------------------
    0: cisco IDS (vmlinuz - 2.4.26 - IDS-smp-bigphys}
    1: cisco IDS recovery
    -------------------------------------------------------------------

    Use the ^ and v keys to select which input is highlighted.
    Press ENTER to start the operating system selected, 'e' to change the
    orders before starting, 'a' to change the kernel arguments
    before you start, or 'c' for a command line.

    Entry 0 will be started automatically in 1 seconds.
    Start ' Cisco IDS (vmlinuz - 2.4.26 - IDS-smp-bigphys} ")

    root (hd0, 0)
    Filesystem type is ext2fs, partition type 0 x 83
    kernel (hd0,0)/boot/vmlinuz-2.4.26-IDS-smp-bigphys ro root = / dev/hdb1 had = flash)
    Console = ttyS0 bigphysarea = 16384
    [Linux bzImage, setup = 0 x 1400, size = 0x11b282]

    Linux version 2.4.26 - IDS-smp-bigphys ([email protected] / * / _build_master) (version gcc 2.96 20000731 (Red Hat Linux 7.3 2, 96-112)) #2 SMP Thu Aug 18 11:03:13 CDT 2005
    BIOS fitness card RAM:
    BIOS-e820: 0000000000000000 - 000000000009e000 (usable)
    BIOS-e820: 000000000009e000 - 00000000000a 0000 (reserved)
    BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
    BIOS-e820: 0000000000100000-0000000020000000 (usable)
    BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
    0 MB HIGHMEM available.
    512 MB LOWMEM available.
    On the node 0 totalpages: 131072
    area (0): 4096 pages.
    area (1): 126976 pages.
    area (2): 0 pages.
    DMI does not exist.
    ACPI: Unable to locate the PDSP
    Kernel command line: ro root = / dev/hdb1 had flash = console = ttyS0 bigphysarea = 16384
    ide_setup: a = flash
    Local APIC disabled by BIOS - reactivation.
    Local APIC found and activated!
    The initialization of the #0 CPU
    Detected 845,655 MHz processor.
    Console: the unit dummy color 80 x 25
    Calibrating delay loop... 1684.27 BogoMIPS
    Memory: 449240 k/524288 KB available (kernel code of 1621 k, k 74656 reserved, 639 k data, 136 k init, 0 k highmem)
    Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
    Get cache hash table entries: 512 (order: 0, 4096 bytes)
    Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
    The page cache hash table entries: 131072 (order: 7, 524288 bytes)
    CPU: L1 I cache: 16K, D L1 cache: 16K
    CPU: L2 cache: 128K
    Architecture Intel machine control supported.
    Intel machine check reporting enabled on CPU #0.
    Enabling fast FPU save and restore... done.
    Allowing the use of unmasked SIMD FPU exception... done.
    Checking 'hlt' instruction... Ok.
    UNIFIX POSIX compliance test
    MTRR: v1.40 (20010327) Richard Gooch ([email protected] / * /)
    MTRR: detected mtrr type: Intel
    CPU: L1 I cache: 16K, D L1 cache: 16K
    CPU: L2 cache: 128K
    Intel machine check reporting enabled on CPU #0.
    CPU0: Intel Celeron (Coppermine) stepping 0
    by timeslice cut CPU: 365,62 usecs.
    Motherboard undetected SMP.
    Turned off turned on CPU #0
    Value of ESR before activating the vector: 00000000
    Value of ESR after activating the vector: 00000000
    Local APIC interrupt using timer.
    calibration of APIC timer...
    ..... CPU clock speed is 845,6568 MHz.
    ... bus clock speed host is 99,4889 MHz.
    CPU: 0, clocks: 994889, slice: 497444
    CPU0
    Waiting on wait_init_idle (card = 0x0)
    All processors have been init_idle
    PCI: PCI BIOS revision 2.10 to 0xff6a9, last bus = 1 entry
    PCI: Using configuration type 1
    PCI: Hardware probing PCI
    PCI: Hardware probing PCI (bus 00)

    Limitation of direct transfers of PCI/PCI.
    ISAPNP: digitization of the PnP cards...
    ISAPNP: no Plug Play devices & found
    Linux NET4.0 for Linux 2.4
    Swansea University Computer Society NET3.039-based
    The initialization of the RT netlink sockets
    From kswapd
    bigphysarea: 16384 pages for 0xc1606000.
    Responsible journaled block device driver
    Pty: 2048 Unix98 ptys configured
    keyboard: there is no Timeout - at THE keyboard? (ed)
    keyboard: there is no Timeout - at THE keyboard? (f4)
    Series c 5.05 driver version (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI active ISAPNP
    ttyS00 at 0x03f8 (irq = 4) is a 16550
    ttyS01 at 0x02f8 (irq = 3) is a 16550
    V1.10F real time clock driver
    Initialized RAM disk driver: 16 discs RAM 4096 K size 1024 blocksize
    loop: loaded (max 8 devices)
    LPC: version 0.1 (August 18, 2005)
    Uniform cross-platform E-IDE review pilot: 7.00beta4 - 2.4
    IDE: assuming that the speed of the bus system 33 MHz for modes PIO; Override with idebus = xx
    PIIX4: Controller IDE PCI slot 00:07.1
    PIIX4: chipset revision 1
    PIIX4: not 100% natively: will probe IRQS later
    ide0: BM - DMA at 0xf800-0xf807, BIOS settings: had: pio, hdb:pio
    IDE1: BM - DMA at 0xf808-0xf80f, the BIOS settings: hdc:pio, hdd:pio
    has: SanDisk SDCFB-256, CFA HDD
    HDB: IC25N020ATCS04-0, ATA drive
    has: disable DMA (U) to SanDisk SDCFB-256
    BLK: queue c03bf1a8, I/O limit 4095 MB (mask 0xffffffff)
    ide0 at 0x1f0-0x1f7, 0x3f6 on irq 14
    has: attachment the ide disk driver.
    had: task_no_data_intr: status = 0 x 51 {DriveReady SeekComplete error}
    had: task_no_data_intr: error = 0 x 04 {DriveStatusError}
    had: 501760 sectors (257 MB) w/1KiB Cache, CHS = 497/16/63
    HDB: attached the ide disk driver.
    HDB: host protected area-online 1
    HDB: 39070080 sectors (20004 MB) w/1768KiB Cache, CHS = 2432/255/63, UDMA (33)
    Check the partition:
    has: hda1, hda2, hda3
    HDB: hdb1, hdb2 hdb3 hdb4
    IDE: late registration of the driver.
    Review SCSI subsystem driver: 1.00
    I2C-core. o: i2c core module version 2.8.7 (20040611)
    I2C - dev. o: i2c/dev entries driver module version 2.8.7 (20040611)
    I2C - proc.o version 2.8.7 (20040611)
    I2C-i801 version 2.8.7 (20040611)
    Net4: Linux 1.0 for NET4.0 TCP/IP
    IP protocols: ICMP, UDP, TCP, IGMP
    IP: routing 4096 buckets cache hash table, 32Kbytes
    TCP: Hash tables configured established 131072 bind (65536)
    Linux IP router multicast 0.06 and PIM - SM
    Net4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    kjournald starting.  Commit interval 5 seconds
    Ext3-fs: mounted filesystem with ordered data mode.
    VFS: Mounted root (ext3 file system) readonly.
    Release of memory used kernel: 136 k released
    INIT: initialization of version 2.84
    Welcome to CIDS v4.1 (1) S47 (Phoenix)
    Mounting proc filesystem: [OK]
    Configuration of the kernel parameters: [OK]
    Setting clock (localtime): my Apr 19 19:14:53 UTC 2010 [OK]
    Activation of swap partitions: [OK]
    Hostname parameter sensor: [OK]
    modprobe: can't open dependencies file /lib/modules/2.4.26-IDS-smp-bigphys/modules.dep (no such file or directory)
    Checking file system root
    / dev/hdb1: clean, 27334/83520 files, 56775/166666 blocks
    [/sbin/fsck.ext3 (1)-/] fsck.ext3 - a/dev/hdb1
    [OK]
    Back the root read / write file system: [OK]
    Find the module dependencies: depmod: can't open /lib/modules/2.4.26-IDS-smp-bigphys/modules.dep for writing
    [NOT]
    Checking of file systems
    / dev/hdb3: clean, 12 files, 2008, 1300/8032 blocks
    / dev/hda1: clean, 33/2656 files, blocks of 4184/10584
    / dev/hdb4: clean, 32/2280320 files, blocks 80505/4558443
    / dev/hda3: clean, 20/58232 files, 84949/232848 blocks
    Check all file systems.
    [/sbin/fsck.ext3 (1)-/ bootmnt] fsck.ext3 - a/dev/hda1
    [/sbin/fsck.ext3 (2)-/ usr/cids/idsRoot/shared] fsck.ext3 - a/dev/hdb3
    [/sbin/fsck.ext3 (2)-/ usr/cids/idsRoot/var] fsck.ext3 - a/dev/hdb4
    [/sbin/fsck.ext3 (2)-/ mnt/recovery] fsck.ext3 - a/dev/hda3
    [OK]
    Mounting local filesystems: [OK]
    Activation of local file system quotas: [OK]
    Activation of the swap space: [OK]
    Non-interactive startup entry
    Setting the network parameters: [OK]
    Set up the loopback interface: [OK]
    modprobe: can't open dependencies file /lib/modules/2.4.26-IDS-smp-bigphys/modules.dep (no such file or directory)
    Setting up interface eth1: [OK]
    Start recorder system: [OK]
    Kernel start recorder: [OK]
    Load keymap: [OK]
    Loading system font: [OK]
    The initialization of the random number generator: [OK]
    Audit of the allocated kernel memory: [OK]
    No XL map shows
    Charge Cidmodcap: WARNING: the kernel-module version mismatch
    /lib/modules/CID/cidmodcap.o was compiled for kernel version 2.4.18 - 5smpbigphys
    While this kernel version 2.4.26 - IDS-smp-bigphys
    /lib/modules/CID/cidmodcap.o: symbol register_chrdev_Rsmp_0450333d pending
    /lib/modules/CID/cidmodcap.o:
    Tip: You are trying to load a module without a GPL compatible license
    and unresolved symbols.  Contact the provider module for
    help, only they can help you.

    [NOT]
    Creation of boot.info [OK]
    Checking for changes to the system since the last boot [WARNING]
    Check the identification of the model [OK]
    Model: IDS-4215
    Error: mainApp has not started
    From sshd: [OK]
    From xinetd: [OK]
    From crond: [OK]
    From anacron: [OK]

    Login: cisco
    Password:
    You are required to change your password immediately (years)
    Change password for cisco
    (ongoing) UNIX password:
    New password:
    Retype the new password:
    NOTICE *.
    This product contains cryptographic features and is under the United States
    and local laws governing the import, export, transfer and use. Delivery
    Cisco cryptographic products does not imply permission to third parties to import,
    export, distribute or use encryption. Importers, exporters, distributors and
    users
    sensor connection: cisco
    Password:
    NOTICE *.
    This product contains cryptographic features and is under the United States
    and local laws governing the import, export, transfer and use. Delivery
    Cisco cryptographic products does not imply permission to third parties to import,
    export, distribute or use encryption. Importers, exporters, distributors and
    users are responsible for compliance with U.S. and local country. With the help of
    This product you agree to comply with the regulations and laws in force. If you
    are unable to meet the United States and local laws, return the product.

    A summary of U.S. laws governing Cisco cryptographic products to:
    http://www.Cisco.com/WWL/export/crypto

    If you need assistance please contact us by mail at
    [email protected] / * /.

    connection of the sensor:

    Since you did the recovery I assumeyou already tried to the unit powering down and back up.

    This is a weird problem I havn't seen before, but sometimes the sensors get currupt and need a full reimage to return to normal.

    I would like to download the most recent image 4215 and TFTP in your sensor in ROMMON.

    http://www.Cisco.com/en/us/partner/docs/security/IPS/6.0/installation/guide/hwImage.html#wp1030874

    -Bob

Maybe you are looking for

  • Satellite P300-1GL - how to make a HARD drive recovery file?

    Hi, (I'm french, well, sorry for the mistakes English grammary) When I bought my computer last year, I couldn't create a recovery disk, I tried so many DVD, but there's an error in the end every time! : s I dropped the banding I'll ever need...Hem he

  • browsersupportapp.* * in safari

    After clicking on a Web site, I had a nice pop up in Safari called browsersupportapp.* * that it freezes and causes me to manually close my computer, only to reappear when I connect again on Safari. Did someone experienced this and how do I get rid o

  • change of sub vi pop up

    Is it possible that when clicking on a sub vi on my schematic, I get the sub block screws instead of its façade? Thank you

  • Dell D610 latitude, windows can not find CD/dvd-rom (code 41)

    Windows xp displays the message "windows correctly loading the device driver for this hardware, but can't find the hardware device (code 41). Device type CD-ROM/dvd-rom (HL-DT-ST CDRW/DVD GCC 4244)

  • HP ENVY 5530: printers

    I recently bought a HP ENVY 5530 printer all-in-one. Everything ok except when it comes to print photos and images. The quality is terrible. I tried changing the settings of different paper etc. but it doesn't seem to make a difference.  He just terr