Click here to Skip to main content
15,886,518 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Windows 95 computer with 60GB IDE HDD... could I replace the HDD for a SSD? Pin
Joan M15-Aug-21 23:48
professionalJoan M15-Aug-21 23:48 
GeneralRe: Windows 95 computer with 60GB IDE HDD... could I replace the HDD for a SSD? Pin
Joan M16-Aug-21 0:14
professionalJoan M16-Aug-21 0:14 
GeneralRe: Windows 95 computer with 60GB IDE HDD... could I replace the HDD for a SSD? Pin
Joan M16-Aug-21 0:15
professionalJoan M16-Aug-21 0:15 
GeneralRe: Windows 95 computer with 60GB IDE HDD... could I replace the HDD for a SSD? Pin
Richard MacCutchan16-Aug-21 0:47
mveRichard MacCutchan16-Aug-21 0:47 
QuestionUSB for Power? Pin
James Curran11-Feb-21 23:30
James Curran11-Feb-21 23:30 
AnswerRe: USB for Power? Pin
Dave Kreskowiak12-Feb-21 4:51
mveDave Kreskowiak12-Feb-21 4:51 
GeneralRe: USB for Power? Pin
James Curran12-Feb-21 5:35
James Curran12-Feb-21 5:35 
GeneralRe: USB for Power? Pin
Dave Kreskowiak12-Feb-21 6:07
mveDave Kreskowiak12-Feb-21 6:07 
GeneralRe: USB for Power? Pin
James Curran12-Feb-21 6:47
James Curran12-Feb-21 6:47 
GeneralRe: USB for Power? Pin
Dave Kreskowiak12-Feb-21 6:53
mveDave Kreskowiak12-Feb-21 6:53 
GeneralRe: USB for Power? Pin
Whyteboar1-Jul-21 6:53
Whyteboar1-Jul-21 6:53 
GeneralRe: USB for Power? Pin
trønderen27-Feb-22 14:31
trønderen27-Feb-22 14:31 
AnswerRe: USB for Power? Pin
Gerry Schmitz12-Feb-21 8:58
mveGerry Schmitz12-Feb-21 8:58 
GeneralMessage Closed Pin
11-Jul-21 10:03
Member 1520359911-Jul-21 10:03 
GeneralMessage Closed Pin
11-Jul-21 10:04
Member 1520359911-Jul-21 10:04 
QuestionIntermittent 'Pauses' Pin
Kevin Marois31-Jan-21 8:53
professionalKevin Marois31-Jan-21 8:53 
AnswerRe: Intermittent 'Pauses' Pin
Dave Kreskowiak31-Jan-21 10:52
mveDave Kreskowiak31-Jan-21 10:52 
GeneralRe: Intermittent 'Pauses' Pin
Kevin Marois31-Jan-21 11:03
professionalKevin Marois31-Jan-21 11:03 
AnswerRe: Intermittent 'Pauses' Pin
Richard Andrew x6431-Jan-21 12:47
professionalRichard Andrew x6431-Jan-21 12:47 
AnswerRe: Why Doesn't My Computer Boot When Installing RAM? Pin
Richard MacCutchan15-Jan-21 22:39
mveRichard MacCutchan15-Jan-21 22:39 
AnswerRe: Why Doesn't My Computer Boot When Installing RAM? Pin
Gerry Schmitz16-Jan-21 4:23
mveGerry Schmitz16-Jan-21 4:23 
QuestionGpioTestTool Pin
Bernhard Hiller14-Jan-21 22:16
Bernhard Hiller14-Jan-21 22:16 
QuestionMy GLINK USB 2.0 extension cable isn't detecting External Hard Drive, though Pen drive is detected. How do I make sure the EHD is detected? Pin
priyamtheone6-Jan-21 6:41
priyamtheone6-Jan-21 6:41 
QuestionAdvice needed for FPGA Pin
Patrice T5-Jul-20 1:16
mvePatrice T5-Jul-20 1:16 
QuestionSerial port takes a long time to respond Pin
Member 1480999628-Apr-20 6:12
Member 1480999628-Apr-20 6:12 
Hi,

Im currently making an app on windows forms trying to program a micro over UART. I can achieve it, although it is taking a long time to carry out the program. I have used stopwatches to determine it is my read function taking up the majority of the time. When i try to read the micros response from each command I have to wait for all of it, which is why im using a while loop in the code below, if the returned message size is not what i expect. What im wondering is, if there is any way to speed up this process. The response from the micro should be pretty fast, its running at a baudrate of 115200, meaning the whole 512 kb file should in theory take just over 30 seconds to complete, at the moment it is more than double that, at 80 seconds.

private string CheckResponse(int mSize)
{
    //ComPort.DataReceived += SerialPortDataReceived;

    string response;
    int intBuffer;
    intBuffer = ComPort.BytesToRead;
    byte[] byteBuffer = new byte[intBuffer];
    ComPort.Read(byteBuffer, 0, intBuffer);

    response = Encoding.ASCII.GetString(byteBuffer);

    while(response.Length != mSize)
    {
        intBuffer = ComPort.BytesToRead;
        byteBuffer = new byte[intBuffer];
        ComPort.Read(byteBuffer, 0, intBuffer);
        response += Encoding.ASCII.GetString(byteBuffer);
    }

    return response;
}


Any help greatly appreciated.

Blair

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.