Heat oil in a wok. Add asafoetida, cumin seeds and mustard seeds and when cumin seeds splutter add urad and chana dal and saute for 1 minute. Now add chopped onion and ginger and saute for 1 minute on low flame. Add cashew, cloves, cinnamom and black pepper seeds and fry all till onion turn translucent.