Communications :: Send A Command Via RS232 Communications

Jan 26, 2009

I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.

How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.

I am using this code currently without the start and end bits

Code:

View 8 Replies


ADVERTISEMENT

Communications :: RS232-USB Converter - Send Data To Microcontroller

Mar 13, 2009

I have a problem regarding rs232-usb converter... I'm using toshiba laptop. The problem i faced is i can receive data from my microcontroller to VB but i cant send data to microcontroller... However, when i use the same VB code and same converter, i try at my friend laptop (other brand), it works... May i konw is there any other setting i need to set for my laptop??

View 3 Replies

Communications :: Hardware ID For RS232 To USB Adapter?

Apr 28, 2010

How can I get the port name (COM6 for example) for a given hardware ID, such as USBVid_04d8&Pid_1234, and vice versa? I'm using an RS232 to USB interface.

View 6 Replies

Communications :: Rs232 Cr & Lf - Barcode Scanner That Is Sending The Software Data

Apr 26, 2011

Im using VB2008... Net framework 3.0. Basically I have a barcode scanner that is sending the software data...Everything is working fine if I interface the scanner as a keyboard wedge and set the scanner suffix as 'Enter'...In the software I have an event handler on keypress.down...

If keycode.Enter then
.....
.....
....
etc.

However as a RS232 interface I cant get the same result? Hyper terminal reads it perfectly. I've tried all the keypress options but it doesnt work (I assume because it's not actually a key press). when the textbox recieves the CR/LF from RS232? The scanner that does keyboard wedge interfacing is not an option as it is far too expensive for my project.

View 3 Replies

Communications :: Execute Command Remotely On Server

Mar 16, 2010

I have been searching for a good code example that will place a small server program on my server and then allow me to use a client on my pc that will tell the server program to run a batch file on the server.

I thought this would be simple... I am finding it not that easy.

We have a server that users need to execute a command on however we do not want them to have login rights to the server so this will allow them to execute the batch file without having to log in.

View 1 Replies

Communications :: Send A Number As A Byte?

Mar 10, 2010

I need to send a number as a byte (0-255).

SerialPort1.write(123)

sends 3 bytes representing the numbers 1 2 and 3. I need to send 1 byte containing 123.

View 4 Replies

Communications :: TCP Communication - Send Data

Oct 29, 2009

I've been playing around with the TCP client/server sample code I found on [URL] but I can't seem to get it to function correctly. The problem I am having is that if I try to send data from the client a second time I get nothing back, not even an error that it couldn't send data. Every time I run the project it works the first time but that's it. When I was running the code line by line it seems to get to 'networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize))' and then it jumps over the rest of the routine.

[Code]....

View 2 Replies

Communications :: How To Send Simple SMTP Mail

May 27, 2009

I'm using the following code to send simple SMTP mail. the code sends successfully on the development PC however, as soon as i move this to another environment (another PC) the message delivery fails..

Observations:
>> Locally I'm using a version of .Net (2.0.50727) (under application properties > references)
>> The remote machines for which this is failing on has various version of .net 1, 2, 3
>> I'm using the VS2005 and publishing with the wizard
>> Used a packet sniffer to monitor the network interface connected to the network and the no traffic is being generated by the source/sending PC.

Imports System.Net
Imports System.Net.Mail

Code:
Public Sub SendEmail(ByVal Email_To As String, _
ByVal Email_CC As String, _
ByVal Email_From As String, _
ByVal Subject As String, _
[Code] .....

View 1 Replies

Communications :: Simple Send Text/files With IP

Aug 31, 2008

So ive looked everywhere but every example i find doesnt work on visual studio 05 and doesnt convert properly. I simply want to send info from one computer to another through direct connection. if anyone could point me in the right direction it would really be helpful. most stuff i find seems to be more complicated than what im looking for.

then just one other question. both computers will be going through a router. as long as i have the port im using forwarded on the hosts side, that shouldnt be a problem, right?

View 1 Replies

Communications :: Create An Application That Can Receive/send SMS Using GSM Modem

Apr 9, 2010

I have to create an application that can receive/send SMS using GSM Modem.

View 4 Replies

Communications :: Send 8-10 Character Strings From The PC Serial Port?

Dec 1, 2011

I have quite a bit of VB6 experience but now am trying to create my first VB.Net project. The project is very simple - it just needs to send 8-10 character strings from the PC serial port. The problem I'm seeing is that VB.Net is always sending out a 0x0A character after each 'WriteLine' call. Using VB6 it was necessary to manually send out any End Of Line characters. My application requires that no extra EOL characters be sent after the string.

View 2 Replies

Communications :: SEND/RECEIVE Data From Serial, CPU Speed?

Nov 9, 2009

I need to send data via serial and wait for and answer (VB.NET).Right now i'm doing it this way:SerialPort1.Write(sel & Chr(13))Thread.Sleep(50)aaa = SerialPort1.ReadExisting()If i do not thread.sleep, i get nothing, i supose it's because the machine is too fast.

View 1 Replies

Communications :: [2008] Socket Programming - Receive / Send?

Mar 6, 2009

I realize this is a broad question, but how do I recieve / send packets. I know what packets I need to send and what Im going to recieve, but I dont know how to send / recieve them.

View 8 Replies

Send A Command To A Tenma DC Power Supply Over An RS232 Cable?

Jan 17, 2009

I am doing wrong? I am using VB2008/VB.NET to send a command (set to 4 volts) to a Tenma DC Power Supply over an RS232 cable. I don't have documentation from Tenma that lists the commands that the instrument understands, I got "VOLT040" from a program in an older version of VB that someone else wrote for this instrument. The code is below:

[Code]...

View 2 Replies

Communications :: Used To Assemble And Send Raw Packet / Receive Response Packets?

Sep 14, 2008

What Visual Basic code can be used to assemble and send a raw packet, and receive response packets? I looked on MSDN and I couldn't find any documentation for anything used to send a packet.

View 2 Replies

Serial Port Communications - AT Commands - Send And Receive Data

Apr 12, 2009

I have a USB modem that can detect caller ID and can detect dialled digits when special AT commands activated, How to send and receive data. The sent data will be the AT command such as AT+VCID-1 to activate the caller ID, the received data will be caller ID information and the digits dialed. I'm new to prgramming and using Visual Basic 2008 Express.

View 8 Replies

Communications :: Socket Behaviour - Created A Client That Can Send And Receive Data Via TCP Sockets

Aug 26, 2010

I have created a Client that can send and receive data via TCP sockets. The objects stored on the serverside are the *exact* same object used for the client. They use the same send and receive protocols.

Now, when i send a string from the server to the client , it does precisely what it should do. However when I send a string to the server.... I do receive the string as an equal length of NULL characters. I run the server and client locally.

Basicly what can influence the behaviour between two completely identical objects performing the exact same task? I wonder if there is some socketflag issue if the TCPlistener.accept function returns a completely different setup then the one I R used to.

(if it is of any interest, the send protocol is asynchronious)

View 3 Replies

Communications :: Use Class As Dll?

Jul 21, 2011

I got a piece of code that I have to use as a class. It gets added to the project every time, the accessed from the code of the forms.

It is for ethernet communication to an industrial radio.

So right now it's a just a class called MK

Question:

Is it possible to compile a class into a DLL which then can be just referenced to each application?

View 1 Replies

Communications :: What Does <MTAThread> Actually Do

Jun 17, 2010

I see it often declared in front of main functions and after reading the MSDN comment on the matter, it's purpose still eludes me. As far as i can understand it has to do with setting the program into some form of multithreaded state. But what does that even mean?When should I use it, why should I use it, is it even currently relevant becouse i read somewhere that the default apartment state is MTA nowaday's What's it's purpose mister Anderson ...

View 1 Replies

Communications - Difference Between A 802.11 And 802.3AE Adapter

Jul 1, 2010

How can I target a Adapter I have on the machine and Tell through windows API if its a Wireless or Hardwired Ethernet Adapter? I really want to avoid doing anything real High level like piping Command prompt text XD.

View 2 Replies

Communications :: Add A Progress Indicator?

Mar 4, 2010

I am writing a utility and using the ftpwebrequest. I am wanting to add a progress indicator to help the user know about how much time is left on the upload.

Code:
Private Sub UploadFTPFile()
Const filePath As String = "C:"
Const fileToUpload As String = "1.txt"
Const ftpServer As String = "ftp://xx.xx.xx.xx"

[code].....

View 1 Replies

Communications :: Add More Than One Client To Communicate To Add?

Mar 29, 2012

I didn't make this code but can someone explain to me how to add more than one client to communicate to add to this code?e.g 3 people to talk or is it not possible?

[Code]...

View 1 Replies

Communications :: Basic TCP/IP Server

Dec 6, 2006

[code]...

The &H30D? i know its a hexadecimal value and may represent a message but i cant find anything about why someone would need to use one, and not just "As Integer = 703". I've found nothing in the VB.NET library or windows messages/functions docs.

View 5 Replies

Communications :: Build An IM Program?

Dec 27, 2008

I am trying to build an IM program i found one (see attachment) but it is network only and i want to build one that goes over the internet?

View 6 Replies

Communications :: Can WCF Be Used Communicate Through The Internet

Mar 24, 2012

Can WCF be used communicate through the internet? All the examples I have found show it being used on a local network.

View 10 Replies

Communications :: Communication Through Webbrowser?

Apr 14, 2011

Is it possible to read out the contents of a page that has already be loaded into a webbrowser...say IExplorer...? On 'normal' windows programs there is a way to externally control a program and its contents. But on a page loaded in a webbrowser i can't find a way to get external control of its contents and buttons ect..

View 1 Replies

Communications :: Converting To Byte ?

Jun 28, 2010

I am sending data to some microchips with a serial port control using:

Code:

well, it work up to the value 9, but anything with more that one decimal place sends a byte value of the rightmost digit. So, 16 in the text box will send 6. Basically, it appears to be sending just 6, or 1 followed by 6. Is this how the serial port sends data...one digital at a time? Or, is the conversion to a byte failing?

View 6 Replies

Communications :: Determining IP Address

Aug 5, 2009

Is there any easy way to determine the IP address for the computer that an app is running on. I looked through the System.Net namespace and didn't see anything of the sort.

Basically, I want to display the IP address to the user, instead of walking them through how to do an "ipconfig". They then can put that IP address into another app, so the one app can talk to the other via UDP.

View 2 Replies

Communications :: G-code Programming In Vb?

May 26, 2009

I am trying to make a cnc program i have learnt a little about g-code i want to know how i can generate g-code from an image? Also how i can use this g-code in my program in vb to move motors?

View 1 Replies

Communications :: Get Response From Php File?

Aug 21, 2008

Code:
Private Function web_scan(ByVal code As String) As String
Dim myReg As Net.HttpWebRequest = _
DirectCast(Net.WebRequest.Create(ServerSelect.Text & "/scanner.php?code=" & code), _

[Code]....

I need to give a variable to php file via GET and recive responce. HttpWebResponse dosen't work on my PocketPC so I need n alternative.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved