Shop OBEX P1 Docs P2 Docs Learn Events
WizNet W5100 issues — Parallax Forums

WizNet W5100 issues

DynamoBenDynamoBen Posts: 366
edited 2009-05-16 15:44 in Propeller 1
I've modified the Hydra EtherX W5100 driver for a project I'm working. The only major change is the ability to assign I/O pins (the original driver had them hard coded).

The problem is I am unable to transmit UDP/TCP packets but I am able to receive them. I'm not sure if its a code or hardware issue. I'm looking for someone with a W5100 (communicating via SPI) to test my driver and see if it works properly. Any takers?

Comments

  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-05-09 12:27
    Soon - I actually have a W5100 driver on the drawing board. I will subscribe to the thread because this topic interests me.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • DynamoBenDynamoBen Posts: 366
    edited 2009-05-09 15:15
    Thanks Timothy. I've had my W5100 for some time and haven't had a good use for it. I've now got two projects that need it, one of which "talks" to an NTP (network time protocol) receiver to set a RTC (the emulator from the obex).
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-05-09 16:44
    Sounds cool Ben. I believe you and I talked a while ago about ArtNet or ACN or similar with the Propeller and WIZnet, that is one of the things I want to do once I get the hardware designed and some time for code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • DynamoBenDynamoBen Posts: 366
    edited 2009-05-09 18:05
    Funny you should mention that, an ArtNet driver is my second project. I started that last night and made a lot of progress. If I can get the W5100 driver/hardware issue sorted I can start testing.
    ·
  • hover1hover1 Posts: 1,929
    edited 2009-05-09 18:43
    At first glance, I thought you guys were talking ArcNet ! , (shades of the 80's). I was not familiar with ArtNet, but after reading a little about it, it sounds like the next step in lighting.

    I used to work with Martin systems, but have been out of that industry for a few years.

    Jim
  • DynamoBenDynamoBen Posts: 366
    edited 2009-05-16 05:14
    The issue appears to be my driver. My changes seems to have screwed things up a bit. I tried the original etherx driver with the webserver example and things work great. Swap out that driver for my modified version and things stop working (driver is unable does send the webpage, but does recieve the request). Suggestions on what might be wrong?
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-05-16 15:28
    Ben -

    Why not just use the EtherX Driver and modify that to work? What is the advantage to using the driver you are writing?

    I glanced at the code, it looks like you got a lot there, but the core is the SPI ASM routine. Have you varified the SPI routine is working properly? Do think the problem is in the low level Prop to WIZnet communication or the high level commands/data to/from the WIZnet IC?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • DynamoBenDynamoBen Posts: 366
    edited 2009-05-16 15:33
    Timothy D. Swieter said...

    Why not just use the EtherX Driver and modify that to work? What is the advantage to using the driver you are writing?
    From my first post: "I've modified the Hydra EtherX W5100 driver for a project I'm working (on). The only major change is the ability to assign I/O pins (the original driver had them hard coded)."

    I believe the issue is in the SPI ASM routine, I'm sure its something small but I've been staring at my changes for a while and nothing jumps out at me.
  • Mike HuseltonMike Huselton Posts: 746
    edited 2009-05-16 15:44
    Why don't you use Hanno's debugger? This is a perfect use of the tool.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    JMH
Sign In or Register to comment.