Quote:
Originally Posted by ashaquick
Okay, that didn't work.
|
There are also a few low level settings that can be set with the
setserial command. I just looked through the
man page and didn't see anything I would expect could cause what you see. If you decide to take a look at that, be sure you don't confuse the
baud_base which is set with
setserial with the
baud rate which is set with
stty.
stty controls the actual baud rate that is used;
setserial is controlling something lower level.
If you have a system you can afford to play with, I have a couple of ideas you might try. No guarantees. One thing you can try, just to see if produces any output (and thereby gain some more diagnostic info) is to, as
root send some text to
/dev/ttyS1 using
echo:
Code:
echo "This is some trial text" > /dev/ttyS1
Please note that I have sometimes rather hosed a system while trying such things. Nothing serious -- a reboot restored things to functional.
The other thing you might try (again, to get some diagnostic info) is leaving things hooked up the way "they are supposed to be" and try simply redirecting the output of EFTPOS to the customer display at ttyS3. What I think this should show you is whether the problem is simply that your software is expecting something from the EFTPOS that the customer display is not providing.
This is probably a little riskier, so decide what your comfort level is before deciding whether to proceed.
What I am proposing is something like, as
root
Code:
mv /dev/ttyS1 /dev/ttySS1
ln -s /dev/ttyS3 /dev/ttyS1
# After test, restore things by:
rm -f /dev/ttyS1
mv /dev/ttySS1 /dev/ttyS1
The above termporarilly renames the node
/dev/ttyS1 just to get it out of the way, and then creates a symbolic link with the name
/dev/ttyS1 which actually points to
/dev/ttyS3. This way what the software would normally send to EFTPOS gets sent to the customer display, but the customer display is still physically sitting on its normal port. If this fails, I think it would mean the software is expecting something that the customer display simply doesn't provide. Perhaps identifying itself or something related to the security that EFTPOS requires. (I am not real familiar with the
udev system, so I can't be certain it won't try to get into the game and complicate things.)
I believe I have seen tools on the Internet to actually let you see the data sent across the serial lines, but my recollection is it was rather involved to use, perhaps requiring recompiling the kernel. I also know there used to be equipment (we just called it a communication analyzer) that can physically monitor a serial line and show what has transpired, including the ability to set trigger points. That would probably require your company to drop a few bucks to rent one, and might be more trouble than you are willing to go to.