I'm trying to use Pi3 as my LoRa gateway with sx1276 LoRa modules.
The module with sx1276 chip and single channel connect via SPI interface.
Test with Arduino are work great. Both send and receive are success.
But there's some problem when I was trying to connect Raspberry Pi3.
The source code [node-sx127x][1] is from Gitub, it is a install by npm and node.js.
So far seems good and the sender.js run great on my Pi3, the data will be received by Arduino code.
But the receive.js could not receive any data from any nodes!
The register process seems good, because the Pi will print "open success" after it catch the SPI and Lora module!
I've been tested the frequency and bandwith from sx127x.js, it is available when I change the value.
And both of sender.js and receive.js are using the default value from sx127x.js.
So I'm not sure what's the problem.
The modules I used are sx1276. I've tried two modules but the result are the same.
enter image description here
enter image description here
I would recommend you to take a second RaspberryPi to ensure your problem isn't in the Arduino. If the Pi-Pi connection works you have to look into the arduino script. Otherwise your pi is not working.
You could also try Arduino-Arduino connection.
could you post your Arduino send script
Related
First post! Full disclosure, I have a very limited programming / pi background.
I'm working on a project to communicate with a Chroma Bi-Directional power supply (Model #: 62180D-1200) using LXI / SCPI communication. There's more I hope to do in the future, but for the time being I'm simply trying to establish a working communication channel using the "*IDN?" identify command. I have a raspberry pi connected to the same network as the power supply, which I am using to communicate to the 62180D.
Before beginning any of this testing, I have been able to establish that I can communicate with the device via http (web browser). The web page for the device even includes an scpi query tool -- which works!
Successful HTTP communication
To query the device from the pi I have used PuTty to log in to my pi and issue the following command:
lxi scpi -a <device ip address> "*IDN?"
I am expecting to see the same result as shown in the image above (Model No. , Serial No., Firmware Version), but instead I'm receiving the following:
Error: Read error (timeout)
Error: Failed to receive message
I was under the impression that this protocol is fairly plug and play. I have other LXI enabled devices on the same network that I am able to communicate with them using this same approach. Is there some obvious thing I'm missing here?
(https://i.stack.imgur.com/9Vx5t.jpg)
This is the board that I'm using Arduino Uno with inbuilt wifi. I'm unable to connect it to my wifi network
I tried doing what is mentioned in the link
https://www.trojanc.co.za/2017/11/05/arduino-uno-wifi-network-setup/
But the webpage won't open
Then I also tried uploading the code mentioned in below link to ESP8266 by pushing on 5th ,6th,and 7th dip switch
https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/readme.html
But it still does not connect to the internet
On the terminal it shows
Hard resetting via rts pin
Nothing is visible on serial monitor or arduino IDE
Thanks in advance
There are some switch to control connection between USB, Atmega and ESP8266/Wifi
pin 1 and 2 on : Atmega connect to ESP8266 there is not connection to USB/Computer
pin 3 and 4 on : USB/Computer connect to Atmega, so you can upload a skecth
pin 5 and 6 on : USB/Computer connect to ESP8266/Wifi
make sure you have been setup this switch correctly depend on your need.
i'm trying to use Bluez (python) on a raspberry pi to receive data with bluetooth from a ionic2 app. I'm using the built in Bluetooth from "native ionic" which is the bluetoothSerial framework from Cordova
I can't receive any data on the rasp. I'm using list() to check if the device is connected to the rasp (it return true).
I'm using write to send a "hello world" message.
The Ionic2 script:
BluetoothSerial.connect("B8:27:EB:F7:3B:B5");
BluetoothSerial.write("hello world").then(this.success, this.failure);
After the write, my callback succes is called which means that the data was correctly sent.
I was wondering on which bluetooth port the ionic2 app send the data. Bluez need a specific port to listen to.
I have wifi module as client that connected to my router (linux based firmware, Openwrt).
And sometime, i need to retrieve GPIO state from wifi module. It can be done simply by connect in to usb serial and type
print (gpio.read(1))
It will return value 1 or 0. Active or not.
The thing is, can i save the value of gpio to my openwrt through telnet?
Using ash or bash maybe?
I've succesfully connected to wifi module using telnet and execute command via telnet.
Many thanks :)
Note :
-my module wifi is esp8266-07,
-Router HW Echolife HG553 (openwrt,Debian based linux)
Linux doesn't provide us with any "standardtized" solution.
You would need to implement some kind of interface, e.g. service that will read data and make nicely structured JSON file, which is shared over HTTP, so you can read and parse it.
I am curently looking to find out wheter it is possible to Bluetooth connect an arduino or similar micro controller to the pebble watch using the RN-42 Sparkfun RN-42 adapter
I currently am having difficulty connecting to the pebble, as the board just times out.
Thanks
The RN-42 can, using bluetooth. The following will get you paired, and the watch MAY accept a ping:
SF,1 //factory reset
SP,9999 //takes care of the pairing code
SM,6 //pairing
SA,4
SY,0000 //power
SW,0640 //sniff mode
R,1 //reset so settings are saved/active and pebble should ask to connect
To pass app messages you need to pass some information to the watch, see http://dexwatch.blogspot.com/2015/12/more-on-pebble.html for the full details.