MODEM

ZXNet echo conference «code.zx»

From Konstantin Butorin To All 11 June 2002

Hi, All! My perversions of connecting modems are not over... Now I’m connecting hayes via lpt. So: if anyone knows, please write how to program hayes. All teams there seems to be. How to write them to the modem? Let's say if I connected the rd and wr signals through the printer - how should they be installed so that it understands what I want from it? You need something like state diagrams... And in general everything related programming at the hardware level. I immediately want to stop all phrases like: “Why do you need this?” If I do - so it’s necessary... That’s the kind of pervert I am... Bye All...

From Kirill Frolov To Konstantin Butorin 14 June 2002

Press RESET immediately, Konstantin! 13 Jun 02 19:13, Aleksandr Majorov wrote to Konstantin Butorin: KB>> So: if anyone knows, please write how to program it. KB>> The commands are all there. How to write them to the modem? Let's say if I KB>> connected the rd and wr signals via the printer - as they should be KB>> install so that he understands what I want from him? AM> How did you implement 8 modem ports? The following wires need to be connected to the modem: DATA -- 8 pieces ADDRESS -- 3 pieces (A0,A1,A2 on ISA slot) IORD -- write to port (act. 0) IOWR -- read from port (act. 0) The remaining modem addresses are connected so that some pissy COM port address, set AEN to 0 (I could be wrong), RESET to 0 (on the spec the signal is inverse). The modem itself must be configured with jumpers to that COM port address which is exhibited on the ISA bus. If the modem is plug and play then software configuration is required addresses... better don't contact. PC COM port addresses: COM1 3F8 COM2 2F8 COM3 3E8 COM4 2E8 ISA connector pinout: +---------+---------------+-----------------+---------+ | contact | signal | signal | contact | +-+-----+-+---------------+-----------------+-+-----+-+ | A1 | IOCHK | GND | B1 | +-----+-----------------+-------------------+-----+ | A2 | D7 | RESET | B2 | +-----+-----------------+-------------------+-----+ | A3 | D6 | +5v | B3 | +-----+-----------------+-------------------+-----+ | A4 | D5 | IRQ2/9 (*) | B4 | +-----+-----------------+-------------------+-----+ | A5 | D4 | -5v | B5 | +-----+-----------------+-------------------+-----+ | A6 | D3 | DRQ2 | B6 | +-----+-----------------+-------------------+-----+ | A7 | D2 | -12v | B7 | +-----+-----------------+-------------------+-----+ | A8 | D1 | OWS2# | B8 | +-----+-----------------+-------------------+-----+ | A9 | D0 | +12v | B9 | +-----+-----------------+-------------------+-----+ | A10 | IOCHDRY | GND | B10 | +-----+-----------------+-------------------+-----+ | A11 | AEN | SmemWR# | B11 | +-----+-----------------+-------------------+-----+ | A12 | A19 | SmemRD# | B12 | +-----+-----------------+-------------------+-----+ | A13 | A18 | IOWR# | B13 | +-----+-----------------+-------------------+-----+ | A14 | A17 | IORD# | B14 | +-----+-----------------+-------------------+-----+ | A15 | A16 | DACK3# | B15 | +-----+-----------------+-------------------+-----+ | A16 | A15 | DRQ3 | B16 | +-----+-----------------+-------------------+-----+ | A17 | A14 | DACK1# | B17 | +-----+-----------------+-------------------+-----+ | A18 | A13 | DRQ1 | B18 | +-----+-----------------+-------------------+-----+ | A19 | A12 | REFR# | B19 | +-----+-----------------+-------------------+-----+ | A20 | A11 | BClock | B20 | +-----+-----------------+-------------------+-----+ | A21 | A10 | IRQ7 | B21 | +-----+-----------------+-------------------+-----+ | A22 | A9 | IRQ6 | B22 | +-----+-----------------+-------------------+-----+ | A23 | A8 | IRQ5 | B23 | +-----+-----------------+-------------------+-----+ | A24 | A7 | IRQ4 | B24 | +-----+-----------------+-------------------+-----+ | A25 | A6 | IRQ3 | B25 | +-----+-----------------+-------------------+-----+ | A26 | A5 | DACK2# | B26 | +-----+-----------------+-------------------+-----+ | A27 | A4 | TC | B27 | +-----+-----------------+-------------------+-----+ | A28 | A3 | BALE | B28 | +-----+-----------------+-------------------+-----+ | A29 | A2 | +5v | B29 | +-----+-----------------+-------------------+-----+ | A30 | A1 | OSC | B30 | +-----+-----------------+-------------------+-----+ | A31 | A0 | GND | B31 | +-----+-----------------+-------------------+-----+ Diagram of writing/reading from the port in your case: IORD (read) IOWR (record) _______________ _____________ ____________________________/ ADDRESS ________________________________________ xxxxxxxxx<__________register_address________________>xxxxxxxxxxx DATA (record) _________________________________________ xxxxxxxxx<__________data_in_modem_________________>xxxxxxxxx DATA (read) ____________________ xxxxxxxxxxxxxxxxxxxxxxxxx<__data_from_modem__>xxxxxxxxxxxxxxx The address and data to be written must be set to the bus ~100ns before activation of IORD or IORW. Data from the modem must be read frombus immediately before the IORD signal is deactivated. Duration of active IORD or IOWR cycle states for at least 600ns. The document on BIS 16450 cannot be found in electronic form now...

From Konstantin Butorin To Aleksandr Majorov 17 June 2002

Hi, Alexander! AM> How did you implement 8 modem ports? Something like this: ISA31_ADRESS2 ───────── LPT-13(SELECT) ISA30_ADRESS1 ───────── LPT-12(PAPER END) ISA29_ADRESS0 ───────── LPT-10(ASK) This is to read what is installed on the port. ┌──┬────┬──┐ TOTAL ─ 1 ─oER│IR23│Z │ ├──┤ │ │ LPT-17(SEL IN) -11 ─.C │ │ │ ├──┤ │ │ ISA-9(DATA0) - 3 ─┤D0│ │Q0├─ 2 - ISA-31(ADRES0) ISA-8(DATA1) - 4 ─┤D1│ │Q1├─ 5 - ISA-30(ADRES1) ISA-7(DATA2) - 7 ─┤D2│ │Q2├─ 6 - ISA-29(ADRES2) 8 ─┤D3│ │Q3├─ 9 13 ─┤D4│ │Q4├─ 12 14 ─┤D5│ │Q5├─ 15 17 ─┤D6│ │Q6├─ 16 18 ─┤D7│ │Q7├─ 19 └──┴────┴──┘ And this is such crap to set this address. It’s just not clear, the modem itself can set addresses? Bye Alexander...

From Aleksandr Majorov To Konstantin Butorin 20 June 2002

Hello Konstantin! 17 Jun 02 23:27, Konstantin Butorin -> Aleksandr Majorov: AM>> How did you implement 8 modem ports? KB> Something like this: KB> ISA31_ADRESS2 ───────── LPT-13(SELECT) KB> ISA30_ADRESS1 ───────── LPT-12(PAPER END) KB> ISA29_ADRESS0 ───────── LPT-10(ASK) KB> This is to read what is installed in the port. [skipped] KB> And this is the crap to set this address. A nightmare and nothing more. KB> It’s just not clear, can the modem itself set addresses? What does "himself" mean? The modem (i.e. y COM port) has 8 registers (ports), through which the computer communicates modem and communicates. Why does the modem suddenly decide which port to contact? Alexand

From Aleksandr Majorov To Konstantin Butorin 25 June 2002

Hello Konstantin! 23 Jun 02 23:17, Konstantin Butorin -> Aleksandr Majorov: [skipped] AM>>>> How did you implement 8 modem ports? KB>>> And this is the crap to set this address. AM>> A nightmare and nothing more. KB> ;) KB> Then it suddenly dawned on me. The modem address is ONE! Or am I wrong? His KB> it seems like you install it once. So you can just hang A0,A1,A2 KB> to ground, the rest to 5V and that's it... Correct me if I'm wrong... RTFM, RTFM and RTFM again!!! The COM port has EIGHT ports! You've already been told this a bunch of times! And the modem also has one telephone line, so one wire out of two (which go to the phone) You can cut it off. [skipped] KB> I just thought that you communicate with the modem at different addresses - on one KB> I set the date to the address, on another command, on the third something else... Well, approximately (very approximately and far from reality) this is so. Just what is this “date”? KB> Moreover, the modem itself can change these addresses... Explain which addresses the modem should change itself? KB> Conducted tests - the modem does not dial the number and performs KB> the simplest commands like “pick up the phone.” Well done, you can write to the data register. And who will configure the connection speed with the modem, the number of bits and parity, control method, etc.? (These are the remaining ports). KB> We need to learn how to read the circuit diagram from the port, otherwise it’s somehow silent KB> reading... Hmm... I thought you thought about it right away... Most often, Speck's printer port is single-sided, so you you still have to collect the “opposite printer port” - so that the data receive from the modem. Although, if you have a printer port built on BB55, then this is more convenient... Alexand

From Kirill Frolov To Konstantin Butorin 26 June 2002

Press RESET immediately, Konstantin! 23 Jun 02 23:25, Konstantin Butorin wrote to Kirill Frolov: KB>>> And this is such crap to set this address. Just don't KB>>> is it clear that the modem itself can set addresses? KF>> Buy Scorpion and SMUC if you ask such questions. KB> It would be better to explain in more detail than to pretend that you understand something... KB> And scorpion & smuc have already been purchased a long time ago... Well, read some paper book like “computer equipment”... Your modem is connected to the ISA bus, so proceed from that. About how it is works in general, I already wrote: a virtual chip is connected to the bus consistent interface (in fact there is none, it is emulated by the modem microprocessor), and on the interface is already connected to a modem for which the concepts of “port” and “address” are no longer available and It is therefore controlled by AT commands and interface signals (RTS, DTR). spread!