What is the RS232 spec on the device to which you are interfacing?
Norm
What is the RS232 spec on the device to which you are interfacing?
Norm
I'm not having any luck -- works great wired though.
As mentioned before, I'm using the PIC (16c65b) SEROUT and SERIN.
The wireless device is a maxstream Xstream X24009 oem module.
The interface listed in the data sheet says CMOS UART (as I mentioned before).
I've tried everything.
Inverting one side, both sides, putting the signals through a 4011 inverter....the scope shows
data on the rcvr and xmtr but I don't have a dual trace so it's really hard to see how the streams are matching up.
Oh well -- I went through this before, I may just give up and move on.
I wish I would have used the PIC's hardware UART in the first place....too late now.
I have a pair of XStream units I've been using for a few years that work great. Just use
true mode and connect PIC I/O-pins directly to them.
It may be that you have them configured for another data-rate or something, but I would
check with Digi or Maxstream to be sure they're working if having problems with them.
Mine worked perfectly right out of the box.
For what its worth, I use LINX RXM/TXM-XXX-LR serial modules with inverted 9600 8N1 with no problems at all. I use serin/serout2 commands and just played with my timing to be able to update both my reciever boards with string data. The serial modules work GREAT up to 3000' away and can go up to 10k baud. I would give them a shot if you are frustrated with the other modules you are using. The price for the pair ~ 25.00 so not too bad. You can also purchase the development board.
Here is one line of code using 8N1 9600 inverted
good luck!Code:SERIN2 PORTB.0,16468,[WAIT("TENSION"),DEC4 TN]'TEST 3
Padawan-78
Bruce and Earltyso --
You know, I think it's because I don't have a wait command in my code.
??
On my wired connection, that doesn't seem to be a problem although things are out of sequence a bit after power up....not a big deal with what I'm doing.....but with wireless, it may be mandatory? you think that may be it?
I'm also using 2 qualifiers in my code which I wouldn't think would be a problem as in...
qual1, qual2, data
Bruce, I'm using the X24009 modules -- 1200,8N1 -- I just changed the data rate to 1200 (they're 9600 out of the box) and left everything else at default when I used the XCT-U software and the XIBR setup board.
I'm going PIC serout to PIC serin pin to pin just like you. Both PICs true.
Also, I've never experimented with "timing" -- I'm a picbasic novice in that department....maybe I need to look at that......are you talking about the pulse width or something?
THANKS.
I always use a wait modifier to synch to the first byte in a packet.
This is the line used to receive in my remote sprinkler controller using a pair of
XStream 900MHz OEM modules;
SERIN2 RX,84,[WAIT("A"),CMD,RlyNum,State]
It waits for the A then grabs data. Really simple and it works.
I would probably have used a pair of Linx LR series like Earltyso did, but I built
the remote sprinkler controller LONG before the LR series were available.
Ok -- I'll keep playing with it.
I remember now why I didn't have a wait in there....because I have to keep things moving for counters and other processes....I never tried the wait command but it probably won't hurt anything....few milliseconds at most I guess.
It just keeps ticking me off though because it works prefectly wired, so I hate to be screwing with the code.
Thanks for the input.
Bookmarks