Error connecting to com port

Open a thread for a question about the simulator control software.
If you cannot receive any data in the input setup use the upper two forums!

Error connecting to com port

Postby mred » Mon 20. May 2013, 07:07

Hi guys,

I cant seem to figure out what i'm doing wrong.. all i can get when pressing start is error connecting to com port.

I attached a screenshot of what i have. I'm not sure why i have to use com11 when the laptop only has 4 comports, but it seems to work connecting the arduino with other programs, just not this one.
Attachments
mred
 
Posts: 9
Joined: Sat 28. Apr 2012, 07:10
Location: Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Error connecting to com port

Postby yokoyoko » Mon 20. May 2013, 07:27

by sirnoname » Sun 19. May 2013, 16:38
Ups, a bug
The old problem with virtual comports above Com9. This is a random number from Windows, what is currently available. Some virtual comport drivers do not accept 5 letter comports and there must be a workaround.
The current plugin does not allow pololu driver comports lower than 10 of pololu.
The old plugin does allow com1 - 9 but not higher. Then I fixed the upper comports and the result is the new plugin.
So please make a workaround and go to your device manager, select the pololu and set the comport to i.e. COM14
Update in next release 3.0.1.5 and up.


perhaps this post regarding the pololus refers to the arduinos too?.
User avatar
yokoyoko
 
Posts: 392
Images: 28
Joined: Tue 7. Aug 2012, 03:16
Location: Germany / Bad Eilsen
Has thanked: 33 times
Been thanked: 13 times

Re: Error connecting to com port

Postby mred » Mon 20. May 2013, 07:56

I tryed changing the arduino to com14 and it did not work, then i tryed changing it to com1 and it did not work either..
mred
 
Posts: 9
Joined: Sat 28. Apr 2012, 07:10
Location: Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Error connecting to com port

Postby yokoyoko » Mon 20. May 2013, 08:14

first i did not look at your screenshot. why are you using uso with the arduino? there is a plugin available.

can you tell us what is connected to the ard? motors pots etc.

best regards
yoko
User avatar
yokoyoko
 
Posts: 392
Images: 28
Joined: Tue 7. Aug 2012, 03:16
Location: Germany / Bad Eilsen
Has thanked: 33 times
Been thanked: 13 times

Re: Error connecting to com port

Postby mred » Mon 20. May 2013, 08:33

Connected to the arduino is a sabretooth controller connected via serial, and 2 pots for motor positioning.

I'm not sure why i connect with uso, i did not write the arduino program... I don't know how. It was given to me and it was working on my desktop computer when i had a test rig setup. Now i have the sim built and i have moved everything onto a new laptop (including upgraded to the latest xsim software) and it doesn't work anymore..

I was given a configuration program to help setup the pid on the arduino, and i can connect with it using the same comport settings, just wont connect with xsim.

I'm pretty confused...

Jason
mred
 
Posts: 9
Joined: Sat 28. Apr 2012, 07:10
Location: Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Error connecting to com port

Postby yokoyoko » Mon 20. May 2013, 09:20

[url]x-sim.de/forum/viewtopic.php?f=39&t=723[/url]

do you know this thread?

if you loaded a profile of someone else (and imported the uso settings)
- please try to remove/clear all these entries.
User avatar
yokoyoko
 
Posts: 392
Images: 28
Joined: Tue 7. Aug 2012, 03:16
Location: Germany / Bad Eilsen
Has thanked: 33 times
Been thanked: 13 times

Re: Error connecting to com port

Postby mred » Mon 20. May 2013, 09:55

I didn't use that code.. Another member on here wrote one for himself and gave me a copy.

I didn't load a profile, i made my own one. Might try back on the desktop computer and see if it works still.
mred
 
Posts: 9
Joined: Sat 28. Apr 2012, 07:10
Location: Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Error connecting to com port

Postby sirnoname » Mon 20. May 2013, 11:03

The dialog say: for comport higher than 9 enter the full path \\.\
Try it and write it into the box where arduino uno is * Some Comport driver have a bug there.
Above this are autodetected suggestions, you can write what you like.
The comport speed is not good for that devices. Uno R3 do work but is is not save. Use uncommon baudrates and not 115200. You find the answer in the open source thread where we did discuss the arduinos.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Error connecting to com port

Postby mred » Mon 20. May 2013, 12:19

I tryed typing in \\.\com11 but that didn't work.

I just went back to my desktop computer, and it connected. (older version of xsim and windows 7) The laptop has windows 8 and current version of x sim. Arduino driver may also be an older version on the desktop.

Is there any settings or anything else i could be missing? I changed the comport to 115200 in device manager. Anything else i was supposed to change that i have forgotten?

I'm not sure i understand this correctly 'The comport speed is not good for that devices. Uno R3 do work but is is not save. Use uncommon baudrates and not 115200'
mred
 
Posts: 9
Joined: Sat 28. Apr 2012, 07:10
Location: Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Error connecting to com port

Postby sirnoname » Mon 20. May 2013, 12:38

I changed the comport to 115200 in device manager.

This is only needed if a program would not setup the speed. Never seen such a program.
My suggestion was to change the comport number in the advanced setup to below 8.

I'm not sure i understand this correctly 'The comport speed is not good for that devices. Uno R3 do work but is is not save. Use uncommon baudrates and not 115200'

If you do not read the suggested post you will not understand the problem.

It is time to take a deep breath and do step by step the failure search. There is no advanced setup needed, the software will do it.
Download the free serial port monitor and look if X-Sim is sending the data as wished.
If the serial port monitor capture the data you can be sure the software is correct.
http://www.serial-port-monitor.com/
You can also see byte per byte is correct.

Then you know if the problem is from arduino code or from X-Sim.

The comport error do say three suggestions:
1. comport already opened by another program or interface plugin (shown in interface setup)
2. comport does not exist
3. double uso entry

USO is unidirectional development stuff and does not check other parts.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Next

Return to Converter questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron