Click here to Skip to main content
15,883,769 members
Home / Discussions / C#
   

C#

 
GeneralMessage Closed Pin
11-Jan-22 2:38
Member 1549617511-Jan-22 2:38 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
OriginalGriff11-Jan-22 2:53
mveOriginalGriff11-Jan-22 2:53 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617511-Jan-22 3:18
Member 1549617511-Jan-22 3:18 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
OriginalGriff11-Jan-22 3:53
mveOriginalGriff11-Jan-22 3:53 
GeneralRe: Serial communication between LPC2132 microcontroller and serial interface PC through RS 232 and RJ45 Pin
Member 1549617513-Jan-22 2:47
Member 1549617513-Jan-22 2:47 
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 
When a peripheral seems to return whatever you send to it, that usually means your cabling is faulty, e.g. you forgot to connect the voltage reference ("ground"), or you switched data in and data out wires.

Suggestion: get your hardware in working order before investing in software.
Things that may help:
1. write a simple (I repeat: simple) program that just sends a command periodically, at best something your peripheral should react on with some visual feedback (e.g. blinking a LED).
Best: add some LEDs to your peripheral and implement one-byte commands to turn them on/off.
("observability is the key to success")
2. alternatively: do whatever it takes to make your peripheral send known data, and capture that with a (virtual) terminal.
3. do make sure your serial port parameters (baud rate, parity, stop bits,...) are identical on both sides.

As long as neither 1 or 2 works, your hardware connection is not good.

PS: NEVER write software that swallows exceptions; they exist to tell you what goes wrong where; ignoring them (or reducing them to error=true) is a criminal offence.

Smile | :)
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
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 
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 

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.