Many times we need to know if a TCP port is open or not, here I leave a function to perform this task using. Code tested in Delphi 7, 2007 and 2010. Translate this blog into different languages.
ตัวอย่างพื้นฐานการเขียนโปรแกรม Delphi เพื่อเชื่อมต่อกับพอร์ตสื่อสารข้อมูลอนุกรม RS-232 Micro Research Technology, www.micro-research.co.th Download Link: h. Hack Rank Blackshot.
NrComm Lib Component library for Delphi (VCL) The nrComm Lib is set of Delphi VCL components, classes and routines for serial communication tasks. Library helps to get access to various devices: serial port, data and voice modems, barcode scanners, Human Interface Devices (HID), Bluetooth, USB, LPT, GSM, GPS and others. It provides solution for quick implementation almost any packet data protocol.
It can work with sound and speech. Library allows send SMS messages over connected mobile phone (GSM terminal) and much more. NrComm Lib evolving since 1999 year. Latest release supports most oldest and newest Delphi/CBuilder versions. Our project is always in progress and our team will include into product new features for support modern device interfaces and system API.
See most valuable features of nrComm Lib below. Generic Features of nrComm Lib Standard Edition Professional Edition Serial port (RS232) and barcode scan features Access to serial port settings and I/O (read/write) operations with it.
Yes Yes Allows to monitor incoming data and states of control signal lines (RTS, CTS etc.) Yes Yes Includes ready solution for Barcode scanner device Yes Yes Enumerates all available serial ports in the system: native and virtual IrDA, USB, bluetooth COM ports) Yes Yes USB Enumerates and gets detail information about existing USB objects (hosts, hubs, ports, devices). Yes Yes Provides I/O operations and monitors incoming data for USB pipes No Yes Includes signed kernel USB driver that works on all platforms: x86/i32, x64, ia64. No Yes Includes solution for easy WinUSB driver installation for all platforms: x86/i32, x64, ia64. No Yes 'Eject', 'Enable', 'Disable', 'Restart' functions Yes Yes GSM and SMS Sends and reads SMS, monitors notification about new incoming messages Yes Yes Access to GSM device phone books.
Adds, gets, deletes records Yes Yes Gets various information about GSM device (model, IMEI, memory, battery and signal states) Yes Yes Supports connections over serial (native or virtual) port and over Bluetooth Yes Yes Human Interface Devices (HID) Enumerates and gets detail information about installed HID No Yes Writes input, output, feature HID reports. Monitors incoming reports. No Yes Global Positioning System (GPS) No Yes Bluetooth I/O operations with bluetooth device. Monitors incoming data. Yes Yes Enumeration bluetooth adapters, devices, and services Yes Yes Flexible solution data packet protocol implementation Detects a data packet by fixed 'END', 'HEADER', 'LENGTH' or timeout.
Yes Yes Various data packet types can be united into data protocol. Also you can download the demo projects and enjoy the various features of nrComm Lib. The source codes of these and other sample projects are available after installation nrComm Lib. Sample Projects USB device Demo shows details of connected USB devices 632K 770K GSM Demo works with mobile or GSM terminal. It allows send/receive SMS, gets device info and etc. 947K 1.1M HID Demo enums available HID devices and makes I/O operations 676K 821K Bluetooth Demo 605K 727K GPS Demo 641K 780K Codes Demo shows HEX/DEC codes of incoming data for connected serial port 596K 717K 388K USB OSR Learn Kit Demo is based on nrUsb sys driver. 8.6M USB OSR Learn Kit Demo is based on WinUSB API.
242K USB Pipe Demo. Demonstrates access to USB pipes 263K The demo works with TAPI data modems and ZModem protocol. 267K The Serial Port Info Demo: shows serial ports with extended information.
228K The demo reads bar codes from the connected serial port barcode reader. 222K Demo monitors and changes states of serial port (RS232) control lines (DTS, CTS etc.). 250K The Speech Demo works with voice modem. 237K The LPT port demo. Get and set LPT pins states. 253K The Kermit file transfer protocol demo. You can test our Kermit solution with other clients HyperTerminal, C Kermit etc.
1.0M The Modbus industrial protocol demo.