Read data from a serial port that doesnt create a newline

Tammen 26 Reputation points
2022-12-01T00:08:08.593+00:00

Hi i have a device connected to a COM Port that accepts commands from my pc and sends back confirmation but doesn't create a newline leaving it open and from what i can tell because the line doesn't end the datarecievehandler doesn't even get called i have had some success using the SerialPort.Newline property and changing it to 1 or 0 which prints broken data fragments was wondering if anyone else had any ideas below is an image of what's meant to be read off com port it was gotten using tera term that picture has 3 confirmations in it which are the three 07010's but there are a couple more different codes the device can receive

265867-problem.png

Sorry if the question is a bit hard to understand am still trying to wrap my head around it myself

Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Tammen 26 Reputation points
    2022-12-14T00:24:57.24+00:00

    @Jack J Jun hi jack I was able to solve the problem yesterday I ended up using the ReadByte() method after experimenting with changing the method parameters to suit the output of my device. Thanks for your help.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.