Инструкция по эксплуатации: Программное обеспечение

From RepRap
Revision as of 14:46, 26 November 2011 by Glenn (talk | contribs) (catchg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Это не законченный перевод статьи. Пожалуйста, сделайте свой вклад в перевод документации.
This page has not yet finished being moved from TWiki to this MediaWiki. While we are in the process of moving it please refer to DriverSoftware


Please Note this page describes how to use the RepRap standard software. There are alternatives to the standard software available and these are listed on the Comparison of RepRap Toolchains.


Troubleshooting

  • If you are having trouble with any of the axis' make sure you check your Cartesian-bot for mechanical problems (friction, alignment) and check to see if your Electronics are working properly.

Setting Host Port Preferences when using Windows

To find out which COM port the USB or serial port is using, go to the Windows Control Panel (Start -> Control Panel) and then the Hardware Manager (System -> Hardware -> Device Manager). Scroll down to Ports (COM & LPT) and expand the tree by clicking on the plus sign. There you should see something to the effect of a Communications Port (COM1) and USB Device (COM5). It may not be COM5 on your machine it all depends on how Windows addressed it when you installed the drivers

Then use search to find the reprap.properties file. Right click and edit. Search for Port(name) and change to match your com number. This must be in caps without spaces. Mine for example is Port(name)=COM4.

Save the changes.

Setting Host Port Preferences when using Ubuntu Linux

Copied from [RepRap fourm]

The procedure for using the USB adapter from the BOM wasn't in the wiki - nor was it immediately obvious, so, here goes.


If you are using the usb -> RS232 adapter, the serial drivers may need to be installed for the device to work properly. After plugging in the device, first check the hardware messages to see the device was detected:

dmesg

Torward the end of the messages, you should see this:

usb 1-1: new full speed USB device using uhci_and address 2 usb 1-1: configuration #1 chosen from 1 choice

Now, we need to figure out the device vendor number and product number to tell the usbserial driver. For this we can use lsusb. The easiest way to find the information is to first unplug the device, then run lsusb:

lsusb


You will see a summary list of your USB devices on the system, I only have one:

Bus 001 Device 001: ID 0000:0000

Now, plug the device back in, and run lsusb again:

lsusb

Which returns the summary list again, but now showing the new USB device:

Bus 001 Device 002: ID 4348:5523 Bus 001 Device 001: ID 0000:0000


Now, we can load up the driver for this device:

sudo modprobe usbserial vendor=0x4348 product=0x5523

Finally, check dmesg again to ensure it loaded properly.

dmesg

Near the end, you should see something like:

usbserial_generic 1-1:1.0: generic converter detected usb 1-1: generic converter now attached to ttyUSB0 usbcore: registered new interface driver usbserial_generic

Congratulations, your link is up - in this example, the device can be used on /dev/ttyUSB0. As much fun as you had doing this, there is some chance you want to do this automatically in the future. Just add this line:

usbserial vendor=0x4348 product=0x5523

to /etc/modules with the vendor and product numbers you found. Now, you should have no problem using this device for RepRap like a normal serial port. Huzzah! grinning smiley



package org.jdesktop.layout does not exist

This apparently means Ant or Eclipse or whatever environment you are building from can't find Netbeans.

To get Ant to work I did the following:

   find / -iname '*swing-layout*jar' 2>/dev/null

This spits back the location of the netbeans package. For me it was "~/projects/reprap/Reprap/lib/swing-layout-1.0.3.jar".

Next I opened up ~/projects/reprap/Reprap/build.xml I then edited the javac element to contain the netbeans package in the classpath:

       <javac source="1.5" target="1.5" destdir="bin">
           <src path="src"/>
           <classpath>
               <path refid="project.classpath"/>
               <path location="lib/swing-layout-1.0.3.jar"/>
           </classpath>
       </javac>

I'm not sure this is the best way, but it got things working for me.


Using reprap software on ubuntu karmic amd64

To install reprap on AMD64 See Here