serial

What's a good approach for developing a simple serial number generator/verifier?

I'm working on an app I'd like to sell some day -- sooner rather than later! I'd like to develop a reasonably simple serial number scheme to protect it. A simple number/letter combination not more than 25-30 alphanumeric characters long (think Microsoft product keys) Does not require the user to enter any personal information (like an ...

Serial Comms dies in WinXP

A bit of history: We have an application, which was originally written many years ago (1998 is the first date in PVCS but the app is about 5 years older than that as it originally was a DOS program). This application communicates with a piece of hardware via serial. When we got to Windows XP we started receiving reports of the app dying ...

how to read and write from the serial port with java

I want write data to serial port then I'll get reply again I've to write data to the serialport. But the problem is, when I write at first time I'll get reply also but I couldn't write at second. my code package writeToPort; import java.awt.Toolkit; import java.io.*; import java.util.*; import javax.comm.*; import javax.swing.JOption...

Best VM for Delphi development with parallel port

I see that a number of people are doing S/W development (not just Delphi) using a virtual machine to host the IDE and all required files. I've used Microsoft Virtual PC to debug issues with my Applications on various OS's but with little access 'outside' the VM. My applications use USB, serial and - crucially - direct I/O writes to hardw...

Javascript interface with RS-232 Serial Port

I am currently working on a project that involves a 4 Port A/V switch. This switch can be controlled via RS-232. The computer that will interface with the switch runs Vista. I would like to create a sidebar gadget that has 4 buttons- 1 for each port on the switch. When the user presses the button, it switches to that port. I have ...

Getting Epson receipt printer to print from Arduino

This is a bit of an odd/specific question, but I'm having no luck, so maybe someone can help. I'm trying to build a microprinter using an Arduino and an Epson TM-T88II receipt/POS printer. The printer uses the ESC/POS system, but I can't get it to do anything at all from the Arduino. I'm doing things like: #include <SoftwareSerial.h> #...

Serial comm with PHP on Windows

Greetings all. I am looking for a way to communicate with RS232 serial COM port on windows. I have found 2 solutions on the net, one which is not totally free (introduces deliberate delays on the function) and another with limited capability on Windows. The latter can only write to a COM port on Windows, not read. I can't look at the c...

Privilege Escalation in Web Environment for File Access

I have a situation where I would like to elevate the permissions I have in a web environment so that I can access a serial device. The specific case is where I have a web interface for configuring a modem that comes up on /dev/ttyUSB[0-9]. Zero or more modems will be plugged in by an end user. I am writing some software that is capab...

Where can I find a ZwCreateFile example for C++?

I am looking for an example to read an already opened COM port, the only thing that I have found is an application called PORTMON that refers to a method called ZwCreateFile. ...

Scriptable terminal program for modem testing

I have to use AT commands to setup my dial up modem (modulation seleccion, speed, etc), and dial other modem. Once the connection is stablished I have to transfer/receive files via zmodem, xmodem... I have to run a batch of tests with different speeds, modulations (v.92, v.90, v.34...) so i need a scriptable terminal program (hyperterm...

Getting Serial Number of the Hard Drive Provided by the manufacturer through PHP

Getting Serial Number of the Hard Drive Provided by the manufacturer through PHP : How can it be done? I want to store it in a file. OS : windows 2000,XP,ME,Vista... Yes, I want the serial number of the hard drive of the Server. Or can it be done through Adobe AIR? Or can it be done through a C program on Windows? C:\Documents and ...

Getting Serial Number of the Hard Drive Provided by the manufacturer through Adobe AIR

Getting Serial Number of the Hard Drive Provided by the manufacturer through Adobe AIR How can it be done? ...

Out of curiosity: How are serial numbers generated? Hints, Algorithms?

I wondering about how serial number generators and validator work. My aim would be to generate a serial number with five parts consisting of numbers and letters only. I enjoy coding as a hobby and would not call myself a professional programmer. However, I am very interested in how those interesting functions work technically to broaden...

Problem with ring event in serial port communication

Hi, I have a modem in a computer where there is running a program that dials a number or waits for a call. When dialing a number the modem works fine, but I doesn't detect the Ring event when it's the one being called. My program is in java and it works perfectly on my laptop with its modem. When I use the modem to receive a fax, it wor...

Get HDD (and NOT Volume) Serial Number on Vista Ultimate 64 bit

I was once looking for getting the HDD serial number without using WMI, and I found it. The code I found and posted on StackOverFlow.com works very well on 32 bit Windows, both XP and Vista. The trouble only begins when I try to get the serial number on 64 bit OSs (Vista Ultimate 64, specifically). The code returns String.Empty, or a Spa...

Mono System.IO.Ports SerialPort class error handling

I am debugging some mono code that is using the serial port. At some point the mono write a table with the following code : // Send the 1024 byte (256 word) CRC table progressBar = new ProgressBar(); progressBar.Update(0.0,"Sending CRC table..."); for (int i = 0; i < MyCRC.Length; i++) { MySP.Write(MyCRC[...

Get Modem Info in .Net Compact Framework

I am using .Net Compact Framework on a Windows Mobile 6 environment and I need to get a list of modems and the serial port that they're attached to. In the full .Net Framework it can be easily done using System.Management.ManagementObject class; but, unfortunately this is not available in .NET Compact Framework and I haven't found any o...

escape character via serial

Hi, I'm controlling a serial printer from arduino, now it works perfect but i need to send it escape characters to controll some especific features of the printer. Anybody can show me a way to do that? i need to send "ESC i" thx ...

asynchronous serial port communication in windows in c

I am getting an error when I try to run a c file which does some basic writes to a serial port. I am trying to run it asynchronously because the writes sometimes take a long time to transfer. My original version had it running synchronously with WriteFile() commands which worked fine. I am new to using OVERLAPPED and would appreciate and...

How to get Serial # from Symbol MC 3000 or any Symbol device

How to get Serial # from Symbol MC 3000 or any Symbol device? ...