how to use web application to send serial commands?

50 views
Skip to first unread message

theoffi...@gmail.com

unread,
Mar 11, 2013, 2:15:18 AM3/11/13
to web...@googlegroups.com
Hello everyone! i am clueless on how to create a web app that allows me to control a device through serial command?
Currently my Raspberry Pi acts as a web2py server and it can communicate with the device using netcat and minicom.
Can someone give me an idea or example? :) thank you very much! :)

Christian Foster Howes

unread,
Mar 15, 2013, 3:01:38 AM3/15/13
to web...@googlegroups.com
i'm not familiar with netcat and minicom.....are those python libraries? or are there python libraries that know how to speak those things?

assuming you can write python that sends commands to the device (which i bet you can do), then it shouldn't be hard to have a URL call a controller that creates the right hardware message and sends it along.

The Organisation of Secret Shoppers

unread,
Mar 15, 2013, 4:25:36 AM3/15/13
to web...@googlegroups.com
i have no idea as well. everything is too new to me :/
i'm switching back to serial, and i'm using pyserial... but got stuck as well.


--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/na1IbAlcRLQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages