Home/Support/Support Forum/Send data to XStick from scripts

Send data to XStick from scripts

0 votes
Hello,

I have a XStick + ConnecPort X2 and I'm doing some tests using the In-Premise display simulator.

As the this tool can only send "Fixed value power" or "Linear energy progression", I'd like to know if there is some way to communicate with the XStick through scripts (python or else) ?

The idea is to send mode "real life" consumption data to the XStick (so it can then send them to the X2 Gateway).

Would you have any more info on how to do this ?

Also, I did not find in the documentation what field should be used to send this info. Is that possible with AT command or with API ?

Thanks a lot for your help.

Regards,
Luc
asked Jan 24, 2012 in ZigBee Smart Energy Profile 1.1 by lucj New to the Community (4 points)

Please log in or register to answer this question.

6 Answers

0 votes
I see a couple potential issues here.

1. The In-Premise Display Simulator is a Windows app, so you'd need to run it from within a Windows emulator on Linux. I haven't tried running it within WINE, but that would certainly be a good candidate for attempting to do this.

2. The XStick interface uses an FTDI USB-to-serial driver when used in Windows. I believe a Linux counterpart which might work is the ftdi_sio module.

I used to play a Windows game on a RedHat box using WINE. It worked pretty good actually, but since I don't have that server anymore I can't test this theories I mentioned above, nor is it an environment Digi supports for this application.

That being said, I wish you the best of luck should you attempt it, and if so I hope you'll report your results here not only to satisfy my curiosity, but so others can benefit as well.
answered Jan 24, 2012 by MST_616 New to the Community (23 points)
0 votes
Hello,

Thanks for your reply.

In fact, my main concern is to be able to talk to the XStick with a script instead of with In-Premise. I'd like to be able to send real consumption data to the xstick programmatically. I'll say this is the most urgent part :) Then, I'll do it from a Linux machine.

Would you have any doc / example on how to communicate to the XStick programmatically ?

Thanks for your help.
Luc
answered Jan 24, 2012 by lucj New to the Community (4 points)
0 votes
The software uses an 802.15.4 XStick from Digi to send and receive data to and from the Arduino user device.
answered Jan 25, 2012 by AmiJames New to the Community (1 point)
0 votes
Would you have some example on how to communicate with the XStick using a script (python or else) ?
Can this be done using pyserial module ?
answered Jan 25, 2012 by lucj New to the Community (4 points)
0 votes
Hi lucj!
Did you find an answer?
answered Jul 4, 2015 by xeonphi New to the Community (2 points)
0 votes
In-Premise. I'd like to be able to send real consumption data to the xstick programmatically. Would you have some example on how to communicate with the XStick using a script (python or else) ?
answered Jul 7, 2015 by ramkumar90 New to the Community (2 points)
...