Recent

Author Topic: I2c <--> TCP/IP socket  (Read 4079 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 256
I2c <--> TCP/IP socket
« on: February 15, 2015, 08:04:29 pm »
Hello Coders!:

I am searching for a 1 page of pascal code on a Raspberry wiht WIFI stick to receive strings from the TCP/IP socket and sent them through a I2C bus and the other way arround, Receive from i2C bus and sent them through a TCP/IP socket.

To create a ah-hoc TCPI/IP connection between a old laptop and a Raspberry. Where multiple MCU´s can be connected to the 26 pin GPIO port on the RPI to i2c.

THe MCU´s Code is written in www.mikroe.com pascal. And the Laptop code is done in borland delphi.

Also for that a game pad is connected to the Laptop with system components from www.torry.net.

Greets,

Wouter van Wegen
Pascalbythree

Delphi/www.mikroe.com/lazarusfreepascal


Later to post a question howto view a FFMPEG from a Raspberry in a delphi/WIN32 window.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: I2c <--> TCP/IP socket
« Reply #1 on: February 16, 2015, 03:05:04 pm »
I suggest that you start with Synapse based on this post. There are other possibilities like LNet.

janvb

  • Jr. Member
  • **
  • Posts: 76
Re: I2c <--> TCP/IP socket
« Reply #2 on: February 16, 2015, 08:19:24 pm »
You will examples of how to send/receive TCP/IP.

To send/Receive I2C you probably need to access a C library that can do this - you should find examples of those as well as how to access a C library from Lazarus.

Good luck!

/Jan

 

TinyPortal © 2005-2018