ASCII And BCD - Send Commands From PC To Device Using USBApr 19, 2011
I need to send commands from PC to device through USB cable, and the code is : "0"(48) and must end with Enter(13).áso what should I type in for the code for Enter?
I need to send commands from PC to device through USB cable, and the code is : "0"(48) and must end with Enter(13).áso what should I type in for the code for Enter?
it is a normal text file, I would read it then , (This part I got it) print it out to a reciept printer, send insert ascii code to force the printer to cut the recipt.View 2 Replies View Related
If we have a string that contains for example "01_1A" in ascii, I would like to take first two chars and following two chars after mark and send it as hex format, like &H1 and &H1A.
Note that I would not convert ascii to hex. I am asking for something like &H(var).
I have never programmed a network program before and would like to learn at my own pace. Also I am not asking anyone to write this complete program for me, just bits of code to help me write a complete program. (though if you do code it all I won't complain.) I already tried using internet tutorials but none of them seem to work.I am trying to program a simple form with 4 buttons, and 2 users.The first button is a connectivity button. "Green" for connected, "Red" for not.The second button is a "Connect" Button which will connect to another computer with this program installed/active. (I want it as simple as possible)and the next 2 buttons switch between "1" and "0" depending on user input(Default "0"). the first button is the local user button and the second is the remote user button. When the local user clicks the local button then what he/she changes it to will be displayed at the remote site. The same thing will happen with the remote user.
I know how to place all the buttons where they belong, and to change the local text, but I have no Idea how to connect to a remote program or to pass messages between the two users. Can anyone suggest some Simple code to do this. (something that I will be able to learn and use to make more complex code later on.)
I have a Zebra TLP2824 Printer and I want to know how to send the EPL commands from a VB.Net Windows Form application.View 2 Replies View Related
I have downloaded the vb script and it works as it should, its a program where you have some buttons so that you could trigger the relays.But i need several small scripts, one for each relay on / off so that i can call them from a .bat file with argument.i have a .bat named relaycard and in thet i have created argument like
and so on.
The small program relay1on should just do the jobb and then close itself.Maybe its a little bit clearer now.On the link that i posted there is a manual and even links to the vb program,
What I have done so far is place the compiler inside the bin of my project folder, inside the Debug folder. I managed to call the cmd shell but the problem is whenever I pass commands to that cmd shell, it doesn't work. What happens is it opens a cmd shell and when I pass commands on it, it opens many other shells.[code]...View 1 Replies View Related
I've got a curious problem that I can't crack. I have 2 applications, app A and app B. Application A runs continuously doing various things. On the same machine I have application B that runs infrequently at random. I need for application B to tell application A to do something. Both are vb.net apps that I've written and can tweak to make this work. I can't figure out how to get app B to communicate with app A while app A is already running?View 4 Replies View Related
want to make a vb.net program to send AT^ CommandsI want to send this commandView 2 Replies View Related
In my application I have only one button . That button will open CMD then it will send a command into cmd , now after that command it requires an "enter key" to continue the process .I tried the shell command in order to access the command but then I couldn't press enter in cmd using my applicationView 4 Replies View Related
I am trying to send commands to Command prompt.The following code should open the text file I specified.However it opens several instances of the cmd window and also several copies of the text file. Sometimes the text file is not opened and if the file path is long, part of the file path gets inserted into my text file.[code]View 1 Replies View Related
i'm trieing to configure a mp3 recorder via telnet and visual basic.how can i send commands to the telnet session via vb?I can make connection with it via telnet and ip adress , but after that i wil send the command for login( login=hdr1) ANd with another butten for example (transport=play)How can i do that?
I wanted to send the items within a listbox.One item at a time
this is the code snippet:
For i = 0 To 5
SMSPort.Write("AT+CMGS=" & Chr(34) & sender & Chr(34) & vbCrLf)
SMSPort.Write(listfiles.Items(i).ToString() & vbCr & Chr(26))
I'm running Visual Studio 2010, and i'm trying to use AT commands to send an SMS. My question is will it not work with windows 7 due the exclusion of hyperterminal in windows 7. (I was able to dowload a version of Hyperterminal and can use AT commands in that.. but my code itself does not work.) My code is below.
I have an application which I would like to access from another computer.So I thought of making a client which my application(server) would send commands to and then the client runs the command.View 6 Replies View Related
In VB6, I use CHR$(&H00) to create a Null Character. In VB.Net VS2008 CHR(&H00) creats a Null. I'm trying to send a Hex(00) to a serial device, but the VB.Net function only sends a null, not a null character. How can I accomplish this with VB.Net?View 5 Replies View Related
In VB6, I use CHR$(&H00) to create a Null Character. In VB.Net VS2008 CHR(&H00) creats a Null. I'm trying to send a Hex(00) to a serial device, but the VB.Net function only sends a null, not a null character. How can I accomplish this with VB.Net?View 1 Replies View Related
I have a dll that I can load in another program. Now the dll has access to all data/functions in the other program. Which technology can I use that now an external program can send data/commands to that dll, to steer the other program, or get data from it ? I mean, in the past that meant DDE, I think that was back in Windows 3.11/95 times. What can I use today? Which one is easiest ? Which one is fastest?View 3 Replies View Related
I want to make a simple program where I can click a button and it send various commands to my VPS server through SSH. I have had an extensive search online but the SSH Components range from $200-$500 which is far to expensive for what I want to do. I was just wondering if anyone knows any other free alternatives. Or maybe has seen a free SSH Component. I am very well aware that free clients exist like putty but would very much like to incoperate it into my own program to be automated.View 1 Replies View Related
How can i send AT commands to my router network port?View 6 Replies View Related
How can i use the address bar to send commands to a external application?
AOL Instant Messenger -
I havent used this application in a long time. But i remembered if you wanted to add a friend to AIM from their online profile it directed them to a link such as:
and AIM would pick this up and add it the contactID to the application. The link i posted is more than likely not the correct link they use but it shows what im trying to accomplish.
Im looking to achieve something along the lines of:
Will the commands I send to a Process.Start() be obeyed from within the IDE? [code]This doesn't work in the IDE, just gives me a blank window with the full string as the window name, but I'd like to fire up ffmpeg from within the app, wondering if it's an IDE thing or my code. I know some things in Flash work differently in the IDE than the "real" thing, not sure if VS does it too.View 1 Replies View Related
I know how to send data to com or virtual usb-com if it has physical com port number listed under "Ports (COM&LPT)" tab in the Windows device manager
' sending to device with physical COM port number"
Dim searcher As New ManagementObjectSearcher( _
But how to send data to the device listed in "Universal Serial Bus Controllers" tab without any physical COM port number?
I am attempting to write/read data to/from a device that is connected to my laptop via a USB-to-serial connection.The device getsa picked up in my device manager on com port 8.What do I need to be able retreive and send info. across to the device?View 18 Replies View Related
How do I send XML commands in vb to get data received over a serial Port?
I know the commands I'm just not sure how to send them.
I play Lord of the Rings Online and tried to use sendkeys to send some basic automation commands.Unfortunately it doesn't seem to get the keys I'm sending
AppActivate "Lord of the Rings: The Mines of Moria"
sendKeys (" ")
im trying to send RCon commands to a Call of duty: Black Ops game server.I read a thread from a few years back about sending RCon commands to a CoD 4 server, and all look promising until the application kept crashing when I pressed connect.
all I want is to be able to send a few commands to the server through an application.
I want to send a simple command, such as "v20" followed by a carriage control character, to a heating/cooling block connected to a desktop computer running Windows XP. I am able to get the commands to work within a terminal emulator. I want to compile a simple program that will be executed by software used to control a liquid handling robot.I've looked at the how to send strings to serial ports in visual basic page and modified that code ever so slightly to send the data that I want. However, it does not work and my heating/cooling block is not changing temperatures.á
Here's what I have written:
Sub SendSerialData(ByVal data As String)
data = "n65"
' Send strings to a serial port.
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 View Related
I have a need to construct a commandáByte to send to another device using bit wise operations.There seem to be plenty of article on how to do this for indiviual bits using an OR'd constantábut how do I do this forávalues that span multiple bits? eg "Bits 4-1" set the repeat count".so how to I inject a repeat count value of sayá7 into my command byte?View 1 Replies View Related
I am currently making an application which can send recharge amount by using a mobile device. (Nokia E71).View 3 Replies View Related
I want to do what I have done in the past, using the old VB6. Subclassing has changed a lot since VB6 and I still want to do the same:
I need to intercept WM_PAINT of DataGridView, send it to a memory device context (to avoid flickering), make some visual changes, like place a logo over all over the grid. With VB6, was easy to do. I have spend hours trying to convert VB6/API code to Visual Basic Express 2010 code, without success.
How can I create a simple application to send timed controls to an external device?
What I need is to create a very simple application that sends control signals or voltages out to an external device connected via serial perhaps. The external device will in turn trigger some electromechanical devices. There needs to be 24 independent controls each with a simple command equivalent to on or off.á What is important is being able to control the timings of the on and off on each control.[code]....
I am using Microsoft.VisualBasic.Fileio.TextFieldParser to parse a CSV file that was created with Excel 2003. The parser is working great with the exception that it is converting extended ascii values to question marks! So if the file content was:
The TextFieldParser is returning
I have tried all of the encodings in the System.Text.Encoding package with no luck. I thought I had it with UTF7 but it was dropping other characters like replacing the + sign with a space.
I'm working on decoding a NMEA sentence that is a compressed 8-bit string. I'm having a very hard time of wrapping my head around the bit manipulation needed to convert this string. If someone could get me started with this it would be great.
Here is the incomming string:
and here is the expected output:
Is there a way for my program to send Linux Console Commands to a remote Linux server?View 4 Replies View Related
I am trying to figure out how VB can focus a specific program and then send commands to the program only. The focus would only be for the commands and would not make the program you are currently in lose focus. Simply, what it is controlling is a Windows Application called GOM Player. I use it to study my material for school. I plays movies in it and don´┐Żt have to click out of the application I am working in to pause, play or rewind. The keypad and the company who make it actually have it built into iTunes and it does exactly what I want GOM Player to do.
The reason I dont just use iTunes is because I can´┐Żt get my video files to play in iTunes. After pulling teeth with the manufacture I finally to tell me that the iTunes functionality is accessible via plugins built into iTunes. So trying to mimic what is being done there does not help. I believe that a knowledgeable VB programmer could answer my question in seconds, but having some experience with coding and programing I know it also could be a lot more than what I think. [URL]
The question is: What is way that VB can send the key for the macro only to the GOM Player Application even if it is not focused or even If it is minimized.
I have already asked about the problem in java forum.Now i think the solution is only possible through microsoft products.Problem is i want to get the handle of a application and send commands to that application.Is it possible commands are send to combo box , text area, buttons etc..View 2 Replies View Related
I would like to pass a whitespace character by using the System.Text.Encoding.ASCII.GetBytes(" "),á and System.Text.Encoding.Unicode.GetBytes(" ") , where " " is the whitespace Character required.á What do I need to type (" ") to get a whitespace character passed.?View 6 Replies View Related
I am trying to send/print/write all possible ASCII codes (0-255) to another console-window application. From my application I would enter the name of the "receiving" application and the comma seperated hex values that should be sent/print/written to it. I have used AppActivate to select the "receiving" application and then have used sendInput and send.sendkeys to attempt to send the desired ASCII value. However, these appear to have limitations on values greater than 127. I need to be able to send all 255 values.View 1 Replies View Related
how can i make my program feel if any device or usb device plugged into the computer or unplugged.url...View 3 Replies View Related
A Problem in accessing a device from VB Windows cannot load the device driver for this hardware because there is a duplicate device already running in the system. (Code 42) This error is because i am using 2 devices of the same company which has the mass usb storage on it and when i install one of the device the other hides. So one is detected the Other is not. It also give a error called designed dragnonacally something...View 2 Replies View Related
So I have an ASP.Net (vb.net) application. It has a textbox and the user is pasting text from Microsoft Word into it. So things like the long dash (charcode 150) are coming through as input. Other examples would be the smart quotes or accented characters. In my app I'm encoding them in xml and passing that to the database as an xml parameter to a sql stored procedure. It gets inserted in the database just as the user entered it.
The problem is the app that reads this data doesn't like these characters. So I need to translate them into the lower ascii (7bit I think) character set. How do I do that? How do I determine what encoding they are in so I can do something like the following. And would just requesting the ASCII equivalent translate them intelligently or do I have to write some code for that?
Also maybe it might be easier to solve this problem in the web page to begin with. When you copy the selection of characters from Word it puts several formats in the clipboard. The straight text one is the one I want. Is there a way to have the html textbox get that text when the user pastes into it? Do I have to set the encoding of the web page somehow?
I was just wondering how I could send commands to a tabbed browser. Such as navigation. I know of webbrowser1.navigate, but that will not work with the tabbed browser. I would also like to use an commands to automatically login. But I am not sure how I could do that in a tabbed browser either. Webbrowser1.document.getelementbyid does not work for this.View 2 Replies View Related
The below lines does not write anything to the file, ascii.txt. Trying to write the ascii equivalent of hex "88". However nothing is written to the file, nor nothing is asssigned to the variable, ascii.
Dim ascii = ChrW(Convert.ToInt32("88", 16))
My.Computer.FileSystem.WriteAllText("e:ascii.txt", ascii, True)
In excel or openoffice, you can get the ascii equivalent using the below formula. What is wrong with the code?