Results 1 to 6 of 6

Thread: Use serial port with extension plugin???

  1. #1
    Newbie guillemasco's Avatar
    Join Date
    Nov 2004
    Location
    Cordoba, ARGENTINA
    Posts
    27

    Use serial port with extension plugin???

    Hi guys, I think I've read all threads about extension plugin but I can't find anyone that include using serial port. I,m trying to interface a BasicStamp module with roadrunner, but I cant even start becouse I cant use serial ports. I try with some libraries but they just dont work. Is it posible tu use the MSComm32.osx in the extension plugin???
    Please if anyone know samething about this just tell me. I need help

    Thankz guys!
    Best regards for you from Argentina
    Carpc: 90%
    CarAudio: 122.8Db
    PC: 50%
    First CarPc in Argentina!!

  2. #2
    Low Bitrate festy's Avatar
    Join Date
    Jun 2006
    Location
    Sydney, OZ
    Posts
    109
    yes you can. I've written a couple of extension plugins that talk to picaxes (similar to stamps) through a serial port via mscomm32.ocx -just don't try and use a com port that roadrunner is already using

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Holy crap, you're from Cordoba dude ? I have a few really good friends there and in fact I was there visiting in August!

    To answer your question, yes, you can use the serial port from extension plugins, using the standard mscomm control or by importing and using the functions in modSerial.bas from RR's sources. Either way should work, but to use the mscomm thing you'll have to add a form and use: load form1 (or whatever) to load it without displaying it, then you can access it's functions.
    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."

  4. #4
    Newbie guillemasco's Avatar
    Join Date
    Nov 2004
    Location
    Cordoba, ARGENTINA
    Posts
    27
    Hi guino!, I knew you were on holidays but I didn't knew you were coming to Cordoba!. I'm one of yours fan. I hope that los cordobeses have treated you very well. i would have liked to meet you but, i'm sure it gone be a next time.

    this evening I'll continue fighting against vb6, i'm not a pro in vb but i've got faith. so, if in the class module I put load form1 then I can use for example MSComm1.output="AT+EVD=[]" in the class module???

    thanks guino for all your time and work here!.
    And please, if you come to Cordoba again call me, so we can go out for some beers or some caipirinas togheter!!
    Carpc: 90%
    CarAudio: 122.8Db
    PC: 50%
    First CarPc in Argentina!!

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    from the plugin class module you should put load form1 on the Initialize sub and then just use Form1.mscomm1.xxxx from anywhere else in the plugin. also place a unload form1 in the Terminate sub of the plugin class to make sure the plugin unloads nicely.

    PS: had one of the best times in Cordoba, I'll def. be back when I can.
    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
    Newbie guillemasco's Avatar
    Join Date
    Nov 2004
    Location
    Cordoba, ARGENTINA
    Posts
    27
    Thanks again, It works perfectly. Just one more thing, how can I do to to use variables form the form in the class module? and otherwise?
    Thanks, I'll post some pics when I finish my proyect so you can judge it.
    Carpc: 90%
    CarAudio: 122.8Db
    PC: 50%
    First CarPc in Argentina!!

Similar Threads

  1. No serial port
    By Tomccaul in forum PhoneControl
    Replies: 0
    Last Post: 06-11-2005, 06:42 PM
  2. serial port switch input
    By th3madc0w in forum Hardware Development
    Replies: 5
    Last Post: 01-04-2005, 04:27 AM
  3. USB Serial Port Adapter Troubles
    By bLindmOnkey in forum General MP3Car Discussion
    Replies: 0
    Last Post: 10-13-2004, 11:29 PM
  4. serial o lpt port adaptor
    By pcman in forum General Hardware Discussion
    Replies: 0
    Last Post: 08-24-2000, 05:50 AM
  5. 1 serial port, 2 devices
    By Meatballman in forum General Hardware Discussion
    Replies: 7
    Last Post: 04-16-2000, 10: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
  •