USO Parser only sending first mentioned "string"?

Here you find known solutions about the X-Sim software.
Do not post any questions, use the sections below instead!

USO Parser only sending first mentioned "string"?

Postby LifeRunner » Fri 24. May 2013, 15:15

So, I have this problem with the USO parser, as far as I can see, it only sends the first "string" or whatever I'm supposed to call it.

What I currently have is: "Datapacket with axisinformations: R~a01~S~a02~", by the way it's used with Arduino and a instrument cluster from a car. Making some gauges to have fun in LFS with.

Though this is the problem, R is RPM and S is Speed, however it only sends what is mentioned first, so if I only put "S~a02~", the speedo works, if I put only "R~a01~" the RPM counter works, however if I put them both, the first only works. if I put "R~a01~" first; only the RPM counter works.


Halp me ;_;
C:
LifeRunner
 
Posts: 6
Joined: Thu 23. May 2013, 17:28
Has thanked: 0 time
Been thanked: 0 time

Re: USO Parser only sending first mentioned "string"?

Postby vicpopo » Fri 24. May 2013, 15:22

User avatar
vicpopo
 
Posts: 645
Joined: Fri 20. Apr 2012, 18:04
Location: Strasbourg France
Has thanked: 39 times
Been thanked: 80 times

Re: USO Parser only sending first mentioned "string"?

Postby LifeRunner » Fri 24. May 2013, 15:38

Now I have, though that didn't really help my case, he's written the same as me but I didn't find anything that would be different in particular :(
C:
LifeRunner
 
Posts: 6
Joined: Thu 23. May 2013, 17:28
Has thanked: 0 time
Been thanked: 0 time

Re: USO Parser only sending first mentioned "string"?

Postby LifeRunner » Fri 24. May 2013, 16:21

I'm not sure if it's the Arduino code or the X-Sim Converter, I'll post the code to pastebin if any of you would want to see :D
C:
LifeRunner
 
Posts: 6
Joined: Thu 23. May 2013, 17:28
Has thanked: 0 time
Been thanked: 0 time

Re: USO Parser only sending first mentioned "string"?

Postby LifeRunner » Sat 25. May 2013, 13:04

bumping :|
C:
LifeRunner
 
Posts: 6
Joined: Thu 23. May 2013, 17:28
Has thanked: 0 time
Been thanked: 0 time

Re: USO Parser only sending first mentioned "string"?

Postby sirnoname » Sat 25. May 2013, 13:17

You must install the "free serial port monitor" to see what exactly is sended.
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: USO Parser only sending first mentioned "string"?

Postby LifeRunner » Tue 28. May 2013, 20:56

Figured the problem, I feel kind of stupid now ;_;

However there's a second problem now, aand it's making me crazy.
I discovered after a quick google search that the Arduino can only output one "Tone" at a time, and I was trying to output two. That's why it didn't work, and so, I'm using tone for the speedo (because I know how I can make the Tone "command" work accurately) and "analogWrite" for the rev counter, however the rev counter doesn't really work, when I activate the X-Sim it just makes the needle go to its maximum and stay there, unless i set the value 100% correct, then it stays at below zero when the engine is off, however when I turn the engine back on it sends it flying to its maximum again.

If I then proceed to do full throttle ingame and just let it drop from max to zero (ingame), the rev counter (on the cluster) will drop by just a few RPM at a few points.

Kind of difficult to explain :c
C:
LifeRunner
 
Posts: 6
Joined: Thu 23. May 2013, 17:28
Has thanked: 0 time
Been thanked: 0 time

Re: USO Parser only sending first mentioned "string"?

Postby sirnoname » Tue 28. May 2013, 22:41

As far I know ther are 4 analogue out. 2 with one frequency and 2 with another frequency.
You know now, with the monitor, what you get. It is now wise to go to boards like arduino or atmel freaks to get your answers.
This boards are full of experts which can help you very fast.
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: USO Parser only sending first mentioned "string"?

Postby LifeRunner » Wed 29. May 2013, 19:19

sirnoname wrote:As far I know ther are 4 analogue out. 2 with one frequency and 2 with another frequency.
You know now, with the monitor, what you get. It is now wise to go to boards like arduino or atmel freaks to get your answers.
This boards are full of experts which can help you very fast.


Yeah I figured, went to the Arduino forums and got a library that would enable me to output tones to simultaneous pins at the same time :D
C:
LifeRunner
 
Posts: 6
Joined: Thu 23. May 2013, 17:28
Has thanked: 0 time
Been thanked: 0 time

Re: USO Parser only sending first mentioned "string"?

Postby sirnoname » Thu 30. May 2013, 00:40

Do not forget: you can use a dashboard with arduino without the converter and USO!
Simple connect the extractor with your arduino comport (OBD2) and read a pdf of the ELM324 how to get the values.
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


Return to X-Sim Q&A/FAQs

Who is online

Users browsing this forum: No registered users and 1 guest