aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-serial.h
AgeCommit message (Collapse)Author
2022-06-30port: make 'timed-out' a signal for all port types, not just serialAleksander Morgado
2021-03-31port-serial: remove misleading commentsAleksander Morgado
2020-09-19core: add autoptr cleanup methods to all internal typesAleksander Morgado
2020-04-08ports: port to object loggingAleksander Morgado
2019-06-03port-serial: allow deciding whether the command is queued last or run nextAleksander Morgado
By default all the commands we were sending through the serial port were added at the tail of the pending queue, but we may want to queue them at the head in very specific cases (e.g. while sending an SMS).
2018-09-12port-serial: add flow control propertyAlfonso Sánchez-Beato
Add flow control property to the MMPortSerial class, and use it when setting the port flow control.
2017-04-18port-serial: remove all default flow control settingsAleksander Morgado
We won't set XON/XOFF by default and we won't allow setting RTS/CTS via a property. The serial port by default starts with no flow control configured.
2017-04-18port-serial: new method to explicitly set flow control settingsAleksander Morgado
2016-01-23port-serial: rework response parsingAleksander Morgado
Response parsing was being done in different places for AT and QCDM subclasses; in the case of AT it was being done early, before returning the byte array in the mm_serial_port_command_finish() response. In the case of QCDM, it was being done after mm_serial_port_command_finish(), and that was forcing every caller to cleanup the response buffer once the response was processed. With the new logic in this patch, the response is always parsed (i.e. looked for a valid response or an error detected) before mm_serial_port_command_finish() returns, and actually this method now returns a totally different GByteArray, not the internal response buffer GByteArray, so there's no longer any need for the caller to explicitly clean it up. The one doing the cleanup is the parser method itself in every case. This change also allows us to return serial port responses in idle, but that's not changed for now as there's no immediate need.
2014-02-13port-serial: remove unneeded methodAleksander Morgado
2014-02-13port-serial: use a 'priv' pointer to handle the private infoAleksander Morgado
2014-02-13port-serial: use GIO Async API like method for command()Aleksander Morgado
2014-02-13port-serial: use GIO Async API like method for flash()Aleksander Morgado
2014-02-13port-serial: use GIO Async API like method for reopen()Aleksander Morgado
2014-02-13ports: rename 'MMSerialPort' to 'MMPortSerial'Aleksander Morgado