Jump to content

232 Communication


Recommended Posts

Posted · 232 Communication

I would like to attach a comms cable (232) to my UMO+ so that I can monitor it's status and maybe trigger commands.

This (I believe) is essentially the same as the USB connection, but I am wondering if some of the spare pins on the motherboard can be used as a Tx and Rx...

Has anyone done this or have any idea if it's possible?

  • Like 1
Link to post
Share on other sites

Posted · 232 Communication

I had a little success with this today.

I used the J22 connectors to connect a 232 cable to my processor (Crestron)

I had to edit Configuration.h slightly

#define SERIAL_PORT 2 \\was #define SERIAL_PORT 0

and

#define BAUDRATE 115200 \\was #define BAUDRATE 250000

I only had to change the baud rate as my processor doesn't support 250000

When I power up the board I get a reasuring barrage of start up data...

start

echo:Marlin1.0.0

echo: Last Updated: Oct 20 2015 17:12:59 | Author: (David Braam)

Compiled: Oct 20 2015

echo: Free Memory: 3840 PlannerBufferBytes: 1232

echo:Hardcoded Default Settings Loaded

echo:Steps per unit:

echo: M92 X78.74 Y78.74 Z200.00 E836.00

echo:Maximum feedrates (mm/s):

echo: M203 X500.00 Y500.00 Z30.00 E25.00

echo:Maximum Acceleration (mm/s2):

echo: M201 X9000 Y9000 Z100 E10000

echo:Acceleration: S=acceleration, T=retract acceleration

echo: M204 S4000.00 T3000.00

echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s), Z=maximum Z jerk (mm/s), E=maximum E jerk (mm/s)

echo: M205 S0.00 T0.00 B20000 X20.00 Z0.40 E5.00

echo:Home offset (mm):

echo: M206 X0.00 Y0.00 Z0.00

echo:PID settings:

echo: M301 P22.20 I1.08 D114.00

Using tool 0.

echo:SD card ok

This tells me that I am definitely connected, the tx and rx are the right way round and the baud rates match on both devices.

Once this happens I then get

echo:Unknown command: ""

every few seconds. It seems like it is monitoring for commands and if it gets nothing then it gets upset. I'm not too bothered about that yet, what I really need to work out is why it doesn't respond when I do send commands.

I'm also not sure yet what commands I can send to get information I need or to control the printer. (have tried some G and M codes but none of them seem to work)

I think I may have to enable serial 2 to accept and handle control commands somehow...

But serial communication is a good start.

  • Like 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • UltiMaker Cura 5.7 stable released
      Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
       
        • Like
      • 16 replies
    • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
      (Sorry, was out of office when this released)

      This update is for...
      All UltiMaker S series  
      New features
       
      Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
        • Like
      • 0 replies
×
×
  • Create New...