Home
FarSync SDK - FarSite Communications
Contents
1. bit streaming operation which could be used for example to support a non standard protocol or for instance raw Audio For bitstream operations the driver supports the ability to define the amount of buffering used in the data path This feature is vital to allow reliable continuous line transmissions required for bitstream operation while the applications driving them are rescheduled This buffering requirement must be balanced with the latency constraints of the transmission path Note For DAB STI modes the General Bitstream encoding decoding library should be used Extended Clocking The FSWinAPI supports the TE1e card s option to use an externally sourced rate adapted clock to drive the E1 line which is commonly used in DAB and DMB operations It also supports the extended clocking features of the FarSync T4E that allow external clocks to be remotely sourced rate adapted and supplied to selected ports on the adapters Alternatively a clock from one of the ports can be used to drive the clocks of all the other ports Asynchronous Operation To operate a port with asynchronous data under Windows the FarSync driver supports an extension of the standard MS Win32 COMM API This enables applications that currently interface to standard serial ports on Windows to be easily ported to use FarSync ports in asynchronous mode The FarSync Flex actually appears as a COM port device when configured for async mode and so can be used direct
2. ance to the application developer using the API as part of the package provided when the FarSync SDK is purchased Name Description Product Code FarSync SDK Linux and Windows Developers Toolkit for the FarSync adapters this is required if you want FS9610 to write software to use the FarSync adapter APIs Note This toolkit is not appropriate for the FarSync X25 range of products or the FarLinx Gateways they are supplied with their own toolkit Microsoft Windows and the Windows logo are trademarks or registered trademarks of Microsoft Corporation in the United States and or other countries All trademarks and registered trademarks are acknowledged Changes are periodically made to the information herein these changes will be incorporated into new editions of the publication FarSite Communications may make improvements and or changes in the products and or programs described in this publication at any time Tel Fax Email Web 44 0 1256 336740 44 0 1256 854931 info farsite com www farsite com nr aE i i Copyright FarSite Communications Ltd 2008 2012 All rights reserved FarSite d COMMUNICATIONS
3. arSync TE1 FarSync TE1R FarSync TE1e FarSync T2Ue FarSync T2Ee FarSync T4Ue FarSync T2U PMC Products supported by the SDK Adapter Type Product Codes Windows API Linux API USB FS4100 Yes Yes PCI FS4140 Yes Yes PCI FS4240 Yes Yes PCI FS4440 FS4441 Yes Yes PCI FS4444 FS4446 Yes Yes PCI FS4150 Yes Yes PCI FS4151 Yes Yes PCle FS4155 Yes Yes PCle FS4250 Yes Yes PCle FS4256 Yes Yes PCle FS4450 FS4451 Yes Yes PMC FS4280 FS4281 Yes Yes PCMCIA FS4130 FS4133 Yes No FarSync M1P FarSync SDK Developers Toolkit what s included Reference manuals Sample programs Source code Bitstream encoding and decoding Customer support Order Information Windows FsWinAPI User Guide manuals set of 4 Linux Char I O API user manuals Linux LAPB API manual RS485 application guidelines for the FarSync Flex FarSync T2Ee FarSync T4E Bitstream encoder decoder User Manual FarSync Flex Monitor User Manual Sample applications supplied that use FsWinAPI Char I O APIs and the bitstream encoder decoder There are also adapter performance check and adapter function test applications Sample C NET C and VB and LabVIEW VI samples Linux drivers source code supplied for big endian and little endian processors Library and sample programs supporting decoding of bitstream data can be configured to support many different fixed length bitstreams such as ETI STI and E1 framing We provide free email and telephone assist
4. arious adapters in the range see each particular adapter datasheet for a list of which line signals formats are supported LAPB Operation An API to the LAPB protocol is available though the hdlcX interface all the ports on the adapters can be addressed by this method Asynchronous Operation Asynchronous operation is available from the standard TTY interface for the FarSync adapters of types T4U Async T4E T4Ue Async and Flex Dynamic switching between Async and Sync operation is supported Note A Raw Sockets API is also available on Linux to support the adapters though this interface is now deprecated General Purpose Bitstream Encoding and Decoding Library A library is provided that allows low level encoding and decoding of the transparent bitstream for speedy application development of your Linux application The library can be configured to identify and extract most fixed length byte oriented user frames where frames can be defined in terms of single or alternate synchronizing patterns frame length and number of sync patterns to acquire sync It provides for example low level frame handling for E1 DAB ETI or DAB STI The library is available on request for Windows for compatibility with legacy applications or for use with DAB STI mode For new applications we recommend using the low level encoding and decoding built into the Windows driver Sample send and receive programs demonstrating common modes of operation are supplied wi
5. ations are supported The FsWinAPI User Guide manual in Adobe PDF format provides a comprehensive set of function call definitions and helpful advice on the best way to utilise the interface Pg 1 FarSync SDK Version 1 2 z FarSync Windows API FsWinAPI continued Synchronous HDLC LAPB and V 120 The FsWinAPI allows connections both in raw HDLC frame mode and the line error correcting LAPB and V 120 modes The number and size of buffers use can be configured to achieve the optimum balance of throughput and latency Transparent bitstream operation The driver has built in transparent bitstream encoding decoding support that handles a number of common protocols commonly passed over a continuous bitstream The protocols handled include G 704 MPEG Video T DMB DAB ETI The driver can be configured to identify and extract most fixed length byte oriented user frames where frames can be defined in terms of single or alternate synchronizing patterns frame length and number of sync patterns to acquire sync It provides for example low level frame handling for E1 and DAB ETI Sample send and receive programs demonstrating common modes of operation are supplied with sample data files DAB modes supported ETI NI G 703 and ETI NI G 704 on the FarSync adapters of type TE1 TE1R and TE1e ETI NI V 11 on the FarSync adapters of type Flex T1U T2U T2Ue T2Ee T4U T4Ue T4E and T2U PMC The API also handles completely transparent
6. ava ne FarSite J COMMUNICATIONS The Developers Toolkit for FarSync adapters Key Features E Fully documented APIs for Linux and Windows Includes free developer support from FarSite Engineering HDLC V 120 G 704 LAPB and Transparent Bitstream Encoder decoder for bitstream data formatting such as DAB DMB LabVIEW application support Many Linux and Windows sample applications Supports the full range of FarSync adapters Line Monitor to assist rapid application development Overview The SDK supports writing applications to use the FarSync range of products on both Linux and Windows It contains documentation working sample applications user libraries and test utility applications There is everything a user needs to rapidly develop and test a wide variety of applications that use synchronous HDLC framed protocols V 120 LAPB asynchronous data or transparent bitstreams including Audio G 704 MPEG Video T DMB DAB STI and DAB ETI with the bitstream encoder and decoders provided The SDK is intended to allow easy access to the set of hardware features offered by the various adapters in the range whilst also providing additional encoding and decoding to supplement that provided by the hardware Our Engineering department provides free email and telephone assistance to application developers using the API as part of the package provided when the FarSync SDK is purchased Note This toolkit is not appropriate for the FarS
7. ication behaviour 5 WS ST Saas 5 x El FarSync Line Monitor incomingfmn Windows Line Monitor The high performance multi channel line monitor that 3 FFOSCO210100001E0506481522 1FOTOCOS0Z0D03061 104064E1S090300E02 allows the user to record 4 l lt CfgReq FFO3C021010000270305C22381050652F07552070208020003061104064E1 5 1 lt 10 25 00 LCP Cigack FFOSCOZ10200001E05064815221F070208020D03061 104064E 1 3090300E02 display store and replay line 6 i gt 10 25 00 LO CfgRej FF03C0210400000817040001 traffic with protocol decoding 7 I lt 10 25 00 LO aves FFO3CO21010100230305C22361050eS2F0755207 0208020003061 104064E1 8 ee 10 25 00 LCP fgAck FF03C021020100230305C22381050652F07552070208020003061 104064E1 Comments can even be 9 1 gt 10 25 00 LCP Ident C0210C0100124815221F405352415356352E3030 inserted into the line trace to 10 1 gt 10 25 00 LCP Ident 0210002001 4481522 1F4053524153203120444F43544F5220415653 aie vey 11 i lt 10 25 00 CHAP Challenge C2230100002010E97CC304614418907A0B9623DCC846384D494E494F4E2D ASSIST later analysis 2 i gt 10 25 00 CHAP Resp C2230200004B31C28F2C4A3F668E31AF2612C80364906000000000000000t i i lt 10 25 00 CHAP Success C2230300002E533D423442333831464432434433463630323639363034343 Pg 4 FarSync SDK Gi The FarSync SDK supports APIs to all the products listed in this table FarSync Flex FarSync T1U FarSync T2U FarSync T4U FarSync T4E F
8. ly with standard or ported COM port based apps Asynchronous operation is available for the FarSync Flex T4U Async T4E T4E and T4Ue Async Sample Applications A number of easy to follow sample applications are provided demonstrating the wide variety of features available with the adapters GUI based demonstration and test utilities are supplied capable of utilizing the wide range of features supported by the adapters C C VB and LabVIEW sample applications are supplied with the SDK These support the range of communications modes supported by the FarSync adapters FSWDemo Test Utility n F File Edit Port Status Tracing Comments View Window Help FSWDemo provided with the FarSync SDK is intended D S eS e ADE efi ms s gt e DOD to demonstrate and test the operation of the Windows i 2 os FsWinAPI interface and provide a really useful and ae seaming 20 powerful tool for checking various operating modes of ani the adapters Port E SDCB T Port Port 4E Port Both HDLC frame and Transparent bitstream modes can be tested Selection and testing of multiple lines and adapters is supported Pg 2 FarSync SDK i LabVIEW Windows An example VI LabVIEW executable program for Windows is included in the FarSync SDK This example demonstrates how to interface to the FarSync adapters from LabVIEW Linux Char I O API The Linux API allows applications to send and
9. nt Mode is useful for transmitting and receiving raw data streams such as MPEG video and audio such as T DMB Digital Multimedia Broadcasting and DAB Digital Audio Broadcasting ETI Ensemble Transport Interface ETSI EN 300 799 and STI Service Transport Interface ETSI EN 300 797 Many of the less common protocols for which hardware support is not commonly available can be handled in transparent mode with software handling the encoding and decoding of the particular frame format Transparent mode also disables the receive byte counter therefore short frame and long frame errors are not reported Receive data may not be byte aligned as the receiver knows nothing of the data format or any synchronising sequences If receive data needs to be byte aligned then this can be achieved in software on the Host PC The FarSync adapters normally send and receive the LSB of a byte first this is however configurable to MSB if required The receiver will begin receiving as soon as the port is started It will continue receiving as long as there are buffers available in the receive buffer ring Each receive block is as big as the buffer allocated for it If the receive data is marking then the receive buffers just keep being filled with OxFF s until there are no buffers available or the port is stopped HDLC mode further details HDLC frames use flags to determine the beginning and end of a frame These flags 01111110 or Ox7E provide frame synch
10. receive HDLC format bitsync frames and also transparent bitstreams using the Char I O API Sample applications supplied with the Developers Toolkit demonstrate both modes of operation The source for the applications and drivers are included with the Linux API manuals provided in Adobe PDF format A monitor program is included in the Linux support that allows data sent and received by the application to be recorded in hex format Synchronous and E1 Operation The API can supports data rates to 10 Mbits s per port with all the ports individually selectable for speed clocking direction and mode of operation For the maximum speeds supported by a particular adapter check the FarSync products particular technical specification Frame sizes up to 32 Kbytes are supported in HDLC mode to allow support for a wide variety of specialist synchronous protocols The transparent bitstream mode is suitable for transparent data requirements such as Audio MPEG Video T DMB DAB STI and DAB ETI See also the General Bitstream encoding and decoding library which can help shortcut the development time needed for these types of applications The API allow the full range of internal clock speeds to be selected and also selection of extended clocking options supported by FarSync adapters such as the FarSync T2Ee and FarSync T4E Configuration of the various type of line signalling NRZ NRZI Manchester Encoding Conditioned Diphase FM1 and FMO are handled by v
11. ronisation One flag may be used as both an end flag for one frame and the start flag for the next frame Although FarSync adapters do not transmit such shared flags they can receive and correctly handle them HDLC frames typically consist of an opening flag followed by an address field a control field an information field the data payload a cyclic redundancy check CRC field and finally a closing flag Address Field Control field Information field Frame Check Sequence As far as the FarSync driver is concerned the address control and information fields are just data Frames maintain data transparency by a process called zero insertion and deletion To ensure transparency a 0 bit is inserted by the transmitter after 5 continuous 1s within the frame contents and removed by the receiver whenever it detects 5 continuous 1s followed by a 0 This prevents data within the frame being confused with the flags and is known as bit stuffing unstuffing and also ZBID Normal frames are terminated with a flag any frame which terminates with 7 1s or more is assumed to be aborted and discarded The transmitter can deliberately abort a frame if it chooses this can sometimes happen if frames need to be retransmitted and the transmitter knows that the frame currently being sent will be discarded by the receiver Linux Line Monitoring The Farmon utility allows all data sent and received on the line to be recorded very handy for debugging appl
12. th sample data files DAB modes supported ETI ETI NI G 703 on the FarSync adapters of type TE1 TE1R and TE1e ETI NI V 11 on the FarSync adapters of type Flex T1U T2U T2Ue T2Ee T4U T4Ue T4E amp T2U PMC STI STI PI G 703 on the FarSync adapters of type TE1 TE1R and TE1e STI PI V 11 on the FarSync adapters of type Flex T1U T2U T2Ue T2Ee T4U T4Ue T4E amp T2U PMC The library is available in 32 and 64 bit form Pg 3 FarSync SDK mi Transparent bitstream mode further details The FarSync adapters can be run in Transparent Mode also called bitstream mode Transparent Mode disables zero insertion and deletion CRC generation and checking abort generation and opening closing flag generation Generally for data transmission the application should continuously supply data at a sufficient rate for the line speed so that there are no breaks in transmission For data reception the application should provide empty buffers at a sufficient rate for the line speed to ensure that no received data is lost The FarSync drivers provide considerable buffering to overcome reductions in the data supply due to application rescheduling The communications hardware transmits data exactly as it is loaded in the transmit FIFO when the transmitter has no more data to send it transmits mark idle no abort sequence is sent Abort has no meaning in Transparent Mode as all one s is as valid as is any other data sequence Transpare
13. ync X25 range of products they are supplied with their own specialist X 25 toolkit FarSync Windows API FsWinAPI The Windows based interface to the entire range of FarSync cards devices is referred to as the FarSync Windows API FsWinAPI This is an extension of the MS Win32 COMM API and enables for example applications developed to support COM ports to be easily ported to use FarSync support in both asynchronous or synchronous modes This standardization enables the API to also be readily accessible from higher level environments e g NET C VB etc The majority of the API is line protocol independent so applications can select between them easily e g HDLC Async LAPB DAB ET etc The number and size of internal buffers can be configured to match application specific latency requirements and scheduling characteristics The support for asynchronous I O provides for optimised application designs without the need for polling FsWinAPI is a superset of the earlier SDCI API and so is backward compatible with existing applications previously developed for the FarSync range of cards devices Dynamic switching between Async and Sync line operation is supported Configuration of the various type of line signalling NRZ NRZI Manchester Encoding Conditioned Diphase FM1 and FMO are handled by various adapters in the range see each particular adapter for a list of which line signals formats are supported Both 32 and 64 bit applic
Download Pdf Manuals
Related Search
Related Contents
Mode d`emploi METTLER TOLEDO Terminal de pesage IND439 PDF 施工・取扱説明書 簡易版(日本語) 図面・資料 Pinnacle Design TR5000B User's Manual 取扱説明書 Mercedes Benz 2002 CL-Class User's Manual Copyright © All rights reserved.
Failed to retrieve file