Digimesh issue using sample code

I am tryimg to config a digi xbee module to use the digimesh and having no luck. I have tries a S1,S2,S2C dont have a S2B (thought i did but cant find it yet) everytime I try the sample code XbeeDM_module_config from the xbeelib article I get the reset timeouts (hardware and software and i have a hardware reset config and wired) and after a few of those it come out with the error
Radio protocol does not match, needed a 4 got a 0
Can anyone help? I have been working on this for 3 days and am really stuck.
Rob Berry