I am struggling with SerialSoftware class.
I use a kind of 1 wire communicaion (not directly 1-Wire protocol).
It is necessary to have a square wave on this wire - 250ms HIGH, 250ms LOW state.
When I use SerialSoftware class (on pins 10,11) I always get true as a result of available method and when I use read method I always get 0 (zero) - everything is in loop function.
I do not understand because I thought that it is necessary to have a stop bit in a proper time so that available method would return true.
I am struggling with SerialSoftware class.
I use a kind of 1 wire communicaion (not directly 1-Wire protocol).
It is necessary to have a square wave on this wire - 250ms HIGH, 250ms LOW state.
I don't understand the connection between those three sentences.
You haven't explained what your problem is; what are your expectations? What does your code do that your didn't expect? What doesn't it do that you did expect?
It is necessary to have a square wave on this wire - 250ms HIGH, 250ms LOW state.
How is that square wave supposed to communicate anything? If you looked at real serial communication, using an oscilloscope, you would see that data is not transferred using equal length high and low states.
The square wave is sent to another circuit - a special iButton reader.
I set Serial to 9600 Baud so that I expected that there will be no reaction on the wave by Serial.
When iButton is read then sends a serial like signal to the same wire.