- Posts: 8
- Thank you received: 0
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 typeso when I switch on, or after a DC supply failure, the sensor could retrieve the old state.gw.request( 0, V_DIMMER );
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
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.
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.
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
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.