Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Help prequired for reading serial port data !!

  1. #1
    Maximum Bitrate tolisn's Avatar
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    731

    Help required for reading serial port data !!

    Hi.

    I'm trying to read in the voltage of my car's battery using the temperature sensor commands. Is there any way to suppress the "C" of the "F" unit onthe end of the reading. I have made a custom analog to digital unit that reads the battery voltage and outputs the reading to the serial port using the same format
    that RR requires to read. I can read this using the Tempxx command but I get the following reading "12C" instead of "12" is there any way to suppress that
    "C" or maybe Guino you can insert a command that will permit us to read the serial port (using the same format as the temp sensors) but will not contain any units such as "C" or "F" ..e.t.c

    Thanks for your time
    The road is long but we are getting there.

  2. #2
    Constant Bitrate
    Join Date
    Jul 2005
    Location
    Sweden
    Posts
    124
    One way to do that would be to make the changes yourself to the source
    and recompile it, perhaps adding a checkbox in the conf if "C" or "F" should be added.

  3. #3
    Maximum Bitrate
    Join Date
    Oct 2003
    Posts
    664
    Quote Originally Posted by tolisn
    Hi.

    I'm trying to read in the voltage of my car's battery using the temperature sensor commands. Is there any way to suppress the "C" of the "F" unit onthe end of the reading. I have made a custom analog to digital unit that reads the battery voltage and outputs the reading to the serial port using the same format
    that RR requires to read. I can read this using the Tempxx command but I get the following reading "12C" instead of "12" is there any way to suppress that
    "C" or maybe Guino you can insert a command that will permit us to read the serial port (using the same format as the temp sensors) but will not contain any units such as "C" or "F" ..e.t.c

    Thanks for your time

    Sorry I can't help with the display, but can you share more info on this device you have for reading the voltage?

    Thanks

  4. #4
    FLAC mauri's Avatar
    Join Date
    Jan 2004
    Posts
    1,046
    I have make one adapt hardware a long time ago,for read the voltage, full compatible with RR...
    See in the old post for download this project.


    Mauri

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    I somewhat have to agree with Mauri where the Temperature sensor does not rovide a good range of values to where you can read say: 12.00 and 12.02 and 12.06 etc.. instead it you'll give you larger steps of readings like 12.00 and 12.20 and never anything in between... I have been using mauri's voltimiter for the past few weeks and it has been working great...

    in any case, the C text can easily removed by simply changing the tooltip to anything you'd like.. "0" for tooltip will display the raw number from the Temp sensor .. "0.00" will display the raw number from the temp sensor with 2 decimal digits.. you can add more text to the readin using || on the label code...
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  6. #6
    Maximum Bitrate tolisn's Avatar
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    731
    OK Guino thanks for the tip on suppressing the "C".

    What command do you use to read in the info from Mauri's voltmeter?

    Thanks
    The road is long but we are getting there.

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    just "VOLTXX" where XX is the number of the sensor -- there's only 1 sensor in the first version of his circuit, but says he that he improved it to support 4 sensors now.

    Any circuit that output data in the propper format can use it... the format is just:

    VX NNN
    VX NNN

    X is the number of the sensor and NNN is a number that represents the voltage on a linear scale... NNN=600 is equivalet to 11.78V and other values are derived on the same scale -- It basically comes down to 0.02V for each unit in NNN.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  8. #8
    Maximum Bitrate tolisn's Avatar
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    731
    Quote Originally Posted by guino
    just "VOLTXX" where XX is the number of the sensor -- there's only 1 sensor in the first version of his circuit, but says he that he improved it to support 4 sensors now.

    Any circuit that output data in the propper format can use it... the format is just:

    VX NNN
    VX NNN

    X is the number of the sensor and NNN is a number that represents the voltage on a linear scale... NNN=600 is equivalet to 11.78V and other values are derived on the same scale -- It basically comes down to 0.02V for each unit in NNN.

    I did not know such a command existed. It is not documented in the skin command file. Thanks Guino.
    The road is long but we are getting there.

  9. #9
    FLAC mauri's Avatar
    Join Date
    Jan 2004
    Posts
    1,046
    Write in RR.ini this string:

    vcomport= X (number COM port to you connect the hardware)


    Mauri

  10. #10
    Maximum Bitrate tolisn's Avatar
    Join Date
    Dec 2003
    Location
    Greece
    Posts
    731
    Hey Guino

    Is it possible to have two different sensor readings on the same com port.
    One value with the format, Vx NNN will contain data from a voltage reading and one value with the format identical to the temperature format that you are using. I have made an interface that outputs both of these values on the same port.
    The road is long but we are getting there.

Page 1 of 3 123 LastLast

Similar Threads

  1. serial port to game port adapter wiring
    By asif in forum General Hardware Discussion
    Replies: 5
    Last Post: 08-17-2006, 05:47 PM
  2. Pinout Color Codes / Tables
    By gummybear in forum General Hardware Discussion
    Replies: 4
    Last Post: 05-12-2005, 04:05 AM
  3. USB Serial Port Adapter Troubles
    By bLindmOnkey in forum General MP3Car Discussion
    Replies: 0
    Last Post: 10-14-2004, 12:29 AM
  4. Via Mini-ITX Epia 5000 serial port not working
    By vash in forum General Hardware Discussion
    Replies: 2
    Last Post: 08-13-2002, 09:48 PM
  5. 1 serial port, 2 devices
    By Meatballman in forum General Hardware Discussion
    Replies: 7
    Last Post: 04-16-2000, 11:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •