You won't believe this, but I do that trick already. I use a 74HCT125 as a data selector to switch between an RS-232 port, and a Lantronix XPORT (which does telnet).
What I really need is HSERINx/HSEROUTx !!!
You won't believe this, but I do that trick already. I use a 74HCT125 as a data selector to switch between an RS-232 port, and a Lantronix XPORT (which does telnet).
What I really need is HSERINx/HSEROUTx !!!
Charles Linquist
Oh...I believe it...
Sounds like you're into messing with HSERIN in the libs then!What I really need is HSERINx/HSEROUTx !!!
Maybe you could throw a 'PORT QUALIFIER' as the first character of every HSEROUT statement which would trip another I/O select pin into said library function.
I.E.
HSEROUT ["1", data, data, data]
would always go to the first port
HSEROUT ["2", data, data, data]
would always go to the second port
I would think it wouldn't be that hard to modify the libraries to do recognize the first character in the output stream and switch ports accordingly.
In fact, I'm going to have a look at the libraries right now...
Just had a quick look see at the library and it's immediately obvious that modifying the library to do what I suggested above will add a lot more code than just using HSEROUT2.
I don't support you could post the source...maybe we could find a few places to save some code space for you. I'm up for it...
Sorry, can't post the code (it is the property of the company I work for).
But, you are probably correct in stating that the extra assy structures needed to switch between TX/RX REG1 and TX/RX REG2 would add too much code also.
I'll have to look into this more.
Charles Linquist
I really appreciate the offer, though. I just saw where I can do some "compacting" myself.
One part that takes up too much space - I have a complete SNMP agent running. I'll start there.
Charles Linquist
I try to be careful. The program has over 6500 lines of PBP. There is some asm code involved, too.
Charles Linquist
Bookmarks