Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi Shield Rev 3, solding, external antenna, possible? on: November 05, 2012, 10:49:46 pm
Looks like it may be the case, pins 3(GND) & 4(Antenna Port (50 Ohm) for WLAN) are the pins off the chip in question according to: http://wless.ru/files/WiFi/HDW/nda_1451_hdg104_datasheet_rev_a.pdf

Those pins look like they go to that green component. It may be possible to solder on a connector, but someone who knows what they're talking about should chime in. I'd love to boost this antenna as it does have limited range.

What sort of amplifier circuit, if any, would be needed to attach an external antenna on this board?
2  Using Arduino / Networking, Protocols, and Devices / Re: have some problem with Arduino WiFi Shield‏ on: November 05, 2012, 10:05:36 pm
Hi jia,

I've posted this issue in github. Please comment on it as it may expedite the fix:

https://github.com/arduino/wifishield/issues/12
3  Using Arduino / Networking, Protocols, and Devices / Official Arduino WiFi Shield firmware instruction (How to import in to Eclipse) on: November 05, 2012, 03:16:08 pm
Guys,

I've compiled the avr32-toolchain for os x with the help of https://github.com/jsnyder/avr32-toolchain with some slight modifications and I've got eclipse installed with the avr-plugin, CDT and avr32 studio, but I still can't import the wifiHD firmware project as I'm getting a "No file system is defined for scheme: framework" message on import. Any help on this would be appreciated.

There are a few people looking for instruction on this and a ticket has been opened in github: https://github.com/arduino/wifishield/issues/8
4  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino WiFi Shield - Issues - Improvements - Call to action on: November 05, 2012, 02:29:28 pm
Jensa,

Thanks for the writeup! That's great.

I've confirmed the issue jia4234594 posted with the shield not being able to act as a client and server. I've opened an issue on github: https://github.com/arduino/wifishield/issues/12

Hopefully we can get this resolved. I keep bumping in to issues like this with the wifishield and it's causing me some pain =\
5  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino WiFi Shield - Issues - Improvements - Call to action on: October 28, 2012, 07:16:03 pm
Hi AndreasW79,

Clearly the last update only fixed the server end of it. Your best bet is to create an issue @ http://code.google.com/p/arduino/issues/list so it's tracked.
6  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi Shield UDP Support on: October 24, 2012, 10:20:33 pm
mamaretti,

I took some time to take a crack at this. I'm 99% sure at this point we need the instruction for compiling the firmware (via Eclipse or otherwise). I traced back the code and although there is some support in the firmware for UDP, there is a stack of functionality that needs to be added in to the firmware for the WiFi libraries to even begin implementing UDP. If it were just WiFi libs, we could get started right now.

There are missing functions to create/send/end UDP packets and communicate these requests through SPI interface to the wifi chipset, etc... They're all there for TCP, but not for UDP.

I'll continue to harass the devs smiley-wink Perhaps you should use your network and resources to see if you can get more people interested in this and make some additional requests. The more the merrier.
7  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi Shield UDP Support on: October 24, 2012, 09:42:00 am
I can take my best shot at it. I've been reading through the firmware and Wifi libraries and may be able to hack something together. I'll have to give it a shot. One caveat is if there's anything that needs to be modified or is missing from the firmware (which I'm not sure of yet) we won't really be able to move forward.
At this moment, I've been unsuccessful in importing the firmware project in to eclipse, to compile it.  I'm waiting on a response from the arduino devs on providing the community with some documentation and resources to do this on our own.
8  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino WiFi Shield - Issues - Improvements - Call to action on: October 24, 2012, 09:37:24 am
Sounds good. I did flash the new firmware and I've tested the server side of it and it appears to have fixed the server hanging up if the server doesn't send data for ~10-12 seconds. It also seems to have fixed the issue with the wifi connection being lost and it reconnecting, only to have the server be in a zombie state. I'll do more testing later today. I didn't get a chance to test multiple socket connections to the server though. This is nice, as already I'm not relying on the self-reset circuit I added and can take that digital I/O pin back, as I need it for something else.

The developers should be able to provide some documentation on importing the firmware in to eclipse so the we can start fixing this stuff on our own. I'm currently waiting on a response from them. Hopefully within the next day or so.
9  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino WiFi Shield - Issues - Improvements - Call to action on: October 24, 2012, 07:13:29 am
An Arduino developer has committed a fix for the TCP server hang-up issue! You'll have to grab it off of github and flash your shield. I haven't tested it yet, but I'll flash it in a couple hours and update this thread.

https://github.com/arduino/wifishield/commit/241730e88599485367a8f3d1e0d7b11bd163cad5
10  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino WiFi Shield - Issues - Improvements - Call to action on: October 22, 2012, 10:11:58 pm
I've constructed a workaround to reset the arduino (and aruduino wifi shield) when the wifi server is detected to be dead by rigging up a simple circuit that connects:

digital pin 8 -> 1kohm resistor  -> Base pin of NPN transistor
Emitter pin of NPN transistor   -> GND on Arduino
Collector pin of NPN transistor -> Reset pin on Arduino

Using this code, I write a HIGH to pin 8 and the whole shebang reboots and reconnects. Obviously this is just a temporary workaround until a fix is found in the example, libraries, or firmware (wherever it may be).

Code:
 // Reset arduino if the server is dead.
  if (server.status() != 1) {
    digitalWrite(8, HIGH); // Reset Arduino
  }
11  Using Arduino / Networking, Protocols, and Devices / How do you connect to the Arduino Wifi Shield with a FTDI cable? on: October 22, 2012, 06:39:37 pm
Hi,

I picked up a 5v FTDI cable to connect to the Arduino Wifi Shield as per: http://arduino.cc/en/Hacking/WiFiShield32USerial.

The pins are right, black wire aligned with BLK marking on board. When I set my terminal to 57600bps and connect, I get a constant stream of what looks to be binary characters. I've attached a screenshot. I've tried playing with some of the serial settings, but to no avail. I'm sure I'm doing something wrong. Any ideas?

12  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino WiFi Shield - Issues - Improvements - Call to action on: October 22, 2012, 05:53:06 pm
Thanks for the reply John. This is totally true. However, if the first connection is idle and all the data has been read() or flush()'d, it still fails to serve the other client. Unless I'm missing something nuanced here, it still feels like something is broken.

I agree though, the design is not the most robust either. It can surely be improved.
13  Using Arduino / Networking, Protocols, and Devices / Official Arduino WiFi Shield - Issues - Improvements - Call to action on: October 21, 2012, 09:02:59 pm
Hi Folks,

I recently picked up an Arduino Wifi Shield and have bumped in to a few major setbacks with what I believe is the library and firmware. I won't post code, because you can use the "WifiChatServer" example sketch that ships with it to demonstrate the problems. Forgive me if I've missed something obvious here and please point out my error.

I know this is a new project and the code has only recently been made public. I'd like to rally some folks to see if we can wrap up a few bugs add some functionality and perhaps get some momentum going (or be informed that there already is some).

Basically I've experienced the following issues (one of which there is a bug report for). You can test this by uploading the example chat server sketch to your board+wifishield and running it.

SETUP:
- Mac OS X 10.8.2
- Arduino Uno Rev 2
- Arduino WifiShield
- Latest code as of Oct 21, 2012 from https://github.com/arduino/wifishield
- I re-flashed the shield with the binaries in the github repo to make sure it's latest (Consequently it broke WiFiDrv::getFwVersion(), which now returns an empty string whereas it used to return 1.0.0 when it was stock - Yes, I realize that the github repo contains 1.0.0 as well)

ISSUES:
1) Server hangs up and turns in to a zombie: Make a socket connection to the chatserver. Don't send data. After ~12 seconds, the wifiserver will disconnect with a TCP RESET packet. You will no longer be able to initiate a connection (via nc,socat,telnet) to the server until you reset the Arduino. From a tcp/ip perspective, packets are still sent and ack'd from the server. It's just that the server is somehow dead. If you put in some debug code and call server.status(), after that event, it always returns 0. You can not run a server.begin() on it again as it has no effect.

If the you/client initiates the disconnect (ctrl-c, ctrl-d, etc) at any point. Things are fine. You can reconnect and be on your merry way. Just don't let the server disconnect you, or it'll go zombie.

Furthermore, this isn't an issue of the client not sending data. If you comment out all the server.write() calls so that the server NEVER returns data. It will always hang up after ~10-12 seconds, no matter how much client data is received (and logged to serial). This issue is specifically with the shield firmware or library timing out for some reason if the server never sends a byte of data.

WORKAROUND: You can write some heartbeat code to always send (server.write()) a NULL byte every 5 seconds to the client when connected and this issue no longer occurs. You can remain connected without worrying about the server going zombie.

References: http://code.google.com/p/arduino/issues/detail?id=1024&q=wifi

2) Only one connection at a time: It looks like you should be able to handle up to 4 sockets, but the server never seems to return the additional connections in a server.available() call. Perhaps I misunderstand how to code this, but again, use the chatServer example and you'll see that only one connection at a time works. The additional connections over the initial one will send and receive tcp/ip packets, but the client connection never gets passed to the "application layer".

3) Wifi Disconnects, server goes zombie: If the Wifi signal is lost you can detect this and have it reconnect. However, after that event, on a wifi.disconnect() then wifi.begin(), you can server.begin(), but server.status() always returns a 0. I can post modified chat server code for this on request, but this issue seems to be related to issue (1) above.

FUNCTIONALITY REQUEST:
1) UDP server: Lack of code at the moment.

WHAT I NEED:
1) Set up environment to compile firmware: Eclipse or otherwise. I've done quite a bit of reading and tracing of the code back to the firmware. I'd like for us to come together and see if we can get to the bottom of some of these issues. I've managed to compile avr32-toolchain for os x with the help of https://github.com/jsnyder/avr32-toolchain with some slight modifications and I've got eclipse installed with the avr-plugin, CDT and avr32 studio, but I still can't import the wifiHD firmware project as I'm getting a "No file system is defined for scheme: framework" message on import. Any help on this would be appreciated.

2) Expert advice: If anything I've written sounds crazy or I'm doing something wrong or misunderstanding, please point that out. If there is anyone who has some pointers to make my life easier in trying to track this bug down, please provide them.

3) Development help: Anyone out there who's willing to donate some time. We'd all appreciate it.

Thanks so much! Hope to hear from you.
14  Using Arduino / Networking, Protocols, and Devices / Re: Official Arduino Wifi Shield, how to experiment with firmware? on: October 21, 2012, 08:21:13 pm
It's very unfortunate that there has been little word. I just recently picked one up. Dropped 100$ on it and I'm regretting it now. I realize it's a new product, but many people are reporting the same issue I'm having and it makes it only semi-useable in real world applications where you need it to be reliable.

I've actually dug down pretty deep to trace the problem but I'm stuck at being able to recompile the firmware with changes. I need some help from the dev team to set up the eclipse environment or just get a standard Makefile done.

I will be posting my particular issues in another thread.

Please Arduino, talk to your customers and community!
15  Using Arduino / Networking, Protocols, and Devices / Re: Arduino WiFi Shield UDP Support on: October 20, 2012, 04:33:42 pm
Does anyone know if any progress is being made on this? Are there any experimental projects out there on github or anything. I totally expected my brand new wifi shield to have this support as it was claimed in the docs. I'd love to help out and rewrite the ethernetUDP library, but if someone has started something I don't want to duplicate any efforts, etc...
Pages: [1]