Show Posts
Pages: [1] 2 3
1  Products / Arduino Due / Re: Arduino Due libraries (official and 3rd party) on: March 03, 2013, 01:16:38 pm
Roving Networks RN-XV library.

Basically this is the one from https://github.com/harlequin-tech/WiFlyHQ but modified to work with Arduino Due is at:

https://bitbucket.org/thiseldo/wiflyhqdue

Changes are to remove PSTR and PROGMEM use and to change to hardware serial instead of softserial.

Examples updated.

There may still be issues with this as not fully tested in all situations, but basic client and server actions seem to work.

Full credit to the original authors, Harlequin-tech for their library.

Thanks

Andy
2  Products / Arduino Due / Re: What is the readiness status of Code Libraries for the Due? on: February 28, 2013, 04:03:55 am
I see it as a case that if someone has a need for using a specific library on a Due then, if they have the appropriate knowledge and skills, should be able to make the changes themselves. However saying this, it is also dependant on the actual library and how much of the processor features and registers it uses directly. Anything that uses regular Arduino type calls could be Ok with minimum changes, others using SPI, direct port writes, processor specific registers would be more difficult.  other things to consider is that if a particular shield uses SPI then it may be dependant on the SPI pins being on I/O pins 11, 12 and 13.

Other things to consider are changing from using softserial to hardware serial on Due, changing references to PROGMEM and implementing alternatives to EEPROM storage.

For my own personal pleasure I've done a couple, one for Wiznet 820io modules and another currently being worked on for the Roving networks RN-XV WiFi module based on the WiFlyHQ library. I have a number of other libraries that I had created or updated for Arduino and I'd get round to updating these some time but the complexity with these is that they use direct port writes, but nothing I shouldnt be able to fix!

Hope this helps

Andy


3  Products / Arduino Due / Re: DUE ethernet performance on W5200 with SPI and SPI+DMA on: February 04, 2013, 03:45:02 am
Hi,

Thanks for trying my effort at a Ethernet library for Wiznet5200 on Due. The w5200.cpp and w5200.h originally came from Wiznet some time ago and was a modification to the existing 5100 code to setup correct registers etc. I wasnt happy using them to replace the existing Arduino Ethernet code used that as a basis for a complete new library.

Using 8 connections at once may stretching it a bit as I've experienced the odd lockup and sometimes its decided not to work at all but think this might be down to my router. However I have been able to implement a small SD card based webserver that could serve a variety of file formats including html, jpg, gif, png etc so that simple web based management interfaces could be built onto any application running on the Due.

I have found that sometines the webserver sketch wont set the ip address correctly, even though it has been told what it is. As I'd said before, there are still some issues with it, but its a start.

One thing I had thought of, with regarding MAC addresses, is to use the unique code burnt into the SAM chip to form the basis of the MAC address. But not really started looking into this, other than reading the datasheet!

Cheers

Andy
4  Products / Arduino Due / Re: DUE ethernet performance on W5200 with SPI and SPI+DMA on: February 01, 2013, 05:06:09 am
I have an alternative Wiznet W5200 library that I've ported from work I did with on previous Arduino boards, both 328 and 1284 based. Its at https://bitbucket.org/thiseldo/ethernet52due.

This doesnt replace the w5100.cpp and w5100.h files in the main distribution Ethernet library so will be available after fitire IDE updates. I've also updated it to use the extended SPI features as well as increasing the SPI clock to 42MHz. At present the examples are configured for this library, the only change you'd need to do to use it instead of the standard library is to use the header file Ethernet52Due.h instead of Ethernet.h. The library may still have problems as its still being worked on to improve performance and reliability.

Hope this helps.

Andy
5  Products / Arduino Due / Re: Arduino due + SPI setClockDivider() function on: January 31, 2013, 04:01:56 am
I have succesfully used the Wiznet 5200 chip with a Due with a clock divider setting of 2, effectively running the SPI at 42MHz. The datasheet for the W5200 says it can go upto 80MHz on the SPI bus. Using 1 as a clock divider would be outside of the spec, giving a rate of 84MHz. I originally tried it at a slow speed and gradually built up to 42MHz.

At this speed I am able to have 8 different browser connections to the Due running as a simple web server all repeatedly requesting the sample page.

I see there was an alternative W5200 library for the Due using DMA on the SPI but with the faster clock speed I felt this wasnt needed for my application and performance has been great, compared to a 328 and W5100 based board.

Regards

Andy
6  Using Arduino / Networking, Protocols, and Devices / Re: 1284p Calunium + W5200 freezes on: August 15, 2012, 02:40:59 am
Hi,

Not sure if this has been answered before, but I've been successfully using the complete W5200 library from https://bitbucket.org/homehack/ethernet52/ This is basically a copy of the arduino Ethernet library from IDE 1.0.1, with the W5100 files replaced by the correct 5200 files and other changes made to make it work with the ATMega1284P and WIZ820io. This is working with a board I've been working on from http://max1284.homelabs.org.uk/.

The examples are all update to use library Ethernet52 instead of Ethernet. This approach means that the original Ethernet library is still available for W5100 based board if like me you work on multiple projects at the same time. I have been looking at a combined library but time pressures have meant this has not progressed far.

Cheers

Andy
7  Using Arduino / Networking, Protocols, and Devices / Re: Problem with Shield Ethernet enc28j60 on: March 10, 2011, 04:50:43 pm
Hi,

In order to use the Nuelectronics ethershield with another SPI device you need to change the 74HCT08D with a 74AHC125D. I've done it for one board using  DIP version of the chip by cutting tracks and using thin wires. However, it can be done by directly replacing the surface mount chip as described here http://john.crouchley.com/blog/archives/662, see second part of page.

You also need to use a different CS pin for both devices and update one of the libraries to use the alternative pin. I am successfully using this method in an RF12 to ethernet bridge where the RF12 module is receiving packets that are then being dumped into a UDP packet and sent out on the ethernet.

Using a SD card as a file store for html pages would be possible, but the current library is restricted to sending out html pages in a single packet. The size of the packet is dependant on your buffer size which in turn is limited to the memory size of the 168 or 328 chips. I've no plans at present to update the library to support this, but anyone else is free to have a go!

Cheers

Andy

8  Topics / Home Automation and Networked Objects / Re: ENC28J60 Web Server on: February 13, 2011, 08:11:11 am
Question :
There is "buf" that created/declared inside the sketch.
Is it the same "buf" that used inside "ip_arp_udp_tcp.c" ?

Basically the buffer is defined in the sketch and you are passing pointers to this buffer into the ip_arp_udp.c code. Due to memory limitations, the same buffer is used for both received and transmitted packets, but obviously not at the same time.

Cheers

Andy
9  Topics / Home Automation and Networked Objects / Re: ENC28J60 vs Wiznet: what's the CURRENT status? on: February 11, 2011, 04:08:48 am
Hi,

I dont have any of the other ethernet shields so cant really compare them myself, just share my feedback from using the ENC28J60 and the shields I've used from nuelectronics (I have about 5 of them!). Thanks for linking to my site too.

I found the original library fairly complex and inflexible so re-wrote it using the code from tuxgraphics.org tcp/ip stack. This was much better but still had some limitations such as everything had to fit into a single packet, whether acting as a server or a client. The tcp part of the library only caters for sending a single message before closing the connection (something I need to fix for another project!).

The protocol you use needs to be implemented in the software, such as IP, then TCP or UDP, the packets need to be built up manually byte by byte as there is no current equivalent to the print function. If you want to create a server then you need to make the pages very simple and small enough to fit into a single buffer and packet. The problem here is that if you make a larger buffer, you reduce the available memory for other variables and data structures. There is also the risk of over running the buffer and corrupting other areas of memory which is something I've not really addressed with the library and could be whi I sometimes see the odd lockup or reset.

Recently I've added DNS lookup support to the library and have been thinking of looking at DHCP too but thats as far as I've got with it!

With the enc28j60 most of the functionality needs to be on the software side, this makes it more difficult to use for beginners, but also makes it more flexible as you are able to implement whatever protocol you need.

Hope this helps

Andy


10  Topics / Home Automation and Networked Objects / Re: ENC28J60 Web Server on: February 11, 2011, 03:49:22 am
Hi,

The work I've done on the ENC28J60 library for the nuelectronics ethershield has really been driven by things I've needed for my own applications. However, feedback and comments are most welcome. Plus if you have any changes/updates that you have done, these can be fed back into the main code by myself or you can release your own version!
 
In answer to your questions:

1. Is something I'm looking at, to provide alternative methods that dont use flash memory for the strings.
2. The library is set up for single packet send and receive so its a trade off between available memory and a usable packet size. If you need more flexibility in this area then a hardware solution such as a shield with the alternative chips may be the correct way to go for your needs. The ENC28J60 is a cheap solution because it provides just the basic packet framing, the IP and TCP layers are done in software, but it is exactly this reason that makes it very flexible too.

The library I have produced can still be classed as a work in progress, there are things I'd like to see in there for my own use but as yet havnt got round to them. To many other distractions I'm afraid.

Cheers

Andy
 smiley
11  Using Arduino / Programming Questions / Re: Need Help : Basic Web Form example for ENC28J60 EthernetShield on: February 09, 2011, 08:20:21 am
Hi,

I'll have a look and sort out a much simpler example for you. Still on the todo list is some documentation.

Cheers

Andy
 smiley-cool
12  Community / Website and Forum / Re: Karma on: February 02, 2011, 10:49:43 am
I must add that I dont have any plans to resurect Smite 'O' Matic. It served its purpose a few years ago and now its consigned to history.

Cheers and thanks whoever smited me  smiley-sad-blue

Andy

13  Community / Website and Forum / Re: Karma on: February 02, 2011, 07:37:46 am
Just viewing this thread. I've used karma/smite on another board. It was fun in the begining, then I devised the Smite 'O' Matic to automate the smiting of a particular target. It was just left running and repeatedly decreased (or increased) a users karma. The forum had restrictions on how often you could smite someone so took a little while to work. Taking someone down to -400 then back up to +200 over a weekend was quite funny at the time and generated a lot of conversation about it. Using mutliple scripts caused it to operate faster as each was logged in as a different user. After a few weeks it got boring and eventually the admins removed the karma options.

If used properly the karma system can be good and would indicate that a user was helpful in their posts or posted intelligent, well thought out questions or requests. Anything else isnt going to help much.

Just my 50p worth (inflation!)

Cheers

Andy
14  Using Arduino / Networking, Protocols, and Devices / Re: ENC28J60 + AdaFruit Motor shield? on: January 28, 2011, 05:16:02 pm
The nuelectronics ethernet shield does not operate well with other SPI devices due to it not using a tri-state buffer for some (cant remember exactly which) lines.

There have been a number of hacks to replace the 74HCT08 with a tri-state buffer but this may not help the motor shield as it probably doesnt use the SPI bus as previously stated.

Cheers

Andy

15  Community / Bar Sport / Re: First Post? on: January 26, 2011, 06:53:00 am
Dropping by to say Hello and to checkout the new forum.

 smiley

Cheers

Andy
Pages: [1] 2 3