not sending frames form meshlium to waspmote

How to configure Meshlium or use the Manager System
Posts: 5
Joined: Tue Mar 27, 2018 10:53 am
Company: MEDs Technologies

Re: not sending frames form meshlium to waspmote

Post by prasanna3ram » Tue Apr 10, 2018 11:44 am

I have tried sending +++ but there is not response. Am not sure whether I am sending it properly. Since I am reading data through the serial port, am writing the commands directly to the same serial ports. Kindly advice me if this is correct and it would be great if you can share me any example codes for doing the above.

Code: Select all

#! /usr/bin/python
ESCAPED_LIST = [0x7e,0x7d,0x13,0x11]

from xbee import XBee
import serial
import termios
import io

PORT = '/dev/ttyS1'
BAUD_RATE = 115200
packet ='hai'

ser = serial.Serial(PORT,BAUD_RATE, timeout=1)
xbee = XBee(ser, escaped='true')
import pprint

while True:
  	print a

Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: not sending frames form meshlium to waspmote

Post by libelium-dev » Wed Apr 11, 2018 10:40 am


We can't help you to develop your own code to send data from Meshlium to P&S but we can explain the steps we use to send AT commands manually to XBee module into Meshlium.

1. Stop the parser process to free the serial port connected to the XBee module with this command:

Code: Select all

/etc/init.d/ stop
2. Install minicom

3. Once installed, start it

Code: Select all

 minicom -s

4. Configuration
- Choose "Serial port setup" and change this values:
  • A - Serial Device : /dev/ttyS1 [type A and edit. Then enter]
    E - Bps/Par/Bits: 115200 [type E and select D from menu and then enter]
    Type enter to save the changes.
- Select "Exit" from menu.

5. Set minicom local Echo on and add linefeed on:
Type Ctrl-A E to show Echo status, and Ctrl-A A to show linefeed.

6. Enter +++ to get into the AT command mode. You should receive an OK reply in a few seconds without pressing enter.

Code: Select all

+++ OK
7. Now you can send AT commands to the module

8. Exit minicom:

Code: Select all


9. Start again the sensorParser process with:

Code: Select all

/etc/init.d/ start

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests