Mini Thermal Receipt Printer + GSM

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
lechamo78
 
Posts: 1
Joined: Wed Apr 17, 2013 11:28 am

Mini Thermal Receipt Printer + GSM

Post by lechamo78 »

Hi,

I want to use the Mini thermal Receipt Printer with the new official GSM shield of Arduino.
I have a conflict with the two libraries : Gsm & ArdunioThermal

Just try to compile this :

Code: Select all

// include the GSM library
#include <GSM.h>

// PIN Number for the SIM
#define PINNUMBER "1234"

#include <SoftwareSerial.h>

#include "Adafruit_Thermal.h"

int printer_RX_Pin = 5;  // This is the green wire
int printer_TX_Pin = 6;  // This is the yellow wire

Adafruit_Thermal printer(printer_RX_Pin, printer_TX_Pin);



// initialize the library instances
GSM gsmAccess;
GSM_SMS sms;
GSM_SMS send_sms;
and I have this message :

Code: Select all

SoftwareSerial\SoftwareSerial.cpp.o: In function `__vector_3':
C:\Users\Nicolas\Desktop\Arduino\libraries\SoftwareSerial/SoftwareSerial.cpp:302: multiple definition of `__vector_3'
GSM\GSM3SoftSerial.cpp.o:C:\Users\Nicolas\Desktop\Arduino\libraries\GSM/GSM3SoftSerial.cpp:511: first defined here
SoftwareSerial\SoftwareSerial.cpp.o: In function `__vector_4':
C:\Users\Nicolas\Desktop\Arduino\libraries\SoftwareSerial/SoftwareSerial.cpp:309: multiple definition of `__vector_4'
GSM\GSM3SoftSerial.cpp.o:C:\Users\Nicolas\Desktop\Arduino\libraries\GSM/GSM3SoftSerial.cpp:518: first defined here
SoftwareSerial\SoftwareSerial.cpp.o: In function `__vector_5':
C:\Users\Nicolas\Desktop\Arduino\libraries\SoftwareSerial/SoftwareSerial.cpp:316: multiple definition of `__vector_5'
GSM\GSM3SoftSerial.cpp.o:C:\Users\Nicolas\Desktop\Arduino\libraries\GSM/GSM3SoftSerial.cpp:525: first defined here
Please can you help me?

Thx in advance

User avatar
rodskin
 
Posts: 6
Joined: Tue Mar 15, 2016 8:54 am

Re: Mini Thermal Receipt Printer + GSM

Post by rodskin »

Hi, seems that the problem is between the libraries GSM and SoftwareSerial :(

I found this:
http://purposefulscience.blogspot.fr/20 ... -tips.html

Which indicates what to change in the libraries in order to work :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”