Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have an Arduino Uno Rev 3 with an Ethernet Shield. Can I use this to connect to a secure MQTT broker (using port 8883)?
What library do I use?
The Arduino Uno only has 2kB of RAM and 32kB of program memory - this is a very constrained device and I do not believe is enough to implement any kind of SSL/TLS.
For example WolfSSL is designed for embedded devices but it states that it uses between 20-100kB kB of program memory and 1-36kB of RAM:
https://www.wolfssl.com/wolfSSL/benchmarks-wolfssl.html
So I suspect that the only option would be to off-load the encryption to another device.
You could have an MQTT broker on your local network (Raspberry Pi?) that your Arduino(s) connect to over port 1883, and then connects them securely over port 8883 over the internet.
You could use an ESP8266 to perform both the network connection and encryption. For example a ESP8266 Arduino shield is available.
There may be some other kind of IC that you could off-load the TLS encryption to, but still have the Arduino Uno doing the networking - but I am not sure if anything like this actually exists.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am working high accuracy of timers in Windows. But timers in Windows are not accurate. Therefore, I have installed Windows Subsystem for Linux version 2(WSL) which is maybe not a solution for my application. I have seen many resources and videos regarding file sharing between them. My question is that is it possible to use Linux high accuracy timers in WSL. Another words, I would like to send command from Linux to Windows to execute task more precisely. It is a new concept, I hope there is already this kind of feature. The more specific example is that a program sends a command to output of industrial PC by TCP communication, the program must work in Windows however, I would like to use Linux because of the accuracy of the timer. Is there any article about this connection or any information? Because I have not found yet.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have installed bananian OS on Banana pro. Now I want to make wifi access point on banana pro.
Can anyone guide me how to do this?
Load the WiFi Driver
Run the following command to load the WiFi driver at boot time.
root#bananapi ~ # nano /etc/modules
# add the wifi driver
ap6210 op_mode=2
Adding Internet Access
While your WiFi users can connect to your BananaPro, they can’t do much else except to run apps on the BananaPro. Assuming you have your eth0 port connected to a network that has internet access, you can give them access to the Internet. All it requires is enabling IPv4 forwarding to allow traffic to pass between the eth0 and wlan0 ports.
echo 1 > /proc/sys/net/ipv4/ip_forward
To make this permanent, edit the /etc/sysctl file and un-comment the line:
net.ipv4.ip_forward = 1
Reference for adding connection
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
We are looking into supporting TLS-PSK for a set of constrained devices that do not have sufficient resources to do the normal TLS handshake using certificates. To that end we are looking for a TLS-PSK component, that we can integrate on our (cloud) servers. This component may be anything, a proxy, module for apache or anything else that scales well.
So far we have found several libraries that support TLS-PSK: GnuTLS, OpenSSL amongst others. Moreover, we can find several HTTPS/TLS client libraries that we can use to send HTTP(S) requests over a TLS-PSK connection. However, what we have not been able to find are server-side solutions that would accept such TLS-PSK connections. Apache modules mod_ssl, and mod_gnutls do not expose the TLS-PSK capabilities of the underlying libraries. F5 Big-IP has TLS-PSK not in its cipher lists. HAProxy does not have TLS-PSK interfaces as well. The node.js TLS library had a pull-request that became stale and hard to apply with all the recent TLS lib refactorings...
So in short: does anyone know of a TLS-PSK capable component that we can integrate in our server backends to accept TLS-PSK connections from a large set of clients?
stunnel might be capable of helping here. PSK was added in 5.09
Installation
/etc/stunnel/stunnel.conf:
[PSK server]
accept = 443
connect = 80
ciphers = PSK
PSKsecrets = /path/to/psk.txt
debug = 7
psk.txt (chmod 600):
client1:oaP4EishaeSaishei6rio6xeeph3az
Run with stunnel, or set up a service
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about programming within the scope defined in the help center.
Improve this question
I have subscribed to a broadband Internet connection provided by a local cable TV provider.
Normally, I use my laptop which has Windows 7 for light surfing. I have set up a Broadband connection(PPPoE) for the same as per the provider's instructions.
The issue arises when I remove the cable from my laptop and plug it into my desktop and try to use it by setting up a connection there,too. My account either gets locked immediately or even if it connects, when I connect the cable back to my laptop, it appears surely locked. Then I have to call up the provider to unlock it :(
I'm sure that the provider is storing something on each machine and disallowing use of multiple machines. This is a real disadvantage as I can't download overnight by using my desktop.
Please guide as to how I must get rid of this inconvenience.
Thanks and regards !
It could be because the connection is tied to the MAC Address of the network card. If the cable modem has a USB port you could try that option to connect to a USB port on the PC and laptop - you may have to install the drivers on the laptop and PC.
Another option you could try (if any of the systems have two network cards) is to setup ICS (Internet Connection Sharing). ICS can also be setup in the scenario of USB connected cable modem + single network card.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using Wi-Fi connection for my android device. It is signal is very week and most of the time i am fed up with internet connection not available.
But i have a PC in my hand with which is in LAN connection.. Is there any way to use this internet connection my mobile using USB cable?
Just curious to know that this will solve my problem. If yes, please give me in detail.
PC LAN connection to Mobile is not at all possible. But, you can use the mobile connection in PC using USB tethering.
Yes it is possible. Look for "USB Reverse Tethering" in the google play store. It is not easy but it is possible.
There also another way to do this, with "Virtual WiFi Router", they use the of your computer as hotspot. But take care when you install it, always refuse all the program they try to install on your computer. It is possible to install without adware program.
Take a look at this. It is the ICS (Internet Connection Sharing) setup guide for Windows 7 on Microsoft's website: http://windows.microsoft.com/en-US/windows-vista/Using-...