Don M
09-14-2008, 10:39 PM
Hi all-
I am pretty much a newbie with understanding this programming so please bear with me. I am trying to use a Basic Stamp to read DEX info from a control board.
I have the Saleae Logic analyzer to which I connected to this control board and read the communication data stream·that was done by a program in the PC through the PC serial port to this control board. I have saved some of that communication to a PDF file labeled DEX attached to this post so you can see the dialog back and forth between the control board and the PC. I am trying to mimic this process using a Basic Stamp instead of a PC. I am eventually looking to store this information to a USB memory stick using the Parallax USB Data Logger board but want to get the basics down first in just talking back and forth to the board.
My first effort is to better understand how to format and write this code to just send the initialization data and then read the returned info into the debug screen. I have also attached my first attempt at programming·for sending the info to the control board and debugging its response. I have looked through this forum and various other examples trying to piece meal something together that I can understand however I am having a tough go of it so far. What is hard for me to understand is the type of data I am looking to receive and to tell the stamp how to wait for that right data and what to do once it comes. I am very much in favor of reading any tutorials in regards to this type of project. Reading the Stamp manual helps but I don't get a full understanfding of all the "options" available for the SERIN command and what the purpose and why it does what it does type of explanation. I see in a recent post here someone trying to communicate with a weather station. I thought maybe some of that code may help and tried a few snippets of it but it did not seem to work for me.
In my first attempt here I send the board the required ENQ command to which it replies DLE 0 however I cant seem to display this on the debug screen.
Thanks in advance for everyones help.
By the way I'll mention that in the PDF file the black printing indicates the message that·would come·from the Stamp and the red indicates the response from the control board back to the Stamp.
Post Edited (donm) : 9/14/2008 3:45:15 PM GMT
I am pretty much a newbie with understanding this programming so please bear with me. I am trying to use a Basic Stamp to read DEX info from a control board.
I have the Saleae Logic analyzer to which I connected to this control board and read the communication data stream·that was done by a program in the PC through the PC serial port to this control board. I have saved some of that communication to a PDF file labeled DEX attached to this post so you can see the dialog back and forth between the control board and the PC. I am trying to mimic this process using a Basic Stamp instead of a PC. I am eventually looking to store this information to a USB memory stick using the Parallax USB Data Logger board but want to get the basics down first in just talking back and forth to the board.
My first effort is to better understand how to format and write this code to just send the initialization data and then read the returned info into the debug screen. I have also attached my first attempt at programming·for sending the info to the control board and debugging its response. I have looked through this forum and various other examples trying to piece meal something together that I can understand however I am having a tough go of it so far. What is hard for me to understand is the type of data I am looking to receive and to tell the stamp how to wait for that right data and what to do once it comes. I am very much in favor of reading any tutorials in regards to this type of project. Reading the Stamp manual helps but I don't get a full understanfding of all the "options" available for the SERIN command and what the purpose and why it does what it does type of explanation. I see in a recent post here someone trying to communicate with a weather station. I thought maybe some of that code may help and tried a few snippets of it but it did not seem to work for me.
In my first attempt here I send the board the required ENQ command to which it replies DLE 0 however I cant seem to display this on the debug screen.
Thanks in advance for everyones help.
By the way I'll mention that in the PDF file the black printing indicates the message that·would come·from the Stamp and the red indicates the response from the control board back to the Stamp.
Post Edited (donm) : 9/14/2008 3:45:15 PM GMT