Recent

Author Topic: Looking for example code for TCP/IP on a Raspberry PICO W  (Read 1153 times)

pascalbythree

  • Sr. Member
  • ****
  • Posts: 266
Looking for example code for TCP/IP on a Raspberry PICO W
« on: April 14, 2023, 06:04:22 pm »
New topic:

Does anybody have example code to TCP/IP on a Raspberry PICO W

in Freepascal ?

That would be a great help!

Greets, Wouter van Wegen

 :P

TRon

  • Hero Member
  • *****
  • Posts: 3791
Re: Looking for example code for TCP/IP on a Raspberry PICO W
« Reply #1 on: April 14, 2023, 06:55:47 pm »
broad unspecified question, broad unspecified answer: https://wiki.freepascal.org/Networking

Realize that using the catch phrase "tcp/ip" can mean about a million different things.

If you want specific examples then you can start start looking at the examples provided with fcl-net, or in case you prefer to use another framework then look for examples in the corresponding package/documentation (*).

edit: (*) let's start at the beginning: are the lwip headers translated to Pascal ?
« Last Edit: April 14, 2023, 07:47:30 pm by TRon »
I do not have to remember anything anymore thanks to total-recall.

pascalbythree

  • Sr. Member
  • ****
  • Posts: 266
Re: Looking for example code for TCP/IP on a Raspberry PICO W
« Reply #2 on: April 15, 2023, 05:55:15 pm »
Are you sure it is for the embedded ARM pico W ? Or is this for linux on a RPI?

TRon

  • Hero Member
  • *****
  • Posts: 3791
Re: Looking for example code for TCP/IP on a Raspberry PICO W
« Reply #3 on: April 15, 2023, 06:13:05 pm »
My first reaction was based on Linux, the second (lwip) seems to be the 'natural' ip stack that is used on a pico (but please correct me if wrong).

However, the basic principles are similar no matter what stack you use. The pico SDK show some lwip examples that look a bit rudimentary in comparison to a full blown tcp/ip stack (and in comparison with headers such as fcl-net) but it seems do-able to me (not to mention that you could opt for adding lwip support to fcl-net units, or any other framework for that matter).
« Last Edit: April 15, 2023, 06:18:45 pm by TRon »
I do not have to remember anything anymore thanks to total-recall.

 

TinyPortal © 2005-2018