Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Raspberry Pi as a UDP or TCP server

Status
Not open for further replies.

bmandl

Full Member level 4
Full Member level 4
Joined
Feb 26, 2010
Messages
210
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Slovenia
bmandl.edaboard.eu
Activity points
3,006
Ok, here is the idea. I want to use my Raspberry Pi as a server between PC application and microcontroller. Microcontroller unit will do some stuff and communicate with raspberry Pi via UART and Raspberry Pi will comunicate with PC application via TCP/IP or UDP protocol (Accesible over WWW). Also, I want my raspberry Pi to act as a interface between human and microcontroller (LCD and buttons will be connected on raspberry, so that microcontroller is not loaded with user interface and can do his job peacefully :) ).
My problem is, that I don't have basic idea how stuff works on Raspberry Pi. How can I run multiple programs on raspberry (working with LCD, buttons, TCP/IP, UART with mcu)? How does even programming look like on raspberry? I am used to programming on low level with mcu-s, but how can some device like pc (raspberry) works with low level stuff? And all low-level stuff must be mixed with high-level programming for TCP/IP communication and all that. Where can I start to get the basic idea how this stuff works?
PS.: I will probably write my PC application in QT, because I want it to be cross-platform but this doesn't really matters now.
 

Not really. This doesn't cover my questions.

- - - Updated - - -

I think I am getting the picture here. I can use wiringPi for low-level stuff (lcd on raspberry pi and UART with microcontroller) and then I can even use qt for high level programing like TCP/IP stuff. But can I run all these programs simultaniously like multitasking in background?
 

Not really. This doesn't cover my questions.
Respectively you don't yet understand how Linux operation system is related to the answer. Perhaps you should read about it though.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top