hisun
New Member
Posts: 33
|
Post by hisun on Feb 9, 2017 18:51:41 GMT
Tested your example, but it doesn't work for me. It only response ip address:255.255.255.255, I tryed it with DHCP and with a fixed ip address. I dont know what we did wrong. We wired 3 cables from P201 pad 1 to pin 50, pad 3 to pin 52 and pad 4 to pin 51. That should be right or not?
By when will the driver be ready?
|
|
|
Post by Admin on Feb 9, 2017 21:12:53 GMT
You get back 255.255.255.255 when the connection to the W5100 is faulty or the chip select is wrong.
The new driver should be ready tomorrow.
|
|
|
Post by Admin on Feb 9, 2017 21:14:33 GMT
Btw. It's pin10 not pin4!
|
|
|
Post by Admin on Feb 11, 2017 7:29:59 GMT
Now we have the new spi driver working it seems that the slave select on the Industrial Shield is pin53 afterall. However it seems that you have to set the pin to output and HIGH before trying to use it as a slave select even though the spi driver does this anyway. We really need the circuit diagram for the board to really know what is going on!
|
|
|
Post by mjb on Feb 13, 2017 21:24:59 GMT
The Industrial Shield is now supported in the v1.30 of the Arduino IDE add-in. It works with the p53 slave select option.
|
|
hisun
New Member
Posts: 33
|
Post by hisun on Feb 14, 2017 11:07:57 GMT
Thank you for your new libary update.
Could you please give an example how to use the command ,Spi.begin(BOARD_SOFT_SPI_SS2), form SPI libaray with the ethernet libaray.
|
|
|
Post by mjb on Feb 14, 2017 11:21:54 GMT
In the sketch you need to add:
void setup() {
pinMode(53, OUTPUT); digitalWrite(53, LOW); // Required for Industrial Shield
This is specified by the Industrial Shields documentation but I cannot see why it is necessary.
Then in the W5100.h file you have to specify the SPI channel to use for Ethernet:
#ifndef W5100_H_INCLUDED #define W5100_H_INCLUDED
#include <SPI.h>
//#define ETHERNET_SHIELD_SPI_CS 10 #define ETHERNET_SHIELD_SPI_CS BOARD_SOFT_SPI_SS2
This is in:
C:\Program Files (x86)\Arduino\libraries\Ethernet\src\utility
You then just build the sketch as normal. The W5100 driver is then reconfigured to run with the SPI channel on pin50-pin53.
I have tried this with the Industrial Shield and it works!
|
|
hisun
New Member
Posts: 33
|
Post by hisun on Feb 14, 2017 12:24:01 GMT
Thank you Now it works!
|
|
|
Post by mjb on Feb 14, 2017 12:43:26 GMT
Good!
BTW: I have an Industrial Shield and the big problem is that the ShieldBuddy's USB port is not accessible when the case is closed. What we have done it use an Infineon miniWiggler to access the DAP connector through the USB opening in the case for programming. We have then used an USB-RS232 adaptor to access the Serial.print on the outside connector. This means all the facilities are available, even when the case is closed.
At some point we will re-align the USB connector to match the Arduino MEGA.
|
|
|
Post by mjb on Feb 14, 2017 17:19:19 GMT
This is the M-Duino 21 Industrial Shield fitted with a ShieldBuddy serving a basic webpage:
86.164.6.184
We cannot guarantee that this will always be active!
|
|
hisun
New Member
Posts: 33
|
Post by hisun on Mar 1, 2017 12:31:16 GMT
Now ShieldBuddy is working together with the WS5100 ethernet controller of Industrial Shield. Thanks for your great support!!
|
|
|
Post by mjb on Mar 1, 2017 13:40:06 GMT
Great!
What are you using the Industrial Shield for?
|
|