ThaiIO.com

repair notebook

PC interface Hardware and computer devices resource,serial port,USB,Parallel port,Wireless.

Today , 2007
October 26th, 2009

Primer on Solve Serial port RS232 problem

I think,many developper will be found the serial port problem,today i have solution to fix this problem.
serial port solution
What’s going on: Creating a loop with a paper clip may seem silly, but it’s actually a great troubleshooting tool. By looping the transmit and receive pins, you can test whether the ports and connectors transmit and receive valid information. This is called a loopback test.

If all above are correct, please try to change to other serial port or other computer.
If it can use on other computer or other serial port, you can think that maybe the serial port is disabled in BIOS setup.

How to fix the serial port problem?
If the device will support it, make a Telnet or proxy connection to the near-end device.
Perform a loopback test: Type any character. You should see the character echoed on the screen. Now remove the paper clip from the port and type a character. Without the loopback, you should not see the character echoed.
What is going on: Create a loop with a paper clip seems silly, but it’s really a great tool fabhtcheartaithe. Since looping send and receive pin, you can test whether port and transmit chónaisc and get valid information. This is called the loopback test.

-If the device will support it, or to connect to Telnet proxy device at the end.
-Loopback test performance: Type any character.
loopback testing
You should see the document character is reflected on the screen. Now remove the paper clip from the port and the type of character. Without the loopback, you should see the repeated characters.
-If the test result is a loop just as described in step 3, the port is physically OK. If the loopback test results to various faulty port.

The next step is to test port cable problem.
-Disconnect the cable at the other end and loop TX RX pin to pin.
-Do Telnet or proxy connection to the device in the near-end loopback test and are in compliance.
-If the cable fails the loopback test, you may need to replace the cable.
-But before replacing the cable, double-check the pinouts. The end is near and the other end of the port to be identical pinouts, for example by cable directly through resulted in one TX pin must be connected to another pin TX. You may need a null modem adapter, which turns TX and RX signal.
-If the cable is fine, the problem may be in port until the end. To be sure, the far-end loop port pin to pin RX TX, Telnet to connect to the device and the end-loopback testing on the spot.

How to fix the problem on serial port?

The following options to solve the problem for COM port:

1. Enter the start bis mode on your computer and ghníomhachtú the serial port if it is disabled. Not sure if your modem is used in combination with car port COM port, I / O can be in conflict.

To enter the mode by pressing the start of bis key during the startup of the computer, such as DEL, ESC Ctrl-Esc, Ctrl-Alt-Esc. However, it depends on how each computer station, but the most likely message “Press DEL key to enter setup on the bis.

Then, go to Integrated Peripherals Menu replacements with the serial port. When you are done with the change to enable / disable serial port, you must save each site before retirement bis configuration method.

2. You can solve this problem by configuring the serial port on the board with disabilities to use the port base address and IRQ value does not coincide with other serial port on the modem or computer. For example, you can get RID of conflicts with other ports by configuring the port to be forwarded base 3E8 is COM3, IRQ5 then use but you must ensure that no devices using IRQ 5.

3. If above can not solve problems, try another option: select the serial port or modem in bis use the computer or modem for all riders to be on the port that is not in conflict (eg COM3 3E8 against to use base IRQ 5). Non-additive Modems & fun jumpers at specific purposes. You must indicate to the computer that the modem or configure the modem to use manual. Sometimes, the parameters of May, or on a printed circuit on the modem of course.

July 6th, 2009

Which is faster in data communication parallel port VS serial port?

Parallel ports are easy to program and faster with the RS-232 interface(serial port). But the disadvantage is that they need a series of gears. Because of this reason the parallel ports are not included in the distance. Tell us the fundamental difference between the work of the parallel and serial port.
Parallel port data interface
In the serial interface, there are two lines of data transmission and a line to receive. To send data to a serial port, there must be a little after the other with additional start-bit, stop bit and parity bit for detect errors.
Read the rest of this entry »

November 30th, 2008

Google Map ติดต่อกับ GPS โดยใช้ Visual basic

   หลังจากที่นำเสนอเนื้อหาเกี่ยวกับ GPS มาแล้วนั้น บทความนี้จะนำเสนอวิธีง่ายๆในการใช้งานกับอุปกรณ์ GPS โดยจะสร้างโปรแกรมด้วย Visual Basic 2005 ในการเขียนโปรแกรมติดต่อกับ GPS

  ในโครงงานนี้ ไม่ได้ใช้ GPS ราคาแพงอะไร แต่ผมใช้ GPS รุ่น Garmin eTrex Legend handheld ราคาเครื่องละ 3500 บาท ซึ่งมีขนาดเล็ก แต่ไม่ได้เป็นระดับ High End อย่างแน่นอน

   สำหรับคอมพิวเตอร์ของผมนั้นไม่มี Serial port แต่ได้หาซื้อสายยี่ห้อ a Belkin USB  adapter(an F5U109) ซึ่งเป็นสายในการต่ออุปกรณ์ภายนอก ผ่าน Serial port

   สำหรับโครงงานนี้ ผมจะนำค่า ละติจูด กับ ลองติจูด มาใช้ใน Google Map ซึ่งก็ไม่ยาก ตามมาตราฐาน NEMA 0183 ซึ่งเป็นตัวอักษรที่ได้มาจากเครื่อง GPS แต่เราจะและนำมาใช้เพียงตัวเลขของละติจูด กับ ลองติจูด โดยข้อความดังเช่น

   N33.455,W85.334

 ซึ่งในโปรแกรมของเราก็จะแสดงค่าที่รับมาจาก GPS ผ่านทาง Serial port นั้นเอง Read the rest of this entry »

October 15th, 2008

เขียนโปรแกรมติดต่อ Serial Port ด้วย C#.NET

Introduction

บทความนี้, ผมจะนำเสนอวิธีกาีรเขียนโปรแกรมติดต่อกับ Serial Port บน .NET platform โดยใช้ C# .NET framework version 2.0 ซึ่งมีคุณสมบัติติดต่อกับ serial port ได้. Framework กำหนดให้ใช้ Namespaceชื่อ System.IO.Ports. Framework ใหม่นี้สามารถที่จะติดต่อสื่อสารข้อมูลผ่าน Serial Port บนคอมพิวเตอร์เราได้ และติดต่อกับอุปกรณ์อื่นๆที่ผ่าน Serial port ได้เ่ช่นกัน เราจะใช้ RS 232 C standard สำหรับการติดต่อระหว่าง คอมพิวเตอร์ด้วยกัน ในโหมด full duplex แต่ในที่นี้ผมไม่ได้ใช้ การทำ handshaking หรือ flow control นะครับ ผมจะ้ใช้การต่อแบบ null modem เพื่อการสื่อสารครั้งนี้

สร้าง SerialPort Object

สำหรับการสร้าง object นี้ เราจะสามารถเขียนโปรแกรมเพื่อควบคุมการทำงานของ object นี้ในการติดต่อสื่อสารแบบ Serial Portสมาชิกของ SerialPort class ที่เราจะใช้มีดังนี้

  • ReadLine(): อ่านค่าแบบเป็นบรรทัดแล้วเก็บไว้ใน input buffer. ถ้าไม่มีข้อมูลมาใหม่ก่อนเวลา timeout method นี้จะส่งค่าคืนเป็น  null
  • WriteLine(string): เขียนข้อมูลที่เป็นสตริง และส่งข้อมูลบรรทัดใหม่ไปที่ output buffer.
  • Open(): เปิดการติดต่อ serial port
  • Close(): ปิดการติดต่อ port

Code สำหรับการสร้าง SerialPort object

//สร้าง Serial port object
SerialPort sp = new SerialPort ();

Object นี้มี public constructors 7 ตัว แต่ผมจะใช้แค่ไม่กี่ตัวที่ใช้เป็นกำหนดค่าเริ่มต้นเช่น DataBits กำหนดไว้ที่ 8 และ StopBits กำหนดไว้ที่ 1หมายเลข  Port  กำหนดไว้ที่ Com1The public properties ของ SerialPort class มีดังนี้

  • BaudRate: ตั้งค่าหรือตรวจสอบค่า baud rate.
  • StopBits: ตั้งค่าหรือตรวจสอบค่า stopbits ต่อ byte.
  • ReadTimeout: ตั้งค่าหรือตรวจสอบค่า เวลา timeout ในหน่วย milliseconds ก่อนเกิด timeout เมื่อการอ่านข้มูลทำงานจบ.

มีหลาย public properties แต่จะของแนะนำแค่ 3 ตัวที่กล่าวมาซึ่งตัวอื่นจะเป็นค่า default อยู่แล้วสำหรับการทดสอบโปรแกรมบนเครื่องคอมพิวเตอร์เดียวนั้น ให้ใช้วิธี LoopBack คือ หา DB9 connector มาสักหนึ่งตัว แล้ว ต่อสายระหว่าง Pin 2 กับ 3 เท่านี้ก็ทดลองได้แล้วครับ Read the rest of this entry »

May 5th, 2008

Programming in Microcontroller to control 8051 through Serial Port

There are fellow programmers that has developed program of Microcontroller inquire about this. It is about the next part of programming for connecting through

Serial Port. Either of Visual Basic or C, there are many people inquired about how to control with Microcontroller 8051 that is the family of Microcontroller that has been populating. Anywhere, I do the experimental board by using circuit of the basic Microcontroller in order to carry out this content. Generally, in the side of programming with Microcontroller, I will mention the part of programming to connect

Serial Port, but there will be programming to control Timer also. Why use Timer? Because we will create Baud Rate, after that we will go to programming to get and send data through Serial Port of Microcontroller
Managing to Timer’s working TCON (Time Control Register) and TMOD (Time Mode Register) 

We take the both to do for controlling Timer’s working in order to use as looping to measure time taken of Baud Rate, is to set value in TMOD such as TMOD=00100000B.  Here, we use getting and sending data 11 bit, will have 8 data bit, Start bit, Stop bit, Custom data bit. All we will set Timer to occur interrupt that we will set at IE (Interrupt Enable Register), setting to be zero every bit, for Baud rate of getting and sending data, will use the rate of Timer Overflow together with the value of SMOD(Serial Mode Register). For the value that will set for Timer in order to create the rate of getting and sending of Serial Port in Microcontroller can use the below table.

The table of setting value for Timer in order to use for Baud Rate

 

Frequency(MHz) Baud Rate of

Serial

Port
(bit/sec)
The value of Timer that will be set
11.059 1200 E8H
11.059 2400 F4H
11.059 4800 FAH
11.059 9600 FDH

     Programming for setting value of working of Timer Read the rest of this entry »

May 4th, 2008

Programming in Visual C++ to connect through IO Serial Port Part#2

From programming in visual c++ to connect through i/o serial port #1 for send and receive data with serial port , In this section ,We will learn controllering program communication with serial port by programming in vc++ 6 to create simple program using basic in the part 1 .

1. New project Microsoft VC++ 6 Read the rest of this entry »

May 4th, 2008

Programming in Visual C++ to connect through IO Serial Port1

The context is the fundamental of programming principle by MS Visual C++ 6 connecting through Serial Port of the computer in sending and getting alphabet. For the form of how to programming that will not have ready-made control that will be used like Visual Basic. In this section, you have to use programming principle as reading and writing data file. Anyhow, the data that will be got and sent out to port is like reading and writing data on file. I prepare the step for understanding in programming like this,

4 steps for connecting Serial Port

1. Set variable for keeping file names, data read (Buffer),file handles, value of getting and sending data.

HANDLE hComm; // handle for COM port
DCB dcb;
// data structure that keep value for connecting serial port
char * chCommPort = “COM1″; // we use com port 1
int valReturn; // keep returning value back in some function.
char chBuffer; // keep alphabet in getting and sending data.
unsigned long nReadPort; //keep returning value back in function, ReadFile
unsigned long nWrittenPort; // keep returning value back in function, WriteFile Read the rest of this entry »

May 3rd, 2008

C++ communicate Parallel Port and Serial Port

C language is the one of good complier for interface program via Serial Port,Parallel Port,Card I/O 8255 with output devices.

Programming Microsoft Visual C++ 6 communicating Parallel Port

Outp(port,bytedata)

Send value out port as byte

Outpw(port,worddata)

Send value out port as word

Such as Outp(0×378,0xF1)

Outpd(port,worddata)

Send value out port as byte double words.

inp(port)

Read value as byte from port

inpw(port)

Read value as word from port.

Such as inpw(0×378)

inpd(port)

Read value as double words from port.

You can notice that the structure of function is like programming by VB because Dll File that is used in VB that is written from C. I will not mention the fundamental of communicating port. Read the rest of this entry »

May 2nd, 2008

C++ communicate Serial Port as polling

I present you about programming by C, version that runs on DOS because there is easier explanation than program as visual that runs on Window that you can notice the article about MS VC++ 6 communicating with Parallel Port and also you can write and try to do by yourself. You can use TurboC because just 1 Mb compiler.

From the part 1, I mentioned about communication as interrupt. In this part, I will present you about communication as polling. The working like this, the flow of data will not be smooth. CPU cannot anticipate that when the new data arrive. It will verify the time with getting and sending data by speed rate that is higher than speed rate that send through keyboard. Read the rest of this entry »

May 2nd, 2008

C++ communicate Serial Port as interrupt

It’s C/C++ in programming to communicate with Serial Port or comport (RS-232). The program I recommend here can communicate between two computers that can send message to each other as interrupt.

For here, we will use Borland C as complier, but you will see me use // that I make for programming explanation. There will be code for reference inter like the following,

Intervector –> use setvect()function for setting the value of IRQ

Intervector –> use getvect()function for the value of IRQ

Intervector –> use for setting of Programmable Interrrupt Controller

Intervector –> use for setting in order to cancel using intervector

Comm Setting –> will use the value in setting rate of Baud rate, the number of bit in transferring data, stop bit, control register FIFO, open DTR-RTS-OUT2. Read the rest of this entry »

1950 ford stereo receiver dino quest toys by lontic company that sale butter churn MONTEVERDI & YOUNG DESK little rascals cabin fever dvd brobee plush chair gourmet pork Customer contact for RCA camcorder hannah montana uno spin Tramontina Stainless Steel Whistling Tea Kettle - 2 Qt Sony VGN-SR140E/B black pants 3-6 months norelco bg2030 Lego Batman The Tumbler Joker's Ice Cream Surprise dilantes chocolate +Rhymerroadbooks bitty baby snowsuit set Sorry slider apw international oxygen sensors US Marine Corps Perennial Hooded Sweatshirt JTV lab created white sapphire oval loose stone sugar lips tank tops hydraulic hooded peacoat hoover f7428900 test sony ebook PRS-700BC PDR Pharmacopoeia Pocket Dosing Guide 2009 - 9th Edition free mens health care sephora Lorac Croc Mocktail lip gloss collection the twilight saga bookset Sony VGN-SR140E/B kenco sliding windows best 1965 gifts Christmas hurst competition plus install kit 3733167 conair nails glitter gem beauty set bonus set gr1102 great gizmos baby's first christmas lovey carters Bianca Black and White Bath Towels Miller 300026 No 50Hd Heavy Duty Cart Lego Batman's buggy; the escape of mr. freeze bearpaw T410 boho holiday dessert plates Beverages Shop Teen XXX Hardcore free porn videos dating tutorial lesbian BDSM anal creampie Celebs naked old mature anal ethnic pussy asian shemale fuck dating articles Interior Accessories Shop free xxx cheapest viagra in uk cheap viagra viagra rise levitra alternative levitra vs viagra soft tabs cheapest online cialis 24 hour delivery canadian rx drugs bigtits i made free pornstars drunken asian girls BIGNATURALS big fat booty lessons in blow jobs porn fuck free porn videos free anal old mom video milfs amateur blowjob cheapest online diazepam 24 hour delivery cheap levitra rx pills buy lorazepam cheap cialis buy cheapest generic valium purchase new report female zyban order oxazepam prescription cheapest generic xanax viagra order herbal klipal for woman levitra buy drugs online buy herbal tramadol cialis soft tabs levitra cialis best herbal viagra soft tabs uk cialis buy viagra on line viagra levitra women buy cialis online without prescription natural levitra substitutes cheapest generic viagra cyber pharmacy propecia viagra soft tabs studies women