Write A Code That Can Detect Com Port
Apr 2, 2011I write a code that can detect com port, like this
CODE:
I write a code that can detect com port, like this
CODE:
I would like to detect the Address and Port number of the Parallel Port in computer.
View 4 RepliesI had tried to use vb.net2008 to detect a USB mapped to a com port, I basically followed[code]...
View 5 RepliesWe have a weigh bridge connected to PC via serial port.A VB code fetches the data from serial port and puts it in clipboard,which can be used by other applications like SAP.
We have several different makes of weigh bridge at different locations, each with separate settings(baud rate,data bit,parity), hence we need to change the VB code each time a new make weigh bridge is installed.
can we write a generic VB code which can automatically detect all these settings and capture the weight?
pls 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 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?
Okay so I'm trying to hide my program (only one form) so I'll just make a button and put me.visible = false , but I'm just wondering how to make my program detect a keypress (^ key) and show itself? I tried creating a timer and chucking
[Code]...
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 RepliesThe 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
I am trying to write a VB program to automatically detect and identify a particular device that will only communicate to my program when I have 2 or more devices plug into the USB port. One way of doing it that I can think of is to scan through the available port and do a write and read to identified the port. But that would take up a lot of time if I were to scan through say 5 available port.
View 16 Repliesi am trying to write-read data from serial port but it don't work my code look like this
[Code]...
i 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].....
actually this is not an vb.net code belongs to vb..i have written it for getting the data from com port 1.but i dont know what data the com port is getting..
Dim Lng As Long
Dim lpPoint As POINTAPI
Dim X, Y As Long
[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 Replieswhat is wrong with my code and I get no feedback from my button click event, i have imported. ( code Below) and i have tied differrent combinations of the code without sucess.maybe add extra to my code for the list to show open Port or closed ports.
Imports System.Management
Imports System.Management.ManagementObjectSearcher
Imports System.Management.ManagementNamedValueCollection[code].....
i am asking that can i use c# language to implement "actions" fired on "click side events" such as mouse over the reason for this stupid question is that i remember some syntax of registering functions for particular events of formview, which are call when the event occurs (yes there ispostback involved" is something like the above possible for client side events using c# or even vb.net
protected void Page_Load(object sender, EventArgs e)
{
Label3.Text = "this is label three";
[code]....
I'm trying to write code to generate a random code for a textbox. It has to contain both numbers and alphabets. This is what I have so far
Function HomeIDCode(ByRef random As Random) As Random
Dim strValue As String
Dim strAlpha As String
[code]....
I have a number of msgbox's I only want to be displayed if I'm debugging (running inside the IDE)
Is it possible to raise a flag as such:
If RunningInsideIDE=True then
Ran across a snippet a while back but can't seem to find it again. Was very short and simple and detected all versions using version major and minor.
View 4 RepliesPublic Class my_class Dim WithEvents COMPort As New System.IO.Ports.SerialPort
Public Sub FindReader()
Dim ports As String() = IO.Ports.SerialPort.GetPortNames()
Dim port As String
For Each port In ports
[Code3]...
When it runs, it shows a single COM port "COM1". I am assured that the device attached to it is a standard 8,n,1 and uses 9,600 baud. The exception is "Acess to the port 'COM1' is denied".
I am trying to detect if a string's encoding if different than cp1251
- usually its koi8-r and if so convert it to cp1251
As I understood it can be done using encoder and unencode?
I tried searching on the subject, and find almost nothing. I am kinda lost.
I'm trying to track down a problem on our test environment. Previously it was set to use InProc Session State Type, but I've added in the SQLServer type for one specific Web App. I did this because we use the SQLServer type in our production environment and I want our test env to match as closely as possible.
However, after changing it to SQLServer I do not get any errors when trying to store unserializable data in session like I would expect. It works just fine, even though I would think it shouldn't. I'm a relative newbie when it comes to configuring this, but from the various tutorials I googled, I thought I covered all the bases.I was wondering if there's any code snippets to verify which session state type an application is actively using.
I need code to fit for an 'if then' statement based on an operating system. So let's say I am running windows XP, the program detects it, and with a simple if then' statement it opens form2, if i was running vista, it would open form1. So basically i need something like: If (WindowXP current OS) then form2.open, If (windowsvista currrent OS) then form1.openOf course, the above statement won't work because I need code to support the detection of the O.S.Note: I just need code for just these two O.S'es, also I don't care if its Windows XP SP1 2, or 3, just as long as it's an XP.
View 4 RepliesIs there anyway to make a program that auto detect the verification code ..like when sign up for a site..because i want to make a program like roboforum.
View 11 RepliesI have 1 project to comunication with usb port in VB.NET.But now,i have code VB6 and then i want to change the code VB6 to VB.NET.[code]....
View 4 Replies