in 1854 , commodore matthew c. perry of newport negotiated a the treaty of kanagawa between the united states and the edo period shogunate , which ended japan 's isolation and began japanese-american relations .