Changeset 1622


Ignore:
Timestamp:
02/19/10 22:15:59 (11 years ago)
Author:
landlord
Message:

added some delay in the phoenix code to try to help with pl2303. I'll need to dig deeper if this doesn't help as it might be a pl2303 hardware/firmware issue and the timming is most probably why we run into this now

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1610 r1622  
    341341endif (OSCamOperatingSystem MATCHES "Linux")
    342342
     343if (WEBIF)
     344    add_definitions ("-DWEBIF")
     345endif (WEBIF)
     346
    343347#----------------------- put svnversion in the build ------------------------------
    344348# at every target rebuild, we re-build the oscam.c compilation...
     
    379383# some optimisations
    380384if (OSCamOperatingSystem MATCHES "Mac OS X")
    381 add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -m32")
     385    add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer -m32")
    382386elseif (OSCAM_SYSTEM_NAME MATCHES "NSLU2")
    383 add_definitions ("-O2 -Winline -Wall -finline-functions -fomit-frame-pointer")
     387    add_definitions ("-O2 -Winline -Wall -finline-functions -fomit-frame-pointer")
    384388else (OSCamOperatingSystem MATCHES "Mac OS X")
    385 add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer")
     389    add_definitions ("-O2 -Winline -Wall -Wextra -finline-functions -fomit-frame-pointer")
    386390endif (OSCamOperatingSystem MATCHES "Mac OS X")
    387391
     
    474478    message (STATUS "  use system libusb functions")
    475479endif (HAVE_LIBUSB)
     480if (WEBIF)
     481    message (STATUS "  Web interface enabled")
     482endif (WEBIF)
    476483message (STATUS "")
  • trunk/csctapi/ifd_phoenix.c

    r1584 r1622  
    113113    call (Phoenix_SetBaudrate (DEFAULT_BAUDRATE));
    114114        for(i=0; i<3; i++) {
     115            cs_sleepms(200); // pause for 200ms as this might help with the PL2303
    115116            IO_Serial_Flush();
    116117            call (IO_Serial_SetParity (parity[i]));
     
    125126#endif
    126127                IO_Serial_RTS_Set();
    127             cs_sleepms(50);
     128            cs_sleepms(200); // we went form 50 to 200 as this might help with the PL2303
    128129#ifdef USE_GPIO  //felix: set card reset hi (inactive)
    129130            if (gpio_detect) {
     
    133134#endif
    134135                IO_Serial_RTS_Clr();
     136            cs_sleepms(200); // pause for 200ms as this might help with the PL2303
    135137            IO_Serial_Ioctl_Lock(0);
    136138            if(ATR_InitFromStream (atr, ATR_TIMEOUT) == ATR_OK)
     
    196198        call (tcgetattr (reader[ridx].handle, &tio) != 0);
    197199        call (IO_Serial_SetBitrate (baudrate, &tio));
     200        cs_sleepms(200); // pause for 200ms as this might help with the PL2303
    198201        call (IO_Serial_SetProperties(tio));
     202        cs_sleepms(200); // pause for 200ms as this might help with the PL2303
    199203    }
    200204    current_baudrate = baudrate; //so if update fails, current_baudrate is not changed either
Note: See TracChangeset for help on using the changeset viewer.