Questions tagged [error-detection]

101 questions
0
votes
2 answers

computer networking error detction cyclic redundancy check

could anyone tell me that is it right way if i calculate the crc by the method given below: i did this because dataword length is large. is it right?
0
votes
2 answers

Which one is the better CRC scheme?

Say I have to error-check a message of some 120-bits long.I have two alternative for checksum schemes: Split message to 5 24-bit strings and append each with a CRC8 field Append the whole message with a CRC32 field Which scheme has a higher error…
ysap
  • 7,015
  • 7
  • 51
  • 105
0
votes
1 answer

Determining the minimum Hamming Distance

How can I find the minimum Hamming Distance for the above? I understand the string comparison idea and putting it into a table based on C0, C1, C2, etc but I'm not sure how to group the code above. Any suggestions? Thank you in advance.
aurora91
  • 478
  • 6
  • 22
0
votes
2 answers

Should a property in Swift be implicitly unwrapped in my UIViewControllers?

Let's say we have this viewController public class DetailsViewController : UITableViewController { public var text : String; public override func viewDidLoad ( ) { // do something with text } } and we have this other…
Jan K. S.
  • 1,531
  • 1
  • 12
  • 13
0
votes
3 answers

Code assistance in Netbeans on Linux

My IDE (NetBeans) thinks this is wrong code, but it compiles correctly: std::cout << "i = " << i << std::endl; std::cout << add(5, 7) << std::endl; std::string test = "Boe"; std::cout << test << std::endl; It always says unable to resolve…
Martijn Courteaux
  • 63,780
  • 43
  • 187
  • 279
0
votes
1 answer

Why using Generator polynomial like this x^8 +x^2 +x+1 for CRC-8?

Why using Generator polynomial like this G(x) =x^8 +x^2 +x+1 for CRC-8. If this is optimal How can we prove it. or using this Polynomial G(x) = x^5 + x^4 + x^2 + 1 for CRC-5-ITU.
hussein_moh
  • 27
  • 1
  • 11
0
votes
1 answer

Ignore certain scripts for JSDOM

I am building sets of tools to monitor certain web pages. These pages have a combination of internally written javascript and external tools and scripts. When jsdom.env runs across a javascript error it fails out with an error, as it should. …
Skip Huffman
  • 4,469
  • 8
  • 37
  • 49
0
votes
1 answer

How to create a byte array that will have a BCC (Block Check Character) of a given value (0)?

I am trying to create a byte array that has a certain BCC (Block Check Character) result (=0). The array will have the preamble of: 32 02 31 1F 31 1E 32 1F T E S T : 32 02 31 1F 31 1E 32 1F 54 45 53 54 3A 20 With a variable text message (msg)…
0
votes
1 answer

Error detection in binary messages using CRC/polynomial key

I'm new to CRC and Checksums and I am attempting the following query: I am trying to determine the CRC using the generator polynomial P=x5+x4+x2 +1. The message to be sent is = 1010001101. For my query, I have been asked to: show the polynomial…
mickm
  • 253
  • 2
  • 6
  • 19
0
votes
1 answer

Jar not working?

I've created an application (in Java) and make it password protected: when I run/compile my code in Eclipse it works fine but when I created a jar file and run that jar it was not working: it shows me the initial frame but nothing works after that:…
0
votes
1 answer

What error it could be

like you could see here in code under that there is no syntax error but each and every line seems right but when this code is being used in my Application the " if " statement not works...... its not matching the string with already existing string…
0
votes
0 answers

error-detection for file sent across a network - can only link to pthread and math library in c

I need to transfer a file from one host to another but the data can be corrupted in between so I need to have some error detection algorithm . So i thought I could send the md5 sum along but my assignment does not allow. we can only linke to…
j10
  • 1,619
  • 2
  • 21
  • 33
0
votes
1 answer

Detecting failure of JAR command in Bash

I am executing this simple jar command in bash: jar cvfm control.jar Manifest How can I automate the detection of a failure in the execution of this command? By failure i mean that the command just simply failed to execute due reasons…
vijay
  • 2,536
  • 2
  • 19
  • 37
0
votes
2 answers

Automatic compiler detection of the addition of the same object instance to a container in a loop

This is a dumb mistake: List fooList = new List(); Foo f = new Foo(); while (something.Read()) { f.Fill(something.GetRecord()); fooList.Add(f); } Of course, I should instantiate a new Foo inside the loop. Can a compiler detect…
Vinko Vrsalovic
  • 244,143
  • 49
  • 315
  • 361
0
votes
1 answer

Error correction code for lost bit

If we have to receive a data from sender as a chunk of bits (say 8 bits). But, the transferring is unreliable which result in bit-lost. (Not bit-flip) That mean, any bit in the chunk can be absent and receiver would receive only 7 bits. I studied…