use A::B as an alternative solution
Replace r1_adapter and r2_adapter method with each other
A script used to display adapter,barcode and so on