AtCore 1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Loading...
Searching...
No Matches
Classes | Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
AtCore Class Reference

The AtCore class aims to provides a high level interface for serial based gcode devices
More...

#include <atcore.h>

Inheritance diagram for AtCore:

Classes

struct  AtCorePrivate
 The AtCorePrivate struct Provides a private data set for atcore. More...
 

Public Types

enum  STATES {
  DISCONNECTED , CONNECTING , IDLE , BUSY ,
  PAUSE , ERRORSTATE , STOP , STARTPRINT ,
  FINISHEDPRINT
}
 STATES enum Possible states the printer can be in. More...
 
enum  AXES { X = 1 << 0 , Y = 1 << 1 , Z = 1 << 2 , E = 1 << 3 }
 The AXES enum - Printer Axes. More...
 
enum  UNITS { METRIC , IMPERIAL }
 The UNITS enum - Possible Mesurment Units. More...
 

Public Slots

void setState (AtCore::STATES state)
 Set the printers state.
 
Q_INVOKABLE void updateFWPlugins ()
 updateFWPlugins Check for new Firmware plugins.
 
Q_INVOKABLE void pushCommand (const QString &comm)
 Push a command into the command queue.
 
Q_INVOKABLE void print (const QString &fileName, bool sdPrint=false)
 Public Interface for printing a file.
 
Q_INVOKABLE void stop ()
 Stop the Printer by empting the queue and aborting the print job (if running)
 
Q_INVOKABLE void emergencyStop ()
 stop the printer via the emergency stop Command (M112)
 
void pause (const QString &pauseActions)
 pause an in process print job
 
Q_INVOKABLE void resume ()
 resume a paused print job. After returning to location pause was triggered.
 
Q_INVOKABLE void home (uchar axis)
 Send home axis command.
 
Q_INVOKABLE void home ()
 Send home all command.
 
Q_INVOKABLE void setExtruderTemp (uint temp=0, uint extruder=0, bool andWait=false)
 Set extruder temperature.
 
Q_INVOKABLE void move (AtCore::AXES axis, double arg)
 move an axis of the printer
 
Q_INVOKABLE void move (QLatin1Char axis, double arg)
 move an axis of the printer
 
Q_INVOKABLE void setBedTemp (uint temp=0, bool andWait=false)
 Set the bed temperature.
 
Q_INVOKABLE void setFanSpeed (uint speed=0, uint fanNumber=0)
 setFanSpeed set the fan speed
 
Q_INVOKABLE void setAbsolutePosition ()
 Set printer to absolute position mode.
 
Q_INVOKABLE void setRelativePosition ()
 Set printer to relative position mode.
 
Q_INVOKABLE void disableMotors (uint delay=0)
 Disable motors after a delay.
 
Q_INVOKABLE void setPrinterSpeed (uint speed=100)
 set the Printers speed
 
Q_INVOKABLE void setFlowRate (uint rate=100)
 set extruder Flow rate
 
Q_INVOKABLE void close ()
 close any open items. You should call this on close events to force any stuck jobs to close
 
Q_INVOKABLE void showMessage (const QString &message)
 showMessage push a message to the printers LCD
 
Q_INVOKABLE void setUnits (AtCore::UNITS units)
 setUnits sets the measurement units do be used
 
void setSerialTimerInterval (int newTime)
 Set the time between checks for new serialPorts (0 is default)
 
void setTemperatureTimerInterval (int newTime)
 Set the time between checks for new Temperature (5000 is default on new connections)
 
void setAutoTemperatureReport (bool autoReport)
 Set if atcore should Enable auto temperature reporting. Temperature timer will also be stopped.
 
Q_INVOKABLE void setAutoCheckTemperatureInterval (int newTime)
 Tell the machine to start reporting its temperature automaticly.
 
Q_INVOKABLE void sdDelete (const QString &fileName)
 delete file from sd card
 
void sdCardPrintStatus ()
 Queue the Printer for status of sd card print.
 

Signals

void atcoreMessage (const QString &msg)
 Message emit from atcore these should be displayed to the user for debug.
 
void extruderCountChanged (const int newCount)
 New number of extruders.
 
void printProgressChanged (const float newProgress)
 Print job's precentage changed.
 
void receivedMessage (const QByteArray &message)
 New message was received from the printer.
 
void serialTimerIntervalChanged (const int newTime)
 New interval for serial timer.
 
void temperatureTimerIntervalChanged (const int newTime)
 New interval for temperature timer.
 
void autoTemperatureReportChanged (bool autoReport)
 use of automatic temperature reporting has changed
 
void autoCheckTemperatureIntervalChanged (const int newTime)
 New interval for automatic temperature report.
 
void stateChanged (AtCore::STATES newState)
 The Printer's State Changed.
 
void portsChanged (const QStringList &portList)
 Available serialports Changed.
 
void sdMountChanged (bool newState)
 Sd Card Mount Changed.
 
void sdCardFileListChanged (const QStringList &fileList)
 The files on the sd card have changed.
 
void pushedCommand (const QByteArray &comm)
 pushedCommand via serialLayer connect this to your log to see send commands
 
void availableFirmwarePluginsChanged ()
 availableFirmwarePluginsChanged notify about the new plugins available
 

Public Member Functions

 AtCore (QObject *parent=nullptr)
 AtCore create a new instance of AtCore.
 
 ~AtCore ()
 
QString version () const
 version
 
QStringList serialPorts () const
 Returns a List of detected serial ports.
 
QString connectedPort () const
 connectedPort
 
Q_INVOKABLE bool newConnection (const QString &port, int baud, const QString &fwName, bool disableROC=false)
 Connect to a device.
 
QStringList portSpeeds () const
 Returns a list of valid baud speeds.
 
Q_INVOKABLE void closeConnection ()
 Close the current serial connection.
 
Q_INVOKABLE IFirmwarefirmwarePlugin () const
 Main access to the loaded firmware plugin.
 
QStringList availableFirmwarePlugins () const
 List of available firmware plugins.
 
AtCore::STATES state ()
 Get Printer state.
 
int extruderCount () const
 extruderCount
 
float percentagePrinted () const
 Return printed percentage.
 
std::shared_ptr< BedDeformbedDeform ()
 The Bed Deform data as told by the Firmware.
 
Temperaturetemperature ()
 The temperature of the current hotend as told by the Firmware.
 
int serialTimerInterval () const
 Return the amount of miliseconds the serialTimer is set to. 0 = Disabled.
 
int temperatureTimerInterval () const
 Return the amount of miliseconds the temperatureTimer is set to. 0 = Disabled.
 
Q_INVOKABLE void mountSd (uint slot=0)
 Attempt to Mount an sd card.
 
Q_INVOKABLE void umountSd (uint slot=0)
 Attempt to Unmount an sd card.
 
QStringList sdFileList ()
 sdFileList
 
bool isSdMounted () const
 Check if an sd card is mounted on the printer.
 
bool autoTemperatureReport () const
 Check if using automatic Temperature reporting to monitor temperatures.
 

Protected Member Functions

void setExtruderCount (int newCount)
 Set the number of extruders on the machine.
 
void appendSdCardFileList (const QString &fileName)
 Append a file to AtCorePrivate::sdCardFileList.
 
void clearSdCardFileList ()
 Clear AtCorePrivate::sdCardFileList.
 
void setSdMounted (const bool mounted)
 Set if the sd card is mounted by the printer.
 
void setReadingSdCardList (bool readingList)
 set AtCorePrivate::sdCardReadingFileList
 

Properties

QString version
 
QStringList availableFirmwarePlugins
 
int extruderCount
 
int temperatureTimerInterval
 
int serialTimerInterval
 
QStringList serialPorts
 
float percentagePrinted
 
QStringList portSpeeds
 
QString connectedPort
 
AtCore::STATES state
 
bool sdMount
 
QStringList sdFileList
 
bool autoTemperatureReport
 
Temperaturetemperature
 

Private Slots

void processQueue ()
 processQueue send commands from the queue.
 
void checkTemperature ()
 Send M105 to the printer if one is not in the Queue.
 
void newMessage (const QByteArray &message)
 Connect to SerialLayer::receivedCommand.
 
void newCommand (const QByteArray &command)
 Connect to SerialLayer::pushedCommand.
 
void findFirmware (const QByteArray &message)
 Search for firmware string in message. A Helper function for Firmware detection.
 
void locateSerialPort ()
 Search for new serial ports.
 
void disableResetOnConnect (const QString &port)
 Attempts to disableResetOnConnect for the selected port.
 
void getSDFileList ()
 Send request to the printer for the sd card file list.
 
void handleSerialError (QSerialPort::SerialPortError error)
 Handle serial Errors.
 

Private Member Functions

Q_INVOKABLE void loadFirmwarePlugin (const QString &fwName)
 Load A firmware plugin.
 
bool firmwarePluginLoaded () const
 True if a firmware plugin is loaded.
 
bool serialInitialized () const
 True if a serial port is initialized.
 
void requestFirmware ()
 send firmware request to the printer
 
bool isReadingSdCardList () const
 returns AtCorePrivate::sdCardReadingFileList
 
void stopSdPrint ()
 stops print just for sd prints used internally
 
void waitForPrinterReboot (const QByteArray &message, const QString &fwName)
 New connections need to wait for the machine to be ready if it needs reboot.
 

Private Attributes

std::unique_ptr< AtCorePrivated
 

Friends

class AtCoreTests
 
class RepetierPlugin
 
class MarlinPlugin
 

Detailed Description

The AtCore class aims to provides a high level interface for serial based gcode devices

General Workflow

How AtCore Finds Plugins.

AtCore will check each directory below for plugins.

  1. QApplication::applicationDirPath/plugins (runtime)
  2. QApplication::applicationDirPath/AtCore (runtime)
  3. QApplication::applicationDirPath/../PlugIns/AtCore (runtime)
  4. Fullpath of KDE_PLUGIN_DIR (buildtime)
  5. Qt Plugin path/AtCore (runtime)
  6. ECM set KDE PLUGIN DIR (buildtime)
  7. Build Dir/plugins (buildtime)

Member Enumeration Documentation

◆ AXES

The AXES enum - Printer Axes.

Enumerator

X Axis: X Motor.

Y Axis Y Motor.

Z Axis Z Motor.

E Axis: Extruder Motor 0.

◆ STATES

STATES enum Possible states the printer can be in.

Enumerator
DISCONNECTED 

Not Connected to a printer, initial state.

CONNECTING 

Attempting to connect, Fw not probed.

IDLE 

Connected to printer and ready for commands.

BUSY 

Printer is Printing or working.

PAUSE 

Printer is paused.

ERRORSTATE 

Printer Returned Error.

STOP 

Stop Printing and Clean Queue.

STARTPRINT 

Just Starting a print job.

FINISHEDPRINT 

Just Finished print job.

◆ UNITS

The UNITS enum - Possible Mesurment Units.

Enumerator
METRIC 

Metric Units (Meters)

IMPERIAL 

Imperial Units (Feet)

Constructor & Destructor Documentation

◆ AtCore()

AtCore::AtCore ( QObject *  parent = nullptr)
explicit

AtCore create a new instance of AtCore.

Parameters
parentparent of the object

◆ ~AtCore()

AtCore::~AtCore ( )

Member Function Documentation

◆ appendSdCardFileList()

void AtCore::appendSdCardFileList ( const QString &  fileName)
protected

Append a file to AtCorePrivate::sdCardFileList.

Parameters
fileNamenew FileName

◆ atcoreMessage

void AtCore::atcoreMessage ( const QString &  msg)
signal

Message emit from atcore these should be displayed to the user for debug.

Possable Messages Are:

  • Waiting for firmware detect.
  • No Plugin found for (detected FW)
  • Failed to open device in Read / Write mode.
  • Device Errors.
    Parameters
    msgthe message.

◆ autoCheckTemperatureIntervalChanged

void AtCore::autoCheckTemperatureIntervalChanged ( const int  newTime)
signal

New interval for automatic temperature report.

See also
setautoTemperatureReport()

◆ autoTemperatureReport()

bool AtCore::autoTemperatureReport ( ) const

Check if using automatic Temperature reporting to monitor temperatures.

Returns
True if using automatic temperature reporting

◆ autoTemperatureReportChanged

void AtCore::autoTemperatureReportChanged ( bool  autoReport)
signal

use of automatic temperature reporting has changed

Parameters
autoReportTrue if using automatic Reporting mode.

◆ availableFirmwarePlugins()

QStringList AtCore::availableFirmwarePlugins ( ) const

List of available firmware plugins.

See also
loadFirmwarePlugin(), firmwarePlugin()

◆ availableFirmwarePluginsChanged

void AtCore::availableFirmwarePluginsChanged ( )
signal

availableFirmwarePluginsChanged notify about the new plugins available

◆ bedDeform()

std::shared_ptr< BedDeform > AtCore::bedDeform ( )

The Bed Deform data as told by the Firmware.

◆ checkTemperature

void AtCore::checkTemperature ( )
privateslot

Send M105 to the printer if one is not in the Queue.

◆ clearSdCardFileList()

void AtCore::clearSdCardFileList ( )
protected

◆ close

void AtCore::close ( )
slot

close any open items. You should call this on close events to force any stuck jobs to close

See also
closeConnection()

◆ closeConnection()

void AtCore::closeConnection ( )

Close the current serial connection.

See also
newConnection(), serial(), serialPorts(), close()

◆ connectedPort()

QString AtCore::connectedPort ( ) const

connectedPort

Returns
the port atcore is connected to or empty string if none

◆ disableMotors

void AtCore::disableMotors ( uint  delay = 0)
slot

Disable motors after a delay.

Parameters
delaySeconds until motors are disabled. 0= No delay

◆ disableResetOnConnect

void AtCore::disableResetOnConnect ( const QString &  port)
privateslot

Attempts to disableResetOnConnect for the selected port.

Parameters
portthe port.

◆ emergencyStop

void AtCore::emergencyStop ( )
slot

stop the printer via the emergency stop Command (M112)

See also
stop(), pause(), resume()

◆ extruderCount()

int AtCore::extruderCount ( ) const

extruderCount

Returns
The number of detected Extruders Default is 1
See also
setExtruderCount(int newCount), extruderCountChanged(int newCount)

◆ extruderCountChanged

void AtCore::extruderCountChanged ( const int  newCount)
signal

New number of extruders.

See also
extruderCount(), setExtruderCount(int newCount)

◆ findFirmware

void AtCore::findFirmware ( const QByteArray &  message)
privateslot

Search for firmware string in message. A Helper function for Firmware detection.

Parameters
message

◆ firmwarePlugin()

IFirmware * AtCore::firmwarePlugin ( ) const

Main access to the loaded firmware plugin.

Returns
IFirmware * to currently loaded plugin
See also
availableFirmwarePlugins(), loadFirmwarePlugin()

◆ firmwarePluginLoaded()

bool AtCore::firmwarePluginLoaded ( ) const
private

True if a firmware plugin is loaded.

◆ getSDFileList

void AtCore::getSDFileList ( )
privateslot

Send request to the printer for the sd card file list.

◆ handleSerialError

void AtCore::handleSerialError ( QSerialPort::SerialPortError  error)
privateslot

Handle serial Errors.

◆ home [1/2]

void AtCore::home ( )
slot

Send home all command.

See also
home(uchar axis), move()

◆ home [2/2]

void AtCore::home ( uchar  axis)
slot

Send home axis command.

Parameters
axisthe axis(es) to home (use X Y Z or any combo of)
See also
home(), move()

◆ isReadingSdCardList()

bool AtCore::isReadingSdCardList ( ) const
private

returns AtCorePrivate::sdCardReadingFileList

Returns
True if printer is returning sd card file list

◆ isSdMounted()

bool AtCore::isSdMounted ( ) const

Check if an sd card is mounted on the printer.

Returns
True if card mounted

◆ loadFirmwarePlugin()

void AtCore::loadFirmwarePlugin ( const QString &  fwName)
private

Load A firmware plugin.

Parameters
fwName: name of the firmware
See also
firmwarePlugin(), availableFirmwarePlugins()

◆ locateSerialPort

void AtCore::locateSerialPort ( )
privateslot

Search for new serial ports.

◆ mountSd()

void AtCore::mountSd ( uint  slot = 0)

Attempt to Mount an sd card.

Parameters
slotSd card Slot on machine (0 is default)

◆ move [1/2]

void AtCore::move ( AtCore::AXES  axis,
double  arg 
)
slot

move an axis of the printer

Parameters
axisthe axis to move AXES (X Y Z E )
argthe distance to move the axis or the place to move to depending on printer mode
See also
home(), home(uchar axis), move(QLatin1Char axis, int arg)

◆ move [2/2]

void AtCore::move ( QLatin1Char  axis,
double  arg 
)
slot

move an axis of the printer

Parameters
axisthe axis to move AXES (X Y Z E )
argthe distance to move the axis or the place to move to depending on printer mode
See also
home(), home(uchar axis), move(AtCore::AXES, int arg)

◆ newCommand

void AtCore::newCommand ( const QByteArray &  command)
privateslot

Connect to SerialLayer::pushedCommand.

Parameters
commandnewCommand.

◆ newConnection()

bool AtCore::newConnection ( const QString &  port,
int  baud,
const QString &  fwName,
bool  disableROC = false 
)

Connect to a device.

Parameters
portthe port to initialize
baudthe baud of the port
fwNameFirmware name of plugin to use (will try to autodetect if fwName is unknown)
disableROCatcore will attempt to disable reset on connect for this device.
Returns
True is connection was successful
See also
serialPorts(), serial(), closeConnection()

◆ newMessage

void AtCore::newMessage ( const QByteArray &  message)
privateslot

Connect to SerialLayer::receivedCommand.

Parameters
messagenew message.

◆ pause

void AtCore::pause ( const QString &  pauseActions)
slot

pause an in process print job

Sends M114 on pause to store the location where the head stoped. This is known to cause problems on fake printers

Parameters
pauseActionsGcode to run after pausing commands are ',' separated
See also
resume(), stop(), emergencyStop()

◆ percentagePrinted()

float AtCore::percentagePrinted ( ) const

Return printed percentage.

See also
printProgressChanged()

◆ portsChanged

void AtCore::portsChanged ( const QStringList &  portList)
signal

Available serialports Changed.

◆ portSpeeds()

QStringList AtCore::portSpeeds ( ) const

Returns a list of valid baud speeds.

◆ print

void AtCore::print ( const QString &  fileName,
bool  sdPrint = false 
)
slot

Public Interface for printing a file.

Parameters
fileNamethe gcode file to print.
sdPrintset true to print fileName from Sd card

◆ printProgressChanged

void AtCore::printProgressChanged ( const float  newProgress)
signal

Print job's precentage changed.

Parameters
newProgress: Message
See also
percentagePrinted()

◆ processQueue

void AtCore::processQueue ( )
privateslot

processQueue send commands from the queue.

◆ pushCommand

void AtCore::pushCommand ( const QString &  comm)
slot

Push a command into the command queue.

Parameters
comm: Command

◆ pushedCommand

void AtCore::pushedCommand ( const QByteArray &  comm)
signal

pushedCommand via serialLayer connect this to your log to see send commands

Parameters
commthe command sent.

◆ receivedMessage

void AtCore::receivedMessage ( const QByteArray &  message)
signal

New message was received from the printer.

Parameters
messageMessage that was received

◆ requestFirmware()

void AtCore::requestFirmware ( )
private

send firmware request to the printer

◆ resume

void AtCore::resume ( )
slot

resume a paused print job. After returning to location pause was triggered.

See also
pause(), stop(), emergencyStop()

◆ sdCardFileListChanged

void AtCore::sdCardFileListChanged ( const QStringList &  fileList)
signal

The files on the sd card have changed.

◆ sdCardPrintStatus

void AtCore::sdCardPrintStatus ( )
slot

Queue the Printer for status of sd card print.

◆ sdDelete

void AtCore::sdDelete ( const QString &  fileName)
slot

delete file from sd card

◆ sdFileList()

QStringList AtCore::sdFileList ( )

sdFileList

Returns
List of files on the sd card.

◆ sdMountChanged

void AtCore::sdMountChanged ( bool  newState)
signal

Sd Card Mount Changed.

◆ serialInitialized()

bool AtCore::serialInitialized ( ) const
private

True if a serial port is initialized.

◆ serialPorts()

QStringList AtCore::serialPorts ( ) const

Returns a List of detected serial ports.

Returns
List of detected ports
See also
newConnection(), serial(), closeConnection()

◆ serialTimerInterval()

int AtCore::serialTimerInterval ( ) const

Return the amount of miliseconds the serialTimer is set to. 0 = Disabled.

◆ serialTimerIntervalChanged

void AtCore::serialTimerIntervalChanged ( const int  newTime)
signal

New interval for serial timer.

See also
setSerialTimerInterval()

◆ setAbsolutePosition

void AtCore::setAbsolutePosition ( )
slot

Set printer to absolute position mode.

See also
setRelativePosition()

◆ setAutoCheckTemperatureInterval

void AtCore::setAutoCheckTemperatureInterval ( int  newTime)
slot

Tell the machine to start reporting its temperature automaticly.

Parameters
newTimeTime in seconds between reports (0: disabled)

◆ setAutoTemperatureReport

void AtCore::setAutoTemperatureReport ( bool  autoReport)
slot

Set if atcore should Enable auto temperature reporting. Temperature timer will also be stopped.

Parameters
autoReportTrue to enable automatic reporting of temperatures.
See also
setAutoCheckTemperature

◆ setBedTemp

void AtCore::setBedTemp ( uint  temp = 0,
bool  andWait = false 
)
slot

Set the bed temperature.

Parameters
temp: new temperature
andWaitTrue for heat and ignore commands until temperature is reached
See also
setExtruderTemp()

◆ setExtruderCount()

void AtCore::setExtruderCount ( int  newCount)
protected

Set the number of extruders on the machine.

Parameters
newCount
See also
extruderCount(), extruderCountChanged(int newCount)

◆ setExtruderTemp

void AtCore::setExtruderTemp ( uint  temp = 0,
uint  extruder = 0,
bool  andWait = false 
)
slot

Set extruder temperature.

Parameters
temp: new temperature
extruder: extruder number
andWaitTrue for heat and ignore commands until temperature is reached

◆ setFanSpeed

void AtCore::setFanSpeed ( uint  speed = 0,
uint  fanNumber = 0 
)
slot

setFanSpeed set the fan speed

Parameters
fanNumberfan number
speednew speed of the fan 0-100

◆ setFlowRate

void AtCore::setFlowRate ( uint  rate = 100)
slot

set extruder Flow rate

Parameters
rateflow rate in % (default is 100)

◆ setPrinterSpeed

void AtCore::setPrinterSpeed ( uint  speed = 100)
slot

set the Printers speed

Parameters
speedspeed in % (default is 100);

◆ setReadingSdCardList()

void AtCore::setReadingSdCardList ( bool  readingList)
protected

set AtCorePrivate::sdCardReadingFileList

Parameters
readingListset true if reading file list

◆ setRelativePosition

void AtCore::setRelativePosition ( )
slot

Set printer to relative position mode.

See also
setAbsolutePosition()

◆ setSdMounted()

void AtCore::setSdMounted ( const bool  mounted)
protected

Set if the sd card is mounted by the printer.

Parameters
mountedTrue is mounted

◆ setSerialTimerInterval

void AtCore::setSerialTimerInterval ( int  newTime)
slot

Set the time between checks for new serialPorts (0 is default)

Parameters
newTimeMilliseconds between checks. values <= 0 will Disable Checks.

◆ setState

void AtCore::setState ( AtCore::STATES  state)
slot

Set the printers state.

Parameters
state: printer state.
See also
state(), stateChanged(), AtCore::STATES

◆ setTemperatureTimerInterval

void AtCore::setTemperatureTimerInterval ( int  newTime)
slot

Set the time between checks for new Temperature (5000 is default on new connections)

Parameters
newTimeMilliseconds between checks. values <= 0 will Disable Checks.

◆ setUnits

void AtCore::setUnits ( AtCore::UNITS  units)
slot

setUnits sets the measurement units do be used

Parameters
units: the measurement units to use(METRIC / IMPERIAL)
See also
AtCore::UNITS

◆ showMessage

void AtCore::showMessage ( const QString &  message)
slot

showMessage push a message to the printers LCD

Parameters
messagemessage to show on the LCD

◆ state()

AtCore::STATES AtCore::state ( )

Get Printer state.

Returns
State of the printer
See also
setState(), stateChanged(), AtCore::STATES

◆ stateChanged

void AtCore::stateChanged ( AtCore::STATES  newState)
signal

The Printer's State Changed.

Parameters
newState: the new state of the printer
See also
setState(), state(), AtCore::STATES

◆ stop

void AtCore::stop ( )
slot

Stop the Printer by empting the queue and aborting the print job (if running)

See also
emergencyStop(), pause(), resume()

◆ stopSdPrint()

void AtCore::stopSdPrint ( )
private

stops print just for sd prints used internally

See also
stop(), emergencyStop()

◆ temperature()

Temperature * AtCore::temperature ( )

The temperature of the current hotend as told by the Firmware.

◆ temperatureTimerInterval()

int AtCore::temperatureTimerInterval ( ) const

Return the amount of miliseconds the temperatureTimer is set to. 0 = Disabled.

◆ temperatureTimerIntervalChanged

void AtCore::temperatureTimerIntervalChanged ( const int  newTime)
signal

New interval for temperature timer.

See also
setTemperatureTimerInterval()

◆ umountSd()

void AtCore::umountSd ( uint  slot = 0)

Attempt to Unmount an sd card.

Parameters
slotSd card Slot on machine (0 is default)

◆ updateFWPlugins

void AtCore::updateFWPlugins ( )
slot

updateFWPlugins Check for new Firmware plugins.

◆ version()

QString AtCore::version ( ) const

version

Returns
Version number

◆ waitForPrinterReboot()

void AtCore::waitForPrinterReboot ( const QByteArray &  message,
const QString &  fwName 
)
private

New connections need to wait for the machine to be ready if it needs reboot.

Parameters
messagemessage from the firmware
fwNamefwName to load

Friends And Related Symbol Documentation

◆ AtCoreTests

friend class AtCoreTests
friend

◆ MarlinPlugin

friend class MarlinPlugin
friend

◆ RepetierPlugin

friend class RepetierPlugin
friend

Member Data Documentation

◆ d

std::unique_ptr<AtCorePrivate> AtCore::d
private

Property Documentation

◆ autoTemperatureReport

bool AtCore::autoTemperatureReport
readwrite

◆ availableFirmwarePlugins

QStringList AtCore::availableFirmwarePlugins
read

◆ connectedPort

QString AtCore::connectedPort
read

◆ extruderCount

int AtCore::extruderCount
readwrite

◆ percentagePrinted

float AtCore::percentagePrinted
read

◆ portSpeeds

QStringList AtCore::portSpeeds
read

◆ sdFileList

QStringList AtCore::sdFileList
read

◆ sdMount

bool AtCore::sdMount
readwrite

◆ serialPorts

QStringList AtCore::serialPorts
read

◆ serialTimerInterval

int AtCore::serialTimerInterval
readwrite

◆ state

AtCore::STATES AtCore::state
readwrite

◆ temperature

Temperature * AtCore::temperature
read

◆ temperatureTimerInterval

int AtCore::temperatureTimerInterval
readwrite

◆ version

QString AtCore::version
read

The documentation for this class was generated from the following files: