Internet of things sharing

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
stuffshit
 
Posts: 6
Joined: Thu Apr 24, 2014 3:27 pm

Internet of things sharing

Post by stuffshit »

Hi!
First of all I want to apologize for my english.
I`m total newbie with raspberry. Recently i`ve bought adafruit IOT pi printer (https://www.adafruit.com/products/1289) and now i want to share it via local network for remote printing like from regular printer with cups.
Can I do this? Or I need some extra features? Or it isn`t possible at all?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Internet of things sharing

Post by adafruit_support_rick »

This would be a linux configuration. Offhand, I don't know how to do it. I'll check around and see if somebody knows what to do.

stuffshit
 
Posts: 6
Joined: Thu Apr 24, 2014 3:27 pm

Re: Internet of things sharing

Post by stuffshit »

Thanks for your reply. I think it's possible with CUPS, but I still can`t configure it properly for serial port

stuffshit
 
Posts: 6
Joined: Thu Apr 24, 2014 3:27 pm

Re: Internet of things sharing

Post by stuffshit »

I have noticed one other thing:
if I type in ssh console something like this

Code: Select all

echo 'some text' > /dev/ttyAMA0

or just using your python library

Code: Select all

printer.println('some text')
first printed symbol will be degree sign
Is there some decision?

User avatar
pburgess
 
Posts: 4161
Joined: Sun Oct 26, 2008 2:29 am

Re: Internet of things sharing

Post by pburgess »

Does this only happen with your own code, or with the Python-Thermal-Printer examples as well?

Can you do a test dump (hold the button when connecting power) and see what baud rate is displayed? Does this page also print the degree symbol?

stuffshit
 
Posts: 6
Joined: Thu Apr 24, 2014 3:27 pm

Re: Internet of things sharing

Post by stuffshit »

This happens with adafruit library too. Printer self-test is haven`t degree symbol (only in case when I hold down button inside printer. Adafruit`s printertest.py also have degree sign)

stuffshit
 
Posts: 6
Joined: Thu Apr 24, 2014 3:27 pm

Re: Internet of things sharing

Post by stuffshit »

Ok, I change printer`s coding page to traditional chines and now fist symbol is "@". I don`t understand any more

stuffshit
 
Posts: 6
Joined: Thu Apr 24, 2014 3:27 pm

Re: Internet of things sharing

Post by stuffshit »

Finally figure out the problem: I have set printer`s baud rate to 115200. Turning back to 19200 fully cancel fist symbol problem

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

Return to “For Educators”