Click here to Skip to main content
15,446,336 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
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
MemberBernhard 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
Memberpriyamtheone6-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
MemberMember 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
AnswerRe: Serial port takes a long time to respond Pin
Richard MacCutchan28-Apr-20 21:36
mveRichard MacCutchan28-Apr-20 21:36 
AnswerRe: Serial port takes a long time to respond Pin
Patrice T5-Jul-20 0:53
mvePatrice T5-Jul-20 0:53 
QuestionDisplay Port to HDMI Pin
Richard Andrew x643-Apr-20 3:16
professionalRichard Andrew x643-Apr-20 3:16 
AnswerRe: Display Port to HDMI Pin
Duc Axenn30-May-21 11:20
MemberDuc Axenn30-May-21 11:20 
QuestionGreen shaded images from USB camera... Pin
Kornfeld Eliyahu Peter8-Mar-20 22:43
professionalKornfeld Eliyahu Peter8-Mar-20 22:43 
QuestionUSB Problem Pin
Kevin Marois8-Mar-20 14:49
professionalKevin Marois8-Mar-20 14:49 
GeneralRe: USB Problem Pin
Dave Kreskowiak16-Mar-20 4:52
mveDave Kreskowiak16-Mar-20 4:52 
GeneralRe: USB Problem Pin
Richard MacCutchan16-Mar-20 5:24
mveRichard MacCutchan16-Mar-20 5:24 
GeneralRe: USB Problem Pin
Dave Kreskowiak16-Mar-20 7:46
mveDave Kreskowiak16-Mar-20 7:46 
QuestionGemalto IDBridge CT700 (PC PIN PAD) Experience Pin
_Asif_19-Jan-20 23:09
professional_Asif_19-Jan-20 23:09 
AnswerRe: Gemalto IDBridge CT700 (PC PIN PAD) Experience Pin
Richard MacCutchan19-Jan-20 23:17
mveRichard MacCutchan19-Jan-20 23:17 
AnswerRe: Gemalto IDBridge CT700 (PC PIN PAD) Experience Pin
Gerry Schmitz20-Jan-20 9:24
mveGerry Schmitz20-Jan-20 9:24 
AnswerRe: Gemalto IDBridge CT700 (PC PIN PAD) Experience Pin
Jj Esterel3-Jun-22 6:21
MemberJj Esterel3-Jun-22 6:21 
QuestionWhat limits how much of the memory a PCIe device can address? Pin
Rakanoth27-Dec-19 7:25
MemberRakanoth27-Dec-19 7:25 
QuestionHard Drive Firmware Pin
Antiquity13118-Oct-19 3:54
MemberAntiquity13118-Oct-19 3:54 
AnswerRe: Hard Drive Firmware Pin
Dave Kreskowiak8-Nov-19 2:40
mveDave Kreskowiak8-Nov-19 2:40 
QuestionTeledyne DALSA BOA SPOT Camera access Pin
Andreas Saurwein26-Sep-19 4:05
MemberAndreas Saurwein26-Sep-19 4:05 

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.