Click here to Skip to main content
15,861,168 members
Home / Discussions / C#
   

C#

 
AnswerRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
0x01AA11-Jan-22 8:36
mve0x01AA11-Jan-22 8:36 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617513-Jan-22 1:14
Member 1549617513-Jan-22 1:14 
AnswerRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn11-Jan-22 16:11
sitebuilderLuc Pattyn11-Jan-22 16:11 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
jeron112-Jan-22 7:34
jeron112-Jan-22 7:34 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617513-Jan-22 0:56
Member 1549617513-Jan-22 0:56 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn13-Jan-22 5:17
sitebuilderLuc Pattyn13-Jan-22 5:17 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617516-Jan-22 21:19
Member 1549617516-Jan-22 21:19 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn17-Jan-22 2:48
sitebuilderLuc Pattyn17-Jan-22 2:48 
OK, it looks like your setup is using binary data and a simple protocol with some checksum. I've done lots of those in the past. Most of the time, the problem is with the checksum. In order to help you, I need as much information as possible, such as:

1. what is the function of your peripheral? what kind of device is it? does it have its own user interface? any display? any LEDs?

2. what is the status of your peripheral? is it an existing commercial product? who is manufacturing it? what would be its ordering code? does it show on any website? or is it (a prototype of) your own development? or someone else's ongoing development?

3. is the programming or communication with it documented? is such document publicly available? can you provide a link to it? if not, can you copy:
- the list of supported commands;
- several published examples of commands/responses;
- detailed explanation on the checksum.

4. are you capable of sending it some command that actually causes something to happen at the peripheral side? e.g. power down? beep? blink a LED? ...

5. are you capable of sending it some command that actually results in something being sent back to your PC? if so, please provide several examples of what you send and what you receive (in all hex please).

6. in your original post you mentioned the command 0x25 0x52 0x02 0x01 0xDE
if 0xDE is to be the LRC, I can't imagina what checksum algorithm is being used (sum or XOR would yield very different values)

7. In your latest message here you mentioned
Request „Read" : « %R NUM CMD LRC »
Request „Write": « %W NUM CMD Data LRC »

It is not clear:
- whether CMD is always one byte, or could be many bytes.
- whether NUM should or should not include LRC
- how exactly LRC should be calculated

8. You wrote
rtxtDataArea.Text = "250CUHD-4K02.10.09C22";

Where did that string come from? did you actually receive that? or was it in some document? or what?

it does not easily fit the pattern « %R NUM CMD DATA LRC »
yes 0x25 is %
and 0x0C (12.) would be NUM, the length
but CMD seems missing
and to match length 12. the data probably was: U H D - 4 K 0x02 . 0x10 . 0x09 C
and finally LRC = 0x22

or do you see another way of matching this up to the pattern?

9. in one of your posts you mentioned
Read = 0x90 & Read = 0x9F

which is a complete mystery to me


Please provide ample, accurate, reliable answers as much as you can to each of my numbered paragraphs if you want this solved any time soon...
Luc Pattyn [My Articles]
The Windows 11 "taskbar" is disgusting. It should be at the left of the screen, with real icons, with text, progress, etc. They downgraded my developer PC to a bloody iPhone.

GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617517-Jan-22 4:04
Member 1549617517-Jan-22 4:04 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn17-Jan-22 4:16
sitebuilderLuc Pattyn17-Jan-22 4:16 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Sanjay Siwach17-Jan-22 4:46
Sanjay Siwach17-Jan-22 4:46 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn17-Jan-22 5:02
sitebuilderLuc Pattyn17-Jan-22 5:02 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Sanjay Siwach17-Jan-22 5:15
Sanjay Siwach17-Jan-22 5:15 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Sanjay Siwach17-Jan-22 5:23
Sanjay Siwach17-Jan-22 5:23 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Sanjay Siwach17-Jan-22 9:46
Sanjay Siwach17-Jan-22 9:46 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn17-Jan-22 11:40
sitebuilderLuc Pattyn17-Jan-22 11:40 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617517-Jan-22 21:51
Member 1549617517-Jan-22 21:51 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Luc Pattyn18-Jan-22 2:29
sitebuilderLuc Pattyn18-Jan-22 2:29 
QuestionEasy way programmatically select step by step button. Pin
Member 154938239-Jan-22 2:20
Member 154938239-Jan-22 2:20 
AnswerRe: Easy way programmatically select step by step button. Pin
OriginalGriff9-Jan-22 2:24
mveOriginalGriff9-Jan-22 2:24 
GeneralRe: Easy way programmatically select step by step button. Pin
Member 154938239-Jan-22 2:37
Member 154938239-Jan-22 2:37 
GeneralRe: Easy way programmatically select step by step button. Pin
OriginalGriff9-Jan-22 3:09
mveOriginalGriff9-Jan-22 3:09 
AnswerRe: Easy way programmatically select step by step button. Pin
#realJSOP9-Jan-22 3:15
mve#realJSOP9-Jan-22 3:15 
AnswerRe: Easy way programmatically select step by step button. Pin
Gerry Schmitz9-Jan-22 7:17
mveGerry Schmitz9-Jan-22 7:17 
GeneralRe: Easy way programmatically select step by step button. Pin
OriginalGriff9-Jan-22 9:38
mveOriginalGriff9-Jan-22 9:38 

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.