Serial Ports

  • Follow


Hi,
    I am having a problem trying to interface ntpd with a Truetime
GPS(560-5900) PCI card. The PnP BIOS automatically configures the I/O port and
IRQ for the PCI card at 0xd000 and 10 respectively during bootup.

I tried setting up a logical device /dev/ttyS2 with port 0xd000 and IRQ 10
using the "setserial" command. ( ttyS0 and ttyS1 were both configured by the h/w
at 0x3f8 and 0x2f8). Then, I rebooted the system to let the changes take place.
I also created a symbolic link /dev/true0 to point to /dev/ttyS2.

The changes were reflected in the /proc/tty/driver/serial file but still I
am unable to communicate with the device.  Can anyone help me ?

Thanks,
Ramanathan Palaniappan
Graduate Student
Computer Sciences Department
University of Wisconsin-Madison
0
Reply Ramanathan 4/15/2005 11:58:20 PM

Ramanathan Palaniappan wrote:

>Hi,
>    I am having a problem trying to interface ntpd with a Truetime
>GPS(560-5900) PCI card. The PnP BIOS automatically configures the I/O port and
>IRQ for the PCI card at 0xd000 and 10 respectively during bootup.
>
>I tried setting up a logical device /dev/ttyS2 with port 0xd000 and IRQ 10
>using the "setserial" command. ( ttyS0 and ttyS1 were both configured by the h/w
>at 0x3f8 and 0x2f8). Then, I rebooted the system to let the changes take place.
>I also created a symbolic link /dev/true0 to point to /dev/ttyS2.
>
>The changes were reflected in the /proc/tty/driver/serial file but still I
>am unable to communicate with the device.  Can anyone help me ?
>
>Thanks,
>Ramanathan Palaniappan
>Graduate Student
>Computer Sciences Department
>University of Wisconsin-Madison
>  
>
Have you tried obtaining and reading the documentation for your card?

http://www.symmetricom.com/media/pdf/documents/ds-bc635-637pci.pdf

A quick look at the above suggests that you need special drivers for the 
card and it does not mention any sort of serial port emulation!!!

If you can't make it work, I would be delighted to have it!!!!!!!!!

0
Reply Richard 4/16/2005 3:09:59 AM


If you use "tip" or "cu" to /dev/true0 (or /dev/ttyS2) do you see the output
you expect?

H
0
Reply Harlan 4/16/2005 4:47:58 AM

Hi,
  tip and cu did not work in my machine ( I am having red hat linux 9.0
with a 2.4.20 kernel )..I tried echoing to the serial port, but it does
not seem to work.

Is there anyway I could configure my PCI card at serial port ttyS0 ( which
is configured by the BIOS at 0x3f8 )...

Thanks,
Ramanathan

 On Sat, 16 Apr 2005, Harlan Stenn wrote:

> If you use "tip" or "cu" to /dev/true0 (or /dev/ttyS2) do you see the output
> you expect?
>
> H
> _______________________________________________
> questions mailing list
> questions@lists.ntp.isc.org
> https://lists.ntp.isc.org/mailman/listinfo/questions
>
0
Reply Ramanathan 4/16/2005 12:51:20 PM

Hi,
  If it does not emulate a serial port, then how will I make ntpd
communicate with the device..?

Thanks,
Ramanathan

On Fri, 15 Apr 2005, Richard B. Gilbert wrote:

> Ramanathan Palaniappan wrote:
>
> >Hi,
> >    I am having a problem trying to interface ntpd with a Truetime
> >GPS(560-5900) PCI card. The PnP BIOS automatically configures the I/O port and
> >IRQ for the PCI card at 0xd000 and 10 respectively during bootup.
> >
> >I tried setting up a logical device /dev/ttyS2 with port 0xd000 and IRQ 10
> >using the "setserial" command. ( ttyS0 and ttyS1 were both configured by the h/w
> >at 0x3f8 and 0x2f8). Then, I rebooted the system to let the changes take place.
> >I also created a symbolic link /dev/true0 to point to /dev/ttyS2.
> >
> >The changes were reflected in the /proc/tty/driver/serial file but still I
> >am unable to communicate with the device.  Can anyone help me ?
> >
> >Thanks,
> >Ramanathan Palaniappan
> >Graduate Student
> >Computer Sciences Department
> >University of Wisconsin-Madison
> >
> >
> Have you tried obtaining and reading the documentation for your card?
>
> http://www.symmetricom.com/media/pdf/documents/ds-bc635-637pci.pdf
>
> A quick look at the above suggests that you need special drivers for the
> card and it does not mention any sort of serial port emulation!!!
>
> If you can't make it work, I would be delighted to have it!!!!!!!!!
>
> _______________________________________________
> questions mailing list
> questions@lists.ntp.isc.org
> https://lists.ntp.isc.org/mailman/listinfo/questions
>
0
Reply Ramanathan 4/17/2005 2:59:12 AM

Ramanathan,

Somebody needs to write a driver for the card.  You might be able to do
this, or the vendor could do it, or somebody could contract or find a
volunteer to do it.  ntp.isc.org would be willing to do this - it would
require some resources (like one of those cards and/or sufficient money).

One choice would be to have a separate program read the time and use the SHM
refclock.

H
0
Reply Harlan 4/17/2005 7:12:13 AM

Hi,
   I have otained the drivers from the vendor itself..It seemz that
refclock 127.127.41.0 ( IRIG-B decoder for the PCI bus) will be the
correct clock driver for the TrueTime 560-5900 model, but the latest
version  of ntp does not support this driver. I tried enabling it while
configuring NTP but it did not install properly...

Thanks,
Ramanathan

 On Sun, 17 Apr 2005, Harlan Stenn wrote:

> Ramanathan,
>
> Somebody needs to write a driver for the card.  You might be able to do
> this, or the vendor could do it, or somebody could contract or find a
> volunteer to do it.  ntp.isc.org would be willing to do this - it would
> require some resources (like one of those cards and/or sufficient money).
>
> One choice would be to have a separate program read the time and use the SHM
> refclock.
>
> H
> _______________________________________________
> questions mailing list
> questions@lists.ntp.isc.org
> https://lists.ntp.isc.org/mailman/listinfo/questions
>
0
Reply Ramanathan 4/17/2005 3:47:40 PM

Ramanathan Palaniappan wrote:

>Hi,
>  If it does not emulate a serial port, then how will I make ntpd
>communicate with the device..?
>
>Thanks,
>Ramanathan
>
>On Fri, 15 Apr 2005, Richard B. Gilbert wrote:
>
>  
>
>>Ramanathan Palaniappan wrote:
>>
>>    
>>
>>>Hi,
>>>   I am having a problem trying to interface ntpd with a Truetime
>>>GPS(560-5900) PCI card. The PnP BIOS automatically configures the I/O port and
>>>IRQ for the PCI card at 0xd000 and 10 respectively during bootup.
>>>
>>>I tried setting up a logical device /dev/ttyS2 with port 0xd000 and IRQ 10
>>>using the "setserial" command. ( ttyS0 and ttyS1 were both configured by the h/w
>>>at 0x3f8 and 0x2f8). Then, I rebooted the system to let the changes take place.
>>>I also created a symbolic link /dev/true0 to point to /dev/ttyS2.
>>>
>>>The changes were reflected in the /proc/tty/driver/serial file but still I
>>>am unable to communicate with the device.  Can anyone help me ?
>>>
>>>Thanks,
>>>Ramanathan Palaniappan
>>>Graduate Student
>>>Computer Sciences Department
>>>University of Wisconsin-Madison
>>>
>>>
>>>      
>>>
>>Have you tried obtaining and reading the documentation for your card?
>>
>>http://www.symmetricom.com/media/pdf/documents/ds-bc635-637pci.pdf
>>
>>A quick look at the above suggests that you need special drivers for the
>>card and it does not mention any sort of serial port emulation!!!
>>
>>If you can't make it work, I would be delighted to have it!!!!!!!!!
>>
>>_______________________________________________
>>questions mailing list
>>questions@lists.ntp.isc.org
>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>
>>    
>>
As far as I know, this BC635 PCI (better known name for this part)  is 
not supported by ntpd!  You would have to write an ntpd refclock  driver 
for it.  You might be able to make use of the functions supplied in the 
software development kit that TrueTime/Symmetricomm used to offer for 
this board (see the data sheet).   I don't know if it's still available 
or how much it costs if it is still available.

In addition this device is not, in itself, a time source!    A similar 
device, the BC637 PCI had a built in GPS receiver.   The GPS receiver 
could be used to discipline the internal clock on the board.  I believe 
that the BC635 could use an IRIG-B time code signal generated by a 
BC637  to synchronize its internal clock.

What little I know of this device, I learned from searching the web 
after one was offered for sale on e-Bay.   I have never actually used 
one.  So far, all the BC635s offered for sale have cost more than I 
cared to spend on my little hobby!!

If you can connect a GPS receiver or an IRIG-B time signal to it, it 
should make a very nice reference clock but it will take a great deal of 
work to make it happen!
0
Reply Richard 4/17/2005 6:52:45 PM

Ramanathan Palaniappan wrote:

>Hi,
>   I have otained the drivers from the vendor itself..It seemz that
>refclock 127.127.41.0 ( IRIG-B decoder for the PCI bus) will be the
>correct clock driver for the TrueTime 560-5900 model, but the latest
>version  of ntp does not support this driver. I tried enabling it while
>configuring NTP but it did not install properly...
>
>Thanks,
>Ramanathan
>
> On Sun, 17 Apr 2005, Harlan Stenn wrote:
>
>  
>
>>Ramanathan,
>>
>>Somebody needs to write a driver for the card.  You might be able to do
>>this, or the vendor could do it, or somebody could contract or find a
>>volunteer to do it.  ntp.isc.org would be willing to do this - it would
>>require some resources (like one of those cards and/or sufficient money).
>>
>>One choice would be to have a separate program read the time and use the SHM
>>refclock.
>>
>>H
>>_______________________________________________
>>questions mailing list
>>questions@lists.ntp.isc.org
>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>
>>    
>>
Do you have an IRIG-B time signal available?   The board accepts IRIG-B 
as an input.
0
Reply Richard 4/17/2005 6:56:14 PM

On Sun, 17 Apr 2005, Richard B. Gilbert wrote:

Hi,
   I have an IRIG-B signal coming from a TrueTime GPS antenna and I
plugged it into the PCI card..The driver detects the card and reads the time values
from the device but all of them seem to be junk...In fact, the driver
prints out that the "GPS status is wrong"..

Thank You,
Ramanathan

> Ramanathan Palaniappan wrote:
>
> >Hi,
> >   I have otained the drivers from the vendor itself..It seemz that
> >refclock 127.127.41.0 ( IRIG-B decoder for the PCI bus) will be the
> >correct clock driver for the TrueTime 560-5900 model, but the latest
> >version  of ntp does not support this driver. I tried enabling it while
> >configuring NTP but it did not install properly...
> >
> >Thanks,
> >Ramanathan
> >
> > On Sun, 17 Apr 2005, Harlan Stenn wrote:
> >
> >
> >
> >>Ramanathan,
> >>
> >>Somebody needs to write a driver for the card.  You might be able to do
> >>this, or the vendor could do it, or somebody could contract or find a
> >>volunteer to do it.  ntp.isc.org would be willing to do this - it would
> >>require some resources (like one of those cards and/or sufficient money).
> >>
> >>One choice would be to have a separate program read the time and use the SHM
> >>refclock.
> >>
> >>H
> >>_______________________________________________
> >>questions mailing list
> >>questions@lists.ntp.isc.org
> >>https://lists.ntp.isc.org/mailman/listinfo/questions
> >>
> >>
> >>
> Do you have an IRIG-B time signal available?   The board accepts IRIG-B
> as an input.
> _______________________________________________
> questions mailing list
> questions@lists.ntp.isc.org
> https://lists.ntp.isc.org/mailman/listinfo/questions
>
0
Reply Ramanathan 4/17/2005 9:24:29 PM

Ram,

The TrueTime guys wrote both the kernel driver, which is proprietary to 
them, and the NTP driver, which is not. The kernel driver must be 
installed in the operating system; it has nothing to do with NTP. The 
NTP driver opens the device /dev/tt560 and maps the device registers in 
shared memory. If startup gets that far and there are errors in 
decoding, etc., there may be descrepancies between the device register 
map and the header file used by the NTP driver. That's easy to fix.

Having said that, the only kernel driver I know of from TrueTime is for 
Windows. Hmm.

As you may know, TrueTime was bought by its competitor gorrila 
Symmetricom, which tossed a lot of things out of their product line 
including, it seems, the TT560. It looks like their current board level 
products are legacy from Bancomm, which was an earlier victim as well.

Dave

Ramanathan Palaniappan wrote:
> Hi,
>    I have otained the drivers from the vendor itself..It seemz that
> refclock 127.127.41.0 ( IRIG-B decoder for the PCI bus) will be the
> correct clock driver for the TrueTime 560-5900 model, but the latest
> version  of ntp does not support this driver. I tried enabling it while
> configuring NTP but it did not install properly...
> 
> Thanks,
> Ramanathan
> 
>  On Sun, 17 Apr 2005, Harlan Stenn wrote:
> 
> 
>>Ramanathan,
>>
>>Somebody needs to write a driver for the card.  You might be able to do
>>this, or the vendor could do it, or somebody could contract or find a
>>volunteer to do it.  ntp.isc.org would be willing to do this - it would
>>require some resources (like one of those cards and/or sufficient money).
>>
>>One choice would be to have a separate program read the time and use the SHM
>>refclock.
>>
>>H
>>_______________________________________________
>>questions mailing list
>>questions@lists.ntp.isc.org
>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>
0
Reply David 4/18/2005 2:26:40 AM

Ramanathan Palaniappan wrote:

>On Sun, 17 Apr 2005, Richard B. Gilbert wrote:
>
>Hi,
>   I have an IRIG-B signal coming from a TrueTime GPS antenna and I
>plugged it into the PCI card..The driver detects the card and reads the time values
>from the device but all of them seem to be junk...In fact, the driver
>prints out that the "GPS status is wrong"..
>
>Thank You,
>Ramanathan
>
>  
>
>>Ramanathan Palaniappan wrote:
>>
>>    
>>
>>>Hi,
>>>  I have otained the drivers from the vendor itself..It seemz that
>>>refclock 127.127.41.0 ( IRIG-B decoder for the PCI bus) will be the
>>>correct clock driver for the TrueTime 560-5900 model, but the latest
>>>version  of ntp does not support this driver. I tried enabling it while
>>>configuring NTP but it did not install properly...
>>>
>>>Thanks,
>>>Ramanathan
>>>
>>>On Sun, 17 Apr 2005, Harlan Stenn wrote:
>>>
>>>
>>>
>>>      
>>>
>>>>Ramanathan,
>>>>
>>>>Somebody needs to write a driver for the card.  You might be able to do
>>>>this, or the vendor could do it, or somebody could contract or find a
>>>>volunteer to do it.  ntp.isc.org would be willing to do this - it would
>>>>require some resources (like one of those cards and/or sufficient money).
>>>>
>>>>One choice would be to have a separate program read the time and use the SHM
>>>>refclock.
>>>>
>>>>H
>>>>_______________________________________________
>>>>questions mailing list
>>>>questions@lists.ntp.isc.org
>>>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>>>
>>>>
>>>>
>>>>        
>>>>
>>Do you have an IRIG-B time signal available?   The board accepts IRIG-B
>>as an input.
>>_______________________________________________
>>questions mailing list
>>questions@lists.ntp.isc.org
>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>
>>    
>>
Please don't top post!

How does a GPS **antenna** generate an IRIG-B signal?   It would seem 
that there would have to be a little more to it than just an antenna.   
GPS receivers do not normally output IRIG-B either.

GPS requires signals from four satellites in order to solve the system 
of equations that produces a 3-D position and the time.  With fewer, the 
time cannot be obtained unless the position is already known.  If your 
antenna location is less than optimal, you may not be able to receive 
signals from four satellites.  You may find that, for a few hours each 
day, GPS will work and during the rest of the day it will not.

The GPS receiver should probably be reporting what the problem is.   If 
the receiver returns a numeric status code and the driver reports it, 
you may have to decode it to determine what the problem is.

I think you need to spend a great deal of time reading the documentation 
for the equipment and software you are trying to use!!!
0
Reply Richard 4/18/2005 2:27:18 AM

Ram,

You might have a little detective work to do. It could be the driver 
register map does not match the header file in the distribution. If 
that's the only thing that's wrong, be happy.

Dave

Ramanathan Palaniappan wrote:

> On Sun, 17 Apr 2005, Richard B. Gilbert wrote:
> 
> Hi,
>    I have an IRIG-B signal coming from a TrueTime GPS antenna and I
> plugged it into the PCI card..The driver detects the card and reads the time values
> from the device but all of them seem to be junk...In fact, the driver
> prints out that the "GPS status is wrong"..
> 
> Thank You,
> Ramanathan
> 
> 
>>Ramanathan Palaniappan wrote:
>>
>>
>>>Hi,
>>>  I have otained the drivers from the vendor itself..It seemz that
>>>refclock 127.127.41.0 ( IRIG-B decoder for the PCI bus) will be the
>>>correct clock driver for the TrueTime 560-5900 model, but the latest
>>>version  of ntp does not support this driver. I tried enabling it while
>>>configuring NTP but it did not install properly...
>>>
>>>Thanks,
>>>Ramanathan
>>>
>>>On Sun, 17 Apr 2005, Harlan Stenn wrote:
>>>
>>>
>>>
>>>
>>>>Ramanathan,
>>>>
>>>>Somebody needs to write a driver for the card.  You might be able to do
>>>>this, or the vendor could do it, or somebody could contract or find a
>>>>volunteer to do it.  ntp.isc.org would be willing to do this - it would
>>>>require some resources (like one of those cards and/or sufficient money).
>>>>
>>>>One choice would be to have a separate program read the time and use the SHM
>>>>refclock.
>>>>
>>>>H
>>>>_______________________________________________
>>>>questions mailing list
>>>>questions@lists.ntp.isc.org
>>>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>>>
>>>>
>>>>
>>
>>Do you have an IRIG-B time signal available?   The board accepts IRIG-B
>>as an input.
>>_______________________________________________
>>questions mailing list
>>questions@lists.ntp.isc.org
>>https://lists.ntp.isc.org/mailman/listinfo/questions
>>
0
Reply David 4/18/2005 2:36:39 AM

12 Replies
233 Views

(page loaded in 0.119 seconds)


Reply: