Beta V0_6b1

9 years 3 months ago #91 by leone2805
Replied by leone2805 on topic Beta V0_6b1
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 :-(
The topic has been locked.
9 years 3 months ago #92 by PupazzoGnappo
Replied by PupazzoGnappo on topic Beta V0_6b1
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 ?

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 3 months ago #94 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

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 :)
The topic has been locked.
9 years 3 months ago #95 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

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.
The topic has been locked.
9 years 3 months ago #96 by PupazzoGnappo
Replied by PupazzoGnappo on topic Beta V0_6b1
Yeah i'm interested in testing it ,but right now i do not own an USB modem sticks. I think i can borrow one from a friend just for a while. What stick are you using right now? Which phone provider ?

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 3 months ago - 9 years 3 months ago #97 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

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.
The topic has been locked.
Time to create page: 0.202 seconds

Forum latest

  • No posts to display.