xmodem

Implementation of X-modem protocol in Java

I want to receive a file from serial port and I have to use that X-modem protocol is designed to receive a file over serial port in Java. So if anyone can have idea about then plz help me. I am in very much trouble.plz ...

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...

compare hexadecimal values java

Duplicate: http://stackoverflow.com/questions/713162/compare-hexadecimal-values-with-decimal-in-java hi, i'm implementing x-modem protocol in java,i'm reading serialport and storing in byte array of size 1024. then i have converted data to string i'm getting 133 bytes in a packet,problem is i'm not enable to compare hexadecimal value in...

CRC calculation in Java

Hi, i'm readin file from serialport using x-modem protocol and 133 bytes packet i'm reading in that 1 byte is SOH 2 byte packet number 3 byte nagative of packet number next 128 bytes data 2 bytes CRC sent from other side. i've to calculate CRC of 128 bytes data and 2 bytes crc sent form other side that i've to m...

How to read negative byte values in Java less than -128

I'm reading data from another system using the serial port. I'm reading packets of 133 bytes. The second byte is the packet number and the third byte is the negative value of the packet number. The problem is that the type byte has a range of -128 to 127. When I attempt to read -129 (outside the range of byte) it will give the value ...

Block repeat problem with Java XMODEM implementation

I'm implementing XMODEM protocol in Java. In this protocol same block will repeat if packet doesn't match (when I send NAK again and again) but I'm getting it only 5 times. What might be the problem? ...

Desinging an Application for xmodem Transfer Through Dial-up in Java

I want to desing an application to send/receive a file with xmodem (written in java, I found the source code at http://stackoverflow.com/questions/606074/implementation-of-x-modem-protocol-in-java). I've decided to modify this code. First I should dial a number on the client-side and listen on the server-side. My problem is that I don't ...

Can I use the xmodem protocol with PySerial?

Hi, I have a working connection with my serial device via PySerial, but I also want to transfer files via the xmodem protocol as part of my program. Which would be the most platform-neutral way to do this? Worst case, I could close() my serial.Serial object in Python and use subprocess to call upon /usr/bin/sb, but that seems inelegan...

CRC-CCITT (XModem) implementation in javascript

Hi, i'm trying to implement a CRC-CCITT (XModem) check in javascript without success. I need it in order to send socket string into a controller via RS232. does anyone know how to do it? or perhaps is there a sample code somewhere?? I would appreciate any kind of help :) ...

the modem for detecting voice

hi. I write an application,and i want to detect when the remote party answers a phone call made by my application,i need to use the Voice Detection. Do you know which kind of modem have the appropriate hardware to detect when an outgoing call is answered? i'm programing with c#.net and kdtele component. Please help and guide me. Thanks...