Art,While you have a MAX232 connected you might as well test it with a real RS232 port (not a USB to serial dongle).
Hi E,hi,
Are you able to transfer test data between your two PC's via the converters.?
Check that you have set up the USB/RS converters correctly.??
E
I would say a USB to RS232 converter would require a MAX232 at the PIC end of the cable.USB to serial converters connected directly to the PIC RX Pin 26 +GND, shows nothing
Hi E,I would say a USB to RS232 converter would require a MAX232 at the PIC end of the cable.
What Baud rate is the USB/RS232 PC output set to.? also what is the Baud rate of the GPS.?Hi E,
I have two USB to serial converters, one is RS232 3.3V and the other is TTL 5V neither work with or without the MAX232.
C.
Hi E,What Baud rate is the USB/RS232 PC output set to.? also what is the Baud rate of the GPS.?
Also is the Putty set to, 1 start bit, 8 data bits. 1 stop bit.?
Which version of the program are you testing with.?
E
OK,I've been using the last program you sent to me, after I corrected the comments, but no changes the the actual program. (CamPad_Uart1V-1 B.bas)
Hi E,hi,
Use this PIC UART transmit only test program,
Connect the PIC to a RS232/USB converter, use a level shifter, MAX232 IF required.
It will transmit from the PIC to to the PC this text 'Test Data String' at 200mS rate, let me know if the Putty can read it to your PC screen.
E
Hi E,hi,
I have modified this program to ONLY check the PIC's UART RX receive operation and send the received data to the LCD.
No keypad etc.....
Enter a test message on your PC and use Putty to send it to the PIC, make sure that you have the CR and LF at the end of the test string.
E
Hi E,hi,
There is no reason in that test program why you should get '11111's??
Are the voltage levels on the RS232 lines OK.?
Its important that you send CRLF's codes at the end of all strings
E
Hi E,hi C,
Are you sure that when you paste the GPS string onto Putty that the end of message string has a CR and LF code? , the program looking for the LF code.
E
hi C,Hi E,
I added a ? to each bit of text and it's working. I didn't understand the CR LF code? bit.
So am I correct that each section of text needs a $ at the front and a ? at the end?
C.