Communicate with socket from ENC28J60 to PC

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Communicate with socket from ENC28J60 to PC

Post by stefan.erni »

Hi Ben

The programpart with the "Webserver" is working nice.
I can commnunicate with a socket connection from a PC too. But not as a socket open/close connection, just as send back a string.
From the forum I found a samplecode for socket. Is this the correct way to use NetworkComms? What mean's status not Yet Supported?
I can not compiele to the chip anymore even the socket part is not yet includet.
regards

Stefan
Network.PNG
(20.42 KiB) Downloaded 319 times
Attachments
Fc8_Leddriver_EFG144_1_test_socket1.fcfx
(54.21 KiB) Downloaded 162 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Communicate with socket from ENC28J60 to PC

Post by Benj »

Hello,

The compilation errors seem to be coming from references to a DebugPrint component which doesn't seem to be in the project.
Fc8_Leddriver_EFG144_1_test_socket1.c: In function 'FCM_Socket':
Fc8_Leddriver_EFG144_1_test_socket1.c:5958:46: error: expected expression before '%' token
Maybe it's just a component I don't have here or somehow it's been removed from the project?

Another cause of an error is this icon. Mainly because socket_buffer is declared as a byte array rather than a string and this is breaking the code generation behind the scenes.
Error.jpg
Error.jpg (6.78 KiB) Viewed 2116 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Communicate with socket from ENC28J60 to PC

Post by stefan.erni »

Hi Ben


Thank you for the Infos. I can compile it now.
In the forum I found somthing about the ENC28J60. Is this still a problem?

http://www.matrixtsl.com/mmforums/viewt ... J60#p97073
Notsup.PNG
(21.59 KiB) Downloaded 307 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Communicate with socket from ENC28J60 to PC

Post by Benj »

Hello,

Yes we have made progress with the ENC module but at the moment I beleive it is still not supported by the Network Comms component.

There's a table here we are trying to keep up to date.
https://www.matrixtsl.com/wiki/index.ph ... etworking)

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Communicate with socket from ENC28J60 to PC

Post by stefan.erni »

Hi Ben

OK. I have to think about what I want to do with the modul. Maybe I have to take a new module or wait....
It would be nice to know which WiFi and LAN modules are planned for Flowcode 9.

Microchip has a new Board. On this board, there is an Ethernet PHY connector.
Will Flowcode support this physical layer Ethernet in the future?

https://eu.mouser.com/new/microchip/mic ... /#Bullet-1
PIC-Board.PNG
(539.78 KiB) Downloaded 294 times

Post Reply