Com Port Errors, JRK, XSim3, PC?

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!

Re: Com Port Errors, JRK, XSim3, PC?

Postby Bruceaust » Sun 9. Sep 2012, 03:45

Hi yokoyoko,
Here are the setting i have at the moment.
I have been experimenting, using differnt settings - so this is a conservative setup that should work. I have tried everything and every change I can think of.
Maybe someone with more JRK experience can shed some light?














Cheers.
User avatar
Bruceaust
X-Sim Supporter
 
Posts: 72
Joined: Thu 10. May 2012, 10:52
Location: Launceston, Tasmania, Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Com Port Errors, JRK, XSim3, PC?

Postby yokoyoko » Sun 9. Sep 2012, 04:01

At "set comport speed and control" what value you got in device manager? Jrk's standard got 9600 8...
You could trie for hw init / hw stop = 10ms. And at PID you can try this 10ms too. PID is to complicated for me - I use the recommended settings of Bobbuilt (2/2 0/3 1/1).

You use 5khz pwm - what does this change to 20khz?
Your max duty cycle and max acc and current are really high.
so this is a conservative setup that should work.
I'm interested in - have you tried less values here? Like 200-300?

What motors and power supply you use at your setup?

Sorry for not really helping you. I will test tomorrow with my settings. You are the first who will know if I got it.
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: Com Port Errors, JRK, XSim3, PC?

Postby Bruceaust » Sun 9. Sep 2012, 04:41

I have tried faster and slower Comport Baud rates like 9600 = does not fix the problem.
Hardware init and stop settings have no effect for me as my failures are when the sim is running .
The PID time I have changed also from 1ms to 30ms - does not fix problem. (that setting sets how lon each PID calculation cycle runs before it gives an outpuT ?)
Tried both 5khz and 20khz - does not fix problem. 20khz gives smoother motor operation but 5khz should be easier for com port to handle.
I have tried PIDs from 0 to 12. 0 to 5 seems a good rang to work for my sim (needs further testing) but again does not fix the problem.

I have not tried lowering Duty Cycle of Acceleration - But this would make the sim sluggish?

But I still come back to what the error says-------Com port failure this leads me to think it is not the JRKs but either Xsim output or something wrong with my PC that is driving the JRKs,

X-Sim to PC to JRKs . there is a problem in this system somewhre :shock: :D

II am using Wipers and Car Batteries.
The wipers run very cool as I have fitted heat sink/cooling fins.
I have also fitted heat sinks and cooling fan to the JRKs - they run cool also


I also will try other Acceleration and Duty cycle settings and get back to you. (latter today I hope)
User avatar
Bruceaust
X-Sim Supporter
 
Posts: 72
Joined: Thu 10. May 2012, 10:52
Location: Launceston, Tasmania, Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Com Port Errors, JRK, XSim3, PC?

Postby motiondave » Sun 9. Sep 2012, 05:23

Change PID to 2/2 0/3 1/1,
Max duty cycle to 400
Max accel to 400
Max current to 0 (unlimited)
Current calibration to 500
Max duty cycle while feedback is out of range to 400

PID period to 25
10000 integral limit
Feedback dead zone to 2

Try those settings, if motors seem too fast decrease max accel, max duty cycle and feedback out of range to 300.
If too slow, move up in increments of 50.

In x-sim change

Wait for HW to 33
with a pause of 25
wait for HW to 33
User avatar
motiondave
 
Posts: 997
Images: 1
Joined: Tue 20. Mar 2012, 16:36
Location: Sydney Australia
Has thanked: 11 times
Been thanked: 13 times

Re: Com Port Errors, JRK, XSim3, PC?

Postby yokoyoko » Sun 9. Sep 2012, 20:16

Hello,

sorry for responding so late but I think I got it *...
Yesterday my hole system ran really great. Just the "comport errors" every 2-3 hours. Today - no chance of getting any movement out of the sim?!
No changes to yesterday on the converter PC (no updates, nothing). If I pressed Start the sim awaiked and after 3-4 sec's I got a "comport error" for one of the Jrk's:

What I have tried so far:
- deinstall and reinstall drivers of the Jrk's
- updated firmware of the jrk's to 1.4 instead of 1.3
- Fresh install of X.sim with fresh reg cleaning
- changed the Comports in devicemanager to other values
- tried even lower (safer) settings in Pololu Utility
- tried to reduce the effects of math line to the absolut minimum (percent scaler to 30% at end of line f.e.)
- running the Jrk utility during X-sim or not - "run motor" set or not
- every small changes I missed now


.... nothing helped at all. sometimes the sim had motion for 0,1sec sometimes for 15sec. All seems to be very random to me. I can see no "formula, pattern" behind it .... after 4-5 hours I gave up.

I decided to copy all settings of the jrks and x-sim and moved with everything to my extractor PC. Guess what - everything rans without a glitch for hours now ---> crossed fingers!!!

I think my convertor Pc is the problem (even with fresh win7 and co). I can't explain why for example it worked yesterday with a few errors and today without using the PC during the time I got that issues. I refer it to hardware "communication" problems or whatever.

My Converter Pc not working: Acer Aspire 5920G (DualCore Notebook 2x2Ghz 2Gb ram)
My working all in one PC: Gigabyte H55M Board, Intel Core i3 540, 8Gb ram, Radeon 7770oc, SSD drive for Win and X-sim

Perhaps you have a chance to try the convertor on an other PC? Hope you get your Comport problem fixed!!! I'm feeling with you :|
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: Com Port Errors, JRK, XSim3, PC?

Postby Bruceaust » Mon 10. Sep 2012, 01:06

Thanks Bob and Yokiyoki,
I have tried every thing that has been suggested, thanks.

Taking a step back from the problem last night I re-examined the issues in a calm manner ;)
The problems have alway been associated with com port errors or loss of communication. For some strange reason the frequency between errors, in my case, has been getting worse. This has lead me to think that it is not a software or settings issue.

The other day I wired in a reset switch to the JRK's (Grnd to Reset) which works well. BUT the frequency of communication erroe increased!
A light bulb moment! :o Aaahhh could it be electrical noise / interference being fed into the system from "somewhere" ?? So, I removed the reset switch and associated wiring and------- the error rate decreased! So now I am reasonabley sure I have at least one of causes of the comport /communication errors.

This makes sense as the com port error "should have" nothing to do with current limits /acceleration duty cycle etc., - only communication.
Anyway it is my intention to pursue this further and shield the electronics and motor cabling etc. to try and eliminate this possible source of errors.

I will keep you posted!
User avatar
Bruceaust
X-Sim Supporter
 
Posts: 72
Joined: Thu 10. May 2012, 10:52
Location: Launceston, Tasmania, Australia
Has thanked: 0 time
Been thanked: 0 time

Re: Com Port Errors, JRK, XSim3, PC?

Postby yokoyoko » Mon 10. Sep 2012, 01:19

Very interesting.

My "first" converter pc was really near to the jrks and wipers. Now the other pc got a hub and distance of 3m to other hardware. That works so far without errors.
I thought about getting an usb opto isolator. But they are quiet expensive (what I found). Any suggestions or buying tips?
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: Com Port Errors, JRK, XSim3, PC?

Postby motiondave » Mon 10. Sep 2012, 04:34

Hey fellas, I found that using the front ports of a PC, which are usually wired from a cable from the motherboard gave me constant issues in the past in relation to comport errors.
Since I now hook up the JRK usb cable direct to the back on the motherboard, no usb hub, all is good *

Another thought is, are you guys running the extractor with online activation?
I know it shouldnt cause errors though. Just a though.
User avatar
motiondave
 
Posts: 997
Images: 1
Joined: Tue 20. Mar 2012, 16:36
Location: Sydney Australia
Has thanked: 11 times
Been thanked: 13 times

Re: Com Port Errors, JRK, XSim3, PC?

Postby yokoyoko » Mon 10. Sep 2012, 11:00

I am running tge supporter edition of xsim - no change offline or onlibe.
Using other usb ports on the notebook was without any change.
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: Com Port Errors, JRK, XSim3, PC?

Postby yokoyoko » Mon 10. Sep 2012, 11:52

Power supply was pluged in here too. I will read about Netframe and my specific notebook model.

Today I ordered an USB opto-isolator. http://www.reichelt.de/?ARTICLE=116460;PROVID=2028;&utm_source=Preisvergleich&utm_medium=CPC&utm_campaign=Preisvergleich_google_feed - with this I got 14 days to test :D
I will try the not working "convertor Notebook" with this isolator and seperate powersupply for usb as soon as the isolator arrives.

To decrease electronic noise this is recommended too: https://encrypted-tbn2.google.com/images?q=tbn:ANd9GcSpHe_w59CHGNMhJOrnuHV0SB7QpV7EgX8dFk4WHDtGaGAPvMuZ

I bought 4 5,6mH ferrit cores but haven't tried them. I wanted to use 4-6 windings of the wiper powerwires with this cores.

Just suggestions - nothing tried yet.
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

PreviousNext

Return to Converter questions

Who is online

Users browsing this forum: No registered users and 7 guests