HWZ Forums

Login Register FAQ Mark Forums Read

RS232/Socket Programming

Reply
 
LinkBack Thread Tools
Old 26-05-2013, 09:54 PM   #1
Banned
 
Join Date: May 2013
Posts: 330
RS232/Socket Programming

Has anyone come into contact with this before?
abpsoln is offline   Reply With Quote
Old 26-05-2013, 10:25 PM   #2
Banned
 
Join Date: May 2013
Posts: 330
can recommend some resources for learning TCP/IP socket programming and C++ terms?
abpsoln is offline   Reply With Quote
Old 27-05-2013, 12:19 AM   #3
Arch-Supremacy Member
 
davidktw's Avatar
 
Join Date: Apr 2010
Posts: 10,091
Has anyone come into contact with this before?
Which are you actually interested in? serial comm or network socket? They are not the same you know

Last edited by davidktw; 27-05-2013 at 12:46 AM..
davidktw is online now   Reply With Quote
Old 27-05-2013, 08:36 AM   #4
Banned
 
Join Date: May 2013
Posts: 330
1. My boss requires me to work on RS232 serial comm
2.and also socket programming on TCP/IP to transport data
abpsoln is offline   Reply With Quote
Old 27-05-2013, 02:05 PM   #5
Banned
 
Join Date: May 2013
Posts: 330

This is the pin out of RS232
abpsoln is offline   Reply With Quote
Old 27-05-2013, 02:23 PM   #6
Arch-Supremacy Member
 
davidktw's Avatar
 
Join Date: Apr 2010
Posts: 10,091
1. My boss requires me to work on RS232 serial comm
2.and also socket programming on TCP/IP to transport data
RS232 Comm programming is of lower level than socket programming since you need to take care of more low-level communication details like baud rate etc. Don't have much experience with RS232 Serial Communication.

Socket programming is fine with me. Often doing it.

This is a forum, so you just post what you want to know and see if anyone has anything to response you.
davidktw is online now   Reply With Quote
Old 28-05-2013, 10:48 AM   #7
Banned
 
Join Date: May 2013
Posts: 330
DB9 should be the other way round?
abpsoln is offline   Reply With Quote
Old 28-05-2013, 10:50 AM   #8
Supremacy Member
 
hawthorne's Avatar
 
Join Date: May 2006
Posts: 7,964
long long time ago developed an app to comms via RS232 on specialised hardware before
hawthorne is online now   Reply With Quote
Old 28-05-2013, 08:15 PM   #9
Great Supremacy Member
 
Join Date: Apr 2001
Posts: 53,985
What kind of task you are required to accomplish?

Simply asking about RS232 programming is not helping in anyway.

Please provide us more information or precisely what type of machine/device required to communicate via RS232/RS232C commonly found on CNC machines for DNC operation. You might not need to learn about programming if all you need is to establish communication between a COMM port and a industrial machine via RS232/RS232C regardless of DB9/DB25 port.
__________________
CSI in HWC, commach spotting idiots

Experience is the teacher of all things.
Julius Caesar
commach is offline   Reply With Quote
Old 01-06-2013, 09:06 PM   #10
Banned
 
Join Date: May 2013
Posts: 330
What kind of task you are required to accomplish?

Simply asking about RS232 programming is not helping in anyway.

Please provide us more information or precisely what type of machine/device required to communicate via RS232/RS232C commonly found on CNC machines for DNC operation. You might not need to learn about programming if all you need is to establish communication between a COMM port and a industrial machine via RS232/RS232C regardless of DB9/DB25 port.
Hi there,
I am trying to build and IDS systems,
RS232 is connected to sense data input from raw data for processing
RJ45 cable to connect to the internet for monitoring
Digital input output is used for is used for voltage sensing.

The idea is to build a intrusion detection system such that when someone tried to cut the wiring of 12V battery it will rely on the battery,
abpsoln is offline   Reply With Quote
Old 02-06-2013, 01:48 AM   #11
Arch-Supremacy Member
 
davidktw's Avatar
 
Join Date: Apr 2010
Posts: 10,091
Hi there,
I am trying to build and IDS systems,
RS232 is connected to sense data input from raw data for processing
RJ45 cable to connect to the internet for monitoring
Digital input output is used for is used for voltage sensing.

The idea is to build a intrusion detection system such that when someone tried to cut the wiring of 12V battery it will rely on the battery,
Just out of the box, do you need RS232 to detect a flip in voltage ? I say a microcontroller like Arduino can do the trick. Have a resistors divider to patch the 12V to one of the input pin at 5V. Have an ethernet shield to the Arduino, run a simple loop watching the input pin, once it drop for more than a certain threshold counts (prevent false positive), send a SNMP trap out to an system out there. A very simple trigger into the IP world.
davidktw is online now   Reply With Quote
Old 02-06-2013, 09:51 AM   #12
Banned
 
Join Date: May 2013
Posts: 330
Just out of the box, do you need RS232 to detect a flip in voltage ? I say a microcontroller like Arduino can do the trick. Have a resistors divider to patch the 12V to one of the input pin at 5V. Have an ethernet shield to the Arduino, run a simple loop watching the input pin, once it drop for more than a certain threshold counts (prevent false positive), send a SNMP trap out to an system out there. A very simple trigger into the IP world.
I am looking for one microcontroller with:
8 DIO
1 RJ45
1 RS232
abpsoln is offline   Reply With Quote
Old 02-06-2013, 04:52 PM   #13
Arch-Supremacy Member
 
davidktw's Avatar
 
Join Date: Apr 2010
Posts: 10,091
I am looking for one microcontroller with:
8 DIO
1 RJ45
1 RS232
Arduino - ArduinoSoftwareRS232
Arduino - ArduinoEthernetShield
Arduino - ArduinoBoardUno (14 DIO)
davidktw is online now   Reply With Quote
Old 02-06-2013, 04:57 PM   #14
Banned
 
Join Date: May 2013
Posts: 330
Thanks.I may just suggest this.

Have you heard of ADAM 4051 modules before?
Similiar?Difficult?
abpsoln is offline   Reply With Quote
Old 02-06-2013, 05:05 PM   #15
Arch-Supremacy Member
 
davidktw's Avatar
 
Join Date: Apr 2010
Posts: 10,091
Thanks.I may just suggest this.

Have you heard of ADAM 4051 modules before?
Similiar?Difficult?
No idea. Microcontroller is not my specialty. Arduino is just one of my lesser interest, you can call it.
davidktw is online now   Reply With Quote
Reply
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ. Forum members and moderators are responsible for their own posts.

Please refer to our Terms of Service for more information.


Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On