You can use a cheap usb to rs232 like "CH340G"
Posts made by ch3b7
-
RE: ATMega32u4 + RFM69 + MySensors = Working!?
-
RE: Speech recognition
I use a phone with autoapps + autovoice + send/expect, to send tcp commands to a server and make and actions for each command received, im use a MOTO X with an a controller maked by me and work good. Sorry for my bad english im from argentina
-
RE: EthernetGateway - Radio init fail
replace with this and try
MyTransportNRF24 transport(RADIO_CE_PIN,RADIO_SPI_SS_PIN, RF24_PA_LEVEL_GW);
-
RE: MyNetSensors (closed)
what visual studio version? im make a controller in .net with visual studio 2010
-
RE: Understanding the message
@diggs to hide this 0,0,3,0,9 you need disable "#define DEBUG" replace with "//#define DEBUG" in libraries\MySensors\MyConfig.h and then upload sketch again
-
Debug in Ethernet Gateway
I have a question! I enable debugging in myconfig.h, I can view the log in the serial monitor from Arduino Uno + Wiznet but the MYSController not recive the log information connected to ethernet gateway, but, yes through the serial port.
can i change any to get the log information through ethernet too? or i miss something??THANK YOU!
-
RE: getConfig().isMetric not updated correctly
i think you need add ||| metric = gw.getConfig().isMetric; ||| in void setup and declare ||| boolean metric = true; |||
-
RE: Test your home made controller with MockMySensors (w/ tutorial)
@awi can you upload the fixed SKETCH ?? pls! thank you!!
-
RE: Test your home made controller with MockMySensors (w/ tutorial)
sorry your sketch work good! the problem im have is with the @AWI example!
all sensors present good but when finish i get a loop sended:
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0 -
RE: Test your home made controller with MockMySensors (w/ tutorial)
all sensors present good but when finish i get a loop sended:
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0
send: 50-50-0-0 s=0,c=1,t=16,pt=7,l=5,sg=0,st=ok:0.0im use (lib 1.5) MockMySensors.ino
-
RE: Uno+ethernet shield = radio init fail [solved]
I have the same problem!! I think is a problem with the new library!! With the 1.4.2 works good!!
-
RE: Windows GUI/Controller for MySensors
@rickmontana83 parse the data from the serial port is easy, im put in other post in this forum with a part of my code in vb.net
-
RE: Connect to gateway using VB.NET
im make a vb.net controller im try to help you with some code
declare
Public Swriter As StreamWriter
Public Client As New TcpClient
Public ClientStream As NetworkStreamto send data use
ClientStream = Client.GetStream()
ClientStream.Flush()
Swriter = New StreamWriter(ClientStream)
Swriter.WriteLine(deviceid & ";" & sensorchildid & ";" & msgType & ";" & ack & ";" & subType & ";" & payload)
Swriter.Flush()if you need more help tell me im try to help ^^
-
RE: Connect to gateway using VB.NET
Use streamreader and streamwrite to read and send data over the networkstream
-
RE: Windows GUI/Controller for MySensors
You add ethernet support? Im add ethernet support in my program in .net its work good.
-
RE: Windows GUI/Controller for MySensors
You need upload the serialgateway sketch to the arduino connected with the nrf24 the n connect the usb to pc and select the correct com port in the program
-
RE: Ethernet GW how know?
@olaeke yes the softspi is enable. If upload from the pc the radio work
-
Ethernet GW how know?
im have a question about ethernet gw. im buy one to test with my own controller in .net but when iupload the code i dont know if work or not., if upload from the mysensors page im get check wires, if upload from my pc im view in the serial monitor "Gateway startup complete" and start showing the recieved data from other sensors. but the ethernet work?? i cant connect from my custom controller
-
RE: Otabootloader upload ? posted in Development
-
RE: Otabootloader upload ?
im downloaded from here link text im try to copy manually
-
RE: Otabootloader upload ?
@daulagari said:
What kind of error do you get?
this error:
avrdude: WARNING: no end of file record found for Intel Hex file "G:\arduino-1.0.5-r2\hardware\arduino\bootloaders\MySensorsOTA\MyOtaBootloader.hex"
avrdude: WARNING: no end of file record found for Intel Hex file "G:\arduino-1.0.5-r2\hardware\arduino\bootloaders\MySensorsOTA\MyOtaBootloader.hex" -
Otabootloader upload ?
I can upload the bootloader using Arduino as ISP ? who i need add in a board.txt?
im use this but give an error
#######################################
Mysensors.name=[Mysensors OTA] Arduino Uno
Mysensors.upload.protocol=arduino
Mysensors.upload.maximum_size=32256
Mysensors.upload.speed=115200
Mysensors.bootloader.low_fuses=0xff
Mysensors.bootloader.high_fuses=0xde
Mysensors.bootloader.extended_fuses=0x05
Mysensors.bootloader.path=MySensorsOTA
Mysensors.bootloader.file=MyOtaBootloader.hex
Mysensors.bootloader.unlock_bits=0x3F
Mysensors.bootloader.lock_bits=0x0F
Mysensors.build.mcu=atmega328p
Mysensors.build.f_cpu=16000000L
Mysensors.build.core=arduino
Mysensors.build.variant=standard
##################################### -
RE: Connecting sensor to gateway via RS485 instead of nRF24
http://sourceforge.net/p/arduino-icsc/wiki/RS-485/ this is a good library to start! now im stuck with ethernet controller in my program in .net at now i cant see any string but the gateway work good ¬¬ i need more time ^^
-
RE: SerialGateway Output
In the arduino serial monitor put 255;255;3;0;4;X where x is a number 1-254
-
RE: Windows GUI/Controller for MySensors
yes but at now im not have a ethernet shield right now =( and i need to work with the optiboot/OTA bootloader part and dont know where find that part "request" "send" all that info. sorry my bad english im from argentina.!
-
RE: Windows GUI/Controller for MySensors
Good work man! im make a controller in .net!
-
RE: MySensors Serial Gateway minimal example to send data
you try send with the arduino terminal?
-
RE: MySensors Serial Gateway minimal example to send data
try to send with ack "3;0;1;1;3;5" and see if the node response, im have the same sketch with led and only with value more than 70% the led turn on other value still off
-
RE: Send time request over arduino "monitor serial"
WORK! im get "1420578901" ^^ thanks HEK!
im have other question about the light actuator with a button, i send the command to tun on/off its works, but can the node can send again the new state when received the turn on/off command? sorry for my bad english im from argentina^^ im needed to update the state in my controller and know if the command sended work.
this work but when i press the button the controller send 2 sets commands
**void incomingMessage(const MyMessage &message) {
// We only expect one type of message from controller. But we better check anyway.
if (message.isAck()) {
Serial.println("This is an ack from gateway");
}
if (message.type == V_LIGHT) {
// Change relay state
state = message.getBool();
digitalWrite(RELAY_PIN, state?RELAY_ON:RELAY_OFF);
// Store state in eeprom
gw.saveState(CHILD_ID, state);
// Write some debug info
Serial.print("Incoming change for sensor:");
Serial.print(message.sensor);
Serial.print(", New status: ");
Serial.println(message.getBool());
gw.send(msg.set(state), false); // Send new state and request ack back
} ** -
RE: Send time request over arduino "monitor serial"
thanks, the problem is i dont know who is "<seconds since 1970> any example? im use a custom controller.
-
RE: Send time request over arduino "monitor serial"
how, who need send?? or an example
-
RE: Send time request over arduino "monitor serial"
when the node send "gw.requestTime(receiveTime); " i cant answer from arduino monitor serial no?
-
Send time request over arduino "monitor serial"
How can i send a time request ?? " over monitor serial in arduino ...
1;255;3;0;1;14:55:30 06/01/2015" something like this??
thanks! im finally complete the most part of my windows controller in .net ^^
-
RE: Serial terminal
Hi! Im make a programm like this in vb.net but i cant send serial data to the controller via USB and i cant see any incoming data. you change any in the gateway sketch?
-
RE: Turn On/Off relay in windows 7
Im install the gateway sketch and Yes if i put.the.command.in the serial monitor work turning on off a led in the sensor i have but without a 0 for ack like this "2;1;1;3;2;1\n" Im use the example this "echo " (command)\n" > comXX and this config
mode com[NUMBER] BAUD=115200 PARITY=n DATA=8 STOP=1 -
RE: Turn On/Off relay in windows 7
I need change something in the gateway? The gw read the serial imput from the usb? I try with the 0 but nothing
-
RE: Turn On/Off relay in windows 7
no work =( i send "2;1;1;3;2;1\n" (turn on relay)
-
RE: Turn On/Off relay in windows 7
@jendrush thanks for reply! I know this method but i need not use the arduino serial monitor im try to make a program send throught serial but the gateway dont listen the serial input from the usb
-
Turn On/Off relay in windows 7
Any know how i can turn off/on a relay sensor sending a command from windows to the gw connected with usb? Using a program, script, etc? I cant buy a Rpi or Vera =( im use 1.4b
Thanks all!
-
RE: Send serial data to vb.net to gw (usb connected)
Im use 1.4b. If a sensor ask for id and i put this command in the serial windows in arduino it works. If i send the same command from other program like a custom vb.net nothing happend. I think the gw not listening the incomming serial data from the usb. Sorry for my bad english im from Argentina!
-
RE: Send serial data to vb.net to gw (usb connected)
@marceltrapman im read de .lua file but if i send the same command lua send like "255;255;3;0;4;2\n" (set radio ID) from vb.net dont work
-
Send serial data to vb.net to gw (usb connected)
Im use de beta library, i can send data to gw with serial.write("1234") command and show the recieved number. My problem is how can use the incomming data in gw? Im use this example
if (Serial.available() > 0) {
// read the incoming byte:
incomingByte = Serial.read();
// say what you got:
Serial.print("I received: ");
Serial.println(incomingByte, DEC);
}if(SerialValue == 1234){
Serial.print("WORK ");
}The IF command dont work. I try to send commands from vb.net to gw to turn on or off sensor and put auto ID
-
RE: Wireless nRF24L01+ sniffer for MySensors
Very good job man! i have a question! can i use a vb.net program to send commands from the gateway (conected via usb) to sensors. if y use de command SERIAL.WRITE (in vb.net) dont work!
-
RE: SSMSG - Single file SQL MySensors Gateway
@Damme said:
1;1;1;1;1;1\n
sorry im from argentina and my english is very bad xD the problem is... i can send "255;255;3;0;4;2\n" from vb.net programm to arduino gateway in COM port and then the gateway send the same command to the sensor to change de ID
vb.net --> arduino gw ---> sensor
but i think the gw dont read the incoming data
at now im use your script and work fine
-
RE: Send data to other sensor
can i put values like this "gw.send( MyMessage("1","3").setDestination("2").set("1") );" ?
-
RE: SSMSG - Single file SQL MySensors Gateway
@Damme How the gateway recieve data and send to other sensor ? like "255;255;3;0;4;2\n" because if i send directly from arduino program work, but with other program connected to serial port not work.
-
Send data to other sensor
Can I send data to other sensors directly from the arduino serial window?