LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-30-2013, 02:43 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Data Link Verification Software?


Has anyone written software for verifying communications links? I'm working on a student optical tranceiver project. I intend to have two, and these will have send & receive capability. No intelligence really - think of it as a piece of wire. The idea is to exercise them with patterns and verify each answer. I do have a Raspberry Pi on debian that might be useful and usb is fast enough. I have a laptop on slackware also, but no serial port, so device id etc, will all fail.
 
Old 03-31-2013, 06:20 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I am not sure I understand the issue. I might be tempted to send a file back and forth and check md5 each time.
 
Old 04-01-2013, 04:10 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I was hoping to be able to leave something automatic running through an evening (a reasonable temperature cycle in these parts) and get back figures like
Total transferred 16G
total error bits 0
 
Old 04-01-2013, 11:10 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Jefro's idea sounds ok to me. For a slightly more paranoid approach, change the file each time and check that new md5sum each time.
 
Old 04-03-2013, 03:56 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
md5sum is good between big endian & little endian boxes?
 
Old 04-03-2013, 05:49 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I guess you may not easily test md5 in the pi but send it back to the x86 to verify it did return correctly.

You had me wondering on this. I have never tested md5 on a sparc and compared it to x86.

It would be nice to know this and you brought up a very good point.

I also like the idea of changing data and maybe size.
 
Old 04-03-2013, 08:35 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Unfortunately don't have a Sparc system handy ... give it a try with one file and let us know.

If it is an issue, as per jefro, just send the file(s) on a loop trip and check back at src system.

BTW, some txfr tools check anyway eg rsync, ssh I believe?
 
Old 04-04-2013, 05:45 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,288

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
As this is full duplex, a hardware solution is to simply echo bit by bit at one end and do all the hard work with the other end. That way though, it is difficult to get a start and finish point, since the 'piece of wire' that I am building has no intelligence.

Anyhow, the key point of this has been answered. So I'll mark this solved. Nobody knows of software tailored for this purpose. I am inclined to ask since I find web searches offer the best publicised software, not necessarily the best software.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about data verification in C Dogs Programming 17 10-20-2009 05:04 PM
PHP GET/POST Setup link for email verification ALInux Programming 2 07-25-2006 02:22 AM
Bash: Data Input Verification Help! Vozx Programming 4 12-04-2005 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration