NetSmart Wireless Gateway > Raspberry Pi 2 B Compatibility

155 views
Skip to first unread message

uktop...@gmail.com

unread,
Mar 24, 2018, 3:12:57 AM3/24/18
to measureit

 am struggling to get this to work with the raspberry, I thought I could just purchase the RJ45 >USB data cable and hook that up to my Netsmart CurrentCost Wireless gateway but looks like its only compatible with the EnviR monitors.


I have the following 
Raspberry Pi 2 Model B
"Current Cost NetSmart Wireless Gateway"
USB data cable for Current Cost EnviR power monitor/meter
2016-05-10-raspbian-jessie-lite-measureit-120-2gb.img image
I have the following confirmed working 
  • Data reading on my Netsmart CurrentCost wireless gateway
  • Raspberry booted up and I can access via web page and putty.
but there is no data from the wireless gateway to the raspberry on the webpage.

I downloaded the 'C2 Terminal' and plugged the data cable from the CurrentCost wireless gateway into my window computer and chose the correct COM port but not data coming through and the options were only using the 3 ENVI monitors.

I am now thinking I can purchase a Envir LCD monitor and hook it up to my Raspberry with the EnviR data cable and I should be good.


Thomas

unread,
Mar 24, 2018, 3:53:32 AM3/24/18
to measureit
I do not know how the NetSmart device is working.

You can try to start the grabber with debugging on. Then take a look in the log if measureit find the device and can connect to it. If yes you should see the Output if there is any.

If not we can start to find out more about this device :)

uktop...@gmail.com

unread,
Mar 24, 2018, 6:15:59 AM3/24/18
to measureit
Hi Thomas,

I confirmed data cable is connected and followed instructions to start grabber but there is not output but there is an interesting error when running a tail command.. see screenshot

2018-03-24 09:53:08,832 ERROR Can not connect to the serial device: Traceback (most recent call last):
  File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
    line = ser.readline()
  File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 446, in read
    ready,_,_ = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt

Thomas

unread,
Mar 24, 2018, 8:02:31 AM3/24/18
to measureit
Ok. There is no connection to the device.

Lets find out which device it is

ls -la /dev| grep USB

Should produce something like this. 
crw-rw----  1 root dialout 188,   0 Mar 24 07:43 ttyUSB0

In the case from USB0 we try to get more details
 stty -F /dev/ttyUSB0 -a

Thomas

unread,
Mar 24, 2018, 8:29:06 AM3/24/18
to measureit
If you find out which USB device it is you can try to connect to it manually.

To connect to the EnviR I use screen.

First switch the device to 57600 baud rate
stty -F /dev/ttyUSB0 57600

Then connect to read the device output
screen /dev/ttyUSB0 57600

This connects to the EnviR and displays the XML output

uktop...@gmail.com

unread,
Mar 24, 2018, 8:49:10 AM3/24/18
to measureit
unfortunately no output on the 'Screen' output, just blank... :-(

Thomas

unread,
Mar 24, 2018, 10:58:12 AM3/24/18
to measureit
The most commands we use need root privileges. So first is to became root after login with 
sudo bash

There is no screen installed :)

Try to install it first
apt-get install screen

The device use 57600 baud to connect. The other currentcost devices use 9600. So measureit can not connect without modifing the code. But one step after an other. Let us see if there is a useful output.

uktop...@gmail.com

unread,
Mar 24, 2018, 5:39:56 PM3/24/18
to measureit
Thanks  for your response Thomas,
I installed 'Screen' as per the 2nd screenshot

I ran again but the screen command is not piping any output to screen..

Thomas

unread,
Mar 25, 2018, 3:03:56 AM3/25/18
to measureit
I suspected it. I think it is a grabber itself that parses the output from the devices and then send a request to the storage service from currentcost.
As I understand this product we will not get any data from it

uktop...@gmail.com

unread,
Mar 25, 2018, 4:28:51 AM3/25/18
to measureit
thanks for your assistance anyway Thomas, at least we tried.. I have ordered a EnviR unit which I know will work.

cheers
Reply all
Reply to author
Forward
0 new messages