Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.253.037 Times

Device::TNC 0.03

  Date Added: August 03, 2010  |  Visits: 795

Device::TNC

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



Device::TNC is a Perl module that acts like a generic interface to a TNC. This module implements a generic interface to a Terminal Node Controller (TNC). It loads sub classes that provide the low level interface for the appropriate TNC to be used and provides higher level methods to return frames of data to the user is human readable form. SYNOPSIS use Device::TNC; my $tnc_type = KISS; my %tnc_config = ( port => ($Config{osname} eq "MSWin32") ? "COM3" : "/dev/TNC-X", baudrate => 9600, warn_malformed_kiss => 1, raw_log => "raw_packet.log", ); my $tnc = new Device::TNC($tnc_type, %tnc_config); die "Error: Something went wrong connecting to the TNC.n" unless $tnc; while (1) { my $data = $tnc->read_frame(); my $repeaters = join ", ", @{$data->{ADDRESS}->{REPEATERS}}; my $info = join "", @{$data->{INFO}}; print "From: $data->{ADDRESS}->{SOURCE} "; print "To: $data->{ADDRESS}->{DESTINATION} "; print "via $repeatersn"; print "Data: $infon"; } new() my $type = "KISS"; my %tnc_data = { option => value }; my $tnc = new Device::TNC($type, %tnc_data); The new method creates and returns a new Device::TNC object that can be used to communicate with a Terminal Node Controller (TNC) of the type passed. The method requires that the first passed argument be the type of TNC to connect to. This will try and load the appropriate module for the TNC type. The subsequent options are passed to the module that is loaded to connect to the desired TNC. For more details on these options see the module documentation for the TNC type. read_frame() my $frame_data = $tnc->read_frame(); my %frame_data = $tnc->read_frame(); This method reads a HDLC frame from the TNC and returns a structure as either a hash or a hash reference that contains the fields of the frame. The structure of the returned data is like the following. { INFO => [ /, 0, 6, 4, 6, 5, 8, h, 3, 3, 5, 0, ., 0, 0, S, , 1, 5, 1, 1, 2, ., 0, 0, E, O, 2, 2, 6, /, 0, 0, 0, /, A, =, 0, 0, 0, 1, 1, 1 ], PID => F0, CONTROL => { POLL_FINAL => 0, FIELD_TYPE => UI, FRAME_TYPE => U }, ADDRESS => { DESTINATION => APT311, REPEATERS => [ WIDE1-1, WIDE2-2 ], SOURCE => VK2KFJ-7 } } While developing this module I only received U (UI) type frames and so development of the code to work with I and S frames didnt really progress. If anyone wants to read I or S frames please let me know and Ill have a look at implementing them. Please create a KISS log of the data and email it to me..

Requirements: No special requirements
Platforms: Linux
Keyword: Address Data Devicetnc Frame Kiss Libraries Module Perl Module Programming Tnc Type
Users rating: 0/10

License: Freeware Size: 16.38 KB
USER REVIEWS
More Reviews or Write Review


DEVICE::TNC RELATED
Libraries  -  CAD::Drawing::IO::Split 0.26
CAD::Drawing::IO::Split is a Perl module that allows fast distributed text file methods. Requisite Plug-in Functions See CAD::Drawing::IO for a description of the plug-in architecture. check_type Returns true if $type is "split" or...
39.94 KB  
Libraries  -  Data::Serializer 0.41
Data::Serializer package contains modules that serialize data structures. SYNOPSIS use Data::Serializer; $obj = Data::Serializer->new(); $obj = Data::Serializer->new( serializer => Storable, digester => MD5, cipher => DES, secret => my...
25.6 KB  
Finance  -  Data redirect 3.7.6.214
Data redirect is an additional module that allows you redirect a data from one data source (for example, COM1) to another data source (for example, COM2). In this case the program will work as a bridge between two data sources. You may filter or...
 
Modules  -  Timestamp after address changes 1.0
If you want to sync the data from the osc to your local databases, you need to know when the user changes its address data.Just overwrite the two files in your catalog directory.
 
Finance  -  Events generator 3.7.7.318
The filter module "Events generator" for our data loggers (for example, Advanced Serial Data Logger) is an additional module that allows you generate internal program events and handle it with events handling modules. For example, a combination of...
1024 KB  
Science  -  NLSO-ADDRESS, Global Address Database 1.0
An address & contact manager designed to use UNICODE & link the the NLSO-WEB system to share NON-PERSONAL address data This will enable the creation of applications which can print an address in English & Hebrew, or English & Chinese for example
7.09 MB  
Libraries  -  MODBUS RTU plugin 3.7.7.318
Advanced Serial Data Logger's MODBUS RTU module supports two modes: Data query - transmits queries or commands out the serial port to control or query your instruments directly; Data parsers - advanced data parser that allows you to parse,...
1.1 MB  
Misc. Web Browser Tools  -  Smart Address Bar for Internet Explorer 1.0.0.15
The Smart Address Bar suggests cool sites and related search terms while you type. Use your address bar like a search engine and get keyword recommendations as you type. Simply enter a few letters in your address bar, and the Smart Address Bar...
268 KB  
MS Office Add-Ins  -  ODIS-EasyAddress 1.0
ODIS-EasyAddress allows the easy import/transfer of Microsoft Outlook address data into Microsoft Word documents. Bookmarks (fields) which can be inserted in documents or templates allow easy and comfortable import of addresses from Microsoft...
182 KB  
Programming  -  AddressBase 1.02
AddressBase implements a small address data base on the basis of LibreOffice Base using JavaScript macros.
599.87 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB