» » » Using ActiveXperts Serial Port Component with Visual Basic 6.x ActiveXperts Serial Port Component is a software development kit (SDK) that enables the user to communicate to a device over a serial interface. Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port. It can even be another PC, connected via a NULL modem cable. ActiveXperts Serial Port Component features the following: • Direct COM port support (like 'COM1') • TAPI (Windows Telephony Device) support (like 'Standard 56000 bps Modem'); • Support for RS-232/RS422/RS485, up to 256 simultaneous ports; • Support for all types of Hayes compatible modems; • Support for serial cable as well as USB cable or Bluetooth connections; • Support for Virtual COM ports (i.e. Please note that the enumeration object does not sort the list by COM port number. If you need to reuse the object to enumerate the serial ports again, just call the EnumeratePorts function. Also note that this code has only been tested on Windows Mobile 5 and 6 devices (Pocket PC). 2007-11-29 - First publication on CodeProject. Cheat code editor for r4 ds cards online. COM ports redirected through the network); • Hardware flow control (RTS/CTS, DTR/DSR) and software flowcontrol (XON/XOFF) support; • Configurable baudrate/parity/stopbits, full buffered data transfer, text/binary data transfer. Step 1: Download and install the ActiveXperts Serial Port Component Download the ActiveXperts Serial Port Component from the and start the installation. The installation guides you through the installation process. Step 2: Create a new Visual Basic project Launch 'Microsoft Visual Basic' from the Start menu, and choose 'New' from the 'File Menu'. The 'New Project' dialog appears. Select 'Standard Exe' and click 'OK': (Click on the picture to enlarge) Step 3: Refer to the ActiveXperts Serial Port Component Library and create the objects A new Project is created, with a blank form. Sccm program failed retrying. ![]() First, you must add a reference to Serial Port Component in the project to be able to use the object. To do so, choose 'References.' From the 'Project' menu. In the 'References' dialog that pops up, enable the 'Serial Port Component 2.2 Type Library' reference as shown in the following picture: (Click on the picture to enlarge) Click 'OK' to close the 'References.' Then, select the Project form and choose 'View Code' from the context menu: (Click on the picture to enlarge) On top of your code, declare the following object: Public objComport As AxSerial.ComPort Step 4: Create the object From the Code window, select 'Form'. The Private Sub 'Form_Load()' will be displayed now. In the 'Form Load' function, create the object in the following way: Set objComport = CreateObject('AxSerial.ComPort') Step 5: Send an AT command to a connected Hayes compatible modem You can now send and/or receive data to and/or from a serial device. •Enable parental control and set limits on the duration of Internet usage for children. •Set up a guest Wi-Fi network to improve the security of your home network. Descargar play store huawei g7300e. The following code shows how to query a modem: '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ' DO NOT FORGET: ADD A REFERENCE TO THE SERIAL PORT COMPONENT LIBRARY FROM THE PROJECT->REFERENCE '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |