RS232/Socket Programming

abpsoln

Banned
Joined
May 26, 2013
Messages
331
Reaction score
0
can recommend some resources for learning TCP/IP socket programming and C++ terms?
 

abpsoln

Banned
Joined
May 26, 2013
Messages
331
Reaction score
0
1. My boss requires me to work on RS232 serial comm
2.and also socket programming on TCP/IP to transport data
 

abpsoln

Banned
Joined
May 26, 2013
Messages
331
Reaction score
0
9_PIN_PIN_OUT.GIF

This is the pin out of RS232
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
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.
 

hawthorne

Arch-Supremacy Member
Joined
May 9, 2006
Messages
11,706
Reaction score
210
long long time ago developed an app to comms via RS232 on specialised hardware before
 

commach

Great Supremacy Member
Joined
Apr 11, 2001
Messages
53,997
Reaction score
18
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.
 

abpsoln

Banned
Joined
May 26, 2013
Messages
331
Reaction score
0
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,
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
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.
 

abpsoln

Banned
Joined
May 26, 2013
Messages
331
Reaction score
0
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
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
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

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,547
Reaction score
1,301
are they different parts to be assembly together?
must buy?

The main board is a separate purchase from the various Shields boards. If you want something complete, you probably should look at what you have suggested yourself earlier on.

I'm just suggesting something you can try out, you have to do the research :)
 

abpsoln

Banned
Joined
May 26, 2013
Messages
331
Reaction score
0
Is it possible to control the microprocessor using the RS232 interfaces,
such that when DI is 3 then I will trigger an alarm to send an email to the server?
 
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 Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top