Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I am really beginner in Linux and in electronics but I want to learn programming hardware using raspberry pi board, since I have one (model B).

I have installed raspbian os, now I want to understand how to connect RS232 and control my raspberry using my Linux PC (I learn how to do it using ssh). For me this is very interesting area but I don't know where to start and how to start. My problem is I totally don't know how to work with RS232, how to connect it and what should happen if I correctly connect RS232 to my Linux PC. Can you give some good tutorials for totally beginners (would be great with some videos)

If I made mistake in question please don't close it, let me know reason I will correct it.

Thanks

share|improve this question
2  
This is not a electrical engineering question and therefore off topic here. However, briefly, RS-232 defines the electrical signalling used by "COM" ports, but that doesn't matter in your case. You can connect a COM port on each of your two computers with a crossover cable, sometimes called a null modem cable, and the rest is software. – Olin Lathrop Nov 17 '12 at 15:27
sorry if I am wrong, in stackoverflow one guy suggested to write in superuser or in electronics – user1831986 Nov 17 '12 at 15:53
A very large percentage of the questions here are strictly about programming. To my mind they have nothing to do with electrical engineering, but they are not voted down. RS232 at least does involve electricity rather than abstract concepts. I would think that there should be no problem with ones like this. Or else, zap all the programming questions, but let's be consistent. – mickeyf Nov 18 '12 at 0:45
1  
Multi-posted to Raspberry Pi, stackoverflow and superuser stack exchanges. – Mark Booth Nov 18 '12 at 1:46
Please dont multipost, it is considered abuse. – Kortuk Nov 18 '12 at 4:13
show 1 more comment

closed as off topic by Olin Lathrop, Leon Heller, Kortuk Nov 18 '12 at 4:12

Questions on Electrical Engineering Stack Exchange are expected to relate to electronics design within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

2 Answers

Actually you don't need much knowledge about RS-232 protocol for your purpose. As you have installed OS in raspberry pi, it acts exactly like a PC.

I hope you have connected a display with it, so that you can develop your programs in python or java or c.

There may be simple libraries in Python. You just connect the serial cable with Pi and your PC, then forget about the RS232, just search for some libraries and proceed with your purpose.

On PC, there are many serial port programs available for Linux. You can see the data sent from Pi, and send data to it.

share|improve this answer

As stated, you don't actually need to understand RS232 to use it, but if you do want to Jan Axelson writes pretty good comprehensive books on all serial modes of communication:

http://www.lvr.com/spc.htm

(She has another on USB.)

For quirks specific to linux / unix (not a book but on the web) look here:

http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.