The store does not have the omega 2S in it. Where can I get my hands on some and for what price?
I have been using the cloud API to control the Onion so far, but is there an API interface through the use of curl commands, or similar, to integrate an API just over the local LAN? i.e. I have a device that I wish to control but it does not have public internet access.
How can I do this? any ideas? I guess it must be possible because the cloud interfaces with the Onion over the inernet already.
Thanks for any ideas..
For the permissions, both the folder and the key require the following:
chmod 700 /home/user/.ssh chmod 644 /home/user/.ssh/authorized_keys
You can send the key by "secure copy" (similar to SSH) like this:
change directory to where the key is on the omega
scp id_rsa.pub <user>@<yourhost>:.ssh/authorized_keys
Where <user> is the SSH user for the remote login and <yourhost> is the host of the remote login.
You will be asked for a password initially.
This is quite an interesting project, thanks for posting.. How could we run a script or binary within the Debian shell automatically from boot?
Or a crontab? I have installed crontab but we are only running a shell here, so it misses out the init.d from a proper boot.
Ohh - I have mine going but haven't installed the SDK yet, so I'll do you a trade.. :-)
As with any USB device, they have a VID (Vendor ID) and PID (Product ID). The linux device will see the VID and PID but you will have to tell it what hardware this is.. Is it a keyboard? Mouse? How can it communicate with the Cellphone modem? Looking at the docs for the UBlox Sara-201, it says that it has a few connections but one of them is an AT command set interface. Historically (if you are old enough to remember the 9600 baud modems we used to access the internet with in the early 90's...) modems with an AT command set are based on serial links. So in this case I took a guess and just said that the device is a serial device.
To get the PID and VID, you need to do the following:
root@Omega-F5C5:/usr/bin# lsusb Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 1546:1102 U-Blox AG Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub root@Omega-F5C5:/usr/bin#
So, device 3 is the U-Blox cell phone module. The ID 1546:1102 id the VID and PID. CD to /etc/modules.d and edit the file usb-serial with the contents, "usbserial vendor=0x1546 product=0x1102 maxSize=2048"
This includes the VID and PID from the command, "lsusb" above and tells the omega that there is a serial port.
root@Omega-F5C5:/etc/modules.d# cd /etc/modules.d root@Omega-F5C5:/etc/modules.d# cat usb-serial usbserial vendor=0x1546 product=0x1102 maxSize=2048 root@Omega-F5C5:/etc/modules.d#
Install screen with opkg install screen
then cd to the /dev directory and ttyACM1 should be there
pipe the port to screen
screen ttyACM1 <enter>
and then you are connected to the modem. Try AT <enter> and it should say OK.
If anybody would be interested in working with me on finishing off an app with the omega1, please get in touch on the PM and we will set up a Skype call.
It needs a user, PHP front end to tie together some built python scripts and to send emails.
Also to perfect some of the scripts for remote 3g access and GPS location in the case that the device is stolen.
All of the hardware is done.
Have a look at this https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=49465
Someone here pointed this out to e a while back..
Looks like your connection to Onion Community was lost, please wait while we try to reconnect.