Serial is dropping characters
-
-
Thank you all so much for all that wonderful help.
@tbowmo I have no idea why you mention the W5100 when I am asking about passing data between the PC and Arduino via Serial.
@Anticimex I do not expect that kind of support, I do expect an "example" to actually example something.The example does NOT handle the Serial to and from the serial port of the PC as it stands. I obviously need to have more in that Serial Gateway than three empty functions. AND YES, I read up on the subject including a few posts here as I mentioned in the OP but nothing seems to get data passing in both directions.
Instead of rhetoric back at me, what about offering up some example code that you can see working on your PC?. I just need a very basic example using puTTY that works in both directions.
Thank you.
I was merely using w5100 as an example, as I also did with serial.
I am using exactly that example sketch in my own serial gateway, with 3 empty functions. And it works!
Have you even given it a chance, that is putting an unmodified GatewaySerial example into your arduino, connected a terminal emulator and checked the responses you get there? Before starting to tell us that we are doing everything wrong?
-
Thank you all so much for all that wonderful help.
@tbowmo I have no idea why you mention the W5100 when I am asking about passing data between the PC and Arduino via Serial.
@Anticimex I do not expect that kind of support, I do expect an "example" to actually example something.The example does NOT handle the Serial to and from the serial port of the PC as it stands. I obviously need to have more in that Serial Gateway than three empty functions. AND YES, I read up on the subject including a few posts here as I mentioned in the OP but nothing seems to get data passing in both directions.
Instead of rhetoric back at me, what about offering up some example code that you can see working on your PC?. I just need a very basic example using puTTY that works in both directions.
Thank you.
@AndErn as others have already mentioned, you need to start behaving like a good community member. MySensors is a friendly community and letting your frustration on people who try to help is simply not ok. The forum guidelines are plain and simple:
- Be nice
- Don't place ads
I will be watching the next 10 or so posts you make. I'm sure you can be friendly just like everyone else here.
-
@tbowmo said:
You use serial GW, and also handle serial input yourself?
Using several Arduino Nano by the way and nRF24LO1.
In the absence of any instructions for using Serial at all in v2, I am left to guessing how to proceed. I researched here a few days back and questions on Serial gateway for v2 is pretty much ignored.
I ONLY handled serial myself as I could not find any reference to using the Serial Gateway in Examples. It is an appalling "Example" when it has three empty functions. How an Earth can anyone say that code below is an example of anything?
How does it send data via serial to the attached PC?
How does it receive data via serial from the attached PC?#include <SPI.h> #include <MySensors.h> void setup() { // Setup locally attached sensors } void presentation() { // Present locally attached sensors } void loop() { // Send locally attached sensor data here }Hello.
I won't blame you if you're noob in coding, every one is a noob once ;) but i think you were a bit too much confident..
@AndErn said:
How an Earth can anyone say that code below is an example of anything?Because, as you said, there is not so much lines in the sketch so a bit difficult to not see #include <MySensors.h> :confused:
As guys said, it includes everything behind the scene to help noobs to discover mysensors and being confused at the beginning with all the lib stuff. Instead of having to call every functions..I already said it on the forum though..Connect it to a controller and you have something in minutes :)That said, please explain why you're trying this. sure if you're using a controller that can interfere. but perhaps you're using your own?? and try to add things? why? do you need something? because there is already mysensors api. so you see not easy without all infos. people are kind here, no pain ;)
-
We appear to be on a merry go round to beat the messenger at each pass. You people need to READ my posts and respond to what I write, not just chest-thump.
I have PC controller software that I have written (professional programmer for 40-years, so I have a few ideas on how things work) and it accesses the Nano via the USB-Serial connection. It sends commands to the network of Smart-Nodes and receives information from the network of Nodes.
It is very much like MySensors but a lot less complicated than MySensors as it is designed to do just one job for one network with a half dozen specific and very-smart Nodes. By Smart-Nodes I mean every Node will keep actively controlling the A/C, heating etc if the power goes out as it frequently does out here in the boonies.
It is working almost perfectly with the RF24network libraries, but after six or so days the network becomes unreliable with occasional data packets not being sent. I have tracked it down to within the RF24network but I do not want to spend days or weeks hunting down the problems and thought I would use MySensors for the networking as I had previously used 1.5 very successfully
I feel it is a waste of any more time as NO ONE has yet shown me how to make the example work WITH 2.) Bear in mind I WROTE ABOVE it worked OK with 1.5 AND the basic Arduino Serial.
-
@AndErn as others have already mentioned, you need to start behaving like a good community member. MySensors is a friendly community and letting your frustration on people who try to help is simply not ok. The forum guidelines are plain and simple:
- Be nice
- Don't place ads
I will be watching the next 10 or so posts you make. I'm sure you can be friendly just like everyone else here.
@mfalkvidd said:
- Don't place ads
Seriously? What is that supposed to mean? Are you suggesting I am posting ads about puTTY?
Watching my posts? Seriously, that's great as maybe you can offer some actual help rather than lazy rhetoric.
That's about as "nice" as I can be when I am getting no actual help, just vilification.
IF I am dogin it wrong then PLEASE show me how it should be done.
-
I was merely using w5100 as an example, as I also did with serial.
I am using exactly that example sketch in my own serial gateway, with 3 empty functions. And it works!
Have you even given it a chance, that is putting an unmodified GatewaySerial example into your arduino, connected a terminal emulator and checked the responses you get there? Before starting to tell us that we are doing everything wrong?
@tbowmo said:
I am using exactly that example sketch in my own serial gateway, with 3 empty functions. And it works!
Really? In both directions? You can send from puTTY and the Serial Gateway displays it --AND-- the Serial Gateway sends stuff and puTTY displays it?
That's why I wrote above "code that you can see working on your PC?"
-
the gateway doesn't echo characters back to you, so if you send something to the GW, then you won't see it in your terminal (unless you have local echo on).
I am using the sketch, and it prints startup messages from the GW, and also messages received from nodes on the MySensors network. I can also send messages to nodes (using Mysensors serial API to the GW)
You still haven't told us if you see any messages on the serial, when you program the basic sketch in your GW. That is, program GatewaySerial example sketch into your arduino, and then open the terminal program in arduino, perhaps enable #define MY_DEBUG, then it sends even more text over the serial port..
-
We appear to be on a merry go round to beat the messenger at each pass. You people need to READ my posts and respond to what I write, not just chest-thump.
I have PC controller software that I have written (professional programmer for 40-years, so I have a few ideas on how things work) and it accesses the Nano via the USB-Serial connection. It sends commands to the network of Smart-Nodes and receives information from the network of Nodes.
It is very much like MySensors but a lot less complicated than MySensors as it is designed to do just one job for one network with a half dozen specific and very-smart Nodes. By Smart-Nodes I mean every Node will keep actively controlling the A/C, heating etc if the power goes out as it frequently does out here in the boonies.
It is working almost perfectly with the RF24network libraries, but after six or so days the network becomes unreliable with occasional data packets not being sent. I have tracked it down to within the RF24network but I do not want to spend days or weeks hunting down the problems and thought I would use MySensors for the networking as I had previously used 1.5 very successfully
I feel it is a waste of any more time as NO ONE has yet shown me how to make the example work WITH 2.) Bear in mind I WROTE ABOVE it worked OK with 1.5 AND the basic Arduino Serial.
@AndErn said:
I feel it is a waste of any more time as NO ONE has yet shown me how to make the example work WITH 2.) Bear in mind I WROTE ABOVE it worked OK with 1.5 AND the basic Arduino Serial.
Then stick to 1.5 and stop wasting the rest of us incompetent programmers (who have more or less than 40 years of experience) time with your ranting.