I recommend the use of a good dictionary. Sometimes a device is not equipment at all - though this is not the most common use of 'device'. But there are occasions when the two words are interchangeable (with the syntactic proviso that you've noted).
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: