Beta V0_6b1

9 years 10 months ago - 9 years 10 months ago #100 by leone2805
Replied by leone2805 on topic Beta V0_6b1

admin wrote:

leone2805 wrote: Thanks!
Now it works almost everything but I think it should be useful that EasyIOT server replies to Arduino node request of this type

gw.request( 0, V_DIMMER );
so when I switch on, or after a DC supply failure, the sensor could retrieve the old state.
Now instead, when from sensor node I send the request of the V_DIMMER value (c=2, t=3)
I don't receive response.
2015-01-18T09:57:47.5910030+01:00	DEBUG	MySensors				Read: 7-7-0 s=0,c=2,t=3,pt=0,l=3:1.2

Another small issue about internal message I_TIME (c=3, t=1):
2015-01-18T09:57:47.5978330+01:00	DEBUG	MySensors				Read: 7-7-0 s=255,c=3,t=1,pt=0,l=3:1.2
write
true
2015-01-18T09:57:47.6228850+01:00	DEBUG	MySensors				Send: 0-0-7-7s=255,c=3,t1,pt=1,l=1,st=ok:0

On response we should expect a long integer that represent UNIX time, but, as you can see, we receive a byte (pt=1) with value 0

Thanks again and sorry for my bad english :-(


Request was not supported in previous version. Now it's implemented.
I_TIME: it was (copy paste) bug, now is fixed

Please download MySensorsDriver.dll and replace existing file on Raspberry. New functions are not tested, because right now I'm not using it. Please report if now works OK.

P.S.: Your english is OK, I'm also not native english speaker :)


Hi,
response from gw.request( 0, V_DIMMER ) are now OK and also I_TIME internal message!

But there is a strange behaviour after the ControlLevel call when changing the value of the dimmer (/Api/EasyIoT/Control/Module/MySensors/N7S0/ControlLevel/): the cpu usage of the mono process after this call increases to 98/99% and remains at this level. This issue is present also with the initial MySensors.dll released with the Beta.
Is there a way to see what's happening?

Thanks again.
The topic has been locked.
9 years 10 months ago #101 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

leone2805 wrote: Hi,
response from gw.request( 0, V_DIMMER ) are now OK and also I_TIME internal message!

But there is a strange behaviour after the ControlLevel call when changing the value of the dimmer (/Api/EasyIoT/Control/Module/MySensors/N7S0/ControlLevel/): the cpu usage of the mono process after this call increases to 98/99% and remains at this level. This issue is present also with the initial MySensors.dll released with the Beta.
Is there a way to see what's happening?

Thanks again.


Hi, try with new MySensorsDriver.dll (the same download link). Now it should work correctly.
The topic has been locked.
9 years 10 months ago #102 by PupazzoGnappo
Replied by PupazzoGnappo on topic Beta V0_6b1

admin wrote:

admin wrote:

PupazzoGnappo wrote: Is there any material/example/ information about the SMSGateway? i could not find anything about that on this forum and also on mysensors forum. Will a tutorial be available here ?


You need USB modem stick to send SMS messages. You can control modules or read values with SMS. Right now I'm testing SMS functions. The problem is that it hangs after couple of hours. The problem is not in driver but in linux, .NET implementation or my USB stick. I will try to test with other USB modem. If SMS interface will not be stable it will not be included in next release.

If you want to test modem let me know I will write short instructions.


I'm using Huawei USB modem stick- you can get it on ebay for 10EUR - used. You do not need modern LTE modem, beacuse you are only sending SMS messages.

First step is to install modem on Raspberry Pi. Search internet to found how to install your modem to Raspberry Pi. Usually USB sticks are not recognized by Linux and you will need to install usb_modeswitch.

After you successfully install USB modem you enable SMS interface in EasyIoT server. Be sure to enter right port. Usually is /dev/ttyUSB0, but it can be different in your configuration. Maybe you need to change modem baud rate. This can be done only in config file in config folder. To set baud rate open systemconfig.xml and correct <BaudRate>115000</BaudRate> to your speed.

SIM card must be without PIN protection.

If modem is setup correctly you can send SMS commands on telephone number.

To read property send:
GetParameter [driver] [address] [property]
Example for mysensors driver is:
GetParameter MySensors N1S2 Sensor.Temperature
Response is SMS with property value.

To send commands execute:
ControlModule [driver] [address] [command]
Example is:
ControlModule MySensors N1S3 ControlOn - to switch on
ControlModule MySensors N1S3 ControlOff - to switch off
ControlModule MySensors N1S4 ControlLevel 20 - to set (dimmer) level 20

Response is command confirmation.

Because SMS commands are not easy to remember you can add shortcuts which are easy to remember.
For example:
temperature -> GetParameter MySensors N1S2 Sensor.Temperature

New command is only temperature.


Hi, thank you for the istructions. I 'm managing to get the usb modem stick ( could not find it on ebay for a reasonable price in my country, so i'm looking somewhere else and maybe i had already found it , i'm waiting for seller response ) . If everything goes fine as it is supposed to , i'll have the modem in my hands in about 10 days. I will update this topic if there are important news about the modem/testing

Contact me at : This email address is being protected from spambots. You need JavaScript enabled to view it.
Plain is smart. Smart is plain
The topic has been locked.
9 years 10 months ago - 9 years 10 months ago #103 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

PupazzoGnappo wrote:

admin wrote:

admin wrote:

PupazzoGnappo wrote: Is there any material/example/ information about the SMSGateway? i could not find anything about that on this forum and also on mysensors forum. Will a tutorial be available here ?


You need USB modem stick to send SMS messages. You can control modules or read values with SMS. Right now I'm testing SMS functions. The problem is that it hangs after couple of hours. The problem is not in driver but in linux, .NET implementation or my USB stick. I will try to test with other USB modem. If SMS interface will not be stable it will not be included in next release.

If you want to test modem let me know I will write short instructions.


I'm using Huawei USB modem stick- you can get it on ebay for 10EUR - used. You do not need modern LTE modem, beacuse you are only sending SMS messages.

First step is to install modem on Raspberry Pi. Search internet to found how to install your modem to Raspberry Pi. Usually USB sticks are not recognized by Linux and you will need to install usb_modeswitch.

After you successfully install USB modem you enable SMS interface in EasyIoT server. Be sure to enter right port. Usually is /dev/ttyUSB0, but it can be different in your configuration. Maybe you need to change modem baud rate. This can be done only in config file in config folder. To set baud rate open systemconfig.xml and correct <BaudRate>115000</BaudRate> to your speed.

SIM card must be without PIN protection.

If modem is setup correctly you can send SMS commands on telephone number.

To read property send:
GetParameter [driver] [address] [property]
Example for mysensors driver is:
GetParameter MySensors N1S2 Sensor.Temperature
Response is SMS with property value.

To send commands execute:
ControlModule [driver] [address] [command]
Example is:
ControlModule MySensors N1S3 ControlOn - to switch on
ControlModule MySensors N1S3 ControlOff - to switch off
ControlModule MySensors N1S4 ControlLevel 20 - to set (dimmer) level 20

Response is command confirmation.

Because SMS commands are not easy to remember you can add shortcuts which are easy to remember.
For example:
temperature -> GetParameter MySensors N1S2 Sensor.Temperature

New command is only temperature.


Hi, thank you for the istructions. I 'm managing to get the usb modem stick ( could not find it on ebay for a reasonable price in my country, so i'm looking somewhere else and maybe i had already found it , i'm waiting for seller response ) . If everything goes fine as it is supposed to , i'll have the modem in my hands in about 10 days. I will update this topic if there are important news about the modem/testing


I've change my modem. With other modem works OK. Problem was in modem. In next release will be also SMS interface included. You can test it. It's really fun to read room temperature or switch light with SMS message.

P.S.: Actually I bought my modem on similar site like ebay (local variant). There are cheaper than on ebay.
The topic has been locked.
9 years 10 months ago #106 by PupazzoGnappo
Replied by PupazzoGnappo on topic Beta V0_6b1
Ok, that's great!!!!! I will obtain a brand new vodafone internet key in the next few days ( don't know the exact model/manufecturer but i found on the net that is well supported on raspy ) The price is quite low so i can afford it. If it will not work , i just could re-use it for other purposes. If we test a bunch of models/ manufacturers maybe we can define the cheaper compatible model.
I'll keep you updated .

Contact me at : This email address is being protected from spambots. You need JavaScript enabled to view it.
Plain is smart. Smart is plain
The topic has been locked.
9 years 10 months ago #108 by leone2805
Replied by leone2805 on topic Beta V0_6b1

EasyIoT wrote:

leone2805 wrote: Hi,
response from gw.request( 0, V_DIMMER ) are now OK and also I_TIME internal message!

But there is a strange behaviour after the ControlLevel call when changing the value of the dimmer (/Api/EasyIoT/Control/Module/MySensors/N7S0/ControlLevel/): the cpu usage of the mono process after this call increases to 98/99% and remains at this level. This issue is present also with the initial MySensors.dll released with the Beta.
Is there a way to see what's happening?

Thanks again.


Hi, try with new MySensorsDriver.dll (the same download link). Now it should work correctly.


Ok, now works perfectly!!
I'll continue testing on other sensor type and automation and eventually SMSGateway (if i can run my usb modem stick MT503HSA on raspberry :unsure: ).
The topic has been locked.
Time to create page: 0.244 seconds

Forum latest

  • No posts to display.