Wireless Programming of BS2
aerodude
Posts: 22
Hi All,
My goal is to program a BS2 wirelessly. One option is to use toothpick. I have a wireless modem which i used to connect sensor with serial output to a laptop in a WiFi network. In that I created a virtual COM port on the laptop to read the data from this sensor.
Now, i wanted to program a BS2 and created a COM Port # 11, and when i run a code in the PBASIC terminal, i could only see COM ports 1 & 5. How do I choose 11? I tried ' {$PORT COM11} as well but no use. What should be the properties of the COM port to talk to BS2? Where am I going wrong here?
Thanks in advance.
satish
My goal is to program a BS2 wirelessly. One option is to use toothpick. I have a wireless modem which i used to connect sensor with serial output to a laptop in a WiFi network. In that I created a virtual COM port on the laptop to read the data from this sensor.
Now, i wanted to program a BS2 and created a COM Port # 11, and when i run a code in the PBASIC terminal, i could only see COM ports 1 & 5. How do I choose 11? I tried ' {$PORT COM11} as well but no use. What should be the properties of the COM port to talk to BS2? Where am I going wrong here?
Thanks in advance.
satish
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
regards peter
Another option using the same setup would be to keep several variations of your program on a thumbdrive and just send a signal indicating which version you wanted to run.
This following link has bunches of great information on using one Stamp to program another······· http://www.emesys.com/BS2clone.htm
Jeff T.
Can you elaborate more on the "tight timing required to program" BS2? Also what do you mean by downloading the program to the remote location?
Dear Steve,
Yeah there is definitely stache and that was my initial thought too...
but now my goal is to do that wirelessly in a network so I am trying with WiFi modems.
satish
One way around this is to have something like a Stache at the remote location and a special downloading program at the PC. The Stamp Editor can save a binary file of the compiled bytecodes and another program can use a more timing tolerant protocol (like Kermit or XModem) to download the file to the Stack-like device which will store a copy, then transfer it to the Stamp automatically.
It is relatively easy to hack remote programming with a BS2p series Stamp. A program running in one slot can be made to receive a plain text file that it can WRITE into another slot, verify, and RUN. It just needs an entry condition for download routine.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Correct me if I am wrong...but my understanding is I create a virtual COM port on the laptop, the PBASIC will see that COM port and when I run a program, the tokenized data will be sent to that COM port. But there the COM port is virtually connected to the IP address of the wireless modem I have and the BS2 is connected to the serial port of the modem and it is configured to 9600 baud, 8N1.
With that my problem now is how to make the PBASIC see the COM11 I created?
Mike, the WiFi modem I am using has 256 Kbytes SRAM, 512 Kbytes flash and supports a data rate up to 921,600 bps and I think it is a full duplex link (IEEE 802.11 b/g). So I don't think it causes much delay in transmission.
Allen, u said about the requirement from the PC side of the Tx line and I believe the virtual COM port actually takes care of it by mimicking the status of all the pins(I guess). But I have to definitely look into your suggestion.
(My interest in using WiFi modems is that a Laptop without any external devices/cables connected (unlike stamper) can program the BS2 and offers advantages in terms of network security by authentication, encryption)
Satish
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
What we need is a wireless Ethernet module with at least one com port. I have the WIRED version of exactly what is needed and it has three, 8-bit ports. I have searched high and low without success to find a wireless version of it. I have even talked to the manufacturer and they said a wireless version of their product was a good idea and they had thought about it and were continuing to think about it as a future product.
In the meantime, I have decided to mount my wireless tablet-PC on Ugly Betty, my skid-steer. Then, I will simply RDP into it and crank up the Stamp IDE. Does anyone see a disadvantage in this approach other than the fact that I will be adding weight to my machine? Of course, having a tablet-PC on board will also allow me to do some other VERY interesting things quite easily.
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.