programming advice needed

Hi all,

I’m just getting back into my projects and am looking for some "Google"
pointers.

I’m going to have a C++ demon running on the raspberry pi and want 2 way
communication between it and a python 3 front end.

Any ideas or advice on what technologies to look at? ie: Sockets?

Cheers much,
Kevin

Not my bag I’m afraid…I does the electrickery!On 4 July 2014 13:08, Kevin Conroy kconroy188@googlemail.com wrote:

Hi all,

I’m just getting back into my projects and am looking for some "Google"
pointers.

I’m going to have a C++ demon running on the raspberry pi and want 2 way
communication between it and a python 3 front end.

Any ideas or advice on what technologies to look at? ie: Sockets?

Cheers much,
Kevin


You received this message because you are subscribed to the Google Groups
"Hackspace Manchester" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/d/optout.

A TCP socket is the simplest way to do it. It’s fairly simple to do
especially if you only want one channel open at at time. I’ve done a
bit of socket work in C and Python 2 so feel free to ask if there’s
anything else you need to know.

“Demon” in the context you’re thinking of is spelled “daemon”, if that
helps you google it.

JimOn 4 July 2014 13:09, Alexander Lang alexanderlang1980@gmail.com wrote:

Not my bag I’m afraid…I does the electrickery!

On 4 July 2014 13:08, Kevin Conroy kconroy188@googlemail.com wrote:

Hi all,

I’m just getting back into my projects and am looking for some "Google"
pointers.

I’m going to have a C++ demon running on the raspberry pi and want 2 way
communication between it and a python 3 front end.

Any ideas or advice on what technologies to look at? ie: Sockets?

Cheers much,
Kevin


You received this message because you are subscribed to the Google Groups
"Hackspace Manchester" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Hackspace Manchester" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/d/optout.

Hi Kevin,

Keep life simple for yourself here. Don’t reinvent the wheel!

Tcp is the most likely to succeed and be portable. For simplicity I would
say go for zeromq. It has wrappers for all good languages and will make
talking between the apps dead easy.

BazOn 4 Jul 2014 13:08, “Kevin Conroy” kconroy188@googlemail.com wrote:

Hi all,

I’m just getting back into my projects and am looking for some "Google"
pointers.

I’m going to have a C++ demon running on the raspberry pi and want 2 way
communication between it and a python 3 front end.

Any ideas or advice on what technologies to look at? ie: Sockets?

Cheers much,
Kevin


You received this message because you are subscribed to the Google Groups
"Hackspace Manchester" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/d/optout.

Just for the sake of rounding this out:

I had a look at ZeroMQ and after a painful setup I had my code talking
between 2 machines in about 5 mins.

Very easy to use and I would recommend it to other n00bs.

Spoke to soon,

I’m unable to get the C++ bindings to work.
After installing CPPZMQ https://github.com/zeromq/cppzmq (putting zmq.hpp
in /usr/local/includes/) nothing will compile.

I know my zeromq install is fine as the python bindings are working ok.

Has anyone used CPPZMQ or should i be using something else?

Keg

Yes, cppzmq is what I used. I had no real issues compiling or getting it to
work. If you want to go off list to get this sorted, i’m ok with that.On 13 July 2014 18:56, Kevin Conroy kconroy188@googlemail.com wrote:

Spoke to soon,

I’m unable to get the C++ bindings to work.
After installing CPPZMQ https://github.com/zeromq/cppzmq (putting
zmq.hpp in /usr/local/includes/) nothing will compile.

I know my zeromq install is fine as the python bindings are working ok.

Has anyone used CPPZMQ or should i be using something else?

Keg


You received this message because you are subscribed to the Google Groups
"Hackspace Manchester" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to hacman+unsubscribe@googlegroups.com.
To post to this group, send email to hacman@googlegroups.com.
Visit this group at http://groups.google.com/group/hacman.
For more options, visit https://groups.google.com/d/optout.