Locating & Identifying propeller chip via USB

MacTuxLinMacTuxLin Posts: 789
edited February 2012 in Propeller 1 Vote Up0Vote Down
Hello All,

I'm rather new here & hope some kind soul could direct me to a link or note to read up on how an app (Java or any desktop app) could locate, identify & connect to a propeller-chip board if it is connected via the USB. I'll be using SPIN on the propeller and I think I'll need to allocate Pin 30 & 31 for polling but how do I use, say Javax.comm, to connect to propeller?

Thanks in advance.

Kenichi

Comments

  • 5 Comments sorted by Date Added Votes
  • RaymanRayman Posts: 8,201
    edited April 2010 Vote Up0Vote Down
    I think the Propellant library can do that... I believe there's a dll interface for it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm

    My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
    Prop Info and Apps: http://www.rayslogic.com/
  • MacTuxLinMacTuxLin Posts: 789
    edited April 2010 Vote Up0Vote Down
    Rayman, thank you. Just downloaded the Propellent.

    Kenichi
  • obrienmobrienm Posts: 65
    edited February 2012 Vote Up0Vote Down
    Hi,
    The standard javax.comm library originally developed for linux but extended for win32 works fine for me, no resets. The library will not work on a 64 bit JVM but I am able to control multiple quickstart boards simultaneously from a single java process after first reloading them all using propellent in an Ant script.

    see http://javahardware.blogspot.com/2010/11/led-display-board-driven-by-javaxcomm.html
    and the original posts
    http://forums.parallax.com/showthread.php?119851-Writting-propeller-data-to-a-file-on-my-PC&p=879906&viewfull=1#post879906
    http://forums.parallax.com/showthread.php?109333-HowTo-Single-host-computer-and-multiple-propeller-serial-comm-and-programming&p=775612&viewfull=1#post775612
    http://forums.parallax.com/showthread.php?137636-Quickstart-Board-reboots-when-PC-GUI-program-starts-and-stops&p=1071154&viewfull=1#post1071154
    http://forums.parallax.com/showthread.php?132944-Java-comm-and-basic-stamp

    IMG_6813_8_propeller_quickstart_powerup.JPG


    Ant picks up extra verbosity from propellent
    <project name="grid" default="reload.all">
    
    <property name="spin.file" value="lcas_20120129_grid_f_input.spin"/>
    <property name="EEPROM" value="/EEPROM"/>
    <!--property name="EEPROM" value=""/-->
    <target name="reload.all" description="reload entire grid">
    	<antcall target="reload">		<param name="port" value="23"/>	</antcall>
    	<antcall target="reload">		<param name="port" value="48"/>	</antcall>
    	<antcall target="reload">  		<param name="port" value="47"/>	</antcall>
    	<antcall target="reload">		<param name="port" value="46"/>	</antcall>
    </target> 	 
    
    <target name="reload">
      <apply executable="propellent">
    	<arg value="/PORT"/>
    	<arg value="comm${port}"/>
    	<arg value="${EEPROM}"/>
    	<fileset dir=".">
    		<patternset>
    			<include name="${spin.file}"/>
    		</patternset>
    	</fileset>
      </apply>
    </target>
    </project>
    

    propellent output
    G:\_dev\active\_parallax\20111211_lcas_qs>ant
    Buildfile: build.xml
    
    reload.all:
    
    reload:
        [apply] &#9786;EVT:501-Compiling: FULLDUPLEXSERIAL
        [apply] &#9786;EVT:501-Compiling: LCAS_20120129_GRID_F_INPUT
        [apply] &#9786;EVT:502-File(s) compiled successfully.
        [apply] &#9786;EVT:503-Checking COM23
        [apply] &#9786;EVT:505-Propeller chip version 1 found on COM23.
        [apply] &#9786;EVT:506-Loading RAM
        [apply] &#9786;EVT:507-Verifying RAM
        [apply] &#9786;EVT:508-Programming EEPROM
        [apply] &#9786;EVT:509-Verifying EEPROM
        [apply] &#9786;INF:451-Success.
        [apply] &#9830;
    
    reload:
        [apply] &#9786;EVT:501-Compiling: FULLDUPLEXSERIAL
        [apply] &#9786;EVT:501-Compiling: LCAS_20120129_GRID_F_INPUT
        [apply] &#9786;EVT:502-File(s) compiled successfully.
        [apply] &#9786;EVT:503-Checking COM48
        [apply] &#9786;EVT:505-Propeller chip version 1 found on COM48.
        [apply] &#9786;EVT:506-Loading RAM
        [apply] &#9786;EVT:507-Verifying RAM
        [apply] &#9786;EVT:508-Programming EEPROM
        [apply] &#9786;EVT:509-Verifying EEPROM
        [apply] &#9786;INF:451-Success.
        [apply] &#9830;
    
    reload:
        [apply] &#9786;EVT:501-Compiling: FULLDUPLEXSERIAL
        [apply] &#9786;EVT:501-Compiling: LCAS_20120129_GRID_F_INPUT
        [apply] &#9786;EVT:502-File(s) compiled successfully.
        [apply] &#9786;EVT:503-Checking COM47
        [apply] &#9786;EVT:505-Propeller chip version 1 found on COM47.
        [apply] &#9786;EVT:506-Loading RAM
        [apply] &#9786;EVT:507-Verifying RAM
        [apply] &#9786;EVT:508-Programming EEPROM
        [apply] &#9786;EVT:509-Verifying EEPROM
        [apply] &#9786;INF:451-Success.
        [apply] &#9830;
    
    reload:
        [apply] &#9786;EVT:501-Compiling: FULLDUPLEXSERIAL
        [apply] &#9786;EVT:501-Compiling: LCAS_20120129_GRID_F_INPUT
        [apply] &#9786;EVT:502-File(s) compiled successfully.
        [apply] &#9786;EVT:503-Checking COM46
        [apply] &#9786;EVT:505-Propeller chip version 1 found on COM46.
        [apply] &#9786;EVT:506-Loading RAM
        [apply] &#9786;EVT:507-Verifying RAM
        [apply] &#9786;EVT:508-Programming EEPROM
        [apply] &#9786;EVT:509-Verifying EEPROM
        [apply] &#9786;INF:451-Success.
        [apply] &#9830;
    
    BUILD SUCCESSFUL
    Total time: 22 seconds
    G:\_dev\active\_parallax\20111211_lcas_qs>
    
    thank you
    /michael
  • MacTuxLinMacTuxLin Posts: 789
    edited February 2012 Vote Up0Vote Down
    @Michael,

    This is cool! Its funny, when you needed something its always hard to find but they seems to jump right in front of you when you don't. -_-" .... I've actually detoured to VB.net since then but guess its time to re-look at it again (maybe in June).

    Kenichi
Sign In or Register to comment.