Skip to content

This project is based off of the net apps sample project for a berkeley tcp server by Microchip Technology Inc. (Microchip-MPLAB-Harmony/net_apps_sam_e5x)

Notifications You must be signed in to change notification settings

MicrochipTech/same54cu_tcp_datastream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCHP

SAME54 Curiosity Ultra Berkeley API Server Demo

Description:

This project implements a TCP/IP stack using the Berkeley API wrapper. The SAME54 Curiosity Ultra acts as a TCP Server and transmits a continuous stream of data to a client. The client program is implemented in C.

Hardware Used:

  • SAME54 Curiosity Ultra Development Board
  • KSZ8061 PHY Daughter Board

Software Used:

The project has been tested in the following versions:

  • MPLABX IDE v6.15
  • XC32 v2.50
  • Harmony3
    • csp v3.13.1
    • core v3.11.1
    • dev_packs v3.13.0
    • littlefs v2.6.0
    • wolfssl v4.7.0
    • net v3.10.0
    • crypto v3.7.6

Setup:

  1. Mount the KSZ8061 module to the Ethernet PHY Module slot (J800 to J803)
  2. Connect USB cable for programming and power
  3. Connect an ethernet cable from the KSZ8061 to the host computer running the client application.

Running the Code:

The SAME54 TCP server should start up as soon as power is applied.

  1. Open a terminal application such as PuTTY or TeraTerm.
  2. Power up the SAME54 Curiosity Ultra. The following should show:

demo

  1. From the client machine, compile the client program with

gcc -o client berkeleyAPIclient.c

  1. Run the client with

./client

  1. The client program will echo the data being sent by the server. This may be further verified by observing the Wireshark capture. It should be similar to the stream below:

pcap

About

This project is based off of the net apps sample project for a berkeley tcp server by Microchip Technology Inc. (Microchip-MPLAB-Harmony/net_apps_sam_e5x)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages