Author Topic: How to get a program to replicate recieve data Hyper Terminal Exactly  (Read 11379 times)

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Hi All,

Odd question however I am trying to copy some out put from a device to match it's output when Hyper Terminal sends the exact same commands the command in question replies with

#00:FF 01:FF 02:FF 03:FF 04:FF 05:FF 06:FF 07:FF 08:FF 09:FF
0A:FF 0B:FF 0C:FF 0D:FF 0E:FF 0F:FF 10:FF 11:FF 12:FF 13:FF
14:FF 15:FF 16:FF 17:FF 18:FF 19:FF 1A:FF 1B:FF 1C:FF 1D:FF
1E:FF 1F:FF 20:FF 21:FF 22:FF 23:FF 24:FF 25:FF 26:FF 27:FF
28:FF 29:FF 2A:FF 2B:FF 2C:FF 2D:FF 2E:FF 2F:FF 30:FF 31:FF
32:FF 33:FF 34:FF 35:FF 36:FF 37:FF 38:FF 39:FF 3A:FF 3B:FF
3C:FF 3D:FF 3E:FF 3F:FF 40:FF 41:FF 42:FF 43:FF 44:FF 45:FF
46:FF 47:FF 48:FF 49:FF 4A:FF 4B:FF 4C:FF 4D:FF 4E:FF 4F:FF
50:FF 51:FF 52:FF 53:FF 54:FF 55:FF 56:FF 57:FF 58:FF 59:FF
5A:FF 5B:FF 5C:FF 5D:FF 5E:FF 5F:FF 60:FF 61:FF 62:FF 63:FF
64:FF 65:FF 66:FF 67:FF 68:FF 69:FF 6A:FF 6B:FF 6C:FF 6D:FF
6E:FF 6F:FF 70:FF 71:FF 72:FF 73:FF 74:FF 75:FF 76:FF 77:FF
78:FF 79:FF 7A:FF 7B:FF 7C:FF 7D:FF 7E:FF 7F:FF

However my code see only

.#00:FF 01:FF 02:FF 03:FF 04:FF 05:FF 06:FF 07:FF 08:FF 09:FF
.0A:FF 0B:FF 0C:FF 0D:FF 0E:FF 0F:FF 10:FF 11:FF 12:FF 13:FF
.14:FF 15:FF 16:FF 17:FF 18:FF 19:FF 1A:F
I am not seeing F:1B on wards the method I am using for this is
ReadLine(),
Anyone any ideas, please....
Glenn

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to get a program to replicate recieve data Hyper Terminal Exactly
« Reply #1 on: December 12, 2012, 01:06:59 pm »
Have you tried Read or delay, then ReadExisting?

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: How to get a program to replicate recieve data Hyper Terminal Exactly
« Reply #2 on: December 13, 2012, 04:39:36 am »
I haven't I will give it ago later, thank you!!

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: How to get a program to replicate recieve data Hyper Terminal Exactly
« Reply #3 on: December 13, 2012, 02:39:06 pm »
Using the method in todays question I have solved this problem!
Glenn

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to get a program to replicate recieve data Hyper Terminal Exactly
« Reply #4 on: December 13, 2012, 02:45:30 pm »
Excellent!