<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
new batteries in the chair and some electrical repairs and the wife now has a going<br>&nbsp;to a show chair fits her perfectly<br>many thanks<br>&gt; From: chchrobotics-request@lists.linuxnut.co.nz<br>&gt; Subject: Chchrobotics Digest, Vol 40, Issue 4<br>&gt; To: chchrobotics@lists.linuxnut.co.nz<br>&gt; Date: Thu, 6 Jan 2011 12:00:03 +0000<br>&gt; <br>&gt; Send Chchrobotics mailing list submissions to<br>&gt;         chchrobotics@lists.linuxnut.co.nz<br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt;         http://lists.ourshack.com/mailman/listinfo/chchrobotics<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt;         chchrobotics-request@lists.linuxnut.co.nz<br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt;         chchrobotics-owner@lists.linuxnut.co.nz<br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of Chchrobotics digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;    1. Re: OT: Compiler help (Charles Manning)<br>&gt;    2. Re: Electric wheelchair (Charles Manning)<br>&gt;    3. Re: Electric wheelchair (Mark Atherton)<br>&gt;    4. Re: OT: Compiler help (Andrew Errington)<br>&gt;    5. Re: OT: Compiler help (Charles Manning)<br>&gt;    6. Re: OT: Compiler help (Andrew Errington)<br>&gt;    7. Re: OT: Compiler help (Charles Manning)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Thu, 6 Jan 2011 11:54:40 +1300<br>&gt; From: Charles Manning &lt;manningc2@actrix.gen.nz&gt;<br>&gt; Subject: Re: [chbot] OT: Compiler help<br>&gt; To: Christchurch Robotics &lt;chchrobotics@lists.linuxnut.co.nz&gt;<br>&gt; Message-ID: &lt;201101061154.40370.manningc2@actrix.gen.nz&gt;<br>&gt; Content-Type: text/plain;  charset="iso-8859-1"<br>&gt; <br>&gt; On Wednesday 05 January 2011 18:28:10 follower wrote:<br>&gt; &gt; On 5 January 2011 17:56, Andrew Errington &lt;a.errington@lancaster.ac.uk&gt; <br>&gt; wrote:<br>&gt; &gt; &gt; Unfortunately, the test code was compiled with a different product ID to<br>&gt; &gt; &gt; the chip I have (same product, different configuration), so the test<br>&gt; &gt; &gt; program won't run because it cannot find the device. (Grr!)<br>&gt; &gt;<br>&gt; &gt; In the short term, you could try using a hex editor to find the PID<br>&gt; &gt; and change it?<br>&gt; &gt;<br>&gt; <br>&gt; That *might* work. It depends on how the code was written.<br>&gt; <br>&gt; Of course the superior solution is to just use libusb and make a Linux version <br>&gt; of the program.<br>&gt; <br>&gt; libusb should make this problem trial.<br>&gt; <br>&gt; -- Charles<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Thu, 6 Jan 2011 11:57:46 +1300<br>&gt; From: Charles Manning &lt;manningc2@actrix.gen.nz&gt;<br>&gt; Subject: Re: [chbot] Electric wheelchair<br>&gt; To: Christchurch Robotics &lt;chchrobotics@lists.linuxnut.co.nz&gt;<br>&gt; Message-ID: &lt;201101061157.46992.manningc2@actrix.gen.nz&gt;<br>&gt; Content-Type: text/plain;  charset="iso-8859-1"<br>&gt; <br>&gt; On Monday 03 January 2011 06:41:57 Mark Atherton wrote:<br>&gt; &gt; Just spotted at the local junk store<br>&gt; &gt;<br>&gt; &gt; Tucked under the stairs at Charity Barn / 522 Blenheim Rd /<br>&gt; &gt; -43.539042,172.559429<br>&gt; &gt;<br>&gt; &gt; No idea how much they want, but no harm asking or haggling, they are<br>&gt; &gt; good folks.<br>&gt; &gt;<br>&gt; &gt; In case you haven't been there, this place is junque by the cubic<br>&gt; &gt; metre - loads of old printers, monitors etc.<br>&gt; &gt;<br>&gt; &gt; Just like Super Shed, but without the class :)<br>&gt; &gt;<br>&gt; &gt; -Mark<br>&gt; <br>&gt; While I applaud scrounging, it seems poor form to strip an electric wheelchair <br>&gt; that could be put to more productive use. Unless of course the wheelchair is <br>&gt; no longer servicable.<br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 3<br>&gt; Date: Thu, 06 Jan 2011 12:10:36 +1300<br>&gt; From: Mark Atherton &lt;markaren1@xtra.co.nz&gt;<br>&gt; Subject: Re: [chbot] Electric wheelchair<br>&gt; To: chchrobotics@lists.linuxnut.co.nz<br>&gt; Message-ID:<br>&gt;         &lt;20110105232414.USLZ16005.mta02.xtra.co.nz@mainmachine.xtra.co.nz&gt;<br>&gt; Content-Type: text/plain; charset="us-ascii"; format=flowed<br>&gt; <br>&gt; Don't worry, Kay has bought it. Sounds like he is going to race it <br>&gt; which is far more useful than being stripped down :)<br>&gt; <br>&gt; At 11:57 a.m. 6/01/2011, Charles Manning wrote:<br>&gt; &gt;On Monday 03 January 2011 06:41:57 Mark Atherton wrote:<br>&gt; &gt; &gt; Just spotted at the local junk store<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Tucked under the stairs at Charity Barn / 522 Blenheim Rd /<br>&gt; &gt; &gt; -43.539042,172.559429<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; No idea how much they want, but no harm asking or haggling, they are<br>&gt; &gt; &gt; good folks.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; In case you haven't been there, this place is junque by the cubic<br>&gt; &gt; &gt; metre - loads of old printers, monitors etc.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Just like Super Shed, but without the class :)<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; -Mark<br>&gt; &gt;<br>&gt; &gt;While I applaud scrounging, it seems poor form to strip an electric <br>&gt; &gt;wheelchair<br>&gt; &gt;that could be put to more productive use. Unless of course the wheelchair is<br>&gt; &gt;no longer servicable.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 4<br>&gt; Date: Thu, 6 Jan 2011 09:01:13 +0900<br>&gt; From: Andrew Errington &lt;a.errington@lancaster.ac.uk&gt;<br>&gt; Subject: Re: [chbot] OT: Compiler help<br>&gt; To: Christchurch Robotics &lt;chchrobotics@lists.linuxnut.co.nz&gt;<br>&gt; Message-ID: &lt;201101060901.13653.a.errington@lancaster.ac.uk&gt;<br>&gt; Content-Type: text/plain;  charset="iso-8859-1"<br>&gt; <br>&gt; On Thu, 06 Jan 2011 07:54:40 Charles Manning wrote:<br>&gt; <br>&gt; &gt; That *might* work. It depends on how the code was written.<br>&gt; &gt;<br>&gt; &gt; Of course the superior solution is to just use libusb and make a Linux<br>&gt; &gt; version of the program.<br>&gt; &gt;<br>&gt; &gt; libusb should make this problem trial.<br>&gt; <br>&gt; Yes and no.  (I presume you mean 'trivial').<br>&gt; <br>&gt; I intend to use PyUSB, which is an easy wrapper for libusb, but the problem I <br>&gt; have is knowing how to construct the data packet for the device.<br>&gt; <br>&gt; I can currently use PyUSB to read from the device and I can see the state of <br>&gt; the GPIO lines (they are input by default).<br>&gt; <br>&gt; To control the GPIO I need to send two bytes, a data-direction byte (one bit <br>&gt; per GPIO to set input or output) and the output data byte.  I don't know the <br>&gt; format of this data packet.  Is it two bytes, or are there some overhead <br>&gt; bytes?  Which byte is the DDR, and which is the output?  I have /some/ <br>&gt; information from the manufacturer, but not /this/ information. :(<br>&gt; <br>&gt; No regular software exists to control the GPIO, since no-one really uses the <br>&gt; GPIO, so I can't just spy on some packets and parse them manually.  I have to <br>&gt; run the test program, which will generate packets that control the GPIO, <br>&gt; which I can then spy on.  I can't run the test program because it was <br>&gt; compiled with the wrong product ID.  I can't compile the test program because <br>&gt; I have no compiler.  I can't write my PyUSB program because I don't have the <br>&gt; format of the data packet.<br>&gt; <br>&gt; And yes, I have asked the manufacturer for the specific information I need, <br>&gt; but it is not forthcoming.  I consider myself lucky to have what I have, and <br>&gt; actually it's enough if I can get it to work.<br>&gt; <br>&gt; Best wishes,<br>&gt; <br>&gt; Andrew<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 5<br>&gt; Date: Thu, 6 Jan 2011 14:53:39 +1300<br>&gt; From: Charles Manning &lt;manningc2@actrix.gen.nz&gt;<br>&gt; Subject: Re: [chbot] OT: Compiler help<br>&gt; To: Christchurch Robotics &lt;chchrobotics@lists.linuxnut.co.nz&gt;<br>&gt; Message-ID: &lt;201101061453.39260.manningc2@actrix.gen.nz&gt;<br>&gt; Content-Type: text/plain;  charset="iso-8859-1"<br>&gt; <br>&gt; On Thursday 06 January 2011 13:01:13 Andrew Errington wrote:<br>&gt; &gt; On Thu, 06 Jan 2011 07:54:40 Charles Manning wrote:<br>&gt; &gt; &gt; That *might* work. It depends on how the code was written.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Of course the superior solution is to just use libusb and make a Linux<br>&gt; &gt; &gt; version of the program.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; libusb should make this problem trial.<br>&gt; &gt;<br>&gt; &gt; Yes and no.  (I presume you mean 'trivial').<br>&gt; <br>&gt; Yup, I did mean trivial, but it does seem a trial too :-).<br>&gt; <br>&gt; &gt;<br>&gt; &gt; I intend to use PyUSB, which is an easy wrapper for libusb, but the problem<br>&gt; &gt; I have is knowing how to construct the data packet for the device.<br>&gt; &gt;<br>&gt; &gt; I can currently use PyUSB to read from the device and I can see the state<br>&gt; &gt; of the GPIO lines (they are input by default).<br>&gt; &gt;<br>&gt; &gt; To control the GPIO I need to send two bytes, a data-direction byte (one<br>&gt; &gt; bit per GPIO to set input or output) and the output data byte.  I don't<br>&gt; &gt; know the format of this data packet.  Is it two bytes, or are there some<br>&gt; &gt; overhead bytes?  Which byte is the DDR, and which is the output?  I have<br>&gt; &gt; /some/ information from the manufacturer, but not /this/ information. :(<br>&gt; &gt;<br>&gt; &gt; No regular software exists to control the GPIO, since no-one really uses<br>&gt; &gt; the GPIO, so I can't just spy on some packets and parse them manually.  I<br>&gt; &gt; have to run the test program, which will generate packets that control the<br>&gt; &gt; GPIO, which I can then spy on.  I can't run the test program because it was<br>&gt; &gt; compiled with the wrong product ID.  I can't compile the test program<br>&gt; &gt; because I have no compiler.  I can't write my PyUSB program because I don't<br>&gt; &gt; have the format of the data packet.<br>&gt; &gt;<br>&gt; &gt; And yes, I have asked the manufacturer for the specific information I need,<br>&gt; &gt; but it is not forthcoming.  I consider myself lucky to have what I have,<br>&gt; &gt; and actually it's enough if I can get it to work.<br>&gt; <br>&gt; I re-read your doc and see the functions were in the library. Sorry, I thought <br>&gt; those were in the source code.<br>&gt; <br>&gt; You use one of those usb snoopers to figure out what is going on.<br>&gt; <br>&gt; eg.<br>&gt;  http://benoit.papillault.free.fr/usbsnoop/<br>&gt; http://sourceforge.net/projects/usbsnoop/<br>&gt; <br>&gt; -- Charles<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 6<br>&gt; Date: Thu, 6 Jan 2011 11:46:39 +0900 (KST)<br>&gt; From: "Andrew Errington" &lt;a.errington@lancaster.ac.uk&gt;<br>&gt; Subject: Re: [chbot] OT: Compiler help<br>&gt; To: "Christchurch Robotics" &lt;chchrobotics@lists.linuxnut.co.nz&gt;<br>&gt; Message-ID:<br>&gt;         &lt;2080.114.52.23.74.1294281999.squirrel@webmail01.lancs.ac.uk&gt;<br>&gt; Content-Type: text/plain;charset=iso-8859-15<br>&gt; <br>&gt; On Thu, January 6, 2011 10:53, Charles Manning wrote:<br>&gt; &gt; On Thursday 06 January 2011 13:01:13 Andrew Errington wrote:<br>&gt; &gt;&gt; Yes and no.  (I presume you mean 'trivial').<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; Yup, I did mean trivial, but it does seem a trial too :-).<br>&gt; &gt;<br>&gt; <br>&gt; Yes, the unintentional irony made me smile.  :)<br>&gt; <br>&gt; &lt;snip&gt;<br>&gt; &gt;<br>&gt; &gt; I re-read your doc and see the functions were in the library. Sorry, I<br>&gt; &gt; thought those were in the source code.<br>&gt; <br>&gt; Yes, that is what is most frustrating.  They gave me the source to use the<br>&gt; library, but I need the source of the library itself.<br>&gt; <br>&gt; &gt; You use one of those usb snoopers to figure out what is going on.<br>&gt; &gt;<br>&gt; &gt; eg. http://benoit.papillault.free.fr/usbsnoop/<br>&gt; &gt; http://sourceforge.net/projects/usbsnoop/<br>&gt; <br>&gt; Yes, that is the step after I get the test software compiled, so that I<br>&gt; can make some packets worth snooping.<br>&gt; <br>&gt; Best wishes,<br>&gt; <br>&gt; Andrew<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 7<br>&gt; Date: Thu, 6 Jan 2011 15:58:01 +1300<br>&gt; From: Charles Manning &lt;manningc2@actrix.gen.nz&gt;<br>&gt; Subject: Re: [chbot] OT: Compiler help<br>&gt; To: Christchurch Robotics &lt;chchrobotics@lists.linuxnut.co.nz&gt;<br>&gt; Message-ID: &lt;201101061558.01394.manningc2@actrix.gen.nz&gt;<br>&gt; Content-Type: text/plain;  charset="iso-8859-1"<br>&gt; <br>&gt; On Thursday 06 January 2011 15:46:39 Andrew Errington wrote:<br>&gt; &gt; On Thu, January 6, 2011 10:53, Charles Manning wrote:<br>&gt; &gt; &gt; On Thursday 06 January 2011 13:01:13 Andrew Errington wrote:<br>&gt; &gt; &gt;&gt; Yes and no.  (I presume you mean 'trivial').<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Yup, I did mean trivial, but it does seem a trial too :-).<br>&gt; &gt;<br>&gt; &gt; Yes, the unintentional irony made me smile.  :)<br>&gt; &gt;<br>&gt; &gt; &lt;snip&gt;<br>&gt; &gt;<br>&gt; &gt; &gt; I re-read your doc and see the functions were in the library. Sorry, I<br>&gt; &gt; &gt; thought those were in the source code.<br>&gt; &gt;<br>&gt; &gt; Yes, that is what is most frustrating.  They gave me the source to use the<br>&gt; &gt; library, but I need the source of the library itself.<br>&gt; &gt;<br>&gt; &gt; &gt; You use one of those usb snoopers to figure out what is going on.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; eg. http://benoit.papillault.free.fr/usbsnoop/<br>&gt; &gt; &gt; http://sourceforge.net/projects/usbsnoop/<br>&gt; &gt;<br>&gt; &gt; Yes, that is the step after I get the test software compiled, so that I<br>&gt; &gt; can make some packets worth snooping.<br>&gt; <br>&gt; <br>&gt; Andrew<br>&gt; <br>&gt; Another tack...<br>&gt; <br>&gt; Since you want to use python at the end anyway, how about this...<br>&gt; <br>&gt; From what you have written it seems you have a library. Depending on what sort <br>&gt; of library it is, you can perhaps use ctypes to call the library from python.<br>&gt; <br>&gt; I do as little as possible with Windows, but I believe ctypes works under <br>&gt; windows and can call DLLs.<br>&gt; <br>&gt; -- Charles<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; Chchrobotics mailing list<br>&gt; Chchrobotics@lists.linuxnut.co.nz<br>&gt; http://lists.ourshack.com/mailman/listinfo/chchrobotics<br>&gt; Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/<br>&gt; Web site: http://kiwibots.org<br>&gt; Meetings 3rd Monday of each month 6.30pm Science Alive Seminar Room<br>&gt; Please edit your Subject line to reflect new content. <br>&gt; <br>&gt; End of Chchrobotics Digest, Vol 40, Issue 4<br>&gt; *******************************************<br>                                               </body>
</html>