BS2 Registers
MichaelDeFalco
Posts: 19
Internal conundrum:
In my program:
nodeABCDEFG=nodeABCDEFG +1
If I have 1000 counts every day, can I access this info. to update my computer at the end of the week?
this information must be stored in a register somewhere on the BS2
is this register accessible via serial port?
can I access it for·a total count from a computer via RS232?
anyone's thoughts...
Mike D.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
M.D.
In my program:
nodeABCDEFG=nodeABCDEFG +1
If I have 1000 counts every day, can I access this info. to update my computer at the end of the week?
this information must be stored in a register somewhere on the BS2
is this register accessible via serial port?
can I access it for·a total count from a computer via RS232?
anyone's thoughts...
Mike D.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
M.D.
Comments
You can attach a serial port (like a USB-serial adapter) to a set of pins. You can have your program check periodically for the DTR (Data Terminal Ready) signal and, if present, send out a few characters that say "I'm here and I'm listening". Your PC can have a program running at that point (like Stamp Plot Pro from www.selmaware.com) that can send out an ok and your BS2 can dump any variables or saved information you want and the PC program can store it or graph it or whatever. Again, none of this is automatic. All of it has to be programmed. It's not hard.
As an example, there have been applications where the BS2 has a modem attached to it and is set up to telephone a PC once a week or once a day and upload some collected information. The PC has a program that waits for a phone call, answers the phone, exchanges something like "Hello, who are you? ... OK, what data do you have?", collects the data, and hangs up.
Parallax now has something they call PINK that's a small internet web server. The BS2 is connected to a PINK and the PINK is plugged into the internet. The BS2 can copy information to the PINK and the PINK will serve up a web page with the information on it (and can require a login for access). The information could even be e-mailed from the PINK to an account read periodically by a program that adds the data to a database.