Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error using swapdmt-cmd
09-12-2017, 01:04 AM
Post: #1
Error using swapdmt-cmd
Hello,

I'm trying to test panstamp and swap communications using the examples provided in Arduino library.

I'm using a panstamp with the modem sketch and a raspberry running swapdmt-cmd.

The other panstamp is running the bininps sketch and is connected to a PC using a panstick.

The panstamps are NRG2.

All I can get on swapdmt-cmd is:

Code:
SWAP server is now running...
version
>> 0.4
>> traffic on
>> Rved: (0FFFFFFD734)0029000800290C040F
11-09-2017 15:00:26 SwapException occurred: Incorrect packet format for incoming data. Lack of (RSSI,LQI).
Rved: (0FFFFFFDA30)0029000A00290C040F
11-09-2017 15:00:27 SwapException occurred: Incorrect packet format for incoming data. Lack of (RSSI,LQI).

Everything is running the latest software versions from github.
How can I fix this?

--- Eduardo Ribeiro
Find all posts by this user
Quote this message in a reply
09-13-2017, 04:48 PM
Post: #2
RE: Error using swapdmt-cmd
It seems your modem is entering the wrong format for the RSSI and LQI values. Can you please grab the modem sketch again into your RPi shield?

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
09-19-2017, 03:41 AM
Post: #3
RE: Error using swapdmt-cmd
(09-13-2017 04:48 PM)dberenguer Wrote:  It seems your modem is entering the wrong format for the RSSI and LQI values. Can you please grab the modem sketch again into your RPi shield?

I just connected the raspberry PI shield to the serial port using the panstick, uploaded the modem sketch again and got this on the serial monitor:

Code:
Modem ready!
(292F)002900010029000000000100000006
(292F)0029000200290303
(212E)0029000300290A00FF
(2130)0029000400290B0CFA
(222E)0029000500290C000F
(212D)0029000600290D00000000000000000000000000000000
(222E)0029000700290302
(222F)0029000800290C000F
(222D)0029000900290D00000000000000000000000000000000
(272E)0029000A00290C000F
(262C)0029000B00290D00000000000000000000000000000000
(282E)0029000C00290C080F
(292E)0029000D00290D00000000000000000000000000000000
(142E)0029000E00290C080F
(122F)0029000F00290D00000000000000000000000000000000
(222F)0029001000290C080F
(212D)0029001100290D00000000000000000000000000000000
(2E2F)0029001200290C080F
(2C2D)0029001300290D00000000000000000000000000000000

The python program keeps giving the same error about RSSI and LQI...

I'm using the bininps2 example on a nrg2 and the modem sketch on the raspberry shield.
Find all posts by this user
Quote this message in a reply
09-19-2017, 08:46 PM
Post: #4
RE: Error using swapdmt-cmd
Now it seems that your modem is reporting the correct frames and I can not see the error appearing anymore. Have you maybe posted the wrong log?

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
09-20-2017, 05:38 AM
Post: #5
RE: Error using swapdmt-cmd
(09-19-2017 08:46 PM)dberenguer Wrote:  Now it seems that your modem is reporting the correct frames and I can not see the error appearing anymore. Have you maybe posted the wrong log?

The log in the last post was from reading directly from the Serial port using the Arduino Serial Monitor.
The python tools still complained about RSSI and LQI.

Meanwhile, I found out what was the problem: I forgot I was using a panstamp long distance board!

Today I decided to do the full setup again following the wiki and found this:

Code:
LD-board works with any of the available sketches. The only modification that needs to be added to the sketch is the line used to enable the carrier board:

panstamp.radio.enableHGM();
The above line tells the stack that the LD carrier board is present and also that the integrated PA and LNA need to be properly driven before transmitting and receiving.

Just added that line and everything is working properly now.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)