-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force overdrive from the start. #68
Comments
If you are ready with your tool I am very much interested
Von meinem iPhone gesendet
… Am 10.11.2018 um 22:24 schrieb USBEprom ***@***.***>:
Sorry to bothering.
No sure this is the right place, anyway I try to ask while apologizing for the maybe crazy question.
In order to do some tests on a hardware device called Bus Pirate (http://dangerousprototypes.com/docs/Bus_Pirate) I am using this great and useful library with an Arduino MEGA 2560.
I came across the need to verify the operation of the 1-WIRE protocol in overdrive mode (BusPirate/Bus_Pirate#23) so here it is the point, it would be possible to set up library and skecth to force overdrive operation?
I mean modify things so that Arduino work out of the box as slave 1-WIRE device initialized and ready for overdrive communications, so that it is possible to query it at overdrive speed with no need to before switch parameters from standard to overdrive speed.
A native, ready to use 1-WIRE environment would be a great help in debugging.
By changing in OneWireHub_config.h
#define OVERDRIVE_ENABLE 0
to
#define OVERDRIVE_ENABLE 1
it is possible to enable overdrive, but how to force it as native? (of course if it is possible).
Thanks.
Be seeing you.
U.Sb
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ready I am ready, but how should I proceed to reach the goal? |
Which chip do you emulate with arduino? DS2505?
Von meinem iPhone gesendet
… Am 11.11.2018 um 11:37 schrieb USBEprom ***@***.***>:
Ready I am ready, but how should I proceed to reach the goal?
Thanks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
As the emulation of all the devices listed as supported in the library work with Arduino MEGA 2560, for me it makes no difference which chip to use. |
IIRC, master selects operation mode by issuing different commands for overdrive and non-overdrive requests (that's why both overdrive-capable devices and ordinary devices can operate on the same bus). So that's not OneWireHub's responsibility to enforce overdrive (it just supports it), that's your master's responsibility to do so. |
Ok, I agree. |
Well, in terms of normal 1-wire communication, without "temporary debug hacks", what you want is to send overdrive command 0x3C (overdrive skip ROM) prior to any other ROM-unrelated command for all overdrive-capable devices to transmit next command response using overdrive speed. P.S. A quick look at OneWireHub.cpp suggests that you want to set od_mode = true upon receiving commands you are interested in. Then the hub should respond using overdrive to them anyway. Probably just add od_mode = true; to all the cases you are interested in (inside switch that is inside recvAndProcessCmd())) and see what happens. |
I know that.
Yes, it is just so.
I do not own any Arduino boards, the MEGA 2560 I have available has been loaned to me by a friend of mine.
Yes I have a Bus Pirate on which I want to check timing in 1-WIRE protocol, but I can not do in that way you wrote because for what it is now the firmware of the Bus Pirate it is not possible to switch from standard to overdrive speed and the other way around.
I do not have Arduino for myself, hence of course I have no skill on that matter.
Yes, I am actually trying to debug Bus Pirate, so I do not need more than one Arduino that acts as slave.
I tried so and it does not work for me.
Too complex for me. |
Hi guys. The target 1-WIRE slave was a DS2506 64Kb Add-Only Memory simulated by an Arduino MEGA 2560 running the OneWireHub-2.2.1 library where in "OneWireHub_config.h" the overdrive support for the slaves was enabled #define OVERDRIVE_ENABLE 1 // support overdrive for the slaves. a) SWITCH 3 = OPEN b) SWITCH 2 = CLOSE c) SWITCH 1 = CLOSE Once did so I started the Bus Pirate v3 for 1-WIRE protocol and Standard (~16.3kbps) speed, ending turning on the power supplies with command "W" and pull-up resistors with command "P". a) SWITCH 2 = OPEN b) SWITCH 3 = CLOSE c) SWITCH 1 = OPEN Then I reset the Bus Pirate v3 with command "#" and restarted it for 1-WIRE protocol this time choosing the Overdrive (~160kps) speed and ending turning on the power supplies with command "W" and pull-up resistors with command "P". a) SWITCH 1 = CLOSE b) SWITCH 3 = OPEN c) SWITCH 2 = CLOSE And I started to query the simulated DS2506 from the Bus Pirate v3. |
Sorry to bothering.
No sure this is the right place, anyway I try to ask while apologizing for the maybe crazy question.
In order to do some tests on a hardware device called Bus Pirate (http://dangerousprototypes.com/docs/Bus_Pirate) I am using this great and useful library with an Arduino MEGA 2560.
I came across the need to verify the operation of the 1-WIRE protocol in overdrive mode (BusPirate/Bus_Pirate#23) so here it is the point, it would be possible to set up library and skecth to force overdrive operation?
I mean modify things so that Arduino work out of the box as slave 1-WIRE device initialized and ready for overdrive communications, so that it is possible to query it at overdrive speed with no need to before switch parameters from standard to overdrive speed.
A native, ready to use 1-WIRE environment would be a great help in debugging.
By changing in OneWireHub_config.h
#define OVERDRIVE_ENABLE 0
to
#define OVERDRIVE_ENABLE 1
it is possible to enable overdrive, but how to force it as native? (of course if it is possible).
Thanks.
Be seeing you.
U.Sb
The text was updated successfully, but these errors were encountered: