Motorcycle Trailer Building Notes, Regulations

So my bike is all happy for touring again, I’ve done ~ 2000km on it in the last month, trundling back and forward to work, and there’ve been no hiccups.  Working through my pack list for the Karuah River Rally in a month’s time, my brain started ticking over how it’d be nice to be able to pack some extras (you know, couple of extra car batteries for power, couple of 10L water cans, etc..), and just to get the normal camping weight off the bike..  And I started thinking about trailers again.  So lets pick it back up as a project, and potter on it 🙂

Note that everything here is geared towards a small trailer TOWED BY A MOTORCYCLE.  If you are looking at building a box trailer to tow behind a CAR, then the dimensions, and thus quite a few considerations (especially IRT lighting) will be VERY different..

Initial Planning

First things first, we need to find out what regs we need to follow, and build a bit of a checklist!

First thing to do, is download Vehicle Standards Bulletin 1.  It’s the federal bible for trailer building!  VSB 1 lives here.

Firstly, we’ll need a Vehicle Plate.

A Vehicle Plate must show at least:

  • Manufacturers Name
  • Trailer model
  • Vehicle Identification Number
  • Date of Manufacture (month/year)
  • Certification Statement – This trailer was manufactured to comply with the Motor Vehicle Standards Act 1989
  • Can include the tyre placard (VSB1:section 16) to save having an extra plate.  Letters to be at least 2.5mm high
  • VIN issued by RTA

Ahhh, the VIN. That was where I came unstuck last time.. – At the time, I was doing contract work in Sydney (and living for the most part), but was officially living (and had my business registered) in the ACT.    VIN Numbers are theoretically managed by Standards Australia.  But in reality they just hand out chunks to each state Registering Authority.  Where it’s tricky for someone who lives/works across two states, is that the trailers VIN must be issued by the state Registering Authority in the state where 80% or more of the supplies were *delivered*. This is irrespective of what state you are actually going to do the initial registration in.  So in the case that I spent more time in NSW, and wanted the supplies delivered there, and I’d build the trailer at nights while in Sydney, after enquiring with the ACT, I was informed that I would have to contact the NSW RTA to secure a VIN number to provide to ACT Urban Services.

Ok, so I contacted the RTA.  No, they only issue VIN numbers where THEY are the actual Registering Authority.  They suggested I contact Standards Australia, as the ultimately responsible VIN issuer.  Standards Australia came back to me saying that no, they only maintain the STANDARD, and do not have ANYTHING to do with actually issuing the numbers, and please talk to ACT Urban Services to get a number, as they are legally required to issue a number at the time of registration.

At that point I replied to the lady from Standards Australia, Cc’d in the fellows from ACT US, and NSW RTA, with a ‘Hi all, I am EXTREMELY confused here..  My trailer will be built at nights in Sydney, registered in the ACT, as that is my official address.. HOW do I get a VIN number??  ACT says talk to RTA, as ACT only issues VIN’s where the trailer is 80% built in ACT, as proven by delivery addresses on receipts.  RTA says they ONLY issue VIN’s when they are the registering authority, but as I live in the ACT, I *CANNOT* register the trailer in NSW, so talk to Standards Australia to get a ‘federally issued’ VIN.  SA say that they only maintain the standard, but the standard says that ACT must issue the VIN.     Pleeease figure this out!! 🙂 Thankyou.’   I received a reply from the fellow at ACT Urban Services, saying he’d push it up his chain of command and get something sorted out..  That was two and a half years ago now, and I haven’t yet heard back.

However I have since sorted out the clusterf*** that was transferring my license from the ACT to NSW (ACT never cancelled my NSW license when I shifted to the ACT back in the dark ages!), and I’m ‘officially’ an NSW resident, so I’ll just be registering an NSW-built trailer in NSW.

Ok, back to the checklist, where were we?

Oh, Vehicle Plate.  I’m sure I read somewhere that the RTA supply the plate.. But I can’t find that ANYWHERE.  You can buy plates from trailer supply places, so add that to my purchase-list..  But ask the RTA..

Now we keep reading through VSB1..

Registration plate.  Provision must be made for mounting of a 372x136mm registration plate to the rear of the trailer.  no part of the plate to be more than 1300mm above the ground. (This is a motorcycle trailer, that’s not a problem, lol!)

Rego Label holder.  Must be on the left hand side of the trailer.  See ADR61/02:9.2 for more information.  Ok we’ll look that up later..

Some terms we need to define..

Trailer Type.  Well that’s easy, we’re building a Box Trailer

Trailer Category.  Under 750kg, Very Light Trailer (TA).  That’s us!

Aggregate Trailer Mass (ATM).  The total mass of the trailer including the maximum load as defined by the manufacturer (aka me!).  Includes the mass imposed on the towing vehicle.  (AKA you can’t subtract the 30kg or whatever that it puts on the towball..)

Gross Trailer Mass (GTM).  The mass imposed on the ground by the tyres of the trailer.  So that’d be the ATM less the ball weight?  Hehe, ball weight, lol.

Tare Mass. The total mass of the trailer when not carrying any load, but when ready for service with all standard equipment and options fitted.  So including things like tent pole holders, or antenna mast mountings, etc.  Includes the ball weight.  So essentially GTM but unloaded..

Length. That’s towbar to rear of trailer.

Width.  Point from the side extremities, including lamps etc.

Lights

First thing to note, is that all lights must meet ADR requirements.  This is either by being listed on the RVCS, or being stamped with ECE compliance.  That means no cheap-arsed ebay knockoffs.. 🙂

Rear position Lamps (tail lamps), 2 lamps.   Must operated with towing vehicle tail lamps.

Rear stop lamps (Brake lights), 2 lamps.  Must operate with towing vehicle stop lamps

Direction Indicator Lamps (Turn Signals), 2 lamps.. Must operate with towing vehicle indicator lamps.

Rear registration lamp, at least 1 (Some lamps may only be approved if fitted in pairs).  Must operate with towing vehicle tail lamps.

Side marking lamps, arrangement at the side, one lamp each side within the first third and/or one within the last third. (aka in the first or last third of the length.  Since the drawbar will be long on a bike trailer, I’d have it within the last third).  Note, that these are ONLY required on trailers more than 6 meters long.  However as anyone who has towed at night knows, side marker lamps are the only way to know where your trailer is!  So I ALWAYS have them on a trailer…  There is no specific requirement for how these are electrically connected.  I’ll have them on with the tail lights..

Reflectors

Front – non triangular, 2 required at the outer edges of the front, 150mm maximum in from the edges, at least 600mm apart, at least 250mm from the ground, and 900m maximum from the ground

Rear – triangular OR non-triangular, 2 required at the outer edges of the rear.  If triangular, must point up.  If non-triangular, may be grouped as part of the rear lights. (so reflector in the light group? ok, that’s easy..)  400mm maximum in from the edges, at least 600mm apart, at least 250mm from the ground, 900mm maximum from the ground

Side – non–triangular, At least one on each side, within the middle third of the trailer, minimum 250mm from the ground, maximum 900mm from the ground.

Interesting, there is no specific mention of colours!  Although earlier there was mention of the trailer NOT showing white to the rear, or red to the front..  So that would suggest white to the front, and red to the rear.. and yellow being the only safe colour to the side 🙂

Electrical Wiring

  • Must be supported at intervals of no more then 600mm apart.
  • Be insulated at joints
  • be located so that it does not become overheated, or contact moving parts
  • be protected from chafing
  • have an earth return between the trailer and the towing vehicle.  OMG, are they kidding? someone would consider the hitch-to-ball coupling a suitable connection for the earth? lol!

Draw bar, chains, couplings

Drawbar to be securely attached to a ‘substantial portion’ of the trailer.  Longitudinal tension and compression (Newtons) 1.5 x 9.81 x ATM (kg).  That would suggest to me that it needs to be able to withstand the towing vehicle accelerating at 1.5 gravities.  Having owned a ZZR1100, and knowing that it was only JUST able to reach 1G of acceleration, I know that that’s quite a bit of force 🙂

Transverse thrust, and vertical tension/compression is (N) 0.5 x 9.81 x ATM (kg).  Tranverse thrust, what’s that?  Vertical tension/compression? that’d be up and down on the towbar as you go over bumps?

Well, basically what those two are saying, is the drawbar needs to be REALLY WELL ATTACHED.. 🙂  I’ll likely have mine very securely welded below the floor frame and front and back (and any other cross-braces I put in the floor..)

Chains.. Well, under 2.5 tonne ATM, must have one safety chain complying with AS 4177.4-1994 or AS 4177.4-2004-Part4  The attachment point for the chain should not come into contact with the road when the trailer is disconnected.   ‘Safety chains, which ave the mechanical T grade property, are not suitable for welding’.  Do we HAVE to weld? Or is a shackle between trailer and chain ok?  Find out!

Coupling – Must have  quick release coupling which is designed to be used without tools.  It must be positive locking with provision for a second independant type.  Coupling to be mounted so that the height of the center of the body of the coupling is 350-420mm above the ground when loaded.   Hmm, check the height of my motorcycle’s tow-ball!.  Coupling to be marked in accordance with ADR62/01 and ADR62/02.  This is:

  • The manufacturers name or trademark.
  • The mark ‘50’ (50mm ball)
  • Maximum rating for the coupling (750kg)
  • a code to indicated serial, batch, production date, or similar
  • ‘DO NOT WELD’, if made from non-weldable material
  • ‘WELD ONLY’ if the coupling is to be attached by welding only.

Mud Guards

Must be designed to protect other road users from thrown up stones, ice, snow, water, mud, etc, and prevent people contacting the moving wheels.

Wheel guards must provide continuous protection between a point in area ‘A’ and a point in area ‘B’, and must cover the overall width of all tyres.  May include mudflaps, and need not be less than 230mm from the ground.

Axles and suspension

Wow, there is no information given for this, for a single-axel trailer which is not going to have galvanised springs. Booyah!  I think..

Wheels and Tyres

All wheels and tyres must comply with ADR’s 23 or 42.  Must haev a tyre placard in a prominent position, can be part of the vehicle plate.  Must show:

  • Manufacturers recommended tyre size
  • Tyre load rating
  • Speed rating
  • Cold inflation pressures
  • ‘The tyres fitted to this vehicle shall have a speed category not less than ‘L’ (120km/h)’    (There is another option, but i wouldn’t want less than 120k/h on a bike trailer!)

Dimensions

Rear Overhang – Must not exceed the front load space.  There is no definition of ‘front load space’, but one can assume that it is the ‘load space’ portion in front of the axle. As compared to the portion behind the axle, which is the ‘rear overhang’…  So what this is saying is that there must be more of the ‘box’ on the box trailer, to the rear of the wheels, than at the front of the wheels..

Ground Clearance – Within 1 meter on front and back of the wheels, must not be less than 100mm ground clearance, excepting the wheels, tyres, and wheel hubs.

And that’s all she wrote, as far as regulations relating to *getting the trailer registered* go.  The only other caveat is that the trailer must be build ‘fit for purpose’.  I.e. don’t use weak materials and ‘hope it will do’..

NSW RTA Towing Regulations.

Refer NSW RTA ‘Towing Trailers’ booklet.

Maximum Towing Mass (Loaded trailer weight).  Must not be more than the unladen mass of the towing vehicle.  In my case, this is 243kg.  That’s PRETTY. DARNED. HEAVY.   Of course, if the vehicle manufacturer has specified the towing mass, then that would be the maximum (up to the 750kg trailer limit). But most motorcycle manufacturers (even BMW!) don’t actually specify a maximum towing mass…

Purchase-list

  • Vehicle Plate
  • 2 x rectangle white reflectors
  • 2 x rectangle yellow reflectors
  • 2x rear light groups (yellow indicator, red reflector, red stop/tail combo)
  • 1 coupling (swivel type, since it’s to tow behind a motorcycle!)

Ask the RTA

  • Do they supply the Vehicle plate?
  • At what point to I get a VIN? Does the RTA put that on the build plate for me after inspecting?  Do they even inspect, or is that only the inspection mob?
  • Does chain have to be welded? Or is bolted fine?

Other things to find out

  • Talk to eco-tec auto gas (My preferred vehicle inspection place – They’re VERY easy to deal with!) and find out if they can do a blue-slip on a home-built trailer..  RTA site says they just need to be a full AUVIS station, which they are..
  • What is chain with a ‘T’ grade property?

Enabling SNMP on Netgear DG834G

So we have a little Netgear DG834G in the development office. Yes it’s cheap, but it’s also quite rock solid, and we don’t really need anything more – so why spend the money on more?  The only thing is, I always tend to graph bandwidth usages on every router I have access to – helps troubleshoot latency issues etc..

The DG834G *supports* SNMP, however it has to be enabled manually whenever it’s rebooted.. Which thankfully isn’t very often for us!

I’ve configured my own (my second DSL modem!), back in the dark ages, but these days I run a Cisco 877 at home, so I had to do some google trawling..  And here’s how we do it 🙂

  1. Access your router on 192.168.0.1/snmp.htm  (note: IP will likely be different – use your router’s IP)
  2. Enable SNMP and make your community name whatever you might wish. Click Apply.
  3. Type in the address bar: 192.168.0.1/setup.cgi?todo=debug (it will say “Debug enabled”).
  4. Open a telnet session to the router’s IP (192.168.0.1?)
  5. Type ‘iptables -D INPUT 1′ at the # prompt  – this removes the default block rule for SNMP.
  6. That’s it, your router will now respond to SNMP requests on port 161.

I’ve seen mention that folks need to re-delete the iptables rule, if they change their firewall rules, or if their modem reconnects to their ISP.. I haven’t experienced this myself – we change Optus account a couple of times a month (I’ll have to sort that out after christmas, it seems a little strange to have multiple accounts instead of just having a larger quota on one big account!), and when we rebooted the modem today, was the first time I’ve had to repeat this process.

Hope that helps someone out 🙂

Setting up Subversion on Debian

So it’s time to setup Subversion; I’ve been using CVS almost forever for my larger projects, and relying on Time Machine for my smaller projects.  Which don’t get me wrong, works great, but CVS is getting a little dated, and there’s no Time Machine type app that I can find, for my new Windows laptop.

So, subversion.  Sure, I could use GIT, that’s what folks seem to be using these days, but it seems not-quite-suited to what I want it for – which is one person, developing using multiple machines.

So, I’ll be setting it up on my existing source-control VM.  I don’t think I need to bother with Webdav access – just svn+ssh will do nicely for remote access, and plain svn for servers within GS fetching their new releases.

Installing

My environment is almost 100% Debian, so first we install the subversion package

vorlon:~# apt-get install subversion<
Setting up libsvn1 (1.6.12dfsg-6) ... 
Setting up subversion (1.6.12dfsg-6) ... 
vorlon:~#

Then we want to create our new repository.  I’m going to have a repository per project, just to make it easy to hand a repository over to a client, should they ever move development inhouse, or the like.  Lets setup TremSearch

vorlon:~# mkdir /var/lib/subversion/tremsearch 
vorlon:~# svnadmin create /var/lib/subversion/tremsearch

Ok, our repository is created, but we need to add users!

cat >> /var/lib/subversion/tremsearch/conf/passwd << __END__ 
[users] 
damien = <redacted> 
webserver = <redacted> 
__END__

And we need to give them access – edit conf/svnserve.conf:

[general] 
damien = write 
webserver = read 
anon-access = none 
password-db = passwd 

‘Note the anon-access = none’ – The SVN documentation seems to say that ’read’ is the default for anonymous users!  That seems a little daft to me, but I’ll set it to none, just incase they’re for real!

Oh, Subversion for debian does not have a start script! So we’ll add one..

cat > /etc/init.d/subversion << __END__
#!/bin/bash
### BEGIN INIT INFO
# Provides:          svnserve
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     
# Default-Stop:      
# X-Interactive:     true
# Short-Description: Start/stop svnserve
### END INIT INFO

svnserve -d -r /var/lib/subversion/
__END__
chmod u+x /etc/init.d/subversion
ln -s /etc/init.d/subversion /etc/rc2.d/S99subversion

Note that we’re locking base SVN url’s down to /var/lib/subversion.  We’ll see how this works below.

Start up the server (/etc/init.d/subversion) and we’re done!

Importing your code

Importing your code is fairly easy – change to the directory your code resides in, and import it.. And then, I move the original directory out of the way, and check it out:

damien@:/export/home/projects/tremsearch/www$ svn import -m "initial import" ./ svn://svnserver/tremsearch/www
.
.
.
Committed revision 1.
damien@:/export/home/projects/tremsearch/www$ cd ..
damien@:/export/home/projects/tremsearch$ mv www old-www
damien@:/export/home/projects/tremsearch$ svn checkout svn://svn.rendrag.net/tremsearch/www www
.
.
Checked out revision 1.

And done!. Now I can check it out on my laptops, and work with it! And the added bonus here, is that I don’t have to worry about SCP’ing changes up to the webserver anymore, and keeping track of changed files – I just jump into the www directory on the webserver, and ‘svn update’ 🙂

XenServer – Creating a local ISO repository

Starting a new job, I’m essentially starting from scratch, as far as development infrastructure goes – The live sites are hosted on a cpanel server with ftp access only – so debugging is basically a moot point – and there have been no development sites for quite a while – it’s a simple case of edit in dreamweaver/eclipse/zend studio/etc and FTP up and ‘see how it goes’ – so it’s either sync up the dev sites from current codebase, or start them from scratch with something a little more industry-standard.  Granted these are much smaller projects than my previous jobs, but they have the potential to still need multiple developers committing source changes, etc, in the somewhat near future.  So the current ftp-the-changes-up-to-the-server just won’t cut it.   My first step is running up a quick XenServer install, and bringing up a few VM’s for Subversion, LAMP, Jira, etc.  yes, they could all run on one, but if there’s one thing I’ve learnt of the years, it’s keep your environments separated.  Especially source control from development!

The environment here isn’t big enough to justify anything like I have in my small hosting business, with a SAN-backed XenServer cluster with HA licensing etc.  So a standalone XS server it is.  15 mins after finding a spare monitor, I had XenServer running.  And that’s about where I went ‘oh, bugger, ISO repository!’ – That’s right, there’s no fileserver in this office at present, so a-googling I went!

As it turned out, it wasn’t too bad at all 🙂  We basically create a small volume in LVM, mounted it, and add it as an ISO Storage Repository.

First up, get the name of the Volume Group

# pvscan
  PV /dev/sda3   VG VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da   lvm2 [690.62 GB / 690.61 GB free]
  Total: 1 [690.62 GB] / in use: 1 [690.62 GB] / in no VG: 0 [0   ]

Ok, so in this case, our VG is VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da. Now we want to create a Logical Volume.  I made it 40GB – if I was running small SCSI/SAS disks, I’d probably have made it smaller, but this box has a 750gb SATA disk.

[root@xenserver01 ~]# lvcreate -L 40G -n ISO VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da
  Logical volume "ISO" created

And of course, format it.  I use ext2 for anything ‘basic’, as I don’t need journalling, and I like my performance, especially in a SAN environment.  Not that that’s an issue here with a local disk, but it’s a good habit to form 😉

[root@xenserver01 ~]# mkfs.ext2 /dev/VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da/ISO 
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
5242880 inodes, 10485760 blocks
524288 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
320 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
4096000, 7962624
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

Well, that was easy. Let’s make a new directory to mount the LV.

[root@xenserver01 ~]# mkdir /mnt/iso_import

Mount the Storage Repository. Make sure that all Volume Groups are active, mount it, and attach it as a storage repository..

[root@xenserver01 ~]# vgchange -a y
  3 logical volume(s) in volume group "VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da" now active
[root@xenserver01 ~]# mount /dev/VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da/ISO  /mnt/iso_import/
[root@xenserver01 xen]# xe-mount-iso-sr /mnt/iso_import -o bind

Sweet, and make it come up at boot!

[root@xenserver01 ~]# cat >> /etc/rc.local << __END__
vgchange -a y
mount /dev/VG_XenStorage-c0972b3b-ef4a-346f-42d2-8ddae19499da/ISO  /mnt/iso_import/
xe-mount-iso-sr /mnt/iso_import -o bind
__END__

And we’re done!

Oh, and obviously, scp some isos to it! 🙂

Mongoose M60 Programming

 

So, I tend to go nuts every few months, trying to find the Programming instructions for the M60/M80 Mongoose Alarms. So rather than bookmark the post I eventually find each time, and hope it doesn’t dissappear, or that I don’t lose my bookmarks, I’ll just reproduce it here 🙂

Instructions:

  1. Drivers door must be open
  2. Within 15 seconds of opening the door (note: Seems to really just be within de-arming the immobiliser), turn the ignition ON/Off the number of times for the programming charg (e.g. 3 times for remote code learning)
  3. Siren will then chirp the same number of times as the programme number.
  4. Press button one to turn the feature ‘ON’ – siren chirps once, lights flash once.
    Press button two to turn feature ‘OFF’ – siren chirps twice, lights flash twice.
  5. Leave system for 10 seconds – system quickly chirps 3 times (lights flash 3 times) to show exit of programming mode
Feature Button one (on) Button Two (Off)
3 Remote code learning
4 Ignition Door Lock ON OFF
5 Siren Chirps ON OFF
6 Turbo Timer Each press = 1 minute
Siren chirps for minutes set, max 5 mins
N/A>
7 Last Door Arming ON OFF
8 Door Diagnostics ON OFF
9 Engine Immobiliser ON OFF
10 Siren or Horn Siren Horn
11 CDL Pulse 0.8 Sec 3.5 Sec
12 NSW Siren Timing ON OFF