-
Categories
-
Platforms
-
Content
Removing it from the code didn't make any difference.BTW, while reading through some of the code posted I noticed that the comments on the Pause 1 lines states "Pause for 1uS". That's actually a 1 millisecond (1mS) pause.
That's not exactly what the manual states. This is....Thinking about it now made me see that the Simulation is a nice tool but not flawless.
Think about it, when we where runnimg our first simulations and altering the code we used pin C.5 as GPS1 serin while the picaxe manual states that in order to use C.5 (which is not recommended) you have to use Hserin command. During simulations that did not produce an error. WHY ?
My next step will be to transmit NMEA sentences captured from the GPS from the PC to the picaxe useing some software (probably Hyperterminal if it can transmit) and see how the picaxe will react.
Any suggestions about communication software are welcomed !
Are you certain of the baud rate used by the GPS?HSERIN var
- Var is a variable to receive the data byte.
Function:
Serial input via the hardware serial input pin (format 8 data, no parity, 1 stop).
Information:
The hserin command is used to receive serial data from the fixed hardware serial
input pin of the microcontroller. It cannot generally be used with the serial
download input pin - use the serrxd command in this case.
Baud rate is defined by the hsersetup command, which must be issued before this
command can be used.
Users familiar with the serin command will note the hserin command has a
completely different format. This is because the hserin command supports much
higher baud rates than serin, and so is unable to process received bytes ’on the fly’
(e.g. by changing ASCII into binary, as with the serin # prefix), as there is
insufficient time for this processing to occur before the next hserin byte is
received (at high baud rates). Therefore the raw data is simply saved in the
memory and the user program must then process the raw data when all the bytes
have been received.
Yes. Positive. I have set it to 4.800 . The same setting i use to connect the GPS to the pc to extract the NMEA sentences.Are you certain of the baud rate used by the GPS?
Well ok but here it says :That's not exactly what the manual states. This is....
If you have any doubts why not create another program to test it? I'm referring to simply receiving the GPS into the Picaxe and outputting that data to hyperterm?
I doubt very much that 4800 baud is too fast for any Picaxe.
Are you sure its not supposed to be T4800_4 instead of N4800_4?
I will try that now and let you know.
I really think we should try this and maybe it will give us a picture what Picaxe is reading. Given that the problem is that it reads data wrong an that it does not write them wrong which i dont think is the case because when i wtore the code to transmit the GSAhello, it wrote it correctly.In the meanwhile can you write a code where picaxe will echo back out to the pc whatever is getting from the GPS ?
I was thinking about this issue before you posted this. I'm referring to using a single 14M2 to receive two separate satellite signals. While Picaxe states that their chips can multitask it is not a true multi-threading capability. The chip is simply capable of making use of Pause commands to branch program flow to another task during the Pause period. This is obviously not true multi-threading.In addition to the above i think we may need to use a MAX232 interface between the GPS and the picaxe.
Theese are rally cheap. I think i will order a few just to check.
This is the one i am thinking to order. Do you think this is suitable to accept 2 rs232 inputs and give out 2 TTL outputs ? (to use 1 chip for both GPS's)
http://www.ebay.com/itm/10PCS-MAX23...403746?hash=item3d17dd9962:g:AgMAAOSw14xXFKm9