background preloader

Serial communication

Facebook Twitter

Downloads. Mobile Development – Simple serial communication application. Here is a simple application to connect to a serial port.

Mobile Development – Simple serial communication application

The idea is based on the need of having an application to send demo print files to a virtual comm port connected to a Bluetooth printer. You can enter and send texts to or send a whole file to the port. Additionally, you are able to send ASCII codes by using the \xAB syntax, where AB is the hex code of the byte you would like to send. There is nothing special with the code except the hex decoding/encoding and the possibility to send a file. Here is a short sample how the SendFile is implemented: The application persists the chosen settings in the Registry. This would have been a lot easier if the Handshake enum was based on integer. By the way, using StopBits.None is not supported: “This value is not supported. Source code and binary located at code.google.com.

ActiveComport - Serial Port tool for Visual Basic developers. 4.

ActiveComport - Serial Port tool for Visual Basic developers

How to use 4.1. Introduction The following code snippets (VBScript) illustrate how to use ActiveXperts Serial Port Component. Initialize a modem using a direct COM port Set objComport = CreateObject( "AxSerial.ComPort" ) objComport.Device = "COM1" objComport.BaudRate = 56000 objComport.HardwareFlowControl = asFLOWCONTROL_ENABLE objComport.SoftwareFlowControl = asFLOWCONTROL_ENABLE objComport.Open Wscript.Echo "Open, result: " & objComport.LastError If( objComport.LastError <> 0 ) Then WScript.Quit End If objComport.WriteString( "at&f" ) str = objComport.ReadString WScript.Echo "Received: [" & str & "]" objComport.Close Initialize a modem using a Windows Telephony Driver Send an SMS using a GSM Modem connected to the PC; Enable logging Const RECIPIENT = "+31611223344" Const MESSAGE = "Hello, world!

" 4.2. First, make sure the ActiveXperts Serial Port component (AxSerial32.dll) is registered on the machine. On top of the code, make this declaration: Imports AxSerial. Serial Port component for Windows programmers. Add serial communication capabilities to any Windows or .NET application Adding serial communications requires specialized knowledge that might be outside an individual programmer's expertise.

Serial Port component for Windows programmers

For years, developers have relied upon the power and reliability of the ActiveXperts Serial Port Component serial communications control. Easy to use APIControl devices over a serial port32-bit ActiveX and 64-bit ActiveX includedSamples available in C#, VB, ASP.NET, HTML, PHP, Javascript, Delphi and more Use ActiveXperts Serial Port Component for different purposes: To control manufacturing machines via the serial port; To configure network devices (like print-servers, routers) via the serial port; To control a modem, connected to the serial/USB port or Bluetooth; To transfer files through a null modem cable; Any other scenario where serial communications is involved.

ActiveXperts Serial Port Component features the following: Visual Basic .NET. System Requirements Code Snippets and Sample Applications. LT1130ACNW pdf, LT1130ACNW description, LT1130ACNW datasheets, LT1130ACNW view.