Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Serial Port


Serial Port

Author
Message
CDRIVE
CDRIVE
Forum God
Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
mvPradeepemb (11/10/2008)
Ya the state is changing when the port is open....

Is your Loopback tester home brew or a commercial unit? Either way, use your Ohmmeter and check that the output line is definitely looping back to the input line. Do this test while wiggling the cable to test for intermittents. It would be great if there's just something wrong with the Loopback tester or the cable.

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

mvPradeepemb
mvPradeepemb
Forum God
Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)

Group: Forum Members
Posts: 46, Visits: 85
Is your Loopback tester home brew or a commercial unit?

   Mine is home brew.... I think my serial port is useless...  Kindly send me, VB code to access the serial port safely....

CDRIVE
CDRIVE
Forum God
Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
mvPradeepemb (11/10/2008)
Is your Loopback tester home brew or a commercial unit?

   Mine is home brew.... I think my serial port is useless...  Kindly send me, VB code to access the serial port safely....

What ever makes you think that your code damaged the port? Most unlikely, if not nearly impossible. Something in your wiring did this.

Do you have a USB port on that machine?

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

mvPradeepemb
mvPradeepemb
Forum God
Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)

Group: Forum Members
Posts: 46, Visits: 85
Ya i found some shorts in my kit.... My controller doesnt supports USB communication....  Anyway i will change my serial card and continue my project.... Thanks for your helpfull support.....
CDRIVE
CDRIVE
Forum God
Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
mvPradeepemb (11/11/2008)
Ya i found some shorts in my kit.... My controller doesnt supports USB communication....  Anyway i will change my serial card and continue my project.... Thanks for your helpfull support.....

Glad to hear that you found a misswire but not glad to hear that you toasted the port. BTW, I'm aware that most (like 95%) of controllers are RS232 interface only. I asked if you have a USB port because the USB/Serial converters are dirt cheap and easy to use. Sooner or later you will have a PC with no serial port, so you will be forced to switch to a USB/Serial converter anyway. One of the benifits of using one relates to what happen to you. It gives a measured degree of isolation between the PC and the controller, or other external RS232 device. Once the included drivers are installed any USB port is treated as a Serial Port. In fact the Comm code that you write does not change at all. These USB/Serial dongles have a USB plug on one end and DB9 (RS232) connector on the other. In fact I'm using one now. Actually, I own three of them.

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

Edited
11/11/2008 by CDRIVE
mvPradeepemb
mvPradeepemb
Forum God
Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)

Group: Forum Members
Posts: 46, Visits: 85
Ya, it would be a better option to choose USB/Serial converter..... Say the brand name of the USB/Serial converter that you use... 
CDRIVE
CDRIVE
Forum God
Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
mvPradeepemb (11/11/2008)
Ya, it would be a better option to choose USB/Serial converter..... Say the brand name of the USB/Serial converter that you use... 

I have a few things to say about the choice of converters on the market as there are lots of them everywhere on the net. Currently, the converter that use is made by Belkin. This model does not support the Break command (MSComm1.Break = True) used in the Output property.

Now I've never had the need to use the Break signal in my code so this has not been an issue for me when writing Comm Code. On the other hand, one of the chips that I play with is the PICAXE  series. According to their documentation their programming editor uses the Break signal when programming the chip. Even though this chip has no Break command as part of their coding syntax. Evidently the programmer never sees this command.

Now this does not prevent me from communicating with the chip using VB and the Belkin. This issue appears to be only relevant when programming the chip, not communicating with it after it's been programmed. Of cours, if I attempted using a Break in my code it would fail.

Edit: I really don't know that for certain but I'm going to test it.

Belkin may have cured this problem since I purchased it though. Since you may need this command when programming your chips, or you may need to use the Break signal in VB code someday, you should make certain that which ever make and model you buy supports Break. Check the documentation on the manufacturers website. If unsure, ask them.

When I get home from work I'll give you some additional info.

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

Edited
11/12/2008 by CDRIVE
CDRIVE
CDRIVE
Forum God
Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
Here are some links.

Model ICP7560

or EMTC  This is a really good price and they pay S&H! I also like the fact that it's a dongle.

This looks like the same model at twice the price. Zonet Model ZUC3100                        

Interesting but pricy stuff!

DIRT CHEAP!

SEWELL

Serious Stuff

I use the model FSU409 with VB

I use this to program the PICAXE chip

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

Edited
11/12/2008 by CDRIVE
mvPradeepemb
mvPradeepemb
Forum God
Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)Forum God (12K reputation)

Group: Forum Members
Posts: 46, Visits: 85
Thank you so much CDRIVE, you helped me a lot....
CDRIVE
CDRIVE
Forum God
Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)Forum God (100K reputation)

Group: Forum Members
Posts: 548, Visits: 2.6K
mvPradeepemb (11/13/2008)
Thank you so much CDRIVE, you helped me a lot....

Good luck and keep us posted.Wink

________________________________________________________________ 

"So much to learn. So little time to do it. Wise men know it's later than one thinks"!

Mark's Syntax.Zip    Pause Sub

I don't answer programming questions via PMs. That's what the forum is for! 

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search