From nick@ucc.gu.uwa.edu.au Fri Aug 1 12:40:52 2003 From: nick@ucc.gu.uwa.edu.au (Nick Bannon) Date: Fri, 1 Aug 2003 20:40:52 +0800 Subject: [Opendispense] test 1 200308012040 Message-ID: <20030801124052.GV496873@morwong.ucc.gu.uwa.edu.au> Fri Aug 1 20:40:35 WST 2003 -- Nick Bannon | "I made this letter longer than usual because nick-sig@rcpt.to | I lack the time to make it shorter." - Pascal From nick@ucc.gu.uwa.edu.au Fri Aug 1 14:51:05 2003 From: nick@ucc.gu.uwa.edu.au (Nick Bannon) Date: Fri, 1 Aug 2003 22:51:05 +0800 Subject: [Opendispense] UDP/IP for the 68HC11, XPort ethernet jack Message-ID: <20030801145105.GW496873@morwong.ucc.gu.uwa.edu.au> There may be more suitable bases to start from, particularly if we're going to end up writing in C, but here's a nice, very small, implementation of UDP/IP for the 68HC11 in under 2K. http://www.pogerlabs.com/RadioScope/index.htm (linked to via Stuart Cheshire's pages ; http://www.stuartcheshire.org/ ) >From memory, the interface is STRIP - like SLIP (which is very simple compared to PPP et al). The RadioScope has four analogue inputs, and when it receives a 512 byte UDP packet it fills it in with sampled data and sends it straight back to the sender. Compared to the whole TCP state machine etc, this is _very_ easy and small to implement. At the other end, here a cute embedded ethernet device, the Lantronix XPort. Full TCP/IP built into a tiny RJ45 ethernet socket. I think they even have a couple of spare I/O pins and replaceable firmware so they can be the whole brain of some devices: http://www.lantronix.com/products/eds/xport/index.html http://www.electronicsnews.com.au/articles/5e/0c015c5e.asp There's a larger one, the CoBox ; http://www.lantronix.com/products/eds/coboxmicro/ About AUD$70, distributed by PowerCorp on (02) 9476 3466. Nick. -- Nick Bannon | "I made this letter longer than usual because nick-sig@rcpt.to | I lack the time to make it shorter." - Pascal From dagobah@ucc.gu.uwa.edu.au Fri Aug 1 15:00:40 2003 From: dagobah@ucc.gu.uwa.edu.au (Bernard Blackham) Date: Fri, 1 Aug 2003 23:00:40 +0800 Subject: [Opendispense] cvs checkins In-Reply-To: References: Message-ID: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> On Fri, Aug 01, 2003 at 10:07:07PM +0800, opendispense-request@ucc.gu.uwa.edu.au wrote: > Bernard - could you check in your file(s) into CVS? I'd like > to try to make the main vend.asm into something I can assemble > again, unless someone beats me to it. The old repository doesn't seem to exist anymore - should I commit all of that back, or just my work? Was there any reason why it was removed? I've recreated the directory in projects/openvend and aliased it to openvend, but haven't committed yet. (I want to get the import right first time - don't like mucking about with structures of existing CVS repositories :) Regards, Bernard. From fryers@rcpt.to Fri Aug 1 20:20:57 2003 From: fryers@rcpt.to (Simon Fryer) Date: Sat, 2 Aug 2003 04:20:57 +0800 Subject: [Opendispense] cvs checkins In-Reply-To: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> References: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> Message-ID: <20030801202057.GA286785@rcpt.to> Bingle Give me a couple of days[1] and I'll see what I have floating in my sent mail if the CVS repository has been lost. See me on flame if you want to ask me any questions. Simon [1] I have spent the best part of this week in Bremen and am still trying to catch up with my email. -- ------------------------------------------------------------------------ "Well, an engineer is not concerned with the truth; that is left to philosophers and theologians: the prime concern of an engineer is the utility of the final product." Lectures on the Electrical Properties of Materials, L.Solymar, D.Walsh From dagobah@ucc.gu.uwa.edu.au Sat Aug 2 05:40:54 2003 From: dagobah@ucc.gu.uwa.edu.au (Bernard Blackham) Date: Sat, 2 Aug 2003 13:40:54 +0800 Subject: [Opendispense] cvs checkins In-Reply-To: <20030802045809.GN79052@morwong.ucc.gu.uwa.edu.au> References: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> <20030802045809.GN79052@morwong.ucc.gu.uwa.edu.au> Message-ID: <20030802054054.GA12896@ucc.gu.uwa.edu.au> On Sat, Aug 02, 2003 at 12:58:10PM +0800, Matt Johnston wrote: > > > Bernard - could you check in your file(s) into CVS? I'd like > > > to try to make the main vend.asm into something I can assemble > > > again, unless someone beats me to it. > > > > The old repository doesn't seem to exist anymore - should I commit > > all of that back, or just my work? Was there any reason why it was > > removed? > > /home/other/cvs is a recentish invention. > /home/other/openvend/cvs is the old repository, unsure the best way to > migrate it. In my working directories (based on what seems an old CVS checkout), I've been using the ROM-2003 directory. Should I check this into the existing /home/other/openvend/cvs tree? Or do we want to locate everything CVS in one spot? If the latter could somebody else please do the shuffling :) Bernard. From matt@ucc.gu.uwa.edu.au Sat Aug 2 05:45:20 2003 From: matt@ucc.gu.uwa.edu.au (Matt Johnston) Date: Sat, 2 Aug 2003 13:45:20 +0800 Subject: [Opendispense] cvs checkins In-Reply-To: <20030802054054.GA12896@ucc.gu.uwa.edu.au> References: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> <20030802045809.GN79052@morwong.ucc.gu.uwa.edu.au> <20030802054054.GA12896@ucc.gu.uwa.edu.au> Message-ID: <20030802054520.GC266117@morwong.ucc.gu.uwa.edu.au> On Sat, Aug 02, 2003 at 01:40:54PM +0800, Bernard Blackham wrote: > On Sat, Aug 02, 2003 at 12:58:10PM +0800, Matt Johnston wrote: > > > > Bernard - could you check in your file(s) into CVS? I'd like > > > > to try to make the main vend.asm into something I can assemble > > > > again, unless someone beats me to it. > > > > > > The old repository doesn't seem to exist anymore - should I commit > > > all of that back, or just my work? Was there any reason why it was > > > removed? > > > > /home/other/cvs is a recentish invention. > > /home/other/openvend/cvs is the old repository, unsure the best way to > > migrate it. > > In my working directories (based on what seems an old CVS checkout), > I've been using the ROM-2003 directory. Should I check this into the > existing /home/other/openvend/cvs tree? Or do we want to locate > everything CVS in one spot? If the latter could somebody else please do > the shuffling :) I've just copied the old repository to the new place, seems to work ok. Matt From harrymc@ucc.gu.uwa.edu.au Sat Aug 2 07:37:12 2003 From: harrymc@ucc.gu.uwa.edu.au (Harry McNally) Date: Sat, 2 Aug 2003 15:37:12 +0800 Subject: [Opendispense] Large FPGAs Message-ID: <20030802153712.1a8da04f.harrymc@ucc.gu.uwa.edu.au> Hi Nick After the discussion about comms alternatives, I'd like to find out the part number of the Altera ball grid array FPGA that the MUGWA people are using. My PCB assembler can attach BGAs if required and it would make sense to use the same part. If you can let me know and I'll check it out to see if it will support cunning plans. All the best Harry -- linux.conf.au 2004 The Australian Linux Technical Conference http://lca2004.linux.org.au/ 12-17 January 2004, Adelaide, South Australia Are you a computer angel? http://www.computerangels.org.au/ From dagobah@ucc.gu.uwa.edu.au Sat Aug 2 14:19:38 2003 From: dagobah@ucc.gu.uwa.edu.au (Bernard Blackham) Date: Sat, 2 Aug 2003 22:19:38 +0800 Subject: [Opendispense] Latest additions Message-ID: <20030802141938.GA10131@ucc.gu.uwa.edu.au> Hi all, I've just checked in my work on the disassembly into ROM-2003 for anyone curious. What I think I have figured: - chatting to the keypad - chatting to the display - chatting to the motors What I'm still working on: - figuring out which motors exist (I believe there's a function that figures this out) - decoding the serial protocol to talk to the coin mech I've yet to pull it all together coherently in places that aren't comments interspersed around vend.asm, but I'll get there :) Can anybody think of any other hardware that we'll need/want to chat to that I've missed? Regards, Bernard. From adrian@ucc.gu.uwa.edu.au Sun Aug 3 09:29:46 2003 From: adrian@ucc.gu.uwa.edu.au (Adrian Chadd) Date: Sun, 3 Aug 2003 17:29:46 +0800 Subject: [Opendispense] Large FPGAs In-Reply-To: <20030802153712.1a8da04f.harrymc@ucc.gu.uwa.edu.au> References: <20030802153712.1a8da04f.harrymc@ucc.gu.uwa.edu.au> Message-ID: <20030803092945.GC104140@morwong.ucc.gu.uwa.edu.au> On Sat, Aug 02, 2003, Harry McNally wrote: > Hi Nick > > After the discussion about comms alternatives, I'd like to find out > the part number of the Altera ball grid array FPGA that the MUGWA > people are using. My PCB assembler can attach BGAs if required and > it would make sense to use the same part. If you can let me know > and I'll check it out to see if it will support cunning plans. How big an FPGA can you mount? Say, an XCV1000E or two? Adrian From harrymc@ucc.gu.uwa.edu.au Sun Aug 3 10:59:33 2003 From: harrymc@ucc.gu.uwa.edu.au (Harry McNally) Date: Sun, 3 Aug 2003 18:59:33 +0800 Subject: [Opendispense] Latest additions In-Reply-To: <20030802141938.GA10131@ucc.gu.uwa.edu.au> References: <20030802141938.GA10131@ucc.gu.uwa.edu.au> Message-ID: <20030803185933.66707186.harrymc@ucc.gu.uwa.edu.au> On Sat, 2 Aug 2003 22:19:38 +0800 dagobah@ucc.gu.uwa.edu.au (Bernard Blackham) wrote: > Hi all, Hi Bernard > What I'm still working on: > - decoding the serial protocol to talk to the coin mech On that score, we could use two serial ports as listeners and observe the traffic by clipping a little bit of electronics on the board and dropping various coins through and also make purchases that drop change. See how you go with it but keep the hardware reverse engineering in mind as a backstop :) > Can anybody think of any other hardware that we'll need/want to chat to > that I've missed? I've discovered some interesting things about the motor power supply. There is a current limit circuit on the motor drive which should start limiting at 600mA. When it does that, it will also drive CPU pin PE0 (pin 17) from high to low. Current limiting works by _lowering_ the voltage (if the motor shorts out etc) so the current does not go beyond 600mA. What I can't work out (yet) is that there is another circuit that uses an optoisolator (U24). This _appears_ to sense when the motor voltage droops by extinguishing the opto led and allowing PE1 (pin 18) to rise high. So if you find anything sensing those two pins, it may be related to motor overcurrent sensing. I am just puzzled why there are two circuits sensing motor state in different ways. Anyhoo, I'll have to get the circuit PDFs down into UCC at some point. If I get the first (major) one done tonight, will Mailman spit if I send as an attachment to the list ? cu Harry -- linux.conf.au 2004 The Australian Linux Technical Conference http://lca2004.linux.org.au/ 12-17 January 2004, Adelaide, South Australia Are you a computer angel? http://www.computerangels.org.au/ From dagobah@ucc.gu.uwa.edu.au Sun Aug 3 11:14:43 2003 From: dagobah@ucc.gu.uwa.edu.au (Bernard Blackham) Date: Sun, 3 Aug 2003 19:14:43 +0800 Subject: [Opendispense] Latest additions In-Reply-To: <20030803185933.66707186.harrymc@ucc.gu.uwa.edu.au> References: <20030802141938.GA10131@ucc.gu.uwa.edu.au> <20030803185933.66707186.harrymc@ucc.gu.uwa.edu.au> Message-ID: <20030803111443.GB12993@ucc.gu.uwa.edu.au> On Sun, Aug 03, 2003 at 06:59:33PM +0800, Harry McNally wrote: > > What I'm still working on: > > - decoding the serial protocol to talk to the coin mech > > On that score, we could use two serial ports as listeners and > observe the traffic by clipping a little bit of electronics > on the board and dropping various coins through and also > make purchases that drop change. See how you go with it but > keep the hardware reverse engineering in mind as a backstop :) I was discussing this with DavidB today - he reckons the best way might be to put that little bit of electronics (an opto and a MAX232) into a serial port and just speak directly to it. But I think I've also found the function which figures out what coin has been placed into the slot - just trying to figure out the 16-bit math its doing on it's 8-bit cpu... > I've discovered some interesting things about the motor power supply. > > There is a current limit circuit on the motor drive which > should start limiting at 600mA. When it does that, it will also > drive CPU pin PE0 (pin 17) from high to low. > > Current limiting works by _lowering_ the voltage (if the motor shorts > out etc) so the current does not go beyond 600mA. > > What I can't work out (yet) is that there is another circuit that > uses an optoisolator (U24). This _appears_ to sense when the motor > voltage droops by extinguishing the opto led and allowing > PE1 (pin 18) to rise high. >From what I make of it, I was under the impression it extinguishes the LED when the motor voltage gets too high (above 25.4ish volts) > So if you find anything sensing those two pins, it may be related > to motor overcurrent sensing. I am just puzzled why there are two > circuits sensing motor state in different ways. There's also another circuit attached to PE3 which puts the pin high if the 24VUN (unregulated?) drops below 20ish volts. Still tracking down where they're used. I think I'm currently on a roll with the coin mech :) > Anyhoo, I'll have to get the circuit PDFs down into UCC at some point. > If I get the first (major) one done tonight, will Mailman spit if > I send as an attachment to the list ? Shouldn't do, given you are subscribed. Try it and see :) Regards, Bernard From matt@ucc.asn.au Sat Aug 2 04:58:10 2003 From: matt@ucc.asn.au (Matt Johnston) Date: Sat, 2 Aug 2003 12:58:10 +0800 Subject: [Opendispense] cvs checkins In-Reply-To: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> References: <20030801150040.GA265166@morwong.ucc.gu.uwa.edu.au> Message-ID: <20030802045809.GN79052@morwong.ucc.gu.uwa.edu.au> On Fri, Aug 01, 2003 at 11:00:40PM +0800, Bernard Blackham wrote: > On Fri, Aug 01, 2003 at 10:07:07PM +0800, opendispense-request@ucc.gu.uwa.edu.au wrote: > > Bernard - could you check in your file(s) into CVS? I'd like > > to try to make the main vend.asm into something I can assemble > > again, unless someone beats me to it. > > The old repository doesn't seem to exist anymore - should I commit > all of that back, or just my work? Was there any reason why it was > removed? /home/other/cvs is a recentish invention. /home/other/openvend/cvs is the old repository, unsure the best way to migrate it. Matt