01-04-2007 12:37 PM - edited 01-04-2007 12:37 PM
Message Edited by kingofnoland on 01-04-2007 12:39 PM
 Steve.Briggs
		
			Steve.Briggs
		
		
		
		
		
		
		
		
	
			01-04-2007 12:39 PM
 
					
				
		
 DavidJCrawford
		
			DavidJCrawford
		
		
		
		
		
		
		
		
	
			01-04-2007 01:46 PM
That would mean that you have Pin 2 wired to Pin3 at the PC end. That might be a short on your rsr232 cable or your pcb prototype. That would explain why the characters are being received at the serial port. Remove the RS232 cable at the PC and check that there isn't a short circuit between pins 2 and 3.
David
 
					
				
		
 Wayne.C
		
			Wayne.C
		
		
		
		
		
		
		
		
	
			01-04-2007 02:26 PM
 
					
				
		
 Wayne.C
		
			Wayne.C
		
		
		
		
		
		
		
		
	
			01-04-2007 02:54 PM
Here is another observation about your C code. I think it is a bit misleading as to the protocol. I'm pretty sure that the sequence of events should be as follows:
write command "C" to reset the transmitter
write command "T" plus the transmitter address
write command "S" plus the termination character "cr" or "\r"
My reasoning is that if you are talking to multiple transmitters, you must first command which one you want to communicate with ( command "T" ) before you request the status ( "S" )
 
01-04-2007 09:48 PM
 Olli
		
			Olli
		
		
		
		
		
		
		
		
	
			01-05-2007 02:50 AM - edited 01-05-2007 02:50 AM
Message Edited by Olli on 01-05-2007 02:50 AM
Message Edited by Olli on 01-05-2007 02:54 AM
 
					
				
		
 DavidJCrawford
		
			DavidJCrawford
		
		
		
		
		
		
		
		
	
			01-05-2007 03:02 AM
01-05-2007 03:08 PM
 
					
				
		
 DavidJCrawford
		
			DavidJCrawford
		
		
		
		
		
		
		
		
	
			01-05-2007 06:27 PM
To get 'A' or 1010 then you enter 0A into control Byte when in hex display mode (little x on left). This will send 00001010 in the 8 data bits of the serial packet
I was wondering about the address being up to 10 characters long. What you normally type into the DOS program when prompted?
I am sorry to sound like a broken record but I am very suspicious about the RS characters appearing in the receive buffer of the PC com port when using the example program. Its either the custom hardware micro code responding in echo or Pins 2 and 3 are shorted together in either the RS232 cable assembly or the custom hardware.
David