News:

Let's find out together what makes a PIC Tick!

Main Menu

LAN Extensions

Started by SeanG_65, Dec 27, 2021, 02:42 PM

Previous topic - Next topic

SeanG_65

The only thing really missing from Positron/Proton are LAN extensions UDP / TCP-IP.

Any chance of some macros or the like please?

Gamboa

Hi,

There is nothing.

Possible solutions I have seen are:
1.- use an Ethernet-USART gateway. I have used Lantronix Xport. It works very well and you don't have to worry about any of the Ethernet protocol. But you have to pay a high price ~ € 40 for each Xport. There are also other brands like Wiznet that are cheaper. I have not tried them. Wiznet also has a gateway chip that is around € 8.

2.- Use Ethernet chip controlled by the microcontroller through the SPI port. Microchip has several. You also have Wiznet W5500 and W6100 (with IPv6). Wiznet has developed libraries for ST ARMs in C. These chips are around € 3. As I do not know C, I do not dare to make an adaptation of C to Positron.

Regards,
Gamboa
Long live for you

shantanu@india

As Gamboa says Ethernet to serial converters are the best choice.
I personally use ATC1000 from Gridconnect.
Regards
Shantanu

Giuseppe MPO

There are also the ESP8266 that do this job and they are very cheap.

Yasin

I bought a w5500 too. But I couldn't deal with it because I didn't have time. But I think it's very practical.

John Lawton

I've also used the Lantronix Xport devices. IIRC I was able to use a serial port speed of 460,800 Baud and an interrupt driven serial ring buffer. Worked a treat.

JONW

Quote from: John Lawton on Dec 29, 2021, 11:25 AMI've also used the Lantronix Xport devices. IIRC I was able to use a serial port speed of 460,800 Baud and an interrupt driven serial ring buffer. Worked a treat.


Wow, I've not seen those before, they look epic from the product brief, are they pricey?

Jon

John Lawton

A bit, but for my application it wasn't a big issue. This I think is a more recent version of the one I used which was XP1001001-04R

https://uk.farnell.com/lantronix/xp1001000-05r/module-serial-to-ethernet-xport/dp/2115259

Gamboa

#8
@Jon,
https://es.farnell.com/lantronix/xp1001000-05r/m-dulo-serie-ethernet-xport/dp/2115259?CMP=GRHB-OCTOPART

43.00€ to 45€ more or less

@John
XP1001000-05R
Lantronix has changed the web server configuration a bit, but the operation is the same. Excellent.

Regards,
Gamboa
Long live for you

Frizie

#9
I have used the CSE-H53N from Sollae Systems (about 50 Euro) once to my full satisfaction but it is quite an expensive solution if you want to use it more often.
For a solution in a serial product I'm going to have a look at the W5500 mentioned here, but I think it takes quite some time to get this up and running.

What I keep running into is that I have to be able to reflash a PIC program remotely (whether or not with a bootloader)  ::)
I want try to do this somehow using Ethernet.
(Now I always have to send a new PIC by post with an update / upgrade)  >:(
Ohm sweet Ohm | www.picbasic.nl

tumbleweed

One thing to keep in mind is that products like the XPORT are simple ethernet to serial converters.
You can open a connection and send data to them, but they work pretty much just like a serial port would.

Many of them won't accept multiple connections (ie different users sending data) or serve up a web page.
Don't get fooled by the marketing hype.. all the fancy protocols are just for setting up the network
settings of the device itself, not for "the user".

chris_cb_uk

Quote from: tumbleweed on Dec 29, 2021, 06:28 PMOne thing to keep in mind is that products like the XPORT are simple ethernet to serial converters.
You can open a connection and send data to them, but they work pretty much just like a serial port would.

Many of them won't accept multiple connections (ie different users sending data) or serve up a web page.
Don't get fooled by the marketing hype.. all the fancy protocols are just for setting up the network
settings of the device itself, not for "the user".

But assuming in a situation of a large building with the need to connect pics across multiple master slave network would be ideal if there was already Internet infrastructure effectively as a "tag on solution". I could see this working with a project I have currently using RS232 to fibre converters for a remotely operated vehicle as its now got ip for cameras.

RGV250

Hi,
QuoteI'm going to have a look at the W5500 mentioned here, but I think it takes quite some time to get this up and running.
Let me know how you get on, I have a W5100 (I think) on an Arduino shield and could not figure out anything as the Arduino demo is monstrous and the manual/datasheet is beyond me as well.

Bob

SeanG_65

Thanks all. All I want to do is switch up to 16 relays using a microchip i2c expander but have the device hooked up to my network for remote operation.

I want to control the rotation and elevation of a camera.