Duplicate of Implementation of Xmodem Protocol in Java
Hi, I've got to implement the xmodem protocol to receive a file from a target device. For that, I have to request the file, then for every 128-byte packet received, I have to send an acknowledgment. My problem is when I open an outputstream to request the file, it will write but...
Hi,i'm reading data from serial port in java,but i'm not getting full data,it is splitting ten it will comes.
example:
if target device writes datas_ok but i'm getting datas_ at first read then ok second time.
case SerialPortEvent.DATA_AVAILABLE:
try {
while (inputStream.available() > 0) {
numBytes = inputStream.available()...
Hi,
i'm implementing x modem protocol for reciveing file form external device using trough serialport using java ,i'm getting 133 bytes from sender after sending C to sender then i'll get 133 bytes i'e first packet afetrthat i've to send acklowledgment i have done that part but i'm not getting second packet and i've sent ack within tim...
hi,i have byte array stored by both hexadecimal and decimal value,i want to search for hexadecimal 1 i'e SOH in the how can i do this in java,plz give a sample code.
int SOH=0X01;
if(SOH==1)
is showing true.is it correct or not.
thaks in advance.
...
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...
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...
Hi
i'm reading 133 length packet from serialport,last 2 bytes contain CRC values,2 bytes value i've make single(short i think) using java.
this what i have done,
short high=(-48 & 0x00ff);
short low=80;
short c=(short) ((high<<8)+low);
but i'm not getting correct result,is it problem because signed valued?
how can i solve this proble...
I have Attribute Filter like this one $(’input[name="email"]‘);
I want to create a function with parameter, which would contain name of attribute..something like this:
function test(id_new){
var var_name = $("input[name='"+id_new+"']:checked").val();
alert(var_name);
}
but this code is not working, any solutions?
...
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 ...
Hi,
I'm writing bytes to temp.fls file. After completing the operation, I want to delete the last 256 bytes from the temp.fls file. How can I achieve this? Please help me.
Thanks in advance.
...
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?
...
As a newcomer to iPhone development and Objective-C in general over the last few weeks I have come across numerous mentions of 'Toll free bridges' between CF and NS frameworks.
One particular example would be CFStream and NSStream.
Does a resource exists documenting all of these bridges and how to use them ? Is it just as simple as cas...
Rails provides a number of extensions to core Ruby classes. One of these is the to_sentence method, added to the Array class, allowing for the following:
['a', 'b', 'c'].to_sentence # gives: "a, b, and c"
I would like to extend this method to allow it to take a block, so that you can do something like the following (where people is an...
I’m trying to install the Structure module with ExpressionEngine Core. I did a fresh install of everything:
ExpressionEngine 1.6.7
Structure 1.2.5 (adding the empty lang.pages.php file to /language/english, per http://expressionengine.com/forums/viewthread/91290/
Followed the instructions for installing Structure at http://expressionen...
Hi,
i'm reading file through serialport i want file transfer window wich should not have any connection to parent window,and reading process should go on backside
...
I'm reading data from serial port inside while loop as follows:
while((len = this.getIn().read(buffer)) > 0) {
data = new String(buffer, 0, len);
System.out.println("data len " + len);
handleModemresponse(data);
}
but, while reading the data from stream starts, the main AWT window, which has a disconnect button, is not get...
Hi,i'm reading data from serialport,problem is i'm not getting complete data what written by other side,data is breaking and it comes for next event,so if read single charecter from port
for second event is data is appended to pevoius data inside inputstream? wat the process javax.comm do plz give the information.
Thank u in adavance
...
I'm looking for a way to have a precise architecture information about Xeon E5420. This processor have 4 cores and 2x6Mo cache, so 2 cores shares a 6Mo cache.
I'm working on machines that have 2 processors xeon, thus have 8 cores, and looking at /proc/cpuinfo just gives me indication about which core is on which processor.
Usually odd ...
If i make java core dump with gcore then what is the best tool to analyze it? I need to be able make jmap, jstack, jstat etc and also i need to see values of all variables.
Something that can take core dump as frozen JVM.
...
What is SEGV_MAPERR, why does it always come up with SIGSEGV
...