WiFi SIP and FLiP
Rsadeika
Posts: 3,837
in Propeller 1
I just got my Parallax delivery, and what I need to see is the official recommendation as to how to connect the WiFi SIP module to the FLiP module.
Ray
Ray
Comments
I'm not sure there is an official recommendation as such a configuration is not included anywhere on the Parallax sites.
Learn examples all refer users to program using the USB cable.
You might be the pioneer of this technique!
I would think the place to start is using F-F jumper wires to hook:
1. WiFi module TX to the FLiP RX pin
2. WiFi module RX to the FLiP TX pin
3. WiFi module CTS to the FLiP RES pin
4. WiFi module GND to one of the FLiP GND pins.
Then login to the WiFi module web page and set the WiFi module to use CTS for reset.
With the FLiP powered up using the VIN and GND pins on the left hand side, then hopefully you can program it from Blockly or SimpleIDE.
3. WiFi module CTS to the FLiP RES pin
That does not work for me, SimpleIDE responds with "... cannot find the Propeller chip.".
The setup that I am using is a wire connected to the DI (#3 via) on the WiFi SIP, and the FLiP RES pin. This seams to work most of the time, but not all of the time.
Hmm, maybe we are not supposed to be using the WiFi WX SIP module with a FLiP module.
Ray
I wouldn't come to that conclusion. There are endless combinations and ways to achieve things. It's good to experiment and create new things that others have not thought of yet. We 'are' supposed to
If I ever get the robot to be autonomous, will have to have some kind of guaranteed way of talking to the Propeller remotely, to control the robot.
Ray
SIP WiFi module DO connects to FLIP P31
SIP WiFi module DI connects to FLIP P30
SIP WiFi GND connects to FLIP GND and power ground
SIP WiFi Vin connects to FLIP 3.3V
Power source (+5-9V) connects to FLIP Vin
Next part is tricky. You need an NPN switching transistor like a 2N2222A or 2N3904, a 10K resistor, and a 0.01uF ceramic capacitor (rated for about 16V). Look at the schematic for the FLIP module, page 3 or the schematic for the PropPlug. The capacitor connects to DTR# on the WiFi module (DIP pin #18). You'll have to solder a short wire to the DIP pin if you're using the SIP module. The transistor collector connects to the FLIP module's RESET pin. There's a ground connection as well to the FLIP's GND pins.
Once this is all hooked up and the WiFi module is configured via its configuration web page, you should be able to download programs to the FLIP using SimpleIDE (proploader) and, if you use the "-t" option on proploader, should be able to communicate serially with your program. Default Baud is 115200.
Not sure if this is a faulty WX SIP module, or is this some kind of feature for the WX WiFi SIP module. Anybody else experiencing something like this.
Ray
Need to determine if this is a firmware or hardware issue.
1. is it connected to the router?
2. is serial being blocked?
Mike
At this point the module is still responsive, because I was able to check the settings and the network components. I have it set for STA+AP mode, and it shows its Station IP Address.
So far it looks like the module hardware is OK, maybe it is a firmware problem for the WX WiFi SIP module. Since I just bought this, I would imagine it has the latest firmware, not sure what the problem is.
I have this on a breadboard along with the FLiP module, for testing purposes, it sits close enough that can just pull the wire where it gets its 3.3V from the FLip to do a power off/on.
Ray
Ray
Anything is possible, but I'd lean toward thinking it unlikely. I'd look at the code first; maybe try to add some diagnostics to figure out where the apparent lock-up is happening, and then go from there.
You say it is unresponsive so what are you doing that tells you this. Since it is set as STA+AP it has nothing to talk to. Unless you send it a command it will just pass the data to the unit and then to a bit bucket.
Mike
What is now occurring, while the WX WiFi is still powered up, a short idle time occurs, meaning I have not tried to load the FLiP, the port becomes unavailable. Usually the port appears in the port list but when I try to program the FLiP an error appears, something like, unable to access the port or load the program.
I double checked that with the use of Tera Term, it usually states that it cannot make the connection.
When I do power off/on the WX WiFi module, and try, what I just described above, the port becomes available, and I can load the FLiP.
During the "unresponsive" time I have checked that I have WiFi access, and yes, I can log into the WX module via ..4.1.
This is a general description of what is going on.
Now, it was mentioned that the WX WiFi DIP, which is used with the Activity Board, has the same firmware as the WX WiFi SIP. Well, I was using an Activity Board+WX WiFi DIp, on the same computer system, and I was not seeing the same problem, I only started to see problem when I started to use the FLiP+WX WiFi.
So, the mystery still remains, not sure what diagnostic tools or procedures I could conjure up the pin point the problem.
Ray
The way the remote code works is that it starts up a UDP port on the WX and listens for a packet to be broadcasted to it which it in turn responses with it's IP address and name.
The remote code is load by first sending a small program over WiFi to a URL which in turn starts that program on the Propeller that is then looking for code to be sent via the Telnet port on the WX module. At the same time Commands are disabled from being sent to the WX module to prevent program data being interpreted as commands.
On the WX module is a debug page that should show those sequence of events:
You will note that the baud rate for loading data is 921600 and is then changed back to 115200.
Mike
Ray