It is currently 23 Aug 2017 19:00

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 30 May 2017 15:58 
Offline

Joined: 20 Apr 2015 12:04
Posts: 36
Hi to all,

I'm looking for example on how to use the internal Ethernet controller og PIC32MX795F512L.

I have an Easy PIC Fusion v7 board with a PIC32 MCU card.

All the example that I see is intended to use with Enc28J60 controller.

Thanks for your help


Top
 Profile  
 
PostPosted: 31 May 2017 12:03 
Offline
User avatar

Joined: 21 Mar 2017 16:57
Posts: 377
Hello,

You can find an example for the onboard Ethernet controller in the compiler examples, in the following location:
..\Examples\Development Systems\EasyPIC Fusion v7\Ethernet Demo\

In that demo example, you can see a web page, which is used to control the circles on the TFT (turn off and on "virtual LEDs"), and vice versa - you can check their status on that web page, if you touch the circles, turning them off or on.

You need to set up some things first, according to your network - arrays like myIP[4], gwIpAddr[4], dnsIpAddr[4] and ipMask[4], have to be set, to comply with your network settings. After compiling, you need to point your browser to the myIP address and the page will open, if all has been set correctly.

Best regards


Top
 Profile  
 
PostPosted: 20 Jun 2017 12:36 
Offline

Joined: 20 Apr 2015 12:04
Posts: 36
Hi darko.ilijevski,
Finally I found some time for this activity!

The Example work well.

Unfortunately I did not find what I needed.
The example is base on incoming TCP request. I need to generate a TCP request to a server ( open a socket).

I see in the library that there is a sendUDP function but not a sendTCP.

How can I handle this issue?

Thanks


Top
 Profile  
 
PostPosted: 27 Jun 2017 08:34 
Offline

Joined: 20 Apr 2015 12:04
Posts: 36
@darko.ilijevski

So the library don't allows to open a connection to a remote IP?


Top
 Profile  
 
PostPosted: 28 Jun 2017 17:07 
Offline
User avatar

Joined: 21 Mar 2017 16:57
Posts: 377
Hi,

Unfortunately we do not have an example which does exactly that with the internal Ethernet functions, but we are going to write one soon. As for the references, you can search forum and libstock and of course the help file of the library itself. You can check the library from HERE

A quote from the help file from the library Ethernet_Internal:

Quote:
TCP Stack features:

Improved Stack can handle almost all posible TCP States like: closed, Established, Listen, SYN Sent, SYN Received...
In other word, We can open socket, send/received data in packets (as many as We want), and finaly close socket.
User can define size of Tx bufer which is used session handling. Only restriction is that the buffer size must be the power of 2 (1, 2, 4, ... 512, ...).
This can be useful because We can choose the amount of RAM We want to occupy. Of course, smaller Tx bufer means more available
RAM and less communication speed (because packets are smaller).

Multiple sockets are supported, and user can define number of sockets required. If You choose more
sockets, less RAM is available, and communication speed will decrease (because there will be more packets to process).


Top
 Profile  
 
PostPosted: 28 Jun 2017 18:34 
Offline

Joined: 20 Apr 2015 12:04
Posts: 36
Quote:
We can open socket, send/received data in packets (as many as We want), and finaly close socket.


This is what I need, but I can't find the function ( or how to handle the stack) in the help file.

There is a way to do this? Or I must wait for next library release?

Thanks for your time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: