6.8 Frequency Shift Key (FSK) Data

(Page 9 of 11 in this chapter)
AG boards are capable of sending and receiving Frequency Shift Key (FSK) data. The transmit function is an implementation of the modem portion of Bellcore advisory TA-NWT-000030. The basic modulation is continuous-phase binary FSK at 1200 baud between 1200 Hz (mark) and 2200 Hz (space). The only supported baud rate is 1200.

6.8.1 Transmit Function

The transmit function adiStartSendingFSK requires five parameters defined in the ADIFSKSEND parameter structure.

Field Name

Field Interpretation

Default Value

Valid Values

noseizureflag

noseizureflag:
0: Send channel seizure
1: Just send mark

1

0, 1

level

Transmit output level.

-14 dBm

-

seizetime

Length of channel seizure in ms, ignored for noseizureflag 1.

1000

-

marktime

Length of initial mark signal in ms.

500

-

baudrate

Transmission baud rate

1200

1200

While running, the transmitter is in one of the following four states: idle, sending channel seizure, sending mark or sending data.

A transmission consists of a sequence of states, or noseizureflag bursts, used to transmit a data packet, and bracketed by silence or idle state.

For use with Analog Display Services Interface (ADSI) Customer Premises Equipment (CPE), a transmission consists of the sequence: sending mark - sending data. In ADSI feature phones, the "sending channel seizure state" will never be seen. As a result, noseizureflag must be set to 1.

The send function may be stopped using adiStopSendingFSK. The event value field will contain ADI_REASON_STOPPED. The number of bytes sent before the function was stopped cannot be determined.

6.8.2 Receiver Function

The receiver function: adiStartReceivingFSK requires four parameters defined in the ADIFSKRECEIVE parameter structure.

Field Name

Field Interpretation

Default Value

Valid Values

minlevel

Required minimum receive level.

-35dBm

-

minmark

Minimum required initial mark and seizure time in ms.

10

-

mindrop

Minimum dropout to silence before a packet is considered terminated in ms.

5

-

baudrate

Transmission baud rate

1200

1200

While running, the receiver is in one of the following four states: idle, receiving channel seizure, receiving mark or receiving data. The reception of a complete packet will consist of either the sequence (receive channel seizure, receive mark, receive data) or (receive mark, receive data).

During the receive process, a number of errors my occur. These errors will cause the function to terminate prematurely. The ADIEVN_FSK_RECEIVE_DONE event is sent with one of the following reasons:

AG Access Error

Error Interpretation

ADI_REASON_DROP_IN_DATA

Stopped because of drop in data. The noseizureflag signal dropped to silence during data, not during stop mark period.

ADI_REASON_BAD_STOP_BIT:

Stopped because of data framing error: the stop bit at the end of data was space not mark.

The receive function may be stopped using adiStopReceivingFSK. The event value field will contain ADI_REASON_STOPPED. The size of the partial buffer received is stored in the size field of the event structure.


(Page 9 of 11 in this chapter)

Copyright 1996 Natural MicroSystems, Inc. All Rights Reserved.