Quality Control Blog

Quality Control

The Quality Control Blog is the place for conversation and discussion about product inspection technology, quality control methods & software, quality standards and compliance testing, defect prevention analysis. Here, you'll find everything from application ideas, to news and industry trends, to hot topics and cutting edge innovations.

Previous in Blog: Fire and Safety   Next in Blog: Consumer Rights
Close
Close
Close
13 comments
Rating: Comments: Nested

Communication with a computer

Posted September 27, 2006 5:32 AM by nvmani
Pathfinder Tags: Program

A computer being a machine needs definite instructions to do a specified job.These instructions must be non-ambiguous and are to be given in a particular sequence.Moreover,these instructions have to be in a language which is understood by the computer (Computer can not understand spoken words in any language). The computer can understand binary language, language of 0 and 1, also called Machine level language.Binary numbering system use base 2 and has only two digits 0 (zero) and 1(one).Bit is abbreviation of binary digit. A computer being an electronic machine,can understand language of electric pulses,the presence of electric pulse denoted by 1 and its absence by 0. Program is a set of instructions written in machine code,prepared for the computer. Instructions are executed by the central processor and the person who performs this fuction is a Programmer.

Reply

Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Anonymous Poster
#1

Re: Communication with a computer

09/27/2006 11:48 PM

Maybe we need to go back to the old "Basic" language which is essentially very close to the spoken word.

Since Windows arrived most of us have forgotten how to address a computer by any means bar clicking a mouse button.

Andy

Reply
Anonymous Poster
#2
In reply to #1

Re: Communication with a computer

09/28/2006 12:46 AM

There is voice recognition software available now that lets you issue commands in your native language. My friend is a trekkie who turns his computer on by saying "Computer". It only works for his voice. The computer will execute BASIC commands as well as windows menu commands.

Reply
Anonymous Poster
#13
In reply to #2

Re: Communication with a computer

10/20/2007 8:30 AM

I did that too. Only problem was that "computer" has developed selective hearing like my kids. :-)

jehu

Reply
Power-User

Join Date: Aug 2006
Posts: 169
#3

Re: Communication with a computer

09/28/2006 9:26 AM

There is a running joke amongst a couple of my MCU programming friends and I; when the overhead of using high level language "C" becomes a pain we will break out the dip switches and a debounced momentary switch to parallel program the flash in machine code one instruction at a time. We argue that every CS or SE student should have atleast one lab programming in machine code, great way to weed out the second year students!

Have a good day all.

Reply
Participant

Join Date: Sep 2006
Posts: 4
#4

Re: Communication with a computer

09/28/2006 9:52 PM

This makes me miss my old Assembly language days.

Reply
Participant

Join Date: Sep 2006
Posts: 1
#5

Re: Communication with a computer

10/02/2006 6:54 AM

Sir,Do you know how to do the interfacing of hardware to Computer(software0? I am really keen to know about this. Please sed me some Useful links about this.

Also some practical projects which can show the communication between computer and our hardware will be also effective in order to learn much about it.

Thanks.Mani

Reply
Power-User

Join Date: Aug 2006
Posts: 169
#6
In reply to #5

Re: Communication with a computer

10/02/2006 11:13 AM

Answers for the question you asked could take GBs of server space! You need to be a little more specific. What is "our hardware"? Printer, scanner, PLC, GPS, UPS, game controller, home automation system, data aquisition...?

"How to interface computer to hardware?" Is a commonly asked, but very poor question. There are many "layers" of abstraction that involved to get from software (ie design and writing of code) all the way out to the input/output of the "hardware" at hand.


I will be assuming that "computer" means a typical PC that you could mail order from your favorite PC manfacturer. Also, that "hardware" means off-motherboard hardware.

Several questions you need to identify: (Very much not an inclusive list!)

1. PC software side:

* Who will design & code the software for the PC?

* What operating system(s) do you want to target?

* What is the significance of the PC? GUI? (Graphical User Interface)

2. What kind of "Interface" level do you want to use:

* bandwidth required (how fast do you need to send/recieve information?

If you are working with a homeautomation system, you won't need much speed, if however you are working with a complicated data aquisition system with several 3 axis acclerometers, strain guages and the like; you may need a wide channel to get the data to the computer.

* distance between hardware and computer.

* environment; industrial, comercial, out side, residential, etc.

Some typical interface examples:

Ethernet, USB, RS232, RS485/422, Bluetooth, ZigBee, PCI, ISA... These probably shouldn't even be all listed together since they represent such a large range of how to "breakout" from software to usable hardware I/O. Most all serial and ethernet port drivers are interfaced to the PC's processor via PCI buss (some on board, and some are cards that plug into motherboard of PC)

try out www.howstufworks.com try searches on "USB" "PCI" "serial port" "parallel printer port" You might get some useful info there, and remember to pick through some of the links at the end of the articals, sometimes they are helpfull.

Perhaps you should familiarize yourself with the capabilities of microcontrollers and/or DSPs (Digital Signal Processor) since most interfaces will require another "processor."

Reply
Power-User

Join Date: Nov 2006
Location: 51.25 n , 0.53 e
Posts: 224
Good Answers: 1
#7
In reply to #6

Re: Communication with a computer

11/23/2006 8:02 AM

If I want write a simple program such as solving a 'New scientist' Enigma quiz I download a CPM (Pre DOS) simulation and run BASIC, my 64 bit AMD which now runs like a 8080 albeit a lot quicker and I can talk to it in an almost human language.

Reply
Guru

Join Date: Mar 2007
Location: Etherville
Posts: 12362
Good Answers: 115
#8
In reply to #7

Re: Communication with a computer

03/16/2007 8:28 AM

Like yourself , I'm a big fan of q-basic (as shipped free with early windows).As you say it can deal with some pretty good maths.Graphics are a bit week though .I did get it running a good routine for 3D stress analysis - rotating a cube and outputting the stress tensors on each face.If I'm bored I just leave it churning out primes. I had a nice routine for solving ax3+bx2+cx+d=0, which is quite happy with non-real roots , but I swapped it to Excel 'cos the interface was prettier.However excel is precision limited , so I reverted back for a project on my own version of RSA encryption (I was just playing with the handling of big numbers).I don't feel like a dinosaur now , having heard a like mind ! Kris.

__________________
For sale - Signature space. Apply on self addressed postcard..
Reply
Power-User

Join Date: Nov 2006
Location: 51.25 n , 0.53 e
Posts: 224
Good Answers: 1
#9
In reply to #8

Re: Communication with a computer

03/16/2007 8:37 AM

The only way I can run Basic is to run a CPM emulation, this runs surprising quickly on a modern 3Gb clock rate machine.

I don't think CPM would be at lot of use for the brute force cracking of RSA codes!

Reply
Guru

Join Date: Mar 2007
Location: Etherville
Posts: 12362
Good Answers: 115
#10
In reply to #9

Re: Communication with a computer

03/16/2007 9:00 AM

Q-basic runs fine on the computer I'm using now - a fairly run of the mill Dell .RSA algorithms can be simplified with some nifty mathematical 'tricks' - check out techniques based on Euclid's algorithm. Admittedly , I haven't used numbers of the size used in reality , but I can pull off manipulations in Q-basic that would be a pain to set up in Excel. abcdef mod(ghi) kind of thing is easy , but obviously not very secure !

__________________
For sale - Signature space. Apply on self addressed postcard..
Reply
Anonymous Poster
#11
In reply to #6

Re: Communication with a computer

04/15/2007 11:47 AM

I am happy you take every blog seriously .

There is a lot of clarity in your entries .

Your participation enlivens the thread .

RK

Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#12

Re: Communication with a computer

05/15/2007 3:31 PM

At last, it appears I'm not alone!

I remember working at Marconi in England on my school vacations (my Dad worked there) I switched some very simple assembler (there was nothing else back then) into a DEC PDP11 (i think).mmmm lights and switches (read that bit with a Homer Simpson voice)

Then went on to basic...bought a Sinclair zx81...

Remember all those early PETs ...and PCs, yes we got Qbasic free and it worked...and you could communicate with the outside world.

Now the OS takes up so much processing power and memory the average PC is almost as quick as an old 286!

(ok...an exageration)..but loads of us still use Microsoft word...which doesn't even come with the OS and still has the same bugs! Please save me from Vista.

Pencil me in for a tirade against the tyrany of Microsoft...I'm sure a few of you can write your own...so I won't actually bother.

I have to moan here...'cos my Wife won't let me moan about Bill Gates (she loves her laptop)

__________________
health warning: These posts may contain traces of nut.
Reply
Reply to Blog Entry 13 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (4); auser (1); juba-jabba (2); Kris (2); maninblack (1); syhprum (2); user-deleted-1105 (1)

Previous in Blog: Fire and Safety   Next in Blog: Consumer Rights

Advertisement