From: Michal Kratky <kratky@FZU.CZ>
Subject: Re: Seriovy port
Date: Wed, 30 Aug 1995 09:59:09 +0200
Next Article (by Date): Skoleni-slevy pro skolstvi Rudisar Ladislav
Previous Article (by Date): Re: Postscript kontra Windows "Dr. Radomir Palovsky"
Top of Thread: Seriovy port Vladimir Rengevic
Next in Thread: Re: Seriovy port Petr Kolar
Articles sorted by: [Date]
[Subject]
On Mon, 28 Aug 1995, Vladimir Rengevic wrote: > Prajem vsetkym dobry den. > > Ospravedlnujem sa ak to dostanete 2x, ale posielam to do dvoch konferencii. > (uz v zachvate zufalosti-je to zaklad mojej dipl. prace). > > Mam k PC pripojenu malu skrinku na seriovy port. 25 pin konektor: > 1-7-GND > 2 tx data > 3 rx data > 4-5 > 6-8-20 > podla popisu je to nulovy modem. > > Teraz ten problem. V DOSe to beha bez problemov. Ja to ale potrebujem > dostat pod Linux. Tam jednoducho otvorim zariadenie: > fd=open("/dev/cua1",O_WR_ONLY); > a potom tam nieco poslem: > write(fd,out,10); kde je: char buf[10] > a na port sa nedostane vobec nic. Skusal som to aj ako root, ale vysledok > sa nedostavil ziadny. Na krabicke je LED, ktora indikuje data (akekolvek) > na porte, teda spetnu vazbu mam. > Bylo by dobre vedet, jestli open probehlo nebo zustalo viset. Nevim jak v Linuxu, ale v BSD systemech je soubor /etc/ttytab, ktery mimo jine urcuje, zda seriovy port je lokalni nebo pres modem. Jestlize tam *neni* napsano local, tak se port neotevre, protoze ceka na nejakou hardwarovou udalost - nejake to ready od modemu. Michal Kratky
Next Article (by Date): Skoleni-slevy pro skolstvi Rudisar Ladislav
Previous Article (by Date): Re: Postscript kontra Windows "Dr. Radomir Palovsky"
Top of Thread: Seriovy port Vladimir Rengevic
Next in Thread: Re: Seriovy port Petr Kolar
Articles sorted by: [Date]
[Subject]