How To Write To A Port
Sep 19, 2009pls help us with syntax on how to write to a port in vb.net.
View 2 Repliespls help us with syntax on how to write to a port in vb.net.
View 2 RepliesHow to open/Read/Write in USB Port
View 3 RepliesI write a code that can detect com port, like this
CODE:
I am writing an app that does part of what another app does (I have no access to the source for the other app other than to see Wireshark output.)
I need to send a broadcast over the LAN and then parse the results. However, the sending of the broadcast seems to be code that is direct to the LAN connection, as in it doesn't seem to write to a standard IP/port combo.
I see apps like Raw Ether that do this at a cost of hundreds of dollars.
Is there some way to not have to buy 3rd party stuff to do this in VS2011 w/ VB.net?
I just need to write data to serial port to control a toy car
Moving left, right, forward, back.
I need to write and read data from a RS232 port. On the RS232 port there is a RFID Card reader-Writer connected. So I need to send hex codes to the device, and have to poll every 1sec if there is a card in the system. If there is a card I need to read the info that is on the card. My biggest problem is I think is that I am not sure how many characters there will be in return after the read command (maybe it is always the same length this I am not sure). What is the right way to read-write to the com port. So I always got the same result and not skipping a code.
View 12 RepliesI have an older VB6 application which uses a scanner on the COMM port and does the following... (I have been tasked with re-writing it in ASP.NET (VB)...
OLD APPLICATION...
1. reads a Scanner and loads the data onto the PC
2. FTP's the data file to a SQL Server (where a small app picks it up and processes it)
3. Deletes the data from the scanner[code]...
I need to be able to write signed bytes to a serial port using SerialPort.Write() method, except that method only takes byte[] arrays of unsigned bytes, how would i write a signed byte to the serial port?For what I'm working on the particular command takes values from -1700 to 1700.
View 1 Repliesi am trying to write-read data from serial port but it don't work my code look like this
[Code]...
I am looking to make a SMTP (Port 25) listener to listen in and accept incoming mail, look at the message source, make changes if needed, and retransmit the message out another port. This iwll make it act like a sort-of intermediary service.how one would write a port listener in VB.net, that could listen in on the port, and display the message in a text box (the whole source, headers and all, since that's what the mail comes in as anyway).
View 3 RepliesI need to write an application for receiving data (ascii characters) from microcontroller through the serial port in three separate parts. I've created three RichTextBoxes, but I do not know which commands I need to type. In first textbox I need to receive one byte... next six bytes need to be placed in second text box, and finally last seven bytes need to be placed in third textbox.
View 11 RepliesI'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port
View 7 RepliesI have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?
View 2 RepliesI would like to detect the Address and Port number of the Parallel Port in computer.
View 4 RepliesIf I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName
View 8 RepliesI am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay
"01+//" - Relay 1 is switched ON
"01-//" - Relay 1 is switched OFF
"02+//" - Relay 2 is switched ON
"02-//" - Relay 2 is switched OFF
[code].....
So i am confused as to how to separate each relay out with that code above and just be able to turn on any number 1-4 relay on or off independently from each other!
I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay I was following what the guy in the post was doing to turn his on:
[Code]...
Im having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?
[code]...
i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived
[Code]...
The link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?
[URL]
Note: the error: not CLS-Compliant
Do someone know if there is a\\ USB control for the USB port communication? like the SerialPort control for the COM port.
View 2 RepliesI have a trouble making this code work. When executed, it just creates a correct (with the correct name) file with the extension .txt but the the actual text inside .
Imports System.IO
Public Class Form1
Public mytext As String
[code]...
The strange thing is that while debugging, h, t string variables have the correct values, but somehow mystream.write(t) doesnt work (it doesent write anything to my h.txt text file...
Ok i saw this guy on youtube that made a achievement generator for his computer. For example, he goes to notepad and write something and saves it and gets the xbox 360 achievement pop up saying "Gotta write this down" and all that. Cud this have been coded thru VB.NET or something?
View 1 Repliesi have a notification j-query plugin .. i taste it in my page (working 100%)but when i want to use it in a event SqlDataSource1_Deleted with the response.write method it does not work
Protected Sub SqlDataSource1_Deleted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource1.Deleted
Response.Write("<script type='text/javascript'> showNotification({message: 'This is a
[code].....
I want to write a program to write in an xml file in this format:
<?xml version="1.0" encoding="utf-8" ?>
- <Orders>
<Item id="1" SKU="998123" Description="Super Widget" Quantity="100" />
[Code]....
I'm trying to write a sub that will write to a file. here is what i have:
Public Sub LogMe(ByVal MyType As String, ByVal MyMessage As String)
Dim LogStream As FileStream 'should be at a level with enough scope for your logging
[Code]....
The problem is that this will just overwrite what is already there. I would like to have it append the EHomeLog.log every time it is called.
I know I can create XML ouput in Example 1 as follows using the following code in Example 2. How do I create the same output in Example 3?[code...]
View 9 RepliesI am new to this forum as will as to VB. I am using VB6. I want to access the USB port in order to read the data at the USB port comming from my Data acquisition card.Or as a matter of fact can I also access the data from my mouse, because it also transmits the signal when ever the mouse is moving.
View 3 RepliesIt is possible to disconnect an IP in a port? I have a MMORPG server, and I need kick bad players using IP of this player.
View 2 RepliesI need to transfer data between several computers in a network using my app. I thought of using TCP ports. how to open and use them? I only want to make a file transfer and chat app that works offline.
View 3 Replies