According to Plummer's The Shogun's Reluctant Ambassadors, in 1842, sea drifters from the Eijū-maru were picked up and by the Ensayo, a "Spanish pirate ship" with a Philippine crew. It was "carrying illegal goods between Spain or Mexico and Manila," and "[b]ecause it was on a 'wanted list', it could not enter any harbors freely." The Japanese men were treated badly and forced ashore on a beach in Baja California.
I found the description confusing. Of Pacific ports, only the Philippines were still Spanish. The Manila galleon system had been over for decades. During Mexico's first twenty years of independence, as far as I know, it didn't trade with East Asia. The Spanish were a minor presence in the Pacific even when they controlled a lot of its coastline.
Who owned Ensayo and what was it up to?