Vb6 Serial Port Sniffer Source Code
Jun 17, 2008 - Some references: USB port communication in VB6. Serial driver properties. Visual Basic.NET Code Sample: Using the COM Port in VB.NET.
I am developing a system for my final project that involves the bill acceptor and visual basic 6.0 as the main user interface. I am right now confused on how to start coding the connection of the two through the serial ports.do i even make sense?
I am really sorry. I am way too much of a beginner and i badly need help on how to code. I am not really a good programmer and i am just trying to develop this system to be able to get through my final thesis project?anyone cares to help me start this? I would really appreciate it. Since the bill acceptor is pulse interfaced, i got the pulses and was able to display it on the serial monitor. So now i do not know how to begin with the visual basic part of my system. I really see your sarcasm and that you would rather die than using the 'B'.
Hahaha But unfortunately i have to use it mainly because i don't think i have enough time to change to other software for now. It would really save my life if you could just help me a bit. I just do not know how to start this. Maybe give me or teach me how to code on connecting the serial port to visual basic first?
Like how am i going to use the MSCOMM? I dont even get what people say in the internet about it right now.
It's because my project is due next week, and I am done doing most of what i need in VB6. The last thing i need to do is to connect the bill acceptor (or the payment receiver part of my system). If I have to learn another language, then I would be cramming myself and might end up not finishing my project. Kniga learning to listen karnevskaya klyuchi. As I have said, I do not have time for now.
Shrifti ot kassovih apparatov. I could teach myself that if only my time wasn't tied up to present my project.if you can't help me then what is this forum for? I am just trying to learn and pass my final project here and so i am asking for help. Otherwise i wouldn't.
» » » 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. 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. 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. 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 '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!